Re: tomcat-users.xml config in tomcat 6

2007-03-12 Thread Parsons Technical Services

Jacob,

Did you restart Tomcat?

Can you post your tomcat-users.xml?

Doug


- Original Message - 
From: Jacob Rhoden [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, March 12, 2007 11:12 PM
Subject: tomcat-users.xml config in tomcat 6


This is probably something very dumb on my part (: but, when I try to 
use the manager app in a fresh tomcat 6 install, i get the following 
message.


You are not authorized to view this page. If you have not changed any 
configuration files, please examine the file conf/tomcat-users.xml in 
your installation. That file will contain the credentials to let you use 
this webapp.


It then tells me to put:

role rolename=manager/
user username=tomcat password=s3cret roles=manager/

In tomcat-users.xml (I had already put something in there). And it 
didn't really fix it. There are no errors in the logs directory. I 
cannot work out the problem and google was no help on this one. Any 
thoughts?


Thanks, Jacob

__
Jacob Rhoden - http://www.jacobrhoden.com/


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat inserts leading / on include file

2006-11-30 Thread Parsons Technical Services

What OS?

Case sensitivity?
Spelling?

\ instead of a /  ?

Just thoughts.

Doug

- Original Message - 
From: IT Desk [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, November 30, 2006 8:25 PM
Subject: tomcat inserts leading / on include file



In my jsp, I have:
%@ include file=Connections/db.jsp %

and get error:
org.apache.jasper.JasperException: /index.jsp(2,0) File 
/Connections/db.jsp not found


The error message is showing a leading / was inserted.  Why is that?
I'm using Tomcat version 5.5.20.

I tried hardcoding the full path but that didn't help either.

I also tried putting the / in front of Connections and that didn't work 
either.


I also tried just putting the context in front of Connections.  But that 
didn't work either.


Any ideas of what I have not tried or what is causing the problem?

Thanks in advance.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IPTABLES

2006-10-19 Thread Parsons Technical Services

So, if I read correctly you have no problems running you apps as root?

If this is true, then I say you have a very weak security posture.

Might I suggest you do some additional research on the subject. And that 
those who run things in a chroot jail must be real paranoid freaks.


And now this post is way off topic.

Doug


- Original Message - 
From: Paul Singleton [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, October 19, 2006 7:21 PM
Subject: Re: IPTABLES



Christopher Schultz wrote:


Apache httpd is configured out of the box to start up as root, bind to
port 80 (or really any port), and then drop its privileges to the httpd
user. Without some really nasty code, Tomcat is unable to do the same
thing, so we're forced to do silly things like internal port forwarding,
etc.


The root-only-access-to-low-ports policy of
Linux is a legacy from the days when Unix systems
were typically multi-user: it is a heavy-handed way
of stopping the oiks from running unauthorised
servers.

In a secure server it is unnecessary, indeed
counterproductive when it tempts us to run services
as root, or to use tricksy workarounds.

Linux should make this switch-offable (without
having to recompile the kernel).

The only problem I've found with standalone Tomcat
plus iptables port forwarding (apart from the need
to understand iptables :-)) is that web apps can't
make requests to themselves at port 80, but have to
use 8080 or whatever.

Paul Singleton

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Stopping Tomcat

2006-10-19 Thread Parsons Technical Services

One approach that would work with any app is to use a set of lock files.

Set a lock file say TomcatStart at the beginning of the start script.
Delete it and set a TomcatRun file upon completion of the start script.
Check for the presence of the files in the Java application.
TomcatStart exists: Tomcat is starting hold your horses.
TomcatRun exists: Kill at will.
Neither file exists: Dead already.

You may be able to use some of the existing code in the startup and shutdown 
scripts that come with Tomcat.


As for a class to call I do not know but am sure someone on the list will.

Doug


- Original Message - 
From: Miguel Correia Ricardo [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Thursday, October 19, 2006 12:56 PM
Subject: Stopping Tomcat



Hello,

I'm having problems in stopping Tomcat. More precisely stopping
Tomcat, while is starting. I want to be able to check the status of a
running instance of Tomcat, and be able to wait, before sending the
shutdown command (all this in a Java application), otherwise Tomcat
throws an exception, or sends a message stating that catalina engine
has not started yet. So, my question is, does anyone know some class
that exists in tomcat that enables me to check
it's status?
I would appreciate any help.
Best regards,
Miguel Correia Ricardo

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IPTABLES

2006-10-18 Thread Parsons Technical Services

Rodrigo,

Since it appears that you have not gotten an answer, I will take a stab at 
this.
I am running CentOS 4 on one of my boxes and I used this method. I think you 
are running into the same issue I did with iptables. Open the iptables file 
in /etc/sysconfig. DO NOT edit it here. Just look at it. You should see a 
line like:

-A FORWARD -j RH-Firewall-1-INPUT
If you do they are using a named list rather than direct FORWARD lines. You 
will need to modify the lines you are entering to reflect the second part of 
the line above. In my case it was RH-Firewall-1-INPUT but yours may 
differ.


You will notice lines that start out:
-A RH-Firewall-1-INPUT -p

Instead of -A FORWARD.

Try to do the rules like this substituting the name you found from above.

iptables -I RH-Firewall-1-INPUT -p tcp --dport 8443 -j ACCEPT
iptables -I RH-Firewall-1-INPUT -p tcp --dport 8080 -j ACCEPT

And if the redirect statements are not in the file:

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080
iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 8443

If you look in the file you may see the statements you added originally. 
Rerun the original statements with a -D in place of the -A to remove them. 
Then do iptables save


Hope this helps.

Incase you are wondering the reason things failed before is that the last 
line of the named list is a reject all and your added lines were never 
reached.


Doug





- Original Message - 
From: Asensio, Rodrigo [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, October 18, 2006 4:27 PM
Subject: IPTABLES


my config
Fedora 5
Tomcat 5517
Java Sun 1508

Im running a tomcat in port 80 without httpd
I want redirect packages from 80 to 8080 because tomcat is running as
tomcat user (cant run as other non root under port 1025) and I tried the
IPTABLES redirection aproach but doesnt work

I tried this but no news...

- A another way is to use Iptables to redirect Port 80 and 443 to user
ports (1024)

* /sbin/iptables -A FORWARD -p tcp --destination-port 443 -j ACCEPT

* /sbin/iptables -t nat -A PREROUTING -j REDIRECT -p tcp
--destination-port 443 --to-ports 8443

* /sbin/iptables -A FORWARD -p tcp --destination-port 80 -j ACCEPT

* /sbin/iptables -t nat -A PREROUTING -j REDIRECT -p tcp
--destination-port 80 --to-ports 8080

/sbin/iptables-save or /etc/init.d/iptables save

from http://wiki.apache.org/tomcat/HowTo

somebody had the same problem ?

thank you.

Rodrigo


---
Rodrigo Asensio
Fuel Management Services
Gilbarco Veeder Root
phone: +1 336 547 5023
email: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]



This message (including any attachments) contains confidential
and/or proprietary information intended only for the addressee.
Any unauthorized disclosure, copying, distribution or reliance on
the contents of this information is strictly prohibited and may
constitute a violation of law.  If you are not the intended
recipient, please notify the sender immediately by responding to
this e-mail, and delete the message from your system.  If you
have any questions about this e-mail please notify the sender
immediately. 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem Using Tomcat Connector on Windows 2000 Advanced Server

2006-10-18 Thread Parsons Technical Services

Darryl,

Not a Tomcat on Windows myself, but a couple of things.
Are you running a firewall on the box of any kind?
What port do you have Tomcat configured to use?

Past that I am sure the question of version will arise.
Server (given)
Tomcat
Java

You mentioned connector? Connector to what and why?

Running as a service?
How did you install? (Which download)

Are you sure Tomcat is running and what type of error page are you getting 
Tomcat or IE?


Give us some more information to work from and I am sure there are several 
list member that can help.


Doug

- Original Message - 
From: Darryl Ong [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Wednesday, October 18, 2006 10:24 PM
Subject: Problem Using Tomcat Connector on Windows 2000 Advanced Server



Hi everyone.

I just discovered Tomcat and recently started using it to host my JSP 
pages. The server I am using currently is the Windows 2000 Advanced 
Server. I recently also tried to configure the server to use the Tomcat 
Connector but it does not work. It keeps giving me the error that the page 
could not be displayed. I followed the instructions listed on the Tomcat 
site to the letter but it still doesn't work.


Has anyone experienced this problem as well? Need help urgently!

Regards,
Darryl

Send instant messages to your online friends 
http://asia.messenger.yahoo.com 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: hardening and securing tomcat in a production environment

2006-10-16 Thread Parsons Technical Services

Hello,

From my experience the server is pretty good out of the box. Of concern is 
what is done after it is installed as well as during the install. During the 
install, the typical issues of rights and such need addressed as far as 
securing the server. But putting the server aside and focusing on Tomcat.


If you enable the manager/admin follow practices for complex passwords.
Do not enable the invoker servlet.

For further reading:
http://tomcat.apache.org/faq/security.html

Doug


- Original Message - 
From: Stephen More [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Monday, October 16, 2006 8:22 PM
Subject: hardening and securing tomcat in a production environment



Is there a published list of items that need to be configured in order
to harden and secure tomcat in a production environment ? What items
need to be configured, and what items need to be removed  ? I am
currently interested in version 5.5.


-Thanks
Steve More

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Database connection pooling in Tomcat 5.5

2006-09-18 Thread Parsons Technical Services

Try this:

http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq_0.htm#05_03

Otherwise there is some differences in the parameter names. Others have used 
connectionUser and connectionPassword , I think it was.


You can search the archives for OracleDriver to see what I mean.

Sorry, I do not use oracle, so I cannot say what is right.

Doug


- Original Message - 
From: Darren Hall [EMAIL PROTECTED]

To: 'Tomcat Users List' users@tomcat.apache.org
Sent: Monday, September 18, 2006 4:38 PM
Subject: RE: Database connection pooling in Tomcat 5.5


Further progress...
When I connect to the database directly (not using a connection pool) and
specify the same username and password below, the code executes fine. When I
try to do the context lookup and connect to the database via the connection
pool, I get the invalid username/password; logon denied error. This leads
me to believe the error is in my configuration (or my code).
What am I doing wrong here??

Thanks,
Darren


-Original Message-
From: Darren Hall [mailto:[EMAIL PROTECTED]
Sent: Monday, September 18, 2006 2:45 PM
To: 'Tomcat Users List'
Subject: RE: Database connection pooling in Tomcat 5.5


You are likely connecting to the wrong catalog.  Is the pool parameter
defaultCatalog set?


That's specified in my Context, correct? If so, then no, I don't have my
defaultCatalog parameter set.

Here is my context.xml file (comments removed, as well as domain uname and
passwd)

Context path=/flc docBase=flc
   debug=5 reloadable=true crossContext=true

  Resource name=jdbc/flc auth=Container
 type=javax.sql.DataSource
 driverClassName=oracle.jdbc.OracleDriver
 url=jdbc:oracle:thin:@devdb1.(mydomain).com:1521:flcdb
 username=(uname) password=(passwd)
 maxActive=20 maxIdle=10
 maxWait=-1 removeAbandoned=true
 moveAbandonedTimeout=180
 logAbandoned=true/
/Context


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Virtual Host related question

2006-07-24 Thread Parsons Technical Services
Not having done this myself I cannot swear to it, but I have seen similar 
questions and I think the suggested solution was usually a filter. You can 
grab the request, parse the url and re-write it to suite.


As for details, others will have to fill in those. Search Google for filters 
and see what turns up. There is also a section in the docs.


Doug


- Original Message - 
From: Ashok Madhavan [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Monday, July 24, 2006 3:08 PM
Subject: Virtual Host related question



Hi All,

In our web-app multiple company users can login and each company get its 
own
setup. The entry point is the same for all the users but each company has 
a

different query string. something like
http://mycompany/com/mywebapp/login.do?companyKey=xxxyyy.

The web-app works fine. But obviously our clients want a better entry url.
something like http://client1.mycompany.com.

Is there any way by which i can map
http://mycompany/com/mywebapp/login.do?companyKey=xxxyyy to
http://client1.mycompany.com. other clients will get similar url changes.

is this possible and what is the way to do it.

thanks a lot.

regards
ashok





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Servlet on FileTypes

2006-06-09 Thread Parsons Technical Services

Try just using *.page only.


- Original Message - 
From: Kenneth Østby [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Friday, June 09, 2006 8:39 AM
Subject: Servlet on FileTypes



Hey..

I'm trying to map **/*.page to a spesific servlet, and I can't find any
documentation about.

Is there a way that I can use url-mapper to eat /**/*.page ?

Kenneth





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat doesn't deliver page on first call

2006-05-18 Thread Parsons Technical Services
And if it takes long enough the browser will give up and time out. Thus 
giving the appearance of Tomcat not serving on the first request.


Doug

- Original Message - 
From: Hugh Morgan [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, May 18, 2006 6:59 AM
Subject: Re: tomcat doesn't deliver page on first call


Newbie answer: Are you sure you are waiting long enough?  The fisrt timre 
a page is requested tomcat does the compilation, and so it can take quite 
a while (a few seconds).  After this the page is servered much quicker.


HTH,

Hugh

Abid Hussain wrote:

Hi everybody,

After restarting Tomcat (5.0.28), it doesn't deliver the requested 
jsp-page on the first calls.


I have to hit about 5-8 times the reload-button until tomcat delivers the 
requested page (e.g. index.jsp).
Also this problem sometimes turns up when calling servlets for the first 
time after restart, even when tomcat is running already for about 10 
minutes.


Is this a normal behavior? Is there anything to do in the configuration 
files (server.xml, etc.) about this?


Maybe this Problem is because the machine where tomcat is running on (1 
GHZ CPU, 512MB RAM) is not powerful enough?


Has anyone an idea about this?

Best Regards,

Abid





-
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 with Tomcat MySQL using JNDI

2006-05-17 Thread Parsons Technical Services
There is no such critter. I wish it was that simple but due to the needed 
elements that lie outside the war you need to roll up your sleeves and dig 
in.


First I need to let you know I may not be able to respond in a timely 
manner. Busy schedule.


Now I will assume you have reviewed 
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html 
for a per context and


http://tomcat.apache.org/tomcat-5.5-doc/config/globalresources.html for a 
global approach.


Now for a few questions.

Is the jndi for one app or several?

Well if for one app, you can set it up in the context of the app. If for 
several you need it to be global.


Difference is that for global you move the parts to the server.xml and add a 
pointer to the context called a resource link.


Both cases you need to add the drivers to the common/lib (thus the reason a 
simple war won't do).


One common mistake is spelling errors and case issues. Make sure the names 
match exactly. You will also need to restart Tomcat to make it work. One 
suggestion I have is as a test to use the default connection method of:



Class.forName(com.mysql.jdbc.Driver);

   connection =
DriverManager.getConnection(
 jdbc:mysql://192.168.1.19:3306/golive,
 daname,
 depassword);

This will test the database and the drivers. If this fails you need to 
resolve these issue first then move on.


If you search the archives you will find several discussions on this topic 
and I am involved in many of them.


Doug

- Original Message - 
From: Stephen More [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Wednesday, May 17, 2006 5:34 PM
Subject: Help with Tomcat  MySQL using JNDI


Is there a war file available for download that will do nothing more than:
   select 'HelloWorld from MySQL'; using JNDI ?


I have tried following many examples on the web and I keep ending up with:
   Cannot create JDBC driver of class '' for connect URL 'null'

At this point I am pulling out my hair and thinking their must be a
bug in tomcat 5.5.17 !

Can anyone provide me with a simple working war using MySQL ?


-Thanks
Steve More

-
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: Run class in the start up of Tomcat

2006-05-15 Thread Parsons Technical Services

Are you wanting to start a servlet or load a class?

You can load a servlet at the application level.
load-on-startup in the servlet class element in the web.xml of the app.

 servlet
servlet-nameScored/servlet-name
servlet-classsrm.Scored/servlet-class
load-on-startup1/load-on-startup
   /servlet

The number indicates the order that the servlet is loaded.

As for a class you will need to look into the class loader for Tomcat.

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

Doug


- Original Message - 
From: Juanjo Cuadrado [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Monday, May 15, 2006 5:08 PM
Subject: Run class in the start up of Tomcat


Hi,

  I'm trying to run a class in startup of Tomcat. I think that this was
possible in others versions of Tomcat (I just started with Tomcat 5). I
think that it was a property in someone element of server.xml that allowed
this.

   Anyone can help me? I hope that yes ;) tx



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



Re: More virtual hosting problems!!

2006-05-15 Thread Parsons Technical Services
In that case there would be no xml file as you have to put the context 
element under the host element in the server.xml.


There is only two ways I know to define the default application 
(www.eshipper.com/):
Use ROOT.war as the package name. (Or manually deploy it to a folder called 
ROOT and use ROOT.xml.)

Set the path to  in the server.xml.

 Host name=www.riz.com appBase=rizapps unpackWARs=true
autoDeploy=true  workDir=work/Catalina/riz

  xmlValidation=false xmlNamespaceAware=false
  Context displayName=defaultApp docBase=yourChoice path=
   /Context
 /Host

Whatever application that is in the yourChoice folder will serve as the 
default app.


I am not sure and it would be neat to know if you could point the docBase to 
another app that could be deployed and undeployed as normal.


So say you point it to rizbase and then deploy an application of 
rizbase.war. Would it then point to the app as the default? Would 
www.eshipper.com/ and www.eshipper.com/rizbase give you the same app?


Someone else on the list may have more info on this one.

I guess it is possible to not have a default app. Is there any reason you 
don't want to name the file ROOT.war? Only the file name needs to be set to 
ROOT and thus the folder created will be ROOT.


Hope I didn't confuse you too bad.

Doug

- Original Message - 
From: Rizwan Merchant [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, May 15, 2006 5:51 PM
Subject: Re: More virtual hosting problems!!




So what would my context.xml look like if I did not want to name my app 
ROOT.war.
Say I want to name my app under rizapps something like myapplication.war 
...what would the settings be for docbase and path in this case? i.e there 
would be no ROOT application under rizapps.


Thanks again! :)

Parsons Technical Services wrote:
I need to clarify that the context.xml should be part of the war. Note I 
said should (my opinion again)for easy deployment of the app.


To deploy a new app riz2, simply place the war in the rizapps folder. It 
should auto deploy and show up as www.eshipper.com/riz2 .


The ROOT.war is a special case that deploys the app as the default app 
(same as path=).


If you bundle the context.xml as part of the war it will be used. You can 
find further details for using the context at 
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html


Doug


- Original Message - From: Rizwan Merchant 
[EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, May 14, 2006 5:20 PM
Subject: Re: More virtual hosting problems!!




Doug,
Thanks for your efforts to help. I am back with more questions. Hope you 
can still help.


I created a folder called $CATALINA_HOME/rizapps like you suggested
I added a war file called ROOT.war to this directory
The entry for the virtual host in my $CATALINA_HOME/conf/server.xml 
looks like this..


 Host name=www.eshipper.com appBase=rizapps unpackWARs=true 
autoDeploy=true

  xmlValidation=false xmlNamespaceAware=false
 /Host

As you suggested, I also created a folder called 
$CATALINA_HOME/rizapps/META-INF with a file called context.xml which 
looks like this

Context displayName=riz docBase=ROOT
/Context

The above works perfectly, but how do I add more apps to the rizapps 
folder? When I tried to change ROOT.war to riz.war (and correspondingly 
change the docBase to riz) it stopped working (not sure why).
So if I have another app war called riz2.war where would i put this and 
what entry would i need to make in the context.xml file under the 
META-INF directory? Can I have more than 1 context element entry in the 
context.xml file (1 for each app under rizapps)??


Hope my question is clear and that you can help me here.

Thanks,
-Riz.




Parsons Technical Services wrote:


First to your issue below.

Problems:
The workDir belongs in the Host section and not in the context.
The path to the workDir end in an underscore.
The default app is usually in a folder called ROOT.
The appBase would be better somewhere other than webapps. Maybe 
rizapps(my opinion) Otherwise it would conflict with an app called 
riz deployed in the default host.


 Host name=www.riz.com appBase=rizapps unpackWARs=true
autoDeploy=true  workDir=work/Catalina/riz

  xmlValidation=false xmlNamespaceAware=false
  Context displayName=riz docBase=ROOT path=
   /Context
 /Host

There is a way to use the ROOT.xml to deploy the default app for a 
context. I am not familiar with it but this is my best guess.


To retry your first attempt:
Remove the Context element from above.
Deploy you app in a war named ROOT.war
Use META-INF/context.xml not ROOT.xml
In the  META-INF/context.xml file remove the path element.


I ain't perfect so I may have a goof or three in the above stuff.

Doug


- Original Message - From: Rizwan Merchant 
[EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, May 12, 2006 4:39 PM
Subject: Re

Re: More virtual hosting problems!!

2006-05-14 Thread Parsons Technical Services
I need to clarify that the context.xml should be part of the war. Note I 
said should (my opinion again)for easy deployment of the app.


To deploy a new app riz2, simply place the war in the rizapps folder. It 
should auto deploy and show up as www.eshipper.com/riz2 .


The ROOT.war is a special case that deploys the app as the default app (same 
as path=).


If you bundle the context.xml as part of the war it will be used. You can 
find further details for using the context at 
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html


Doug


- Original Message - 
From: Rizwan Merchant [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, May 14, 2006 5:20 PM
Subject: Re: More virtual hosting problems!!




Doug,
Thanks for your efforts to help. I am back with more questions. Hope you 
can still help.


I created a folder called $CATALINA_HOME/rizapps like you suggested
I added a war file called ROOT.war to this directory
The entry for the virtual host in my $CATALINA_HOME/conf/server.xml looks 
like this..


 Host name=www.eshipper.com appBase=rizapps unpackWARs=true 
autoDeploy=true

  xmlValidation=false xmlNamespaceAware=false
 /Host

As you suggested, I also created a folder called 
$CATALINA_HOME/rizapps/META-INF with a file called context.xml which looks 
like this

Context displayName=riz docBase=ROOT
/Context

The above works perfectly, but how do I add more apps to the rizapps 
folder? When I tried to change ROOT.war to riz.war (and correspondingly 
change the docBase to riz) it stopped working (not sure why).
So if I have another app war called riz2.war where would i put this and 
what entry would i need to make in the context.xml file under the META-INF 
directory? Can I have more than 1 context element entry in the context.xml 
file (1 for each app under rizapps)??


Hope my question is clear and that you can help me here.

Thanks,
-Riz.




Parsons Technical Services wrote:


First to your issue below.

Problems:
The workDir belongs in the Host section and not in the context.
The path to the workDir end in an underscore.
The default app is usually in a folder called ROOT.
The appBase would be better somewhere other than webapps. Maybe 
rizapps(my opinion) Otherwise it would conflict with an app called riz 
deployed in the default host.


 Host name=www.riz.com appBase=rizapps unpackWARs=true
autoDeploy=true  workDir=work/Catalina/riz

  xmlValidation=false xmlNamespaceAware=false
  Context displayName=riz docBase=ROOT path=
   /Context
 /Host

There is a way to use the ROOT.xml to deploy the default app for a 
context. I am not familiar with it but this is my best guess.


To retry your first attempt:
Remove the Context element from above.
Deploy you app in a war named ROOT.war
Use META-INF/context.xml not ROOT.xml
In the  META-INF/context.xml file remove the path element.


I ain't perfect so I may have a goof or three in the above stuff.

Doug


- Original Message - From: Rizwan Merchant 
[EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, May 12, 2006 4:39 PM
Subject: Re: More virtual hosting problems!!




dug deeper and figured that everytime I undeploy (delete the expanded 
application directory and replace the war file), the virtual host does 
not get resolved the first time the app is deployed. have to shut down 
the server and restart for it to work!


any ideas? Please help...

Rizwan Merchant wrote:


Ok to add to the mix, here is some more weird stuff.
I have the virtual host stuff working using the following entry in the 
server.xml


 Host name=www.riz.com appBase=webapps/riz unpackWARs=true 
autoDeploy=true

  xmlValidation=false xmlNamespaceAware=false
  Context displayName=riz docBase= path=
  workDir=work/Catalina/riz/_
   /Context
 /Host

when i start the server and type www.riz.com in the browser, it doesnt 
resolve. I then have to shut down the server and restart before 
www.riz.com gets resolved.
So basically for my virtual hosting to work, I have to start the server 
twice to make it work!!!


Weird

Tim Lucia wrote:
The link/text you posted says except when statically defining a 
Context in
server.xml, which was the case in the example from the OP...  The 
above

statement is exactly opposite of what you posted, is it not?  To my
recollection, and despite the fact that it is (now) frowned upon,
path=/something has always worked in server.xml... since my days 
with

Tomcat 3.x.

Tim


-Original Message-
From: Parsons Technical Services 
[mailto:[EMAIL PROTECTED] Sent: Friday, May 12, 2006 
7:57 AM

To: Tomcat Users List
Subject: Re: More virtual hosting problems!!

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

And look at the path element.

 The value of this field must not be set except when statically 
defining a Context in server.xml, as it will be inferred from the 
filenames used for either the .xml context file

Re: More virtual hosting problems!!

2006-05-12 Thread Parsons Technical Services

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


And look at the path element.

 The value of this field must not be set except when statically defining a 
Context in server.xml, as it will be inferred from the filenames used for 
either the .xml context file or the docBase. 


Now there is the issue of Tomcat version. What version is running?

I was basing my info on an assumption of a 5.5.x path.

The 5.0.x path is different.

Doug


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

To: 'Tomcat Users List' users@tomcat.apache.org
Sent: Friday, May 12, 2006 6:48 AM
Subject: RE: More virtual hosting problems!!



Where is this documented?  I have had no problem doing this.  Since I now
put context files in conf/[Engine]/[Host], I went back and added

Context
 docBase=d:/tjl/Projects/log4jconfig
 path=/log4jconfig/

to my server.xml and http://localhost:8080/manager/list shows

OK - Listed applications for virtual host localhost
/admin:running:0:C:/Tomcat/server/webapps/admin
/host-manager:running:0:C:/Tomcat/server/webapps/host-manager
/log4jconfig:running:0:D:/tjl/Projects/Log4JConfig
/:running:0:ROOT
/manager:running:0:C:/Tomcat/server/webapps/manager

So I was able to put a path in the context and it was respected.

Tim


-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 11, 2006 11:12 PM
To: Tomcat Users List
Subject: Re: More virtual hosting problems!!

One issue is that the path element can only be set to  when you use it 
in

the server.xml.

Doug

- Original Message - 
From: Rizwan Merchant [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, May 11, 2006 1:37 PM
Subject: Re: More virtual hosting problems!!




I got this working now by moving the Context definition from the ROOT.xml
to the server.xml under the Host tag as follows

 Host name=www.riz.com appBase=webapps/riz unpackWARs=true
autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false
  Context displayName=riz docBase= path=
  workDir=work/Catalina/riz/_
/Context
 /Host

I got rid of the www.riz.com directory under $CATALINA_HOME/conf/Catalina

But I did read somewhere that it is not recommended to put the Context
definition in the server.xml file.

Can someone please explain why the first scenario did not work and the
above does, although it is not recommded.

Thanks,
-Riz.

Rizwan Merchant wrote:


Hi all!

I have been following the mailing list and it seems this is a common
problem amongst many users. But I could not find a solution to my
problem, hence this post. Hope someone can help me.

I am trying to set up a simple virtual host for the domain www.riz.com 
on



tomcat (listening on port 80) using the instructions provided at
http://ex-parrot.com/~pete/tomcat-vhost.html

Based on the instructions here is what I have done..

1.Added the following to server.xml which is under under
$CATALINA_HOME/conf
   Host name=www.riz.com appBase=webapps/riz unpackWARs=true
autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false
 /Host

   There is a riz.war file under $CATALINA_HOME/webapps that gets
expanded on deployment.

2. Created a directory $CATALINA_HOME/conf/Catalina/www.riz.com
   Added ROOT.xml to this directory which contains
 ?xml version='1.0' encoding='utf-8'?
   Context displayName=riz docBase= path=
   workDir=work/Catalina/riz/_
   /Context


Note that I have mapped www.riz.com to 127.0.0.1 in the hosts file
under c:\windows\system32\drivers\etc so that when i type www.riz.com in
the browser it will resolve to localhost.

Please can someone tell me what I am doing wrong, or if I am missing
anything?

Thanks,
-Riz.




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




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







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


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







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



Re: More virtual hosting problems!!

2006-05-12 Thread Parsons Technical Services

Tim,

Please re-read the OP. He had put the path element in a context file 
(ROOT.xml). Then in his second post indicated that he moved it to the 
server.xml. His last sentence in the second post was the question of why 
putting it in the ROOT.xml did not work but putting it in server.xml did.


The reason version matters is that the empty string can only be in the 
server.xml in version 5.5.X.


Based on an assumption of a 5.5.x version, I gave the response the path 
element can only be set to  when you use it in the server.xml. Which is 
consistent with the docs which I later quoted for you.


So when he set the path in the ROOT.xml it was ignored and thus the 
application did not work as expected. When he moved it to the server.xml it 
then was accepted by Tomcat and functioned as expected.


The concept of putting the context in a context file other than the 
server.xml, to my understanding, is to promote the ability to deploy and 
undeploy the app without a server restart. This is due to the fact that the 
server.xml is only read on Tomcat loading. It does not address the issue of 
(for the lack of a better term) deploying a new host. To do so does require 
a restart of Tomcat to read in the updated server.xml. But it is not that 
often you add a new host.


Now there is also the always present issue of my sanity and that I am 
completely off my rocker. I have been known to spaz and mis read things.


Doug


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

To: 'Tomcat Users List' users@tomcat.apache.org
Sent: Friday, May 12, 2006 8:03 AM
Subject: RE: More virtual hosting problems!!


The link/text you posted says except when statically defining a Context 
in

server.xml, which was the case in the example from the OP...  The above
statement is exactly opposite of what you posted, is it not?  To my
recollection, and despite the fact that it is (now) frowned upon,
path=/something has always worked in server.xml... since my days with
Tomcat 3.x.

Tim


-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED]
Sent: Friday, May 12, 2006 7:57 AM
To: Tomcat Users List
Subject: Re: More virtual hosting problems!!

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

And look at the path element.

 The value of this field must not be set except when statically defining 
a

Context in server.xml, as it will be inferred from the filenames used for
either the .xml context file or the docBase. 

Now there is the issue of Tomcat version. What version is running?

I was basing my info on an assumption of a 5.5.x path.

The 5.0.x path is different.

Doug


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

To: 'Tomcat Users List' users@tomcat.apache.org
Sent: Friday, May 12, 2006 6:48 AM
Subject: RE: More virtual hosting problems!!



Where is this documented?  I have had no problem doing this.  Since I now
put context files in conf/[Engine]/[Host], I went back and added

Context
 docBase=d:/tjl/Projects/log4jconfig
 path=/log4jconfig/

to my server.xml and http://localhost:8080/manager/list shows

OK - Listed applications for virtual host localhost
/admin:running:0:C:/Tomcat/server/webapps/admin
/host-manager:running:0:C:/Tomcat/server/webapps/host-manager
/log4jconfig:running:0:D:/tjl/Projects/Log4JConfig
/:running:0:ROOT
/manager:running:0:C:/Tomcat/server/webapps/manager

So I was able to put a path in the context and it was respected.

Tim


-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 11, 2006 11:12 PM
To: Tomcat Users List
Subject: Re: More virtual hosting problems!!

One issue is that the path element can only be set to  when you use it
in
the server.xml.

Doug

- Original Message - 
From: Rizwan Merchant [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, May 11, 2006 1:37 PM
Subject: Re: More virtual hosting problems!!




I got this working now by moving the Context definition from the 
ROOT.xml

to the server.xml under the Host tag as follows

 Host name=www.riz.com appBase=webapps/riz unpackWARs=true
autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false
  Context displayName=riz docBase= path=
  workDir=work/Catalina/riz/_
/Context
 /Host

I got rid of the www.riz.com directory under 
$CATALINA_HOME/conf/Catalina


But I did read somewhere that it is not recommended to put the Context
definition in the server.xml file.

Can someone please explain why the first scenario did not work and the
above does, although it is not recommded.

Thanks,
-Riz.

Rizwan Merchant wrote:


Hi all!

I have been following the mailing list and it seems this is a common
problem amongst many users. But I could not find a solution to my
problem, hence this post. Hope someone can help me.

I am trying to set up a simple virtual host for the domain www.riz.com
on



tomcat (listening on port 80) using

Re: More virtual hosting problems!!

2006-05-12 Thread Parsons Technical Services


First to your issue below.

Problems:
The workDir belongs in the Host section and not in the context.
The path to the workDir end in an underscore.
The default app is usually in a folder called ROOT.
The appBase would be better somewhere other than webapps. Maybe rizapps(my 
opinion) Otherwise it would conflict with an app called riz deployed in the 
default host.


 Host name=www.riz.com appBase=rizapps unpackWARs=true
autoDeploy=true  workDir=work/Catalina/riz

  xmlValidation=false xmlNamespaceAware=false
  Context displayName=riz docBase=ROOT path=
   /Context
 /Host

There is a way to use the ROOT.xml to deploy the default app for a context. 
I am not familiar with it but this is my best guess.


To retry your first attempt:
Remove the Context element from above.
Deploy you app in a war named ROOT.war
Use META-INF/context.xml not ROOT.xml
In the  META-INF/context.xml file remove the path element.


I ain't perfect so I may have a goof or three in the above stuff.

Doug


- Original Message - 
From: Rizwan Merchant [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, May 12, 2006 4:39 PM
Subject: Re: More virtual hosting problems!!




dug deeper and figured that everytime I undeploy (delete the expanded 
application directory and replace the war file), the virtual host does not 
get resolved the first time the app is deployed. have to shut down the 
server and restart for it to work!


any ideas? Please help...

Rizwan Merchant wrote:


Ok to add to the mix, here is some more weird stuff.
I have the virtual host stuff working using the following entry in the 
server.xml


 Host name=www.riz.com appBase=webapps/riz unpackWARs=true 
autoDeploy=true

  xmlValidation=false xmlNamespaceAware=false
  Context displayName=riz docBase= path=
  workDir=work/Catalina/riz/_
   /Context
 /Host

when i start the server and type www.riz.com in the browser, it doesnt 
resolve. I then have to shut down the server and restart before 
www.riz.com gets resolved.
So basically for my virtual hosting to work, I have to start the server 
twice to make it work!!!


Weird

Tim Lucia wrote:
The link/text you posted says except when statically defining a Context 
in

server.xml, which was the case in the example from the OP...  The above
statement is exactly opposite of what you posted, is it not?  To my
recollection, and despite the fact that it is (now) frowned upon,
path=/something has always worked in server.xml... since my days with
Tomcat 3.x.

Tim


-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 12, 2006 7:57 AM

To: Tomcat Users List
Subject: Re: More virtual hosting problems!!

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

And look at the path element.

 The value of this field must not be set except when statically 
defining a Context in server.xml, as it will be inferred from the 
filenames used for either the .xml context file or the docBase. 


Now there is the issue of Tomcat version. What version is running?

I was basing my info on an assumption of a 5.5.x path.

The 5.0.x path is different.

Doug


- Original Message - From: Tim Lucia [EMAIL PROTECTED]
To: 'Tomcat Users List' users@tomcat.apache.org
Sent: Friday, May 12, 2006 6:48 AM
Subject: RE: More virtual hosting problems!!



Where is this documented?  I have had no problem doing this.  Since I 
now

put context files in conf/[Engine]/[Host], I went back and added

Context
 docBase=d:/tjl/Projects/log4jconfig
 path=/log4jconfig/

to my server.xml and http://localhost:8080/manager/list shows

OK - Listed applications for virtual host localhost
/admin:running:0:C:/Tomcat/server/webapps/admin
/host-manager:running:0:C:/Tomcat/server/webapps/host-manager
/log4jconfig:running:0:D:/tjl/Projects/Log4JConfig
/:running:0:ROOT
/manager:running:0:C:/Tomcat/server/webapps/manager

So I was able to put a path in the context and it was respected.

Tim


-Original Message-
From: Parsons Technical Services 
[mailto:[EMAIL PROTECTED]

Sent: Thursday, May 11, 2006 11:12 PM
To: Tomcat Users List
Subject: Re: More virtual hosting problems!!

One issue is that the path element can only be set to  when you use 
it in

the server.xml.

Doug

- Original Message - From: Rizwan Merchant 
[EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, May 11, 2006 1:37 PM
Subject: Re: More virtual hosting problems!!



I got this working now by moving the Context definition from the 
ROOT.xml

to the server.xml under the Host tag as follows

 Host name=www.riz.com appBase=webapps/riz unpackWARs=true
autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false
  Context displayName=riz docBase= path=
  workDir=work/Catalina/riz/_
/Context
 /Host

I got rid of the www.riz.com directory under 
$CATALINA_HOME/conf/Catalina


But I did read somewhere

Re: More virtual hosting problems!!

2006-05-11 Thread Parsons Technical Services
One issue is that the path element can only be set to  when you use it in 
the server.xml.


Doug

- Original Message - 
From: Rizwan Merchant [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, May 11, 2006 1:37 PM
Subject: Re: More virtual hosting problems!!




I got this working now by moving the Context definition from the ROOT.xml 
to the server.xml under the Host tag as follows


 Host name=www.riz.com appBase=webapps/riz unpackWARs=true 
autoDeploy=true

  xmlValidation=false xmlNamespaceAware=false
  Context displayName=riz docBase= path=
  workDir=work/Catalina/riz/_
/Context
 /Host

I got rid of the www.riz.com directory under $CATALINA_HOME/conf/Catalina

But I did read somewhere that it is not recommended to put the Context 
definition in the server.xml file.


Can someone please explain why the first scenario did not work and the 
above does, although it is not recommded.


Thanks,
-Riz.

Rizwan Merchant wrote:


Hi all!

I have been following the mailing list and it seems this is a common 
problem amongst many users. But I could not find a solution to my 
problem, hence this post. Hope someone can help me.


I am trying to set up a simple virtual host for the domain www.riz.com on 
tomcat (listening on port 80) using the instructions provided at 
http://ex-parrot.com/~pete/tomcat-vhost.html


Based on the instructions here is what I have done..

1.Added the following to server.xml which is under under 
$CATALINA_HOME/conf
   Host name=www.riz.com appBase=webapps/riz unpackWARs=true 
autoDeploy=true

  xmlValidation=false xmlNamespaceAware=false
 /Host

   There is a riz.war file under $CATALINA_HOME/webapps that gets 
expanded on deployment.


2. Created a directory $CATALINA_HOME/conf/Catalina/www.riz.com
   Added ROOT.xml to this directory which contains
 ?xml version='1.0' encoding='utf-8'?
   Context displayName=riz docBase= path=
   workDir=work/Catalina/riz/_
   /Context


Note that I have mapped www.riz.com to 127.0.0.1 in the hosts file 
under c:\windows\system32\drivers\etc so that when i type www.riz.com in 
the browser it will resolve to localhost.


Please can someone tell me what I am doing wrong, or if I am missing 
anything?


Thanks,
-Riz.




-
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 config with APACHE and mutliple VHOST

2006-05-05 Thread Parsons Technical Services
Any reason you need Apache? You can do the Vhost with Tomcat alone. Just an 
option.


Doug


- Original Message - 
From: Pascal [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Friday, May 05, 2006 9:03 PM
Subject: Tomcat config with APACHE and mutliple VHOST


Hello,

I not really found revelant info on internet about this.

Here is what we plan to do.

We have currently APACHE and mutli^ple vhost on few shared IP. We'd like to 
allow to some or all vhost to use jsp/servlet. So we will install TOMCAT and 
mod_JK


Here is our config snapshot
apache in /etc/httpd/
vhost conf file in /etc/httpd/conf.d/
public_html (or docuemntroot in every vhost) are in 
/home/user_account/domain_name/html


So our question is :
What would be the best configrution to allow all users or some users to have 
jsp file in their html directory ?
What is the best way, 1 apache instance and multiple Tomcat instances or 
manage everything with vhost ?


If you could give us a web pointer or some snip config exemple of 
server.xml, web.xml, vhost-conf files, worker.properties we will really 
apreciate it
Also were should we add the context ? and where have to be all files (like 
WEB-INF, etc...) ?


Thanks a ton for your help, HowTo

Pascal 




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



Re: Easy Tomcat Linux/Unix Platform

2006-04-30 Thread Parsons Technical Services
If you would like to use a current version of RedHat there are several 
clones. One that I use is TAOLinux. It is currently RHEL4. The goal of this 
project was to create as close to a RedHat release as possible. If you set 
up the GUI there is a very straight forward security tool to do the 
firewall. Also during install there is a section to setup the rules  as 
well. I run both version 1 and 4 on the web with no trouble.


You will want to keep SSH but may opt to not do SSL. DO NOT use telnet to 
administer the machine unless it is a secured version. Most of them are not. 
I only use SSH and a SSH tunnel for a VNC session.


Doug


- Original Message - 
From: lrnobs [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Sunday, April 30, 2006 11:26 AM
Subject: Easy Tomcat Linux/Unix Platform



I have a project that I need to deploy on the web.  It was up and
running as a prototype a few years ago on the current RedHat version of
that time.  I had professional help on the Linux end at that time.  I
want to deploy it with a current Linux or BSD version in the next couple
of days.

I should have it up and running on my windows laptop with netbeans
version 4.1 and mysql version 5 shortly.  I'm stumbling through that now
but I expect to have the prototype working again on my laptop in a few
hours.  I will make a few changes and then be ready to deploy it to the
web, but not on a windows platform.

I am looking for suggestions for which flavor of Linux to use which will
be the easiest to setup both in the setup of this Java/JSP/Tomcat/MySQL
app and web security.  I can leave SSH off which should help a lot but I
also know I need a strong iptables/iprules setup.  Trying to learn the
rules rules made me a little dizzy last time.

Last year I talked to a guy about doing this with the current FreeBSD
version at that time which I believe was 5 and he told me that binaries
were not supported and I would have to compile from source etc.  I don't
know if that is still the case today.

I would like to do this myself so the easier the better, yet I need to
have good security - maybe from a cookie cutter rules file.

Thanks,

Larry Nobs




-
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: Daily log rotation?

2006-03-29 Thread Parsons Technical Services

Write a patch and submit it.



- Original Message - 
From: David Kerber [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, March 29, 2006 9:21 PM
Subject: Re: Daily log rotation?


Boy, log rotation sure seems like it would be a reasonable function to 
have built into tomcat's native logging...



Tim Lucia wrote:


Use Log4J, or another logger implementation of your choosing, with a
RollingDailyFileAppender (Log4J) or equivalent (your choosing) as the
target. 


-Original Message-
From: Sheets, Jerald [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 29, 2006 5:04 PM

To: Tomcat Users List
Subject: Re: Daily log rotation?

You could add the logs into logrotate.

See the logrotate project for more information.  


NOTE:  This is for Linux/UNIX only.  If on Windows, I do not know.



Jerald Sheets
Systems Administrator
The Weather Channel Interactive




-
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 5.5.16 Virtual Hosting Bug ?

2006-03-24 Thread Parsons Technical Services

Since no one has tackled this yet, I will give you my take on it.

I think that you have an issue in using the same domain name on the virtual 
host.


What you may want to do is try it with two different domain names.
test1.myserver1.com
test2.myserver2.com

See if you get the same results.
If yes, then I suspect an issue with your config as this setup is used by 
quite a few folks.


If no, then you may have run across something that Tomcat doesn't do. 
Weather or not it is a bug I will not say because I am not familiar enough 
with the spec to make that call.


What may work is to setup two dummy domains www.localhost1.com and 
www.localhost2.com and then use the alias attribute in the Host element to 
repoint the test1.mydomain.com to www.localhost1.com and so on.


Doug


- Original Message - 
From: Vamsidhar [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, March 24, 2006 12:07 PM
Subject: Tomcat 5.5.16 Virtual Hosting Bug ?


Hi all:

This is third time I am posting the same question. I tried everything I
could, including re-installing Tomcat from scratch. But, the problem still
remains. Please help !!

I am using Tomcat 5.5.16 (stand-alone) with JDK 5.0 on Windows XP and trying
to setup virtual hosting (to start with two test hosts + localhost). There
is a single ROOT context for each of my test hosts test1.mymachine.com and
test2.mymachine.com as shown below. The root context is defined in a file
named ROOT.xml which is present in

$CATALINA_HOME/conf/[engine_name]/test1.mymachine.com/ROOT.xml
$CATALINA_HOME/conf/[engine_name]/test2.mymachine.com/ROOT.xml

Once I start the tomcat server, three host folders are being created inside
the work directory. As expected the localhost host has all the webapps that
come with tomcat 5.5.16 installation like examples, etc. The work directory
also has two other host folders test1.mymachine.com and test2.mymachine.com.


PROBLEM:

In test1.mymachine.com and test2.mymachine.com along with the root context
all folders present in $CATALINA_HOME are being deployed as contexts. I can
see folders being created in work directory of test1 and test2 which are
exaclty the foldes present in $CATALINA_HOME

Is this is BUG in tomcat 5.5.16 or is there something wrong with my setup.

Any help is appreciated.

Thanks in advance.

ROOT.xml file for test1.mymachine.com

Context path= docBase=c:\websites\test1\webapps\test1
   debug=5 reloadable=true crossContext=true

DB resources

/Context

ROOT.xml file test2.mymachine.com

Context path= docBase=c:\websites\test2\webapps\test2
   debug=5 reloadable=true crossContext=true

DB resources

/Context

Following is the engine tag of my server.xml file

Engine name=Catalina defaultHost=localhost

 Realm className=org.apache.catalina.realm.UserDatabaseRealm 
resourceName=UserDatabase/

 Host name=localhost appBase=webapps
  unpackWARs=true autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false

 /Host

 Host name=test1.mymachine.com debug=0
appbase=c:\websites\test1\webapps
   unpackWARs=true
   Aliastest1.mymachine.com/Alias

   Valve className=org.apache.catalina.valves.AccessLogValve
directory=c:\websites\test1\webapps\logs
prefix=test1_access_log. suffix=.txt
pattern=common resolveHosts=false/

   Logger className=org.apache.catalina.logger.FileLogger
   directory=c:\websites\test1\webapps\logs
prefix=test1_catalina_log. suffix=.txt
   timestamp=true/

 /Host

 Host name=test2.mymachine.com debug=0
appbase=c:\websites\test2\webapps
   unpackWARs=true
   Aliastest2.mymachine.com/Alias

   Valve className= org.apache.catalina.valves.AccessLogValve
directory=c:\websites\test2\webapps\logs
prefix=test2_access_log. suffix=.txt
pattern=common resolveHosts=false/

   Logger className=org.apache.catalina.logger.FileLogger
   directory=c:\websites\test2\webapps\logs
prefix=test2_catalina_log. suffix=.txt
   timestamp=true/

 /Host

   /Engine

Vamsi.



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



Re: Is this tomcat or my app?

2006-03-09 Thread Parsons Technical Services

Or if your situation allows run Tomcat without Apache.

Doug

- Original Message - 
From: Filip Hanik - Dev Lists [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, March 09, 2006 12:00 PM
Subject: Re: Is this tomcat or my app?



there are two answers, one easy and one difficult

Easy answer: mod_proxy, you'll be up and running in five minutes,
Hard answer: try upgrading jk, or downgrade, play around with the configs, 
and spend the next few days fiddling :)


here is a great article on proxying capabilities with apache
http://www.apacheweek.com/features/reverseproxies

Filip



Justin Greene wrote:

Fairly regularly I have a page resquest visible on the 'Server Status' of
the Tomcat Manager that never ends.  I have tomcat set to timeout sockets
after 120 seconds, and have mod_jk set to do the same.  It always stalls 
at
4192K sent (is this a magic number?).  I tried increasing the output 
buffer

size and have set JKOptions +FlushPackets on the off chance that it would
make a difference but it does not seem to.  The stack trace obtained 
through
jconsole is below.  Can anyone shed any light on this?  Could my 
application
be causing this problem?  This page has been running for 10209703ms at 
the

moment and while restarting Apache will cause it to exit, I am getting
really tired of restarting apache all the time to resolve these issues.
Anyone, anyone... Bueller, Bueller?

Thank,
Justin

Name: TP-Processor24
State: RUNNABLE
Total blocked: 3,049  Total waited: 75,144

Stack trace: java.net.SocketOutputStream.socketWrite0(Native Method)
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
java.net.SocketOutputStream.write(SocketOutputStream.java:136)
org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:506)
org.apache.jk.server.JkCoyoteHandler.doWrite(JkCoyoteHandler.java:260)
org.apache.coyote.Response.doWrite(Response.java:551)
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:
361)
org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:403)
org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:323)
org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:392)
org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:381)
org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.ja
va:76)
com.seccas.servlet.GetMessagePartServlet.execute(GetMessagePartServlet.java:
226)
com.seccas.servlet.GetMessagePartServlet.doGet(GetMessagePartServlet.java:31
)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306)
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)
java.lang.Thread.run(Thread.java:595)

--
Justin Greene
SECCAS, LLC.
212-242-9308 x 101
-
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: Invoker servlet

2006-03-08 Thread Parsons Technical Services

Do a search on servlet mapping. It will go in your web.xml.

Doug


- Original Message - 
From: Devireddy, Nagendra Reddy (STSD) [EMAIL PROTECTED]

To: [EMAIL PROTECTED]
Cc: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, March 08, 2006 12:57 AM
Subject: RE: Invoker servlet


Hi Wendy,

Thanks for your reply.
So it may lead to some security problems.
How can I avoid this ?

Any document/link will be of great help.

Thanks, 
Nagendra


-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 10:45 AM

To: Tomcat Users List
Subject: Re: Invoker servlet

On 3/7/06, Devireddy, Nagendra Reddy (STSD) [EMAIL PROTECTED] wrote:

As per Our product documentation guideline I have uncommented invoker 
servlet. Will it lead to any security problems ??

By Default its commented in tomcat 5.x.


http://tomcat.apache.org/faq/misc.html#invoker

--
Wendy

-
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: DataSourceRealm Configuration Question (5.5.15)

2006-03-02 Thread Parsons Technical Services
As other's have noted, both. The difference is that in the context will 
limit to just that app being able to access it and in the server is global 
so that all apps can access it.


Doug


- Original Message - 
From: James Reynolds [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, March 02, 2006 5:44 PM
Subject: DataSourceRealm Configuration Question (5.5.15)



Can a JNDI DataSourceRealm be defined in my web app's context.xml file,
or must it be in the container's server.xml 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: Java Question

2006-02-22 Thread Parsons Technical Services
Okay. Now for a few of my hair brain ideas. Every once in a while I get 
lucky and actually suggest something that works.


As for the files returning to the original state:

I am totally ignorant on JBoss. If there is an archive of any type present 
my guess is that either the app is running from archive and thus checks it 
for changes. Since the files do not match the app is redeployed from the 
archive.


Or:

The app is exploded from the archive and the system redeploys the app on a 
regular basis.


Either way you will need to make your changes inside of the archive and 
either redeploy it or allow it to redeploy.


Changing the source outside of the archive is not a good idea.

For the database issue, look into the code for transactions. It sounds like 
there is a transaction failure that is causing a rollback and thus the 
removal of the data. Other than an explicit deletion of data(code written to 
do it), it is about the only way data is going to be removed.


Doug


- Original Message - 
From: Andrew English [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, February 22, 2006 5:47 PM
Subject: RE: Java Question


Thanks for the info.

However I want to reinstate one point I made earlier or didn't make
clearly. On the test box I copied over all the changed HTML files to it,
and did the same to the production server thinking the Test server must
have been copying all the files over to the production box.

This morning both the test and production box were covered back to the
original html files.

I am looking at using Sysinternals FileMon to see if I can pin point the
actual process that is copying the original files back. But one thing
for sure it I plan to take the TEST box down.

They also run into another problem which is database related and I am
willing to be it has to do with the Test box multicasting. Sometimes
when they post their items in the database the items disappear
themselves completely after a couple of minutes! :(

Andrew

-Original Message-
From: Sethuraman, Prabhu (Cognizant)
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 22, 2006 5:18 PM
To: Tomcat Users List
Subject: RE: Java Question


Andrew,

You will be surprised but here is what it is:

JBoss is actually sending the calls made to your production server to
the test server. This is because of the failover mechanism that is
available within JBoss. Your testserver must be in multicast mode. Try
dropping the test server off multicase mode and you might not get to see
the CEOs picture itself :)

No kidding.

We did have the same issue, where a critical transaction in a Production
system was trying to get data from an EJB which was running in a test
system.

Prabhu S


-Original Message-
From: Andrew English [mailto:[EMAIL PROTECTED]

Sent: Wednesday, February 22, 2006 9:12 AM
To: Tomcat Users List
Subject: Java Question


Does anyone know of a mailing list were I can ask some java related
questions?

The number one question I have is if it's possible to write code within
Java that changes all your HTML files back to their original default?


A client of mine runs, dare I say it here JBoss 2.4 and I found two
copies of JBoss running, one on their production server, the other on a
Test server. Anyhow I had to go and make changes to the HTML files
within the JBoss, removed the previous CTO's name, fixed spelling
errors, removed some dates, etc.


Anyhow initially without taking the Test server into account when I made
changes to the HTML files, at around 12:38AM the files are modified back
to their original state. So I searched all the servers HIGH and LOW for
these files and only came across the Test server having them too.. So I
put the modified copies on the Test server and the production server
yesterday, now they are back to the original copies again.. BIGH SIGH

I have looked through all the scheduled tasks and not found anything, my
thought is it could be embedded somewhere in the Jave??


Andrew

This e-mail and any files transmitted with it are for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.
If you are not the intended recipient, please contact the sender by
reply e-mail and destroy all copies of the original message.

Any unauthorized review, use, disclosure, dissemination, forwarding,
printing or copying of this email or any action taken in reliance on
this e-mail is strictly

prohibited and may be unlawful.

 Visit us at http://www.cognizant.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]





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

Re: JNDI Datasource Problem

2006-02-19 Thread Parsons Technical Services

Look up resource link. It goes in the context.xml

Also only put the jar file in the common/lib and no where else.


- Original Message - 
From: Mark Whitby [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, February 19, 2006 12:53 PM
Subject: JNDI Datasource Problem


Hey guys,

Thanks for the help with the previous problem I had, I've managed to solve 
them now thanks to your help.  But now I'm having a problem with setting up 
a DataSource connection.  I've followed the example word for word and got 
the following error:


javax.servlet.ServletException: Unable to get connection, DataSource 
invalid: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC 
driver of class '' for connect URL 'null'


I did a google search for this but only managed to find something on the 
NetBeans website which wasn't much help.  I've edited the server.xml file as 
stated, placed the relevent jar file (mysql-connector-java-3.1.12-bin.jar) 
in the lib folder in my web application and in the /common/lib folder in the 
Tomcat home folder and I've reset the server and I'm still getting the same 
problem.


I'm using MySQL, database is called 'fyptest' and the table is called 
'testdata'.  So where am I going wrong?


Many thanks

Mark Whitby

Server.xml file:

Context path=/DBTest docBase=DBTest
   debug=5 reloadable=true crossContext=true

 Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_DBTest_log. suffix=.txt
timestamp=true/

 Resource name=jdbc/TestDB
  auth=Container
  type=javax.sql.DataSource/

 ResourceParams name=jdbc/TestDB
   parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter

   !-- Maximum number of dB connections in pool. Make sure you
configure your mysqld max_connections large enough to handle
all of your db connections. Set to 0 for no limit.
--
   parameter
 namemaxActive/name
 value100/value
   /parameter

   !-- Maximum number of idle dB connections to retain in pool.
Set to -1 for no limit.  See also the DBCP documentation on this
and the minEvictableIdleTimeMillis configuration parameter.
--
   parameter
 namemaxIdle/name
 value30/value
   /parameter

   !-- Maximum time to wait for a dB connection to become available
in ms, in this example 10 seconds. An Exception is thrown if
this timeout is exceeded.  Set to -1 to wait indefinitely.
--
   parameter
 namemaxWait/name
 value1/value
   /parameter

   !-- MySQL dB username and password for dB connections  --
   parameter
nameusername/name
valuejavauser/value
   /parameter
   parameter
namepassword/name
valuepilks2/value
   /parameter

   !-- Class name for the old mm.mysql JDBC driver - uncomment this entry 
and comment next
if you want to use this driver - we recommend using Connector/J 
though

   parameter
  namedriverClassName/name
  valueorg.gjt.mm.mysql.Driver/value
   /parameter
--

   !-- Class name for the official MySQL Connector/J driver --
   parameter
  namedriverClassName/name
  valuecom.mysql.jdbc.Driver/value
   /parameter

   !-- The JDBC connection url for connecting to your MySQL dB.
The autoReconnect=true argument to the url makes sure that the
mm.mysql JDBC Driver will automatically reconnect if mysqld closed 
the
connection.  mysqld by default closes idle connections after 8 
hours.

--
   parameter
 nameurl/name
 valuejdbc:mysql://localhost:3306/fyptest?autoReconnect=true/value
   /parameter
 /ResourceParams
/Context

web.xml file:

 resource-ref
 descriptionDB Connection/description
 res-ref-namejdbc/TestDB/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
 /resource-ref



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



Re: is it ok to run tomcat 3.3 in jre 1.4?

2006-02-16 Thread Parsons Technical Services
Yes. By the nature of the design, Java is almost always backward compatible 
in that older software will run on newer versions. As usual there are 
sometimes exceptions to this.


If you are going to change Java version, you may wish to change it to the 
current version. 1.5 is very stable, compatible and reported to be much 
faster.


Again there are never any guarantees. Only by doing it will you know for 
sure.


Doug


- Original Message - 
From: Akoulov, Alexandre [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, February 15, 2006 11:08 PM
Subject: is it ok to run tomcat 3.3 in jre 1.4?


Hi all,

we need to urgently fix one web app that runs in tc 3/ java 1.3. The fix is 
only available with java 1.4.


My question is: can we run tomcat 3.3 in java 1.4.2_10

Kind regards,

Sasha.

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Thursday, 16 February 2006 2:58 PM
To: Tomcat Users List
Subject: RE: New to apache / Tomcat



From: Andrew English [mailto:[EMAIL PROTECTED]
Subject: RE: New to apache / Tomcat

Could it be they are running both?


Certainly could be, but I would have to wonder why...


I looked through all the jboss folders and found nothing related to
catalina just the files which make up the web site itself.


I suppose it could be just left-over naming from some ambitious full
J2EE project that ended up needing only Servlet/JSP capabilities.

What are the dates on some of the files?  Tomcat 4.0.3 came out in the
spring of 2002, whereas JBoss 4.0.3 is fairly recent (mid-year 2005, SP1
in the fall).

You might try downloading whichever one corresponds to the dates you
find, and comparing the directory structure of that with what you've got
in hand.  The Tomcat 4.0.3 archive is here:
http://archive.apache.org/dist/tomcat/tomcat-4/archive/v4.0.3/

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





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



Re: install tomcat under linux (java problem)

2006-02-12 Thread Parsons Technical Services
May I suggest you start a new thread (new email) with the appropriate 
subject?
It helps prevent the erroneous replies as well as helps in future searches 
through the achieves. Additionally many list members watch the threads by 
the subject and may be ignoring this thread and yet have the answer to your 
current problem.



- Original Message - 
From: Hannes Hein [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, February 12, 2006 4:10 PM
Subject: Re: install tomcat under linux (java problem)



Hallo Wolfgang,

there is no longer a java problem (sorry but the thread began with that 
problem).



 callisto:/srv/apache-tomcat-5.5.15/bin/jsvc-src# make
make -C native all
make[1]: Entering directory 
`/srv/apache-tomcat-5.5.15/bin/jsvc-src/native'


cc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\i386\  -I/usr/local/java/jdk1.5.0_06/include 
  -I/usr/local/java/jdk1.5.0_06/include/linux -Wall -Wstrict-prototypes  
 -c jsvc-unix.c -o jsvc-unix.o

In Datei, eingefügt von jsvc.h:20,
von jsvc-unix.c:17:
/usr/include/stdio.h:34:21: stddef.h: Datei oder Verzeichnis nicht 
gefunden

[...]

For those who don't speak German: Datei oder Verzeichnis nicht 
gefunden translates to File or directory not found. My guess is that 
something is wrong with your C development tools. Perhaps the 
configure-script could not find your headers as there are no entries in 
the gcc output containing something like -I/usr/include. Are you sure 
you have your libraries set up properly?


Check whether your compiler works by compiling following program:
--
#include stdio.h
int main(){printf(works\n);}
--
Command line: cc -o c-test c-test.c


I tryed your simple code and in fact is seems to be a problem with the 
header files.

That means the libraries aren't set up properly.

But I always used SuSE Linux before, and SuSE is very easy and does 
anything necessary for you, so my problem is now: I don't know which 
libaries I have to install to compile the tomcat daemon.


Hannes

-
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: Encrypting ajp13 traffic

2006-02-12 Thread Parsons Technical Services

Sasha,

There are several ways to accomplish this, and I think it has been mentioned 
on the list before but I don't remember a best way if it was decided there 
is one.


Options include:
VPN
IPSec (part of VPN)
ssh
isolated lan segment (if feasible, IE your side of network)

There may already be something out there. If so, someone here will know.

Doug

- Original Message - 
From: Akoulov, Alexandre [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, February 12, 2006 11:01 PM
Subject: Encrypting ajp13 traffic


Hi all,

I am wondering if there is a way encrypt the traffic between apache and 
tomcat when they talk to each other on ajp13.


All suggestions are welcome.



Kind regards,

Sasha.

-Original Message-
From: Ian Buzer [mailto:[EMAIL PROTECTED]
Sent: Saturday, 11 February 2006 2:44 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat - blank page problem



Webpages seem to be loading then usually blank page
 comes(totaly blank no error messages) on high traffic.


I suspect this could either be your redirector cachesize is not large enough
(the number of threads that the redirector will accept from IIS) or tomcat
is not able to respond to all the threads that are being passed through to
it.

Both these will show up in the isapi redirector logs.

Cache size is set in /conf/workers.properties

Tomcat threads are set in /conf/server.xml (maxThreads etc. on the AJP
connector)

Ian


-
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: Tomcat5.15 basic setup question

2006-02-12 Thread Parsons Technical Services

Bob,

Not a very good application if they are doing that. Hard coding things such 
as IP addresses is just asking for headaches.


I take it that you have a link or a button with an action that is sending 
you to the desired page.
Remove the http://mirc.10.x.x.x.com:8080/mirc/; and simply leave the 
Login in place. If you need to move up a step on the content you can use 
../ in front of the desire destination or add the folder to move down a 
level.


Now to unravel the confusion.
If at the root of the app:
href=test.jsp will link you to the jsp page test in the root of the app.
href=night/select.jsp will link you to the select jsp in the folder called 
night that is in the root.
Once in the night folder and you need to link to something in the root then 
use:

href=../test.jsp

The same works for actions on forms.

Doug


- Original Message - 
From: Bob Hartung [EMAIL PROTECTED]

To: Tomcat Users users@tomcat.apache.org
Sent: Sunday, February 12, 2006 11:24 PM
Subject: Tomcat5.15 basic setup question



Hi all,
  I am new to java and Tomcat.
  I have the following situation:
 FC4 server behind PIX box.  Internal address 10.x.x.x.
 Outside address resolves to mirc.[website].[suffix]

  I have deployed a java application called MIRC and it works fine at the 
server console.
  From the same network, I can access all functions with 
http://10.x.x.x:80.
  From the outside world I can access the main page with 
http://mirc.[website].[suffix]:8080


  The problem is when I select a function on the entry page that sends me 
to another jsp in the application.  Because the application suggested that 
i hard code the local address, 10.x.x.x, when I do try to access another 
page the url is returned as http://mirc.10.x.x.x.com:8080/mirc/Login, for 
instance. mirc.10.x.x.x.com:8080 cannot resolve.


  I though of changing the address in server.xml to localhost:8080 but 
that too will not resolve from the outside world.


  My question is were if the mass of documentation for Tomcat should I 
start looking for the answer of how to configure this so it will work both 
from within my office and from the outside world?


Thanks for pointers!

Bob

-
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 Tomcat over NFS over multiple hosts, want to separate locations of directories

2006-02-09 Thread Parsons Technical Services

What version of java are you running?


- Original Message - 
From: Mark Demma [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, February 09, 2006 10:38 PM
Subject: Re: Using Tomcat over NFS over multiple hosts, want to separate 
locations of directories




-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Well, I got tomcat running via NFS with these variables starting up: 
(where /usr/dist/pkgs/... is a NFS mounted RO directory)


JAVA_HOME=/usr/dist/pkgs/java
CATALINA_BASE=/usr/local/tomcat
CATALINA_HOME=/usr/dist/pkgs/tomcat
LOG_HOME=/usr/local/logs/$instance.hive/
ARGS=-config $CATALINA_HOME/conf/server.xml
TOMCAT_START=$CATALINA_HOME/bin/startup.sh $ARGS
TOMCAT_STOP=$CATALINA_HOME/bin/shutdown.sh $ARGS

the problem is that anything I put into webapps barfs with the  following, 
looking like it can't find any of it's libraries at /usr/ 
dist/pkgs/tomcat/common/lib/, even tho I can see them fine from that 
machine...


SEVERE: Begin event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.deploy.FilterDef

SEVERE: Parse error in application web.xml file at jndi:/localhost/ 
admin/WEB-INF/web.xml

java.lang.ClassNotFoundException: org.apache.catalina.deploy.FilterDef
at  org.apache.tomcat.util.digester.Digester.createSAXException 
(Digester.java:2719)
at  org.apache.tomcat.util.digester.Digester.createSAXException 
(Digester.java:2745)
at org.apache.tomcat.util.digester.Digester.startElement 
(Digester.java:1278)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElemen 
t(AbstractSAXParser.java:533)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.s 
canStartElement(XMLDocumentFragmentScannerImpl.java:878)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl 
$FragmentContentDispatcher.dispatch 
(XMLDocumentFragmentScannerImpl.java:1693)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.s 
canDocument(XMLDocumentFragmentScannerImpl.java:368)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse 
(XML11Configuration.java:834)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse 
(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse 
(XMLParser.java:148)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse 
(AbstractSAXParser.java:1242)
at org.apache.tomcat.util.digester.Digester.parse 
(Digester.java:1561)
at  org.apache.catalina.startup.ContextConfig.applicationWebConfig 
(ContextConfig.java:350)
at org.apache.catalina.startup.ContextConfig.start 
(ContextConfig.java:1055)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent 
(ContextConfig.java:261)
at  org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent 
(LifecycleSupport.java:119)
at org.apache.catalina.core.StandardContext.start 
(StandardContext.java:4111)
at org.apache.catalina.core.ContainerBase.start 
(ContainerBase.java:1012)
at org.apache.catalina.core.StandardHost.start 
(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start 
(ContainerBase.java:1012)
at org.apache.catalina.core.StandardEngine.start 
(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start 
(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start 
(StandardServer.java:700)

at org.apache.catalina.startup.Catalina.start(Catalina.java: 551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start 
(Bootstrap.java:275)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java: 413)
Feb 9, 2006 7:22:42 PM org.apache.catalina.startup.ContextConfig 
applicationWebConfig

SEVERE: Occurred at line 16 column 11

From the docs I read, changing CATALINA_BASE should NOT change where  it 
looks for common/lib .. it should look in $CATALINA_HOME for that...



When you use this -Dcatalina.base=$CATALINA_BASE argument, Tomcat  will
calculate all relative references for files in the following  directories 
based

on the value of $CATALINA_BASE instead of $CATALINA_HOME:

* conf - Server configuration files (including server.xml)
* logs - Log and output files
* shared - For classes and resources that must be shared across all  web
   applications
* webapps - Automatically loaded web applications
* work - Temporary working directories for web applications
* temp - Directory used by the JVM for temporary files (java.io.tmp


So why is it acting as if it can't find 

Re: Using Tomcat over NFS over multiple hosts, want to separate locations of directories

2006-02-09 Thread Parsons Technical Services

Just wanted to make sure you didn't have 1.4 .

Going out on a limb here, do you have allowlinking =true attribute set in 
you context? It might be worth a try as some of your paths may appear as 
links to Tomcat even if they are mounted volumes.


Doug


- Original Message - 
From: Mark Demma [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Cc: Parsons Technical Services [EMAIL PROTECTED]
Sent: Thursday, February 09, 2006 11:02 PM
Subject: Re: Using Tomcat over NFS over multiple hosts, want to separate 
locations of directories




-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

java version 1.5.0_06
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

Mark Demma
Senior UNIX Systems Admin
PlanetOut Inc.

On 9 Feb 2006, at 19:49, Parsons Technical Services wrote:


What version of java are you running?


- Original Message - From: Mark Demma 
[EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, February 09, 2006 10:38 PM
Subject: Re: Using Tomcat over NFS over multiple hosts, want to  separate 
locations of directories




-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Well, I got tomcat running via NFS with these variables starting  up: 
(where /usr/dist/pkgs/... is a NFS mounted RO directory)


JAVA_HOME=/usr/dist/pkgs/java
CATALINA_BASE=/usr/local/tomcat
CATALINA_HOME=/usr/dist/pkgs/tomcat
LOG_HOME=/usr/local/logs/$instance.hive/
ARGS=-config $CATALINA_HOME/conf/server.xml
TOMCAT_START=$CATALINA_HOME/bin/startup.sh $ARGS
TOMCAT_STOP=$CATALINA_HOME/bin/shutdown.sh $ARGS

the problem is that anything I put into webapps barfs with the 
following, looking like it can't find any of it's libraries at / usr/ 
dist/pkgs/tomcat/common/lib/, even tho I can see them fine  from that 
machine...


SEVERE: Begin event threw exception
java.lang.ClassNotFoundException:  org.apache.catalina.deploy.FilterDef

SEVERE: Parse error in application web.xml file at jndi:/ localhost/ 
admin/WEB-INF/web.xml

java.lang.ClassNotFoundException:  org.apache.catalina.deploy.FilterDef
at   org.apache.tomcat.util.digester.Digester.createSAXException 
(Digester.java:2719)
at   org.apache.tomcat.util.digester.Digester.createSAXException 
(Digester.java:2745)
at org.apache.tomcat.util.digester.Digester.startElement 
(Digester.java:1278)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startEle 
men t(AbstractSAXParser.java:533)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp 
l.s canStartElement(XMLDocumentFragmentScannerImpl.java:878)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l 
$FragmentContentDispatcher.dispatch 
(XMLDocumentFragmentScannerImpl.java:1693)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp 
l.s canDocument(XMLDocumentFragmentScannerImpl.java:368)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse ( 
XML11Configuration.java:834)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse ( 
XML11Configuration.java:764)
at  com.sun.org.apache.xerces.internal.parsers.XMLParser.parse 
(XMLParser.java:148)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse 
(AbstractSAXParser.java:1242)
at org.apache.tomcat.util.digester.Digester.parse 
(Digester.java:1561)
at 
org.apache.catalina.startup.ContextConfig.applicationWebConfig 
(ContextConfig.java:350)
at org.apache.catalina.startup.ContextConfig.start 
(ContextConfig.java:1055)
at  org.apache.catalina.startup.ContextConfig.lifecycleEvent 
(ContextConfig.java:261)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent 
(LifecycleSupport.java:119)
at org.apache.catalina.core.StandardContext.start 
(StandardContext.java:4111)
at org.apache.catalina.core.ContainerBase.start 
(ContainerBase.java:1012)
at org.apache.catalina.core.StandardHost.start 
(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start 
(ContainerBase.java:1012)
at org.apache.catalina.core.StandardEngine.start 
(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start 
(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start 
(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start (Catalina.java: 
551)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native  Method)
at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start 
(Bootstrap.java:275)
at org.apache.catalina.startup.Bootstrap.main

Re: Is this achievable with TC? - A domain-subdomain configuration question

2006-02-08 Thread Parsons Technical Services
Yes, it is achievable. But may not be worth it. Only you can decide that. 
Take a look at the Host element. There is a feature called alias that allow 
you to point all subdomains to the same application. From there it is up to 
you to parse out the information to determine the appropriate response.



- Original Message - 
From: Edouard Dalla-Costa [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, February 08, 2006 4:26 AM
Subject: Re: Is this achievable with TC? - A domain-subdomain configuration 
question



Hello,

I was wondering if you were able to solve your problem because I also need
to handle severals virtual hosts with a single application using tomcat
without apache. And I can't find any solution.
Hope you can help me, thanks in advance

Edouard



On 1/2/06, Wei Wei [EMAIL PROTECTED] wrote:


I am working on starting a new project: an application for various
locations (think of a chain store). The business logic is the same for all
locations while the data can vary for one location to another. I would 
like

to have the following domain structure:

www.mydomain.com -  a user can select one location on the home page
location1.mydomain.com - all user interaction data only applied to this
location
location2.mydomain.com - ...

I have done some reseach on this topic at the TC site and haven't found
any direct inforamtion. The virtual host configuration is only applied for
multiple applications, but not for multiple subdomain with a single
application.

Thanks for any inputs in advance.

w.

--
___

Search for businesses by name, location, or phone number.  -Lycos Yellow
Pages


http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10


-
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 with setting up an SSL secure page

2006-02-08 Thread Parsons Technical Services

What is in the logs?



- Original Message - 
From: Mark Whitby [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Wednesday, February 08, 2006 11:02 AM
Subject: Problem with setting up an SSL secure page


Dear all,

I am currently designing a final year project for my University course and I 
am having problems getting a working SSL connection.  I have Tomcat set up 
and working fine, but when it comes to accessing a page over the https 
setup, I am having no luck.


Firstly a few technical details.  I am using Windows XP Home, with Internet 
Explorer 6.0.2900.2180.  I am using the latest Java installation, jdk 
1.5.0_05 and so the JSSE comes installed with that.  I'm using Tomcat 5.0, 
the latest installation available (it's only been installed on my system for 
the last few weeks).  I have McAffe Security Centre installed but the 
problem occurs even with this turned off.


Now the problem.  I have followed word by word the set up instructions in 
the Tomcat manual.  I have created the certificate and verified it using the 
command line.  I have altered the server.xml file to include the path 
keystorePath=D:/FYPCode/keystore where I have copied the keystore to. 
I've done everything.  Yet when I type https://localhost:8443 in the browser 
window I get nothing.  When using IE it takes ages to search for the page, 
then eventually I get This page cannot be displayed and in Mozilla I get a 
message after a couple of minutes saying the page has timed out and get left 
with a blank page.  So I can't load the page up at all.


I've tried everything I can think of to get it to work.  I have 3 different 
books on this subject and I've followed the instructions in every one to try 
and get this to work.  Nothing has worked.  I did a Google search using as 
many different combinations of words I can think of but the only help I get 
is for Tomcat 3 and the old JSSE installation.  So I'm lost.  I did even 
think about installing the JSSE 1.3 to see if that had an effect, as I can't 
find any of the jar files that are mentionned in that area.  However, I felt 
it best to ignore that as it says.


So as you can see I've tried everything I can think of.  Nothing as worked. 
If anyone can help me I would be extremely grateful.


Many thanks

Mark Whitby
[EMAIL PROTECTED] 




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



Re: MySQL Database / Tomcat Exceptions

2006-02-06 Thread Parsons Technical Services
How are you creating the connection and are you trying to maintain it? 
Unless you are using a pool that is designed to deal with MySQL you need to 
handle the timeout of the connection to the db. If you are trying to hold 
onto the connection, MySQL will drop it after some time. To you app it will 
appear as lost communication.



- Original Message - 
From: Richard S. Huntrods [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Monday, February 06, 2006 5:55 PM
Subject: MySQL Database / Tomcat Exceptions




From: Richard S. Huntrods [mailto:[EMAIL PROTECTED] Subject: RE: 
Would like to know what might be causing this exception in servlet


I have one more. This *IS* a real error, and is caused by something 
breaking between MySQL and my servlets.




(Should probably start a new thread for this, since it's a different
issue.)

It looks like the other end (MySQL) decided to drop the connection.
Could be a timeout problem, or a network hiccup (e.g., somebody tripped
over a cable).  Is this reproducible?  Can you get a network capture of
the situation?

- Chuck




Thanks, Chuck. I am thinking along similar lines. The only problem is that 
aside from the Java exception, there are no error messages in any other 
Tomcat logs or MySQL logs.


Here's another one from today:


DBMS SQLException. Time:Mon Feb 06 14:46:06 MST 2006
SQLException caught: keyLookup(login : 50768)
DBMS SQLException. Time:Mon Feb 06 14:46:06 MST 2006
SQL Problem: Communication link failure: java.io.IOException, underlying 
cause: Unexpected end of input stream


** BEGIN NESTED EXCEPTION **

java.io.IOException
MESSAGE: Unexpected end of input stream

STACKTRACE:

java.io.IOException: Unexpected end of input stream
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:1405)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1775)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1020)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1109)
at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1070)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2027)
at com.mysql.jdbc.Connection.execSQL(Connection.java:1984)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1152)
at my.DBMS.keyLookup(Unknown Source)
at my.Person.lookup(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:419)
at 
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:133)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

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


** END NESTED EXCEPTION **


SQL State: 08S01
Vendor Error: 0


Again, basically Tomcat seems to just lose the connection to MySQL. Any 
suggestions?


-Richard



-
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 domain names

2006-02-06 Thread Parsons Technical Services

Yes.

Virtual Hosts


- Original Message - 
From: [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Monday, February 06, 2006 1:22 PM
Subject: multiple domain names







I can read the tomcat docs myself to figure out the details, but I just 
want to know if this is something done within tomcat or not.  I want to be 
able to map different domain names to the different web apps in the 
server.  Can I do this?  Is this a tomcat issue, or something else?




___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



-
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 stops automatically

2006-02-06 Thread Parsons Technical Services

Check you logs.

Decipher the script to determine exactly what it did.

Check the FAQ for Tomcat Crash.

If no one is browsing does it still crash?

Watch your processes and see which one is using processor when Tomcat 
crashes.



- Original Message - 
From: netsonic netsonic [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Monday, February 06, 2006 1:36 PM
Subject: Tomcat stops automatically



Hi all;

i am using Tomcat over 1 year but its the first time i have that big 
problem...


my tomcat stops automatically everytime once between 5 to 20 minutes...The 
problem started today i didnt any make configuration...i just only runned 
a ssh script  on my server which connects to some server with ssh 
protocol...


i dont know really why?when i looked at the ram status it says low ram 40 
mb remaining.so i added 512 ram more  total 1 gb..now there is half of 
free ram(512 mb)..i have just uninstalled th tomcat and installed the 
latest one


but still the same problemwhy it stops automatically without no 
reason...how can i understand and solve the problem


please show me a way help:(


thank you

Burak



-
Yahoo! Mail - Helps protect you from nasty viruses. 




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



Re: Re: Apache + Tomcat, Tomcat only handles JSP in localhost

2006-01-10 Thread Parsons Technical Services
Don't forget the alternate trick of port(s) redirection. For some it is 
simpler. I use jsvc on TAO Linux, a RedHat clone.


Doug

- Original Message - 
From: Warren Pace [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, January 10, 2006 9:50 PM
Subject: Re: Re: Apache + Tomcat, Tomcat only handles JSP in localhost






From: Oded Arbel [EMAIL PROTECTED]
Date: 2006/01/10 Tue PM 12:46:14 EST
To: users@tomcat.apache.org
CC: Warren Pace [EMAIL PROTECTED]
Subject: Re: Apache + Tomcat, Tomcat only handles JSP in localhost

On Tuesday, 10 ?January 2006 14:31, Warren Pace wrote:
  The most important reason that I use an Apache frontend for tomcat,
  which is probably not relevant to the original poster, is that
  under Unix only root processes can open port 80 (the default HTTP
  port), and so if tomcat is configured to serve pages on port 80, it
  must run as root.

 You can use jsvc to run tomcat as a non-priviledged user on port 80.

That is very interesting - I was not aware of that capability of jsvc.
Currently neither of my production operating systems (Mandriva and
RedHat) offer this as a package, but I'll check it out.

I'm running it on OpenSuSE and have previously run it on Debian and Fedora 
Core 4.  None of these distributions offer jsvc as a package either.  The 
source code for jsvc is included with the tomcat binaries in the bin 
directory.  You have to gunzip the file jsvc.tar.gz which will create the 
subdirectries containing the source you'll need to compile.  You'll then 
need to compile jsvc and write your own init.d script.  You'll also need 
to edit server.xml and change the connector port from 8080 to 80.  I'll 
send you a copy of my init script you can used as a template if you'd like 
but basically it's just /etc/skeleton altered to launc jsvc.



--
Oded

::..
For every minute you are angry, you lose sixty seconds of happiness.

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