RE: multi-connector capability for HTTPS in Tomcat

2007-12-25 Thread Hitesh Raghav
Hi Mark,

How it can be configured for each webapp?
Is there any documentation about it? Could you please share me
appropriate URL about it.

Regards,
-Hitesh
 

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 25, 2007 12:43 AM
To: Tomcat Users List
Subject: Re: multi-connector capability for HTTPS in Tomcat

Hitesh Raghav wrote:
 Hi Mark,
 
 I'm little confused about it.
 
 Let assume my m/c ip is: 10.212.85.8
 SSL connector are configured on ports: 8443  8553
 
 I need to deploy one web app (myapp01.war) on port 8443 and another on

 web app (myapp02.war) on 8553. Is there any way to configure to access

 these web apps as:
 https://10.212.85.8:8443/myapp01/
 and
 https://10.212.85.8:8553/myapp02/

If you want each port to only allow access to a single webapp then you
would need to configure a service (with a connector, engine, host etc)
for each webapp.

Mark


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



set env. variables in tomcat's running JVM

2007-12-25 Thread Albretch Mueller
~
 I am using TC 4.1.36 and I need to set the directory where the
webapps and log files are located at run time in the  catalina.sh
startup file as part of the JAVA_OPTS
~
 JAVA_OPTS=$JAVA_OPTS:-Dconfig.webapps.dir=/media/sdb5/webapps
 JAVA_OPTS=$JAVA_OPTS:-Dconfig.logs.dir=/media/sdb5/logs
~
 and then in the $TOMCAT_HOME/conf/server.xml file
~
 I need to set it like this:
~
 Host name=localhost
   appBase={$config.webapps.dir}
   debug=4
   unpackWARs=true autoDeploy=true
~
 Logger className=org.apache.catalina.logger.FileLogger
 directory={$config.logs.dir}
 prefix=localhost_log.
 suffix=.txt
 timestamp=true/
~
 How can you do that?
~
 Thanks
 lbrtchx

-
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: multi-connector capability for HTTPS in Tomcat

2007-12-25 Thread Mark Thomas
Hitesh Raghav wrote:
 Hi Mark,
 
 How it can be configured for each webapp?
 Is there any documentation about it? Could you please share me
 appropriate URL about it.

http://tomcat.apache.org/tomcat-6.0-doc/config/index.html

Mark

-
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: set env. variables in tomcat's running JVM

2007-12-25 Thread Mark Thomas
Albretch Mueller wrote:
  Host name=localhost
appBase={$config.webapps.dir}
debug=4
unpackWARs=true autoDeploy=true
 ~
  Logger className=org.apache.catalina.logger.FileLogger
  directory={$config.logs.dir}
  prefix=localhost_log.
  suffix=.txt
  timestamp=true/
 ~
  How can you do that?

This feature isn't in TC4.1.x (it is in 5.x and 6.x).

If you are happy building 4/1/x from source then you need to apply this patch:
http://people.apache.org/~rjung/patches/replace_system_properties_20071018a.patch

This will probably make it into 4.1.37 but there are no plans for a 4.1.37
release in the near future.

Mark

-
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: Regarding setting log size

2007-12-25 Thread david delbecq
catalina.out it the output of stdio and stderr, for this file, it's not 
easy to logrotate it, unless you stop tomcat at night. For the others 
ones, using log4j, i suggest you take a look at log4j documentation, it 
explains how to do rotating log for the log4j appenders.

abdul razack a écrit :

Hi,
  
We are using tomcat apache-tomcat-5.5.23 for development purpose.

We  want the same tomcat to push for Production in Window 2000 server.
   
  Our web application log level is low.
  
All logs would be created in directory D:\apache-tomcat-5.5.23\logs.

The log file names are as,
 1.localhost.2007-12-24.log
 2.catalina.2007-12-24.log
 3.manager.2007-12-24.log
 4.host-manager.2007-12-24.log
 5.admin.2007-12-24.log
   
  But log  size would increase in production day by day. 
   
  We want that tomcat automatically archives the log files and

create a new one once a certains size is reached.
   
  we are not using log4j properties.
   
  Please help us what needs to set in logging.properties file.
   
  Thanks  Regards

-Abdul Razack
   

   
-

Never miss a thing.   Make Yahoo your homepage.
  



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



Tomcat not working with new Java

2007-12-25 Thread Markus
I have Tomcat 5.5 on a Fedora 5 machine. I recently changed the jvm from gcj to 
sun's 1.4.2_16.
Now when I try to start tomcat I get the following message:
Starting tomcat5: /usr/bin/rebuild-jar-repository: error: Could not find 
jdbc-stdext Java extension for this JVM
/usr/bin/rebuild-jar-repository: error: Could not find jndi Java extension for 
this JVM
/usr/bin/rebuild-jar-repository: error: Some detected jars were not found for 
this jvm
/usr/bin/rebuild-jar-repository: error: Could not find jaas Java extension for 
this JVM
/usr/bin/rebuild-jar-repository: error: Some detected jars were not found for 
this jvm
The config file for tomcat has been update and the JVM itself works fine. 
Anyone know why this is happening?
Thanks in advance.

Re: Tomcat not working with new Java

2007-12-25 Thread Nix Hanwei
Hi,

Try to set java_home in /etc/profile.d/java.sh.

- Original Message 
From: Markus [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Wednesday, 26 December 2007 10:17:38
Subject: Tomcat not working with new Java

I have Tomcat 5.5 on a Fedora 5 machine. I recently changed the jvm from gcj to 
sun's 1.4.2_16.
Now when I try to start tomcat I get the following message:
Starting tomcat5: /usr/bin/rebuild-jar-repository: error: Could not find 
jdbc-stdext Java extension for this JVM
/usr/bin/rebuild-jar-repository: error: Could not find jndi Java extension for 
this JVM
/usr/bin/rebuild-jar-repository: error: Some detected jars were not found for 
this jvm
/usr/bin/rebuild-jar-repository: error: Could not find jaas Java extension for 
this JVM
/usr/bin/rebuild-jar-repository: error: Some detected jars were not found for 
this jvm
The config file for tomcat has been update and the JVM itself works fine. 
Anyone know why this is happening?
Thanks in advance.


  __
Search, browse and book your hotels and flights through Yahoo! Travel.
http://sg.travel.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: Tomcat not working with new Java

2007-12-25 Thread David Smith
Tomcat 5.5 requires either a Java 5 JVM or the compatibility package 
found where you got your tomcat.  It'll be titled JDK 1.4 Compatibility 
Package.  I'm just amazed you were ever able to make tomcat work at all 
with GCJ.


--David

Markus wrote:

I have Tomcat 5.5 on a Fedora 5 machine. I recently changed the jvm from gcj to 
sun's 1.4.2_16.
Now when I try to start tomcat I get the following message:
Starting tomcat5: /usr/bin/rebuild-jar-repository: error: Could not find 
jdbc-stdext Java extension for this JVM
/usr/bin/rebuild-jar-repository: error: Could not find jndi Java extension for 
this JVM
/usr/bin/rebuild-jar-repository: error: Some detected jars were not found for 
this jvm
/usr/bin/rebuild-jar-repository: error: Could not find jaas Java extension for 
this JVM
/usr/bin/rebuild-jar-repository: error: Some detected jars were not found for this 
jvm
The config file for tomcat has been update and the JVM itself works fine. 
Anyone know why this is happening?
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]



Re: Error receiving message body -1 2

2007-12-25 Thread Ducky
Thanks for the reply. Is it bad if we see them a lot in Apache logs?

We're currently seeing the following messages from channelSocket.receive():

Error receiving message body -1 2, and
Error receiving message body -1 0

Thanks a lot,
D



On 12/6/07, Konstantin Kolinko [EMAIL PROTECTED] wrote:
 It is No such file or directory.

  I can't find what errno 2 represents.

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




-- 
./D

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



Subdomain Virtual Hosting.

2007-12-25 Thread Ishtiaq Ahmed

Hi,

I am facing a little problem in Tomcat 6 Configurations. multiple 
applications deployed under $TOMCAT_HOME/webapps  under Linux OS.


$TOMCAT_HOME/webapps/APP1
$TOMCAT_HOME/webapps/APP2
$TOMCAT_HOME/webapps/APP3

Virtual hosts has been set up to access each with its specific DNS 
resolutions.



APP1.mydomain.com  $TOMCAT_HOME/webapps/APP1
APP2.mydomain.com  $TOMCAT_HOME/webapps/APP2
APP3.mydomain.com  $TOMCAT_HOME/webapps/APP3


Everything works fine using the following syntax

Host name=APP1.mydomain.com

 appBase=/usr/local/tomcat6/webapps/APP1
 unpackWARs=true
 autoDeploy=true
 xmlValidation=false
 xmlNamespaceAware=false
  Context path= docBase=/usr/local/tomcat6/webapps/APP1
 debug=0 reloadable=false/

/Host


Now we want it But when we tried it for *.mydomain2.com (Notice that * )
if I go like under, it doesn't work. Kindly shed some light into it.

Host name=*.mydomain2.com

 appBase=/usr/local/tomcat6/webapps/APPx
 unpackWARs=true
 autoDeploy=true
 xmlValidation=false
 xmlNamespaceAware=false
  Context path= docBase=/usr/local/tomcat6/webapps/APPx
 debug=0 reloadable=false/

/Host

I hope you understand my problem its about * (Subdomains) to be routed 
to different context path.


Regards,

Ishtiaq Ahmed

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