SV: Enqueuing users requests

2007-11-20 Thread Wilhelmsen Tor Iver
 I noticed that users are able to click several times at times and
their actions are queued. But I'd prefer if the server drops any new
request if the first one is not completed. Do you know if it is possible
to configure the system to behave this way ?

A common way to do this is using a token pattern where you generate a
token value in the form, and map it to a state you keep in e.g. a static
Map. You test on the token the first thing after submit; if it is new
you change state to in use and continue processing, otherwise you
either cancel the earlier processing in some manner, or you ignore the
new one. The problem is that unless you use Keep-alive connections that
first processing run will not be able to return anything to the browser
since the first connection has been closed on that second submit.

I haven't used Spring web Flow myself but it could be they already have
a solution to this built in... try looking there first.

-
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: mod_proxy_ajp TIME_WAIT

2007-11-20 Thread David Cassidy
Hi Jim !!!

This is fantastic news !

When is 2.2.7 going to be released ?

:)

Many many thanks

David


On Mon, 2007-11-19 at 15:27 -0500, Jim Jagielski wrote:
 2.2.6 has a nasty bug were AJP connections are being closed
 when they shouldn't. 2.2.7 will fix that. In the meantime,
 trying building httpd with USE_ALTERNATE_IS_CONNECTED defined
 as 0 (proxy_util.c).
 
 On Nov 19, 2007, at 9:07 AM, Rainer Jung wrote:
 
  Hi David,
 
  TIME_WAIT is a normal TCP state after a connection was successfully  
  closed. Only one side of the connection goes into TIME_WAIT, namely  
  the side that sent the first FIN.
 
  So since you've got httpd and Tomcat on the same server, you first  
  need to find out, which side of the conection is in TIME_WAIT. In  
  netstat, usually the left hand IP:PORT is the local side, and the  
  right IP:PORT the remote side. In case the left pair of the  
  TIME_WAIT line includes the port 8009, this would mean, that Tomcat  
  closed the connection first, in case 8009 is on the right side, it  
  would mean, that Apache httpd closed the connection first. Maybe  
  you could show us some of the TIME_WAIT netstat lines.
 
  Both could be OK, so we could ask ourselves, if we expect such  
  behaviour. In general AJP connections should be used persistently  
  and only closed, if they have been idle for to long.
 
  Is the number of TIME_WAIT connections much larger, than the  
  concurrency (-c) used with ab?
 
  Regards,
 
  Rainer
 
  David Cassidy wrote:
  Guys,
  I'm using mod_proxy in apache 2.2.6 with the ajp connector in tomcat.
  apache config
  -
  Proxy balancer://myclusterclear
  BalancerMember ajp://localhost:8009 route=server1 min=0
  smax=1000 max=1000  keepalive=On
  /Proxy
  ProxyPass // balancer://myclusterclear/
  stickysession=JSESSIONID|jsessionid
  Tomcat config (Using the native apr libs)
  Executor name=tomcatThreadPool namePrefix=catalina-exec-
  maxThreads=150 minSpareThreads=4/
  Connector executor=tomcatThreadPool port=8009 secure=false
  protocol=AJP/1.3 enableLookups=false proxyPort=80
  redirectPort=443 maxKeepAliveRequests=2000 tcpNoDelay=true
  keepAliveTimeout=1 connectionTimeout=60/
  After running a few hits with ab to give it some load
  there are a very large number of connections between apache and  
  tomcat
  in a TIME_WAIT status.
  Is this a common happening ? Is there something that can be  
  configured
  to prevent this from appearing ?
  Thanks David
 
  -
  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]



Killing tomcat java process, Windows

2007-11-20 Thread jimpo

I run two separate tomcat 6 instances on my development environment. Once I
have redeployed the application enough times, the tomcat java.exe freezes
and has to be shutdown using control-c. shutdown.bat does not work most of
the times. I start the tomcat processes with startup.bat, they are not
windows services.

 I know, one path is to try and fix the redeployment problem, but let's not
go there in this thread 

I would like to create a .bat script which shuts down the frozen tomcat
java.exe processes (and calls startup.bat scripts). How could I accomplish
this in Windows? In unix I would have plenty of tools (ps/grep/kill/etc),
but can this be done in Windows? The process name alone is not enough to
identify the tomcat processes, as there are several java.exe processes
running.

What about running the instances as windows services, can those be killed /
started again more easily?
-- 
View this message in context: 
http://www.nabble.com/Killing-tomcat-java-process%2C-Windows-tf4842107.html#a13853324
Sent from the Tomcat - User mailing list archive at Nabble.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]



codeBase changes if antiResourceLocking is active - Security policy fails

2007-11-20 Thread Markus Kiss
Hello,

I'm using Tomcat 6.0 with the security option in order to assign different 
permissions to several webapps running within the Tomcat security sandbox. 
However, I've encountered the following effect when I activate the 
antiJARLocking and antiResourceLocking flags in the context.xml file of my 
webapp: 

As these flags cause the server to copy all the files of my webapp to the temp 
directory at runtime, the codeBase for the webapp also changes - but the 
SecurityManager doesn't recognise that it has changed. Consequently, the 
permissions for the specific webapp that I defined in catalina.policy actually 
don't apply and I get an access denied exception. I have searched the web, 
the security FAQ and newsgroups for a hint or a workaround, but with no 
success. With the help of the java.security.debug=all option I came to the 
workaround to simply set the codeBase in the catalina.policy file to the new 
location within the temp directory:

grant codeBase file:${catalina.home}/temp/1-foo/- {
/* list of assigned permissions */
};

With this workaround everything works fine. However, the numeric prefix (e.g. 
1-) of the webapp copied to the temp folder eventually changes, for instance 
when I redeploy the webapp or when I clear the temp directory. As a result, I 
always have to keep the catalina.policy file up-to-date with the current prefix 
of the webapp, otherwise the permissions fail.

So, my question is, if this behavior is known and if there is a more elegant 
way to solve this problem, maybe by an internal mapping of the original 
codeBase of the webapp in ${catalina.home}/webapps/ to the 
${catalina.home}/temp/ directory which then would be transparent for the 
SecurityManager?

Thanks in advance and best regards,

Markus

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



how to create multiple instances

2007-11-20 Thread raghav

how to create multiple instances for tomcat?
-- 
View this message in context: 
http://www.nabble.com/TomCat-users%27-list%2C--forum-or-documentation---tf3716251.html#a13854150
Sent from the Tomcat - User mailing list archive at Nabble.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: Newbie mod_jk question - Getting HTTP 404 error for existing servlets-examples directory

2007-11-20 Thread Rainer Jung

K S wrote:

Hi,

I am a newbie to both Apache and Tomcat.

I am using Apache 2.0.55, Tomcat 5.5.25, mod_jk 1.2.25 and Ubuntu (
2.6.17-10-server)

It seemed like I had the complete redirection working at one point, but
unfortunately after no apparent change (that I can recollect), things just
stopped working. I started troubleshooting by collecting detailed logs both
in Apache and Tomcat but the log information hasn't helped me much. So I was
wondering if anyone could suggest how I can go about finding what the issue
is.

My set up involved:

1. mod_jk.conf

LoadModule jk_module /YYY/lib/ApacheTomcat/mod_jk.so
JkWorkersFile /XXX/apache-tomcat-5.5.25/conf/jk/workers.properties


The space in the next line is hopefully not in the original file?


JkShmFile /XXX/apache-tomcat-5.5.25 /conf/jk/mod_jk.shm
JkLogFile /XXX/apache-tomcat-5.5.25/conf/jk/mod_jk.log
JkLogLevel trace
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkRequestLogFormat %w %V %T
VirtualHost my.machine.name
ServerName my.machine.name
JkMount /servlets-examples worker1
JkMount /servlets-examples/* worker1
/VirtualHost

2. workers.properties



The next two lines are not used. Remove them.


workers.tomcat_home=/XXX/apache-tomcat-5.5.25
workers.java_home=/XXX/Java/jdk1.6.0_03
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=9009

3. apached.conf - Additions/Changes to the default file

(A) Include /XXX/apache-tomcat-5.5.25/conf/jk/mod_jk.conf

(B) LogFormat %v %V %h %l %u %t \%r\ %s %b status-%s port-%p filename-%f
reqMethod %m \%{Referer}i\ \%{User-Agent}i\ combined
LogFormat %v %V %h %l %u %t \%r\ %s %b common
LogFormat %v %V %{Referer}i - %U referer
LogFormat %v %V %{User-agent}i agent


4. Tomcat server.xml - Additions/Changes  to the default

(A) Engine name=Catalina defaultHost=bacis.vm.acis.intranet



Throw this listener out. It's only used for automatic configuration 
generation, which is partially broken, and you've got a configuration 
already.



Listener className=org.apache.jk.config.ApacheConfig
modJk=/XXX/lib/ApacheTomcat/mod_jk.so jkWorker=worker1 /

(B) Host name=my.machine.name appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false

(C) !-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector port=9080 maxHttpHeaderSize=8192
maxThreads=150 minSpareThreads=25 maxSpareThreads=75
enableLookups=false redirectPort=8443 acceptCount=100
connectionTimeout=2 disableUploadTimeout=true /
!-- Note : To disable connection timeouts, set connectionTimeout value
to 0 --

(D) !-- Define an AJP 1.3 Connector on port 8009 --
Connector port=9009
enableLookups=false redirectPort=8443 protocol=AJP/1.3 /

(E) Server port=9005 shutdown=SHUTDOWN

Here are the contents of mod_jk.log after I restart both Apache and Tomcat
and then make a request through my browser for
http://my.machine.name/servlets-examples. This URL used to (when things were
working) show me the standard Tomcat page with servlets examples such as
HelloWorld AND all the servlets worked.


...

For me it looks like something is wrong with the vhost. mod_jk by 
default doesn't inherit JkMounts between Vhosts. You put your JkMounts 
into a vhost (that's fine), but the log tells us, that during request 
processing, no JkMounts were defined. So I guess, that the request 
didn't get processed by this Vhost. I can see, that the name of the 
vhost gets logged in the access log, but still something seems to be 
wrong (maybe you defined another my.machine.name in some other file.


You can check, if it's a vhost problem:

- put the JkMounts in the global server config and set JkMountCopy On 
in all VirtualHost blocks. Then it should work again.
- add a separate CustomLog (separate file name) in the global server and 
in each vhost. This way you can easily detect, which vhost handled your 
request. Put the JkMounts into that vhost and remove the other ones and 
the JkMountCopy directives.


Regards,

Rainer




[Mon Nov 19 16:15:12 2007] [4075:3080226480] [debug] jk_child_init::mod_jk.c
(2692): Initialized mod_jk/1.2.25
[Mon Nov 19 16:15:12 2007] [4075:3080226480] [trace] jk_child_init::mod_jk.c
(2693): exit
[Mon Nov 19 16:17:01 2007] [4069:3080226480] [trace]
map_uri_to_worker::jk_uri_worker_map.c (542): enter
[Mon Nov 19 16:17:01 2007] [4069:3080226480] [debug]
map_uri_to_worker::jk_uri_worker_map.c (597): Attempting to map URI
'/servlets-examples' from 0 maps
[Mon Nov 19 16:17:01 2007] [4069:3080226480] [trace]
map_uri_to_worker::jk_uri_worker_map.c (645): exit





Apache's access.log

my.machine.name my.machine.name 10.5.X.X - - [19/Nov/2007:16:17:01 -0500]
GET /servlets-examples HTTP/1.1 404 337 status-404 port-80
filename-/var/www/servlets-examples reqMethod GET - Mozilla/5.0 (X11; U;
Linux i686; en-US; rv: 1.8.1.2) Gecko/20060601 Firefox/2.0.0.2
(Ubuntu-edgy)
my.machine.name my.machine.name 10.5.X.X - - [19/Nov/2007:16:17:01 -0500]
GET /favicon.ico HTTP/1.1 404 331 status-404 port-80

Re: How to Deploy WAR using a sub-context path?

2007-11-20 Thread Johnny Kewl

---
HARBOR: http://coolharbor.100free.com/index.htm
Now Tomcat is also a cool pojo application server
---

Chuck... check me here ;)
I started wondering why I have never wanted to do this.
ie never wanted to deploy a web-app to a /Demo/WebAppName/ context and I 
realized its because I use the MVC model.


So what I would do is rename the WebApp to Demo... and just change the 
Servlet Mapping to


   servlet-mapping
   servlet-namestart/servlet-name
   url-pattern/WebAppName/url-pattern
   /servlet-mapping

Same URL results

Becaue my JSP's are always called from a servlet... that works.

With static JSP pages... if one moved them to a folder /WebAppName

Is it not the same thing?... in other words all these deployment tricks can 
be thrown away... we back to a normal webapp.


In either case I think if the contexts have been hard coded, nothing will 
work, but if not, maybe its the same thing with no pain ;)


If we see it like this  /Demo/WebAppName/
We wanna play with contexts
But if we see it like this
/WebAppName/WhatEver
We wanna play with mapping and folders?

Maybe its just meant to be done another way... thats what I'm getting at. 



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



multiple instances for tomcat6.0

2007-11-20 Thread nagabandi raghavender
Hi,

How to create multiple instances for tomcat 6.0.
please give me the procedure for doing this.

Thanks,
Raghavender


Apache 6.0.14, catalina.out log problem

2007-11-20 Thread Christos Vasilakis
Hi there,
I have just installed apache-tomcat 6.0.14 under Linux

I modified $CATALINA_HOME/conf/tomcat-users.xml and added the following entries:

?xml version='1.0' encoding='utf-8'?
tomcat-users
role rolename=tomcat/
role rolename=manager/
role rolename=admin/
user username=xvas password=foo roles=tomcat,manager,admin/
/tomcat-users

Now when tomcat starts the following is displayed in catalina.out

Nov 20, 2007 1:12:08 PM org.apache.tomcat.util.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 3 column 37: The reference to entity
atm must end with the ';' delimiter.
org.xml.sax.SAXParseException: The reference to entity atm must end
with the ';' delimiter.
at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
at 
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438)
at 
com.sun.org.apache.xerces.internal.impl.XMLScanner.scanAttributeValue(XMLScanner.java:856)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanAttribute(XMLDocumentFragmentScannerImpl.java:1033)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:851)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:16
93)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(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:1581)
at 
org.apache.catalina.users.MemoryUserDatabase.open(MemoryUserDatabase.java:402)
at 
org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:103)
at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
at 
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at 
org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113)
at 
org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:137)
at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:109)
at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:81)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:703)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
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:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Nov 20, 2007 1:12:08 PM org.apache.naming.NamingContext lookup
WARNING: Unexpected exception resolving reference
org.xml.sax.SAXParseException: The reference to entity atm must end
with the ';' delimiter.
   at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1269)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1581)
at 
org.apache.catalina.users.MemoryUserDatabase.open(MemoryUserDatabase.java:402)
at 
org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:103)
at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
  

Re: Apache 6.0.14, catalina.out log problem

2007-11-20 Thread Rainer Jung

Christos Vasilakis wrote:

Hi there,
I have just installed apache-tomcat 6.0.14 under Linux

I modified $CATALINA_HOME/conf/tomcat-users.xml and added the following entries:

?xml version='1.0' encoding='utf-8'?
tomcat-users
role rolename=tomcat/
role rolename=manager/
role rolename=admin/
user username=xvas password=foo roles=tomcat,manager,admin/
/tomcat-users


...


I want to access the Status screen located in apache home page.

Where is the problem?


Deleted first character in the file?



Thanks in advance,
Christos


Regards,

Rainer

-
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: multiple instances for tomcat6.0

2007-11-20 Thread Konstantin Kolinko
1. Read RUNNING.txt that comes with Tomcat distribution. There is a
chapter entitled Advanced Configuration - Multiple Tomcat Instances.

The trick is to have several $CATALINA_BASE directories for different
instances of Tomcat.


2. Make sure that your $CATALINA_BASE\conf\server.xml specify
different port numbers, or there will be a conflict between the
instances.

By default those port numbers are 8005 (shutdown), 8080, 8009
(connectors). Make sure to change ALL of them.  You may also wish to
disable ones that you are not using (8080 or 8009, usually only one of
them is used).



2007/11/20, nagabandi raghavender [EMAIL PROTECTED]:
 How to create multiple instances for tomcat 6.0.
 please give me the procedure for doing this.

-
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: Killing tomcat java process, Windows

2007-11-20 Thread myrealbruno
Janne,

When running Tomcat as a Windows service it will appear in the task manager as 
- for instance - Tomcat5.exe.
For each instance I use to rename the Tomcat executable to the instance name, 
so to distinguish between them easily.
Note that you will have to change a bit the service installer batch.
You can then run or schedule a batch that does a net stop servicename first 
and then a kill, you never know. The kill command is
in the Support Tools kit.

By the way, I just discovered that the Windows service installer installs 
Tomcat without the juli LogManager, so you will have to
copy a line from the catilina.bat/sh to enable it.

Hope it helps,
b.

- Original Message - 
From: jimpo [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Tuesday, November 20, 2007 10:10 AM
Subject: Killing tomcat java process, Windows



 I run two separate tomcat 6 instances on my development environment. Once I
 have redeployed the application enough times, the tomcat java.exe freezes
 and has to be shutdown using control-c. shutdown.bat does not work most of
 the times. I start the tomcat processes with startup.bat, they are not
 windows services.

  I know, one path is to try and fix the redeployment problem, but let's not
 go there in this thread 

 I would like to create a .bat script which shuts down the frozen tomcat
 java.exe processes (and calls startup.bat scripts). How could I accomplish
 this in Windows? In unix I would have plenty of tools (ps/grep/kill/etc),
 but can this be done in Windows? The process name alone is not enough to
 identify the tomcat processes, as there are several java.exe processes
 running.

 What about running the instances as windows services, can those be killed /
 started again more easily?
 -- 
 View this message in context: 
 http://www.nabble.com/Killing-tomcat-java-process%2C-Windows-tf4842107.html#a13853324
 Sent from the Tomcat - User mailing list archive at Nabble.com.





---AV  Spam Filtering by M+Guardian - Risk Free Email (TM)---


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



Port in address to tomcat webpage?

2007-11-20 Thread jdpl

Hi,

how come when I'm accessing a page on my local apache, i always have to put
in the port number, e.g:

http://localhost:8080/somepage

but when i'm accessing a remote website, i never put in the port number. Is
there anyway I can configure my tomcat to not use the port number?

thanks,
J
-- 
View this message in context: 
http://www.nabble.com/Port-in-address-to-tomcat-webpage--tf4843728.html#a13857675
Sent from the Tomcat - User mailing list archive at Nabble.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: Comet: response.sendRedirect() Problem

2007-11-20 Thread Jens Hagel
Hi filip, i've patched my Tomcat.
Now, it works! Thank you! ;-)

regards,
jens

On Nov 14, 2007 6:21 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:
 hi Jens,
 you've uncovered a bug in Tomcat. basically, Tomcat doesn't respect that
 you are calling CometEvent.close upon the BEGIN event.
 I've proposed a fix
 http://svn.apache.org/viewvc?view=revrevision=594957

 and if it is accepted it will be included in our next release which
 should be within a short timeframe.
 if you want to patch your Tomcat, the patch is at
 http://people.apache.org/~fhanik/patches/comet-begin-event-close.patch

 Filip

 Jens Hagel wrote:
  hi,
 
  i'm implementing comet support for different servlet containers in an
  ajax framework.
  with jetty and glassfish comet support it works very well, but with
  tomcat something
  is going wrong with the Servlet API sendRedirect()- function which i
  cannot figure out.
 
  do you have an idea what's going wrong?
 
  thank you!
 
  regards,
  jens
 
 



 -
 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: Port in address to tomcat webpage?

2007-11-20 Thread GF
when you go on normal websites, you are using port 80.
look for 8080 in  your server.xml and change it to 80

bye

On Nov 20, 2007 3:14 PM, jdpl [EMAIL PROTECTED] wrote:

 Hi,

 how come when I'm accessing a page on my local apache, i always have to put
 in the port number, e.g:

 http://localhost:8080/somepage

 but when i'm accessing a remote website, i never put in the port number. Is
 there anyway I can configure my tomcat to not use the port number?

 thanks,
 J
 --
 View this message in context: 
 http://www.nabble.com/Port-in-address-to-tomcat-webpage--tf4843728.html#a13857675
 Sent from the Tomcat - User mailing list archive at Nabble.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: Port in address to tomcat webpage?

2007-11-20 Thread David Smith
When you don't give your browser get a port number, it assumes port 80 
which is the registered, well known port for web traffic as defined by 
the IANA.  Production websites all listen on port 80 which is why you 
never have to put it in your URLs to Google for example.  The entire 
list of these well known, registered ports is available at 
http://www.iana.org/assignments/port-numbers


The default port as found in the server.xml file of a fresh downloaded 
tomcat is 8080 to avoid possible conflicts with a production web server 
if one happens to be on the same box.  There's also a legacy restriction 
in unix/linux distribution that only the root user can use ports less 
than 1024.  These days there are ways to get around that with port 
mapping or the commons-daemon project (http://commons.apache.org/daemon). 

On a Windows system with no other web server software, you should be 
able to just change the port number from 8080 to 80 in your server.xml 
and restart the service.  Then you can hit your tomcat w/o the port number.


--David

jdpl wrote:

Hi,

how come when I'm accessing a page on my local apache, i always have to put
in the port number, e.g:

http://localhost:8080/somepage

but when i'm accessing a remote website, i never put in the port number. Is
there anyway I can configure my tomcat to not use the port number?

thanks,
J
  



-
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: Killing tomcat java process, Windows

2007-11-20 Thread jimpo

Great, seems like a good plan, I'll try that.

It also seems there is no need to install support tools kit for the kill
command, as Windows XP comes with taskkill command which I can use.


br1 wrote:
 
 Janne,
 
 When running Tomcat as a Windows service it will appear in the task
 manager as - for instance - Tomcat5.exe.
 For each instance I use to rename the Tomcat executable to the instance
 name, so to distinguish between them easily.
 Note that you will have to change a bit the service installer batch.
 You can then run or schedule a batch that does a net stop servicename
 first and then a kill, you never know. The kill command is
 in the Support Tools kit.
 
 By the way, I just discovered that the Windows service installer installs
 Tomcat without the juli LogManager, so you will have to
 copy a line from the catilina.bat/sh to enable it.
 
 Hope it helps,
 b.
 
 - Original Message - 
 From: jimpo [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Tuesday, November 20, 2007 10:10 AM
 Subject: Killing tomcat java process, Windows
 
 

 I run two separate tomcat 6 instances on my development environment. Once
 I
 have redeployed the application enough times, the tomcat java.exe freezes
 and has to be shutdown using control-c. shutdown.bat does not work most
 of
 the times. I start the tomcat processes with startup.bat, they are not
 windows services.

  I know, one path is to try and fix the redeployment problem, but let's
 not
 go there in this thread 

 I would like to create a .bat script which shuts down the frozen tomcat
 java.exe processes (and calls startup.bat scripts). How could I
 accomplish
 this in Windows? In unix I would have plenty of tools (ps/grep/kill/etc),
 but can this be done in Windows? The process name alone is not enough to
 identify the tomcat processes, as there are several java.exe processes
 running.

 What about running the instances as windows services, can those be killed
 /
 started again more easily?
 -- 
 View this message in context:
 http://www.nabble.com/Killing-tomcat-java-process%2C-Windows-tf4842107.html#a13853324
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 
 
 
 ---AV  Spam Filtering by M+Guardian - Risk Free Email (TM)---
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Killing-tomcat-java-process%2C-Windows-tf4842107.html#a13857677
Sent from the Tomcat - User mailing list archive at Nabble.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]



cluster deployer (farming)

2007-11-20 Thread Yair Ben-Meir
Hi

If I understand correctly, the cluster deployer is currently broken (I've
tried running it with two tomcat instances on my machine in a cluster, and
it threw me some exceptions).

Is it going to be fixed? And if so, when?

 

Thanks

 

 

Yair Ben-Meir

 

Office: 073-7997801

Fax: 073-7997800

Mob:   054-5769681



 

image001.jpg

javax/mail/address

2007-11-20 Thread Dustin Fortin
Hello,
 
To begin, I have around 39 working tomcat 5.0.25 app servers running
that have been running for years.  I have been asked to upgrade to
tomcat 6.0.14.  Initially i tried to port over configuration files
libraries, ectera.but that proved to be messy and was not
recommended by this list.  I agree completely and have started
essentially from scratch.
 
Currently, I have a working config.kind of.  I was able to import
all the code from my other working servers.  I have a seemingly good
server.xml, and I have set up my contexts as the documentation says.
All is good except for 1 thing.
 
When I put mail.jar into the lib folder (which many of my webapps
require) tomcat never boots up.  It stalls on boot with nothing being
thrown to log.
 
When mail.jar is not in $CATALINA_HOME/lib tomcat starts up and the
manager is accessible.  However, no webapp will work.
 
Below is the stack trace I get when javax/mail/Address is not
accessible.
 
java.lang.NoClassDefFoundError: javax/mail/Address
at com.airs.redirector.Controller.init(Controller.java:169)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:1161)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:4045)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4351
)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:791)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:9
20)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java
:883)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31
1)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:117)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
 
When I have mail.jar in lib, this is as far as the tomcat startup gets.
Nothing else is logged and the manager is inaccessible.
 
Nov 20, 2007 10:51:06 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Nov 20, 2007 10:51:06 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
Nov 20, 2007 10:51:09 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Nov 20, 2007 10:51:09 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
 
Does anyone have any ideas?
 
thanks!
-dustin
 


Configure webapp Session timeout

2007-11-20 Thread Bob Riaz
Hello all,

We're running a servlet that processes responses from an online test. The
test is 2 hrs long, and we find that if a user does not make a request from
his browser (saves a test answer) the sesion times out, and when he does
next try to save an answer the servlet bounces him back to the login page.
I know it's possible to configure the Tomcat session length in conf/web.xml,
which would affect the sessions of all the webapps running on Tomcat, but I
wondered if anybody knew how to configure the session for one particular
webapp.
Many thanks.

Bob



-
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: Comet: response.sendRedirect() Problem

2007-11-20 Thread Filip Hanik - Dev Lists

Jens Hagel wrote:

Hi filip, i've patched my Tomcat.
Now, it works! Thank you! ;-)
  

you're welcome, this will also be included in the next release
Filip

regards,
jens

On Nov 14, 2007 6:21 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:
  

hi Jens,
you've uncovered a bug in Tomcat. basically, Tomcat doesn't respect that
you are calling CometEvent.close upon the BEGIN event.
I've proposed a fix
http://svn.apache.org/viewvc?view=revrevision=594957

and if it is accepted it will be included in our next release which
should be within a short timeframe.
if you want to patch your Tomcat, the patch is at
http://people.apache.org/~fhanik/patches/comet-begin-event-close.patch

Filip

Jens Hagel wrote:


hi,

i'm implementing comet support for different servlet containers in an
ajax framework.
with jetty and glassfish comet support it works very well, but with
tomcat something
is going wrong with the Servlet API sendRedirect()- function which i
cannot figure out.

do you have an idea what's going wrong?

thank you!

regards,
jens


  


-
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: javax/mail/address

2007-11-20 Thread Dustin Fortin
Thats the frustrating part, there is no thread dump.  When I tail the
logs all I get is that tomcat is starting up, but it never gets further
than that.  It just hangs, and when I try to access the manager or any
webapp I get a connection timeout. 

thanks
-dustin

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 20, 2007 11:21 AM
To: Tomcat Users List
Subject: RE: javax/mail/address 

 From: Dustin Fortin [mailto:[EMAIL PROTECTED]
 Subject: javax/mail/address
 
 When I have mail.jar in lib, this is as far as the tomcat startup 
 gets.

What does a thread dump show in the hang situtaion?

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



ApacheTomcat Connector mod_jk, receiving 0711-244 ERROR when I do the make command.

2007-11-20 Thread Blumlein,Richard
Hello,

Apache web server 1.3.31
Tomcat is at 5.5.20
AIX 5.3


I am attempting to build the Apache Web Server  to Tomcat connector mod_jk.
I have spent the last couple of days reviewing the docs and internet and I am 
not sure
what is causing this. It seems to indicate a syntax issue with the nm command 
and this
is affecting the ld command. I believe the call of the -mode-link and xlc 
generate these
commands when libtool is called.

Any information would be helpful in what I need to correct this problem.

Rich

The configure seems to work ok.
/software/source/gnu/apache_tomcat/work/tomcat-connectors-1.2.25-src/native
./configure --with-apxs=/usr/sbin/apxs


make

 This is where the make fails.

/usr/bin/sh ../libtool --mode=link xlc -o mod_jk.la -module -rpath /opt/
freeware/apache/libexec
generating symbol list for `mod_jk.la'
/usr/bin/nm -B -BCpg   | awk '{ if ((($2 == T) || ($2 == D) || ($2 == B))
 (substr($3,1,1) != .)) { print $3 } }' | sort -u  .libs/mod_jk.exp
Usage: nm [-ACfhlprTv] [-B|-P] [-e|-g|-u] [-d|-o|-x|{-t [d|x|o]}]
[-X{32|64|32_64|d64|any}] [--] File ...
xlc -Wl,-bM:SRE -o .libs/mod_jk.so.0   -lc -Wl,-bnoentry  -Wl,-bE:.libs/mod_jk.e
xp ${wl}-berok
ld: 0711-244 ERROR: No csects or exported symbols have been saved.
make: 1254-004 The error code from the last command is 8.


Stop.
make: 1254-004 The error code from the last command is 1


RE: javax/mail/address

2007-11-20 Thread Caldarale, Charles R
 From: Dustin Fortin [mailto:[EMAIL PROTECTED] 
 Subject: RE: javax/mail/address 

 Thats the frustrating part, there is no thread dump.

You have to take a thread dump; there won't be one generated
automatically.  Use kill -3 on Linux, ctrl-break on Windows.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: javax/mail/address

2007-11-20 Thread Caldarale, Charles R
 From: Dustin Fortin [mailto:[EMAIL PROTECTED] 
 Subject: javax/mail/address 
 
 When I have mail.jar in lib, this is as far as the tomcat 
 startup gets.

What does a thread dump show in the hang situtaion?

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: isapi_redirect+IIS+tomcat basic authentication

2007-11-20 Thread Rainer Jung

Niki Diulgerov wrote:

Hello there,
I'm trying to setup IIS6 + apache_tomcat running on different machine.
I read alot on internet and succeeded to implement this but now (maybe 
very simple) problem appeared.

if I set in uriworker.maps
/*=client
where client is my worker
and open the site ... default tomcat home page appears
but when I try to open MANAGER link the separate window where I have to 
put the username and password appears again and again even that I'm 
writing the correct user and password.
It seems to be some problem with the basic authentication implemented in 
tomcat.

any application works fine but the basic authentication not.
Someone solved such problem ?


Does it work, when you connect directly to the tomcat http port (by 
default 8080)? If no, it doesn't have to do with IIS, but with your user 
and group setup.


Regards,

Rainer

-
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: Configure webapp Session timeout

2007-11-20 Thread Dustin Fortin
That timeout is set to 60 seconds as it is.  Even then it wont throw a
stack trace to log, or to the web browser.

-dsutin 

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 20, 2007 11:24 AM
To: Tomcat Users List
Subject: RE: Configure webapp Session timeout

 From: Bob Riaz [mailto:[EMAIL PROTECTED]
 Subject: Configure webapp Session timeout
 
 I wondered if anybody knew how to configure the session for one 
 particular webapp.

Set the session-timeout in that webapp's WEB-INF/web.xml file; it will
override the global one.

 - 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 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: javax/mail/address

2007-11-20 Thread Dustin Fortin
Yes, activation.jar is in the lib folder along with mail.jar.

-dustin 

-Original Message-
From: Markus Schönhaber [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 20, 2007 11:25 AM
To: users@tomcat.apache.org
Subject: Re: javax/mail/address

Dustin Fortin wrote:

 When I put mail.jar into the lib folder (which many of my webapps
 require) tomcat never boots up.  It stalls on boot with nothing being 
 thrown to log.

Just a WAG (don't know if this even remotely related): you do put 
activation.jar into the lib folder along with mail.jar?

Regards
  mks

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



Socket_keepalive

2007-11-20 Thread Andrew Hole
I need to define socket_keepalive parameter... but in Windows server
2003 I think that doesn't exist SO keepalive interval.
How can I resolve this?

Thanks a lot

-
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: Configure webapp Session timeout

2007-11-20 Thread Caldarale, Charles R
 From: Bob Riaz [mailto:[EMAIL PROTECTED] 
 Subject: Configure webapp Session timeout
 
 I wondered if anybody knew how to configure the session for one 
 particular webapp.

Set the session-timeout in that webapp's WEB-INF/web.xml file; it will
override the global one.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



isapi_redirect+IIS+tomcat basic authentication

2007-11-20 Thread Niki Diulgerov

Hello there,
I'm trying to setup IIS6 + apache_tomcat running on different machine.
I read alot on internet and succeeded to implement this but now (maybe 
very simple) problem appeared.

if I set in uriworker.maps
/*=client
where client is my worker
and open the site ... default tomcat home page appears
but when I try to open MANAGER link the separate window where I have to 
put the username and password appears again and again even that I'm 
writing the correct user and password.
It seems to be some problem with the basic authentication implemented in 
tomcat.

any application works fine but the basic authentication not.
Someone solved such problem ?

--
Best regards,

Nikolay Diulgerov
Network Administrator
E-mail: [EMAIL PROTECTED]
Telephone : +33 4 89 87 77 77
Fax :   +33 4 89 87 77 00
Web: http://www.codix-france.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: javax/mail/address

2007-11-20 Thread Markus Schönhaber
Dustin Fortin wrote:

 When I put mail.jar into the lib folder (which many of my webapps
 require) tomcat never boots up.  It stalls on boot with nothing being
 thrown to log.

Just a WAG (don't know if this even remotely related): you do put
activation.jar into the lib folder along with mail.jar?

Regards
  mks

-
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: javax/mail/address

2007-11-20 Thread Dustin Fortin
In catalina.out this error is new:

Cannot create JDBC driver of class '' for connect URL 'null'
java.lang.NullPointerException
at
sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)
at
sun.jdbc.odbc.JdbcOdbcDriver.knownURL(JdbcOdbcDriver.java:476)
at
sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(JdbcOdbcDriver.java:307)
at java.sql.DriverManager.getDriver(DriverManager.java:253)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSo
urce.java:1143)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSourc
e.java:880)
at com.airs.utilities.server.Entity.connect(Entity.java:547)
at com.airs.utilities.server.Entity.find(Entity.java:1334)
at com.airs.utilities.server.Entity.find(Entity.java:1252)
at
com.airs.portal.entities.Configuration.findConfiguration(Configuration.j
ava:208)
at
com.airs.portal.entities.Configuration.findConfiguration(Configuration.j
ava:175)
at
com.airs.portal.entities.Configuration.findConfiguration(Configuration.j
ava:157)
at
com.airs.portal.entities.Configuration.findConfiguration(Configuration.j
ava:143)
at com.airs.portal.Bugman.bugReportImpl(Bugman.java:317)
at com.airs.portal.Bugman.bugReport(Bugman.java:183)
at com.airs.portal.Bugman.bugReport(Bugman.java:141)
at
com.airs.portal.entities.Configuration.entityFailure(Configuration.java:
123)
at com.airs.utilities.server.Entity.failure(Entity.java:1235)
at com.airs.utilities.server.Entity.find(Entity.java:1531)
at com.airs.utilities.server.Entity.find(Entity.java:1376)
at
com.airs.portal.entities.TypeEncoding.makeSymbols(TypeEncoding.java:812)
at
com.airs.portal.entities.TypeRegistry.theTypeRegistry(TypeRegistry.java:
108)
at com.airs.portNov 20, 2007 11:39:19 AM
org.apache.catalina.core.ApplicationContext log

When I did the kill -3 on the tomcat process I get this information:

SocketTimeout daemon prio=10 tid=0xb4819000 nid=0x1d5e waiting on
condition [0xb4d9..0xb4d90f20]
   java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at HTTPClient.SocketTimeout.run(StreamDemultiplexor.java:919)

RMI TCP Accept-0 daemon prio=10 tid=0x08285000 nid=0x1d5c runnable
[0xb505a000..0xb505b020]
   java.lang.Thread.State: RUNNABLE
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
- locked 0x0fe70118 (a java.net.SocksSocketImpl)
at java.net.ServerSocket.implAccept(ServerSocket.java:450)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at
sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTrans
port.java:369)
at
sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:341)
at java.lang.Thread.run(Thread.java:619)

Low Memory Detector daemon prio=10 tid=0x0808cc00 nid=0x1d5b runnable
[0x..0x]
   java.lang.Thread.State: RUNNABLE

CompilerThread0 daemon prio=10 tid=0x0808b000 nid=0x1d5a waiting on
condition [0x..0xb52f0bb8]
   java.lang.Thread.State: RUNNABLE

Signal Dispatcher daemon prio=10 tid=0x08089c00 nid=0x1d59 waiting on
condition [0x..0x]
   java.lang.Thread.State: RUNNABLE

Finalizer daemon prio=10 tid=0x08081800 nid=0x1d58 in Object.wait()
[0xb5592000..0xb5592e20]
   java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on 0x0fe70418 (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
- locked 0x0fe70418 (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
at
java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

Reference Handler daemon prio=10 tid=0x08080800 nid=0x1d57 in
Object.wait() [0xb55e3000..0xb55e3ea0]
   java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on 0x0fe704a8 (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:485)
at
java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
- locked 0x0fe704a8 (a java.lang.ref.Reference$Lock)

 main prio=10 tid=0x08058800 nid=0x1d55 runnable
[0xb7fde000..0xb7fdf1f8]
   java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at
HTTPClient.BufferedInputStream.fillBuff(BufferedInputStream.java:174)
at
HTTPClient.BufferedInputStream.read(BufferedInputStream.java:112)
at
HTTPClient.StreamDemultiplexor.read(StreamDemultiplexor.java:275)
- locked 0x0f29d360 (a HTTPClient.StreamDemultiplexor)
at 

Re: ApacheTomcat Connector mod_jk, receiving 0711-244 ERROR when I do the make command.

2007-11-20 Thread Rainer Jung

Blumlein,Richard wrote:

Hello,

Apache web server 1.3.31
Tomcat is at 5.5.20
AIX 5.3


I am attempting to build the Apache Web Server  to Tomcat connector mod_jk.
I have spent the last couple of days reviewing the docs and internet and I am 
not sure
what is causing this. It seems to indicate a syntax issue with the nm command 
and this
is affecting the ld command. I believe the call of the -mode-link and xlc 
generate these
commands when libtool is called.

Any information would be helpful in what I need to correct this problem.

Rich

The configure seems to work ok.
/software/source/gnu/apache_tomcat/work/tomcat-connectors-1.2.25-src/native
./configure --with-apxs=/usr/sbin/apxs


make

 This is where the make fails.

/usr/bin/sh ../libtool --mode=link xlc -o mod_jk.la -module -rpath /opt/
freeware/apache/libexec


There should be a lot of object files in the above libtool command. 
Before that output, all the files in common should have been compiled 
and the object files should appear in the link.



generating symbol list for `mod_jk.la'


Again, in the next line, the nm command doesn't have any file arguments. 
It should have the same object files as arguments, that are missing in 
the above libtool line.


These are just formal observations though, I've got not AIX specific 
experience.



/usr/bin/nm -B -BCpg   | awk '{ if ((($2 == T) || ($2 == D) || ($2 == B))
 (substr($3,1,1) != .)) { print $3 } }' | sort -u  .libs/mod_jk.exp
Usage: nm [-ACfhlprTv] [-B|-P] [-e|-g|-u] [-d|-o|-x|{-t [d|x|o]}]
[-X{32|64|32_64|d64|any}] [--] File ...
xlc -Wl,-bM:SRE -o .libs/mod_jk.so.0   -lc -Wl,-bnoentry  -Wl,-bE:.libs/mod_jk.e
xp ${wl}-berok
ld: 0711-244 ERROR: No csects or exported symbols have been saved.
make: 1254-004 The error code from the last command is 8.


Stop.
make: 1254-004 The error code from the last command is 1


Regards,

Rainer

-
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: How Do I use Tomcat 6.0.14 as a http Proxy?

2007-11-20 Thread Filip Hanik - Dev Lists

Tomcat doesn't have built in proxy capabilities.
You want to use Apache in front of Tomcat, not the other way around

Filip

Tony Anecito wrote:

Hi All,

I found some old documentation and looking for
something more current than 2004 about how to use
Tomcat as a http proxy to say Apache. I am running a
test and want to keep Tomcat in front of Apache.

Thanks,
-Tony


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs


-
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: javax/mail/address

2007-11-20 Thread Pid
Post your JDBC/Datasource config(s), (sans passwords obviously).
Where is it defined, in a context.xml or server.xml?

p


Dustin Fortin wrote:
 In catalina.out this error is new:
 
 Cannot create JDBC driver of class '' for connect URL 'null'
 java.lang.NullPointerException
 at
 sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)
 at
 sun.jdbc.odbc.JdbcOdbcDriver.knownURL(JdbcOdbcDriver.java:476)
 at
 sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(JdbcOdbcDriver.java:307)
 at java.sql.DriverManager.getDriver(DriverManager.java:253)
 at
 org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSo
 urce.java:1143)
 at
 org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSourc
 e.java:880)
 at com.airs.utilities.server.Entity.connect(Entity.java:547)
 at com.airs.utilities.server.Entity.find(Entity.java:1334)
 at com.airs.utilities.server.Entity.find(Entity.java:1252)
 at
 com.airs.portal.entities.Configuration.findConfiguration(Configuration.j
 ava:208)
 at
 com.airs.portal.entities.Configuration.findConfiguration(Configuration.j
 ava:175)
 at
 com.airs.portal.entities.Configuration.findConfiguration(Configuration.j
 ava:157)
 at
 com.airs.portal.entities.Configuration.findConfiguration(Configuration.j
 ava:143)
 at com.airs.portal.Bugman.bugReportImpl(Bugman.java:317)
 at com.airs.portal.Bugman.bugReport(Bugman.java:183)
 at com.airs.portal.Bugman.bugReport(Bugman.java:141)
 at
 com.airs.portal.entities.Configuration.entityFailure(Configuration.java:
 123)
 at com.airs.utilities.server.Entity.failure(Entity.java:1235)
 at com.airs.utilities.server.Entity.find(Entity.java:1531)
 at com.airs.utilities.server.Entity.find(Entity.java:1376)
 at
 com.airs.portal.entities.TypeEncoding.makeSymbols(TypeEncoding.java:812)
 at
 com.airs.portal.entities.TypeRegistry.theTypeRegistry(TypeRegistry.java:
 108)
 at com.airs.portNov 20, 2007 11:39:19 AM
 org.apache.catalina.core.ApplicationContext log
 
 When I did the kill -3 on the tomcat process I get this information:
 
 SocketTimeout daemon prio=10 tid=0xb4819000 nid=0x1d5e waiting on
 condition [0xb4d9..0xb4d90f20]
java.lang.Thread.State: TIMED_WAITING (sleeping)
 at java.lang.Thread.sleep(Native Method)
 at HTTPClient.SocketTimeout.run(StreamDemultiplexor.java:919)
 
 RMI TCP Accept-0 daemon prio=10 tid=0x08285000 nid=0x1d5c runnable
 [0xb505a000..0xb505b020]
java.lang.Thread.State: RUNNABLE
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
 - locked 0x0fe70118 (a java.net.SocksSocketImpl)
 at java.net.ServerSocket.implAccept(ServerSocket.java:450)
 at java.net.ServerSocket.accept(ServerSocket.java:421)
 at
 sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTrans
 port.java:369)
 at
 sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:341)
 at java.lang.Thread.run(Thread.java:619)
 
 Low Memory Detector daemon prio=10 tid=0x0808cc00 nid=0x1d5b runnable
 [0x..0x]
java.lang.Thread.State: RUNNABLE
 
 CompilerThread0 daemon prio=10 tid=0x0808b000 nid=0x1d5a waiting on
 condition [0x..0xb52f0bb8]
java.lang.Thread.State: RUNNABLE
 
 Signal Dispatcher daemon prio=10 tid=0x08089c00 nid=0x1d59 waiting on
 condition [0x..0x]
java.lang.Thread.State: RUNNABLE
 
 Finalizer daemon prio=10 tid=0x08081800 nid=0x1d58 in Object.wait()
 [0xb5592000..0xb5592e20]
java.lang.Thread.State: WAITING (on object monitor)
 at java.lang.Object.wait(Native Method)
 - waiting on 0x0fe70418 (a java.lang.ref.ReferenceQueue$Lock)
 at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
 - locked 0x0fe70418 (a java.lang.ref.ReferenceQueue$Lock)
 at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
 at
 java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
 
 Reference Handler daemon prio=10 tid=0x08080800 nid=0x1d57 in
 Object.wait() [0xb55e3000..0xb55e3ea0]
java.lang.Thread.State: WAITING (on object monitor)
 at java.lang.Object.wait(Native Method)
 - waiting on 0x0fe704a8 (a java.lang.ref.Reference$Lock)
 at java.lang.Object.wait(Object.java:485)
 at
 java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
 - locked 0x0fe704a8 (a java.lang.ref.Reference$Lock)
 
  main prio=10 tid=0x08058800 nid=0x1d55 runnable
 [0xb7fde000..0xb7fdf1f8]
java.lang.Thread.State: RUNNABLE
 at java.net.SocketInputStream.socketRead0(Native Method)
 at java.net.SocketInputStream.read(SocketInputStream.java:129)
 at
 HTTPClient.BufferedInputStream.fillBuff(BufferedInputStream.java:174)
 at
 

Re: isapi_redirect+IIS+tomcat basic authentication

2007-11-20 Thread Niki Diulgerov

Yes it works when I connect directly to tomcat

Best regards,

Nikolay Diulgerov
Network Administrator
E-mail: [EMAIL PROTECTED]
Telephone : +33 4 89 87 77 77
Fax :   +33 4 89 87 77 00
Web: http://www.codix-france.com




Rainer Jung wrote:

Niki Diulgerov wrote:

Hello there,
I'm trying to setup IIS6 + apache_tomcat running on different machine.
I read alot on internet and succeeded to implement this but now 
(maybe very simple) problem appeared.

if I set in uriworker.maps
/*=client
where client is my worker
and open the site ... default tomcat home page appears
but when I try to open MANAGER link the separate window where I have 
to put the username and password appears again and again even that 
I'm writing the correct user and password.
It seems to be some problem with the basic authentication implemented 
in tomcat.

any application works fine but the basic authentication not.
Someone solved such problem ?


Does it work, when you connect directly to the tomcat http port (by 
default 8080)? If no, it doesn't have to do with IIS, but with your 
user and group setup.


Regards,

Rainer

-
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: cluster deployer (farming)

2007-11-20 Thread Filip Hanik - Dev Lists

as soon as someone has time to fix it, contributions are welcome

Filip

Yair Ben-Meir wrote:


Hi

If I understand correctly, the cluster deployer is currently broken 
(I’ve tried running it with two tomcat instances on my machine in a 
cluster, and it threw me some exceptions).


Is it going to be fixed? And if so, when?

Thanks

*Yair Ben-Meir*

Office: 073-7997801

Fax: 073-7997800

Mob: 054-5769681



No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.1/1141 - Release Date: 11/20/2007 11:34 AM
  



-
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 5.5 - Virtualhost - context configuration for the zero path

2007-11-20 Thread Schadler Johann
I have moved the docBase to /vhosts/past-int/PaST and I have modified the
CATALINA_BASE/conf/EngineName/HostName/ROOT.xml to direct docBase to
the new phyiscal path. After stopping the JVM, deleting the
CATALINA_BASE/work/EngineName/HostName/_ and starting up the JVM again
I get a NullPointer Exception:

 

Stacktrace:

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWra
pper.java:506)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
95)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

 

root cause

java.lang.NullPointerException

org.apache.struts.util.RequestUtils.pageURL(RequestUtils.java:1596)

org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:541)

org.apache.struts.taglib.html.RewriteTag.doStartTag(RewriteTag.java:99)

org.apache.jsp.administration.index_jsp._jspx_meth_html_rewrite_0(index_jsp.
java:149)

org.apache.jsp.administration.index_jsp._jspService(index_jsp.java:82)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
34)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

I have controlled all settings again to avoid a mistake, so I am sure I have
done the suggested settings right.

 

Maybe there is another setting needed to be considered?

 

@Martin, who wrote:

 What is context-root  specified as?

 

I am not sure what you mean with context-root, for me it is path=.

 

 

Johann

 

 

- Original Message -

From: Mark Thomas [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org

Sent: Sunday, November 18, 2007 4:43 PM

Subject: Re: Tomcat 5.5 - Virtualhost - context configuration for the zero
path

 

 

 Schadler Johann wrote:

 I would prefer to use an explicit method to define a context, not only

 the

 implicit possibility by naming the WAR file to something which doesn't

 refer

 anyway to the service provided in the physical directory ROOT. Is there

 a

 possibility to do this in may way?

 

 Place your directory outside of a host's appBase. Place ROOT.xml in

 CATALINA_BASE/conf/EngineName/HostName and then the docBase

 attribute

 of the Context element inside ROOT.xml will be honoured. You should not

 specify a path as this is inferred from the name of the xml file.

 

 Mark

 

 

 

 -

 To start a new topic, e-mail:  mailto:users@tomcat.apache.org
users@tomcat.apache.org

 To unsubscribe, e-mail:  mailto:[EMAIL PROTECTED]
[EMAIL PROTECTED]

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

 

 

 

 



Re: isapi_redirect+IIS+tomcat basic authentication

2007-11-20 Thread Niki Diulgerov

Here is the log from isapi_redirect setup with DEBUG level
I'm trying to access the TOMCAT MANAGER link from the default tomcat 
page (with the appropriate user and pass) when I'm trying from IIS it 
just shows again and again the window for user and pass.
When I'm trying to do the same directly on 8080 it works OK. In both 
cases there is nothing in catalina.out that someone tries to access 
/manager (I'm using default tomcat installation with additionally 
assigned romes manager and some more for the tomcat user)





[Tue Nov 20 19:12:07.847 2007] [5120:3520] [debug] jk_ajp_common.c 
(1569): AJP13 protocol: Reuse is OK
[Tue Nov 20 19:12:07.847 2007] [5120:3520] [debug] jk_isapi_plugin.c 
(1528): service() returned OK
[Tue Nov 20 19:12:07.847 2007] [5120:3520] [debug] jk_ajp_common.c 
(2441): recycling connection pool slot=0 for worker client
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c 
(1199): Filter started
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c 
(1266): Virtual Host redirection of /192.9.202.10:8081/manager/html
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_uri_worker_map.c 
(597): Attempting to map URI '/192.9.202.10:8081/manager/html' from 1 maps
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_uri_worker_map.c 
(609): Attempting to map context URI '/*=client' source 'uriworkermap'
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_uri_worker_map.c 
(624): Found a wildchar match '/*=client'
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c 
(1286): check if [/manager/html] is points to the web-inf directory
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c 
(1303): [/manager/html] is a servlet url - should redirect to client
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c 
(1345): fowarding escaped URI [/manager/html]
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c 
(2241): Service protocol=HTTP/1.1 method=GET host=192.9.202.231 
addr=192.9.202.231 name=192.9.202.10 port=8081 auth= user= uri=/manager/html
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_worker.c (115): 
found a worker client
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c 
(1513): got a worker for name client
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(2498): acquired connection pool slot=0
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(551): ajp marshaling done
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(1935): processing client with 2 retries
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): sending to ajp13 pos=4 len=456 max=8192
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 12 34 01 C4 02 02 00 08 48 54 54 50 2F 31 2E 31  - 
.4..HTTP/1.1
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 001000 00 0D 2F 6D 61 6E 61 67 65 72 2F 68 74 6D 6C  - 
.../manager/html
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 002000 00 0D 31 39 32 2E 39 2E 32 30 32 2E 32 33 31  - 
...192.9.202.231
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 003000 00 0D 31 39 32 2E 39 2E 32 30 32 2E 32 33 31  - 
...192.9.202.231
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 004000 00 0C 31 39 32 2E 39 2E 32 30 32 2E 31 30 00  - 
...192.9.202.10.
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 00501F 91 00 00 0A A0 06 00 0A 6B 65 65 70 2D 61 6C  - 
.keep-al
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 006069 76 65 00 00 0A 6B 65 65 70 2D 61 6C 69 76 65  - 
ive...keep-alive
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 007000 00 03 33 30 30 00 A0 01 00 63 74 65 78 74 2F  - 
...300ctext/
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 008078 6D 6C 2C 61 70 70 6C 69 63 61 74 69 6F 6E 2F  - 
xml,application/
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 009078 6D 6C 2C 61 70 70 6C 69 63 61 74 69 6F 6E 2F  - 
xml,application/
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 00a078 68 74 6D 6C 2B 78 6D 6C 2C 74 65 78 74 2F 68  - 
xhtml+xml,text/h
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 00b074 6D 6C 3B 71 3D 30 2E 39 2C 74 65 78 74 2F 70  - 
tml;q=0.9,text/p
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 00c06C 61 69 6E 3B 71 3D 30 2E 38 2C 69 6D 61 67 65  - 
lain;q=0.8,image
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 00d02F 70 6E 67 2C 2A 2F 2A 3B 71 3D 30 2E 35 00 A0  - 
/png,*/*;q=0.5..
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 00e002 00 1E 49 53 4F 2D 38 38 35 39 2D 31 2C 75 74  - 

RE: javax/mail/address

2007-11-20 Thread Propes, Barry L
others may tell you like they told me, but you probably ought to get rid of 
that sun.jdbc.odbc.JdbcOdbcDriver if you can and use a good one.

Not that that is all of the problem.

-Original Message-
From: Dustin Fortin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 20, 2007 10:46 AM
To: Tomcat Users List
Subject: RE: javax/mail/address 


In catalina.out this error is new:

Cannot create JDBC driver of class '' for connect URL 'null'
java.lang.NullPointerException
at
sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)
at
sun.jdbc.odbc.JdbcOdbcDriver.knownURL(JdbcOdbcDriver.java:476)
at
sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(JdbcOdbcDriver.java:307)
at java.sql.DriverManager.getDriver(DriverManager.java:253)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSo
urce.java:1143)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSourc
e.java:880)
at com.airs.utilities.server.Entity.connect(Entity.java:547)
at com.airs.utilities.server.Entity.find(Entity.java:1334)
at com.airs.utilities.server.Entity.find(Entity.java:1252)
at
com.airs.portal.entities.Configuration.findConfiguration(Configuration.j
ava:208)
at
com.airs.portal.entities.Configuration.findConfiguration(Configuration.j
ava:175)
at
com.airs.portal.entities.Configuration.findConfiguration(Configuration.j
ava:157)
at
com.airs.portal.entities.Configuration.findConfiguration(Configuration.j
ava:143)
at com.airs.portal.Bugman.bugReportImpl(Bugman.java:317)
at com.airs.portal.Bugman.bugReport(Bugman.java:183)
at com.airs.portal.Bugman.bugReport(Bugman.java:141)
at
com.airs.portal.entities.Configuration.entityFailure(Configuration.java:
123)
at com.airs.utilities.server.Entity.failure(Entity.java:1235)
at com.airs.utilities.server.Entity.find(Entity.java:1531)
at com.airs.utilities.server.Entity.find(Entity.java:1376)
at
com.airs.portal.entities.TypeEncoding.makeSymbols(TypeEncoding.java:812)
at
com.airs.portal.entities.TypeRegistry.theTypeRegistry(TypeRegistry.java:
108)
at com.airs.portNov 20, 2007 11:39:19 AM
org.apache.catalina.core.ApplicationContext log

When I did the kill -3 on the tomcat process I get this information:

SocketTimeout daemon prio=10 tid=0xb4819000 nid=0x1d5e waiting on
condition [0xb4d9..0xb4d90f20]
   java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
at HTTPClient.SocketTimeout.run(StreamDemultiplexor.java:919)

RMI TCP Accept-0 daemon prio=10 tid=0x08285000 nid=0x1d5c runnable
[0xb505a000..0xb505b020]
   java.lang.Thread.State: RUNNABLE
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
- locked 0x0fe70118 (a java.net.SocksSocketImpl)
at java.net.ServerSocket.implAccept(ServerSocket.java:450)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at
sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTrans
port.java:369)
at
sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:341)
at java.lang.Thread.run(Thread.java:619)

Low Memory Detector daemon prio=10 tid=0x0808cc00 nid=0x1d5b runnable
[0x..0x]
   java.lang.Thread.State: RUNNABLE

CompilerThread0 daemon prio=10 tid=0x0808b000 nid=0x1d5a waiting on
condition [0x..0xb52f0bb8]
   java.lang.Thread.State: RUNNABLE

Signal Dispatcher daemon prio=10 tid=0x08089c00 nid=0x1d59 waiting on
condition [0x..0x]
   java.lang.Thread.State: RUNNABLE

Finalizer daemon prio=10 tid=0x08081800 nid=0x1d58 in Object.wait()
[0xb5592000..0xb5592e20]
   java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on 0x0fe70418 (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
- locked 0x0fe70418 (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
at
java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

Reference Handler daemon prio=10 tid=0x08080800 nid=0x1d57 in
Object.wait() [0xb55e3000..0xb55e3ea0]
   java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on 0x0fe704a8 (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:485)
at
java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
- locked 0x0fe704a8 (a java.lang.ref.Reference$Lock)

 main prio=10 tid=0x08058800 nid=0x1d55 runnable
[0xb7fde000..0xb7fdf1f8]
   java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)

Re: isapi_redirect+IIS+tomcat basic authentication

2007-11-20 Thread Rainer Jung

Niki Diulgerov wrote:

Yes it works when I connect directly to tomcat

Best regards,


Activate an access log in tomcat and check, if you are really talking to 
the right instance. Even if access gets denied, one access log line 
should show up.


What's the header text of the basic authentication box, that asks for 
the credentials?


What do you get in the log file, if you increase the log level of the 
isapi redirector to debug? It should contain the information, if the 
request actually gets forwarded to tomcat. You might want to post the 
log lines resulting from an attempt. Please replace credentials 
contained in the log file by XXX before posting :)


Regards,

Rainer



Nikolay Diulgerov
Network Administrator
E-mail: [EMAIL PROTECTED]
Telephone : +33 4 89 87 77 77
Fax :   +33 4 89 87 77 00
Web: http://www.codix-france.com




Rainer Jung wrote:

Niki Diulgerov wrote:

Hello there,
I'm trying to setup IIS6 + apache_tomcat running on different machine.
I read alot on internet and succeeded to implement this but now 
(maybe very simple) problem appeared.

if I set in uriworker.maps
/*=client
where client is my worker
and open the site ... default tomcat home page appears
but when I try to open MANAGER link the separate window where I have 
to put the username and password appears again and again even that 
I'm writing the correct user and password.
It seems to be some problem with the basic authentication implemented 
in tomcat.

any application works fine but the basic authentication not.
Someone solved such problem ?


Does it work, when you connect directly to the tomcat http port (by 
default 8080)? If no, it doesn't have to do with IIS, but with your 
user and group setup.


Regards,

Rainer


-
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 4 doesn't start properly

2007-11-20 Thread Hamid Rahman Mohmand
Dear Mark,
Thanks. No I didn't look in the logs! but unfortunately now my windows is
crashed and I have to reinstall everythign from the begining, i will see and
if I got the same problem i will look at the logs for sure.
Thanks for the nice hint,
regards
hamid


On 11/19/07, Mark Thomas [EMAIL PROTECTED] wrote:

 Hamid Rahman Mohmand wrote:
  can some one tell me what might be the propbable causes and how can i
 get
  them sorted out?

 Have you looked in logs?

 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: isapi_redirect+IIS+tomcat basic authentication

2007-11-20 Thread Niki Diulgerov
Something strange is that the header of the window asking for 
authentication through IIS is:

Enter username and password for  at http://192.9.202.10:8081

And the window which appears when I connect directly to tomcat :
Enter username and password for Tomcat Manager Application at 
http://192.9.202.22:8060


(8081 is the port on which IIS works and 8060 is the port where tomcat 
waits for HTTP requests)



Best regards,

Nikolay Diulgerov
Network Administrator
E-mail: [EMAIL PROTECTED]
Telephone : +33 4 89 87 77 77
Fax :   +33 4 89 87 77 00
Web: http://www.codix-france.com




Niki Diulgerov wrote:

Here is the log from isapi_redirect setup with DEBUG level
I'm trying to access the TOMCAT MANAGER link from the default tomcat 
page (with the appropriate user and pass) when I'm trying from IIS it 
just shows again and again the window for user and pass.
When I'm trying to do the same directly on 8080 it works OK. In both 
cases there is nothing in catalina.out that someone tries to access 
/manager (I'm using default tomcat installation with additionally 
assigned romes manager and some more for the tomcat user)





[Tue Nov 20 19:12:07.847 2007] [5120:3520] [debug] jk_ajp_common.c 
(1569): AJP13 protocol: Reuse is OK
[Tue Nov 20 19:12:07.847 2007] [5120:3520] [debug] jk_isapi_plugin.c 
(1528): service() returned OK
[Tue Nov 20 19:12:07.847 2007] [5120:3520] [debug] jk_ajp_common.c 
(2441): recycling connection pool slot=0 for worker client
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c 
(1199): Filter started
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c 
(1266): Virtual Host redirection of /192.9.202.10:8081/manager/html
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_uri_worker_map.c 
(597): Attempting to map URI '/192.9.202.10:8081/manager/html' from 1 
maps
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_uri_worker_map.c 
(609): Attempting to map context URI '/*=client' source 'uriworkermap'
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_uri_worker_map.c 
(624): Found a wildchar match '/*=client'
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c 
(1286): check if [/manager/html] is points to the web-inf directory
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c 
(1303): [/manager/html] is a servlet url - should redirect to client
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c 
(1345): fowarding escaped URI [/manager/html]
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c 
(2241): Service protocol=HTTP/1.1 method=GET host=192.9.202.231 
addr=192.9.202.231 name=192.9.202.10 port=8081 auth= user= 
uri=/manager/html
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_worker.c (115): 
found a worker client
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c 
(1513): got a worker for name client
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(2498): acquired connection pool slot=0
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(551): ajp marshaling done
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(1935): processing client with 2 retries
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): sending to ajp13 pos=4 len=456 max=8192
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 12 34 01 C4 02 02 00 08 48 54 54 50 2F 31 2E 31  - 
.4..HTTP/1.1
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 001000 00 0D 2F 6D 61 6E 61 67 65 72 2F 68 74 6D 6C  - 
.../manager/html
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 002000 00 0D 31 39 32 2E 39 2E 32 30 32 2E 32 33 31  - 
...192.9.202.231
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 003000 00 0D 31 39 32 2E 39 2E 32 30 32 2E 32 33 31  - 
...192.9.202.231
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 004000 00 0C 31 39 32 2E 39 2E 32 30 32 2E 31 30 00  - 
...192.9.202.10.
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 00501F 91 00 00 0A A0 06 00 0A 6B 65 65 70 2D 61 6C  - 
.keep-al
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 006069 76 65 00 00 0A 6B 65 65 70 2D 61 6C 69 76 65  - 
ive...keep-alive
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 007000 00 03 33 30 30 00 A0 01 00 63 74 65 78 74 2F  - 
...300ctext/
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 008078 6D 6C 2C 61 70 70 6C 69 63 61 74 69 6F 6E 2F  - 
xml,application/
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 009078 6D 6C 2C 61 70 70 6C 69 63 61 74 69 6F 6E 2F  - 
xml,application/
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 00a078 68 74 6D 6C 2B 78 6D 6C 2C 74 65 78 74 2F 68  - 

Re: ApacheTomcat Connector mod_jk, receiving 0711-244 ERROR when I dp a make.

2007-11-20 Thread Blumlein,Richard


Hi Rainer,

Yes there were numerous -mode=compile statements before the first -mode=link 
which

failed. It seems there is a hole in the process. I am following various docs 
which

say to run the configure, then the make/make install.

Yes, it seems something is not being passed properly.

Rich



  usr/bin/sh ../libtool --mode=compile xlc -I/opt/freeware/apache/include

 -g -O2 -DAIX=510 -U__STR__ -DAIX_BIND_PROCESSOR -DMOD_SSL=208119 -DUSE_HSREGEX

-DEAPI -DJK_PREFORK -g  -I /usr/local/bin/java/include -I /usr/local/bin/java/in

clude/ -c ./jk_status.c -o ./jk_status.lo

 xlc -I/opt/freeware/apache/include -g -O2 -DAIX=510 -U__STR__ -DAIX_BIND_PROCES

SOR -DMOD_SSL=208119 -DUSE_HSREGEX -DEAPI -DJK_PREFORK -g -I /usr/local/bin/java

/include -I /usr/local/bin/java/include/ -c ./jk_status.c  -DPIC -o ./.libs/jk_s

tatus.o

Target all is up to date.

Making all in apache-1.3

/usr/bin/sh ../libtool --mode=compile xlc -DUSE_APACHE_MD5 -I ../common

-I /usr/local/bin/java/include -I /usr/local/bin/java/include/ -I/opt/freeware/a

pache/include -O2 -DAIX=510 -U__STR__ -DAIX_BIND_PROCESSOR -DMOD_SSL=208119 -DUS

E_HSREGEX -DEAPI -DJK_PREFORK -g  -I../common -c mod_jk.c -o mod_jk.lo

mkdir .libs

 xlc -DUSE_APACHE_MD5 -I ../common -I /usr/local/bin/java/include -I /usr/local/

bin/java/include/ -I/opt/freeware/apache/include -O2 -DAIX=510 -U__STR__ -DAIX_B

IND_PROCESSOR -DMOD_SSL=208119 -DUSE_HSREGEX -DEAPI -DJK_PREFORK -g -I../common

-c mod_jk.c  -DPIC -o .libs/mod_jk.o

/usr/bin/sh ../libtool --mode=link xlc -o mod_jk.la -module -rpath /opt/

freeware/apache/libexec

generating symbol list for `mod_jk.la'

/usr/bin/nm -B -BCpg   | awk '{ if ((($2 == T) || ($2 == D) || ($2 == B))





 /usr/bin/sh ../libtool --mode=link xlc -o mod_jk.la -module -rpath /opt/

 freeware/apache/libexec



There should be a lot of object files in the above libtool command.

Before that output, all the files in common should have been compiled

and the object files should appear in the link.



 generating symbol list for `mod_jk.la'



Again, in the next line, the nm command doesn't have any file arguments.

It should have the same object files as arguments, that are missing in

the above libtool line.



These are just formal observations though, I've got not AIX specific

experience.



 /usr/bin/nm -B -BCpg   | awk '{ if ((($2 == T) || ($2 == D) || ($2 == 
 B))

  (substr($3,1,1) != .)) { print $3 } }' | sort -u  .libs/mod_jk.exp

 Usage: nm [-ACfhlprTv] [-B|-P] [-e|-g|-u] [-d|-o|-x|{-t [d|x|o]}]

 [-X{32|64|32_64|d64|any}] [--] File ...

 xlc -Wl,-bM:SRE -o .libs/mod_jk.so.0   -lc -Wl,-bnoentry  
 -Wl,-bE:.libs/mod_jk.e

 xp ${wl}-berok

 ld: 0711-244 ERROR: No csects or exported symbols have been saved.

 make: 1254-004 The error code from the last command is 8.





 Stop.

 make: 1254-004 The error code from the last command is 1



Regards,



Rainer



Re: isapi_redirect+IIS+tomcat basic authentication

2007-11-20 Thread Niki Diulgerov
Another strange thing which I just discovered is that in mozilla firefox 
(connecting to IIS) if I press cancel on the first window asking for 
user and pass... another one appears with header
Enter username and password for Tomcat Manager Application at 
http://192.9.202.22:8081

and when I put the username and pass there... it works.
In internet explorer (version 7 ) after pressing cancel there is no 
second window asking for user and pass



Best regards,

Nikolay Diulgerov
Network Administrator
E-mail: [EMAIL PROTECTED]
Telephone : +33 4 89 87 77 77
Fax :   +33 4 89 87 77 00
Web: http://www.codix-france.com




Niki Diulgerov wrote:
Something strange is that the header of the window asking for 
authentication through IIS is:

Enter username and password for  at http://192.9.202.10:8081

And the window which appears when I connect directly to tomcat :
Enter username and password for Tomcat Manager Application at 
http://192.9.202.22:8060


(8081 is the port on which IIS works and 8060 is the port where tomcat 
waits for HTTP requests)



Best regards,

Nikolay Diulgerov
Network Administrator
E-mail: [EMAIL PROTECTED]
Telephone : +33 4 89 87 77 77
Fax :   +33 4 89 87 77 00
Web: http://www.codix-france.com




Niki Diulgerov wrote:

Here is the log from isapi_redirect setup with DEBUG level
I'm trying to access the TOMCAT MANAGER link from the default tomcat 
page (with the appropriate user and pass) when I'm trying from IIS it 
just shows again and again the window for user and pass.
When I'm trying to do the same directly on 8080 it works OK. In both 
cases there is nothing in catalina.out that someone tries to access 
/manager (I'm using default tomcat installation with additionally 
assigned romes manager and some more for the tomcat user)





[Tue Nov 20 19:12:07.847 2007] [5120:3520] [debug] jk_ajp_common.c 
(1569): AJP13 protocol: Reuse is OK
[Tue Nov 20 19:12:07.847 2007] [5120:3520] [debug] jk_isapi_plugin.c 
(1528): service() returned OK
[Tue Nov 20 19:12:07.847 2007] [5120:3520] [debug] jk_ajp_common.c 
(2441): recycling connection pool slot=0 for worker client
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c 
(1199): Filter started
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c 
(1266): Virtual Host redirection of /192.9.202.10:8081/manager/html
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] 
jk_uri_worker_map.c (597): Attempting to map URI 
'/192.9.202.10:8081/manager/html' from 1 maps
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] 
jk_uri_worker_map.c (609): Attempting to map context URI '/*=client' 
source 'uriworkermap'
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] 
jk_uri_worker_map.c (624): Found a wildchar match '/*=client'
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c 
(1286): check if [/manager/html] is points to the web-inf directory
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c 
(1303): [/manager/html] is a servlet url - should redirect to client
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c 
(1345): fowarding escaped URI [/manager/html]
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c 
(2241): Service protocol=HTTP/1.1 method=GET host=192.9.202.231 
addr=192.9.202.231 name=192.9.202.10 port=8081 auth= user= 
uri=/manager/html
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_worker.c (115): 
found a worker client
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_isapi_plugin.c 
(1513): got a worker for name client
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(2498): acquired connection pool slot=0
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(551): ajp marshaling done
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(1935): processing client with 2 retries
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): sending to ajp13 pos=4 len=456 max=8192
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 12 34 01 C4 02 02 00 08 48 54 54 50 2F 31 2E 31  - 
.4..HTTP/1.1
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 001000 00 0D 2F 6D 61 6E 61 67 65 72 2F 68 74 6D 6C  - 
.../manager/html
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 002000 00 0D 31 39 32 2E 39 2E 32 30 32 2E 32 33 31  - 
...192.9.202.231
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 003000 00 0D 31 39 32 2E 39 2E 32 30 32 2E 32 33 31  - 
...192.9.202.231
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 004000 00 0C 31 39 32 2E 39 2E 32 30 32 2E 31 30 00  - 
...192.9.202.10.
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 00501F 91 00 00 0A A0 06 00 0A 6B 65 65 70 2D 61 6C  - 
.keep-al
[Tue Nov 20 19:12:09.644 2007] [5120:3520] [debug] jk_ajp_common.c 
(911): 006069 76 65 00 00 

Re: ApacheTomcat Connector mod_jk, receiving 0711-244 ERROR when I dp a make.

2007-11-20 Thread Rainer Jung

Blumlein,Richard wrote:


Hi Rainer,

Yes there were numerous -mode=compile statements before the first -mode=link 
which

failed. It seems there is a hole in the process. I am following various docs 
which


Those files need to be show up again as arguments in the libtool link 
step, which in turn will put them into the nm.


In my Makefile in the apache-1.3 folder, there is:

mod_jk.la: mod_jk.lo $(APACHE_OBJECTS)
 ${MOD_LINK} -o $@ -module -rpath ${libexecdir} $^

It could be, that your make doesn't understand $^. The make docs say:

=

$^
The names of all the prerequisites, with spaces between them. For 
prerequisites which are archive members, only the member named is used 
(see Archives). A target has only one prerequisite on each other file it 
depends on, no matter how many times each file is listed as a 
prerequisite. So if you list a prerequisite more than once for a target, 
the value of $^ contains just one copy of the name. This list does not 
contain any of the order-only prerequisites; for those see the `$|' 
variable, below.


=

You could try to replace $^ in the Makefile with

mod_jk.lo $(APACHE_OBJECTS)

(two places).

Regards,

Rainer


say to run the configure, then the make/make install.

Yes, it seems something is not being passed properly.

Rich



  usr/bin/sh ../libtool --mode=compile xlc -I/opt/freeware/apache/include

 -g -O2 -DAIX=510 -U__STR__ -DAIX_BIND_PROCESSOR -DMOD_SSL=208119 -DUSE_HSREGEX

-DEAPI -DJK_PREFORK -g  -I /usr/local/bin/java/include -I /usr/local/bin/java/in

clude/ -c ./jk_status.c -o ./jk_status.lo

 xlc -I/opt/freeware/apache/include -g -O2 -DAIX=510 -U__STR__ -DAIX_BIND_PROCES

SOR -DMOD_SSL=208119 -DUSE_HSREGEX -DEAPI -DJK_PREFORK -g -I /usr/local/bin/java

/include -I /usr/local/bin/java/include/ -c ./jk_status.c  -DPIC -o ./.libs/jk_s

tatus.o

Target all is up to date.

Making all in apache-1.3

/usr/bin/sh ../libtool --mode=compile xlc -DUSE_APACHE_MD5 -I ../common

-I /usr/local/bin/java/include -I /usr/local/bin/java/include/ -I/opt/freeware/a

pache/include -O2 -DAIX=510 -U__STR__ -DAIX_BIND_PROCESSOR -DMOD_SSL=208119 -DUS

E_HSREGEX -DEAPI -DJK_PREFORK -g  -I../common -c mod_jk.c -o mod_jk.lo

mkdir .libs

 xlc -DUSE_APACHE_MD5 -I ../common -I /usr/local/bin/java/include -I /usr/local/

bin/java/include/ -I/opt/freeware/apache/include -O2 -DAIX=510 -U__STR__ -DAIX_B

IND_PROCESSOR -DMOD_SSL=208119 -DUSE_HSREGEX -DEAPI -DJK_PREFORK -g -I../common

-c mod_jk.c  -DPIC -o .libs/mod_jk.o

/usr/bin/sh ../libtool --mode=link xlc -o mod_jk.la -module -rpath /opt/

freeware/apache/libexec

generating symbol list for `mod_jk.la'

/usr/bin/nm -B -BCpg   | awk '{ if ((($2 == T) || ($2 == D) || ($2 == B))





/usr/bin/sh ../libtool --mode=link xlc -o mod_jk.la -module -rpath /opt/



freeware/apache/libexec




There should be a lot of object files in the above libtool command.

Before that output, all the files in common should have been compiled

and the object files should appear in the link.




generating symbol list for `mod_jk.la'




Again, in the next line, the nm command doesn't have any file arguments.

It should have the same object files as arguments, that are missing in

the above libtool line.



These are just formal observations though, I've got not AIX specific

experience.




/usr/bin/nm -B -BCpg   | awk '{ if ((($2 == T) || ($2 == D) || ($2 == B))



 (substr($3,1,1) != .)) { print $3 } }' | sort -u  .libs/mod_jk.exp



Usage: nm [-ACfhlprTv] [-B|-P] [-e|-g|-u] [-d|-o|-x|{-t [d|x|o]}]



[-X{32|64|32_64|d64|any}] [--] File ...



xlc -Wl,-bM:SRE -o .libs/mod_jk.so.0   -lc -Wl,-bnoentry  -Wl,-bE:.libs/mod_jk.e



xp ${wl}-berok



ld: 0711-244 ERROR: No csects or exported symbols have been saved.



make: 1254-004 The error code from the last command is 8.





Stop.



make: 1254-004 The error code from the last command is 1




Regards,



Rainer



-
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: javax/mail/address

2007-11-20 Thread Dustin Fortin
Its in the server.xml.

See below: --There are many more like this depending on context.  Should
these database definitions be defined in the local contexts?

Usernames and passwords are held in the tomcat-users.xml file.

Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
 
factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /
 Resource name=jdbc/Admin auth=Container
type=javax.sql.DataSource/
ResourceParams name=jdbc/Admin
 
parameternamefactory/namevalueorg.apache.tomcat.dbcp.dbcp.BasicD
ataSourceFactory/value/parameter
  parameternameusername/namevaluexxx/value/parameter
 
parameternamedriverClassName/namevaluecom.mysql.jdbc.Driver/val
ue/parameter
 
parameternameurl/namevaluejdbc:mysql://xxx.xxx.com/Admin/value
/parameter
  parameternameconnectionProperties/namevalue
elideSetAutoCommits=true;jdbcCompliantTruncation=false;useLocalSessionSt
ate=true;alwaysSendSetIsolation=false;maintainTimeStats=false/value/p
arameter
 
parameternameremoveAbandoned/namevaluetrue/value/parameter
 
parameternameremoveAbandonedTimeout/namevalue12600/value/para
meter
 
parameternamelogAbandoned/namevaluefalse/value/parameter
  parameternamemaxActive/namevalue0/value/parameter
  parameternameminIdle/namevalue0/value/parameter
  parameternamemaxIdle/namevalue50/value/parameter
  parameternamevalidationQuery/namevalueSELECT
1/value/parameter
 
parameternametestOnBorrow/namevaluefalse/value/parameter
 
parameternametestWhileIdle/namevaluefalse/value/parameter
 
parameternametimeBetweenEvictionRunsMillis/namevalue2/value
/parameter
 
parameternamenumTestsPerEvictionRun/namevalue1/value/paramete
r
 
parameternameminEvictableIdleTimeMillis/namevalue60/value
/parameter
/ResourceParams 

The error is saying that it can't find the class and the url is null.
Not sure why.is there something syntactically wrong with the above?

Here is the main part of the error.
Cannot create JDBC driver of class '' for connect URL 'null'

All of these params came from a tomcat 5 config except I modified the
factory param to reflect the new location of the BasicDataSourceFactory
class.  I assumed most of the tomcat 5.0.25 params would be ok to port
over, but I claim to be no expert.

thanks
-dustin

-Original Message-
From: Pid [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 20, 2007 11:56 AM
To: Tomcat Users List
Subject: Re: javax/mail/address

Post your JDBC/Datasource config(s), (sans passwords obviously).
Where is it defined, in a context.xml or server.xml?

p


Dustin Fortin wrote:
 In catalina.out this error is new:
 
 Cannot create JDBC driver of class '' for connect URL 'null'
 java.lang.NullPointerException
 at
 sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)
 at
 sun.jdbc.odbc.JdbcOdbcDriver.knownURL(JdbcOdbcDriver.java:476)
 at
 sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(JdbcOdbcDriver.java:307)
 at java.sql.DriverManager.getDriver(DriverManager.java:253)
 at
 org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicData
 So
 urce.java:1143)
 at
 org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSou
 rc
 e.java:880)
 at com.airs.utilities.server.Entity.connect(Entity.java:547)
 at com.airs.utilities.server.Entity.find(Entity.java:1334)
 at com.airs.utilities.server.Entity.find(Entity.java:1252)
 at
 com.airs.portal.entities.Configuration.findConfiguration(Configuration
 .j
 ava:208)
 at
 com.airs.portal.entities.Configuration.findConfiguration(Configuration
 .j
 ava:175)
 at
 com.airs.portal.entities.Configuration.findConfiguration(Configuration
 .j
 ava:157)
 at
 com.airs.portal.entities.Configuration.findConfiguration(Configuration
 .j
 ava:143)
 at com.airs.portal.Bugman.bugReportImpl(Bugman.java:317)
 at com.airs.portal.Bugman.bugReport(Bugman.java:183)
 at com.airs.portal.Bugman.bugReport(Bugman.java:141)
 at

com.airs.portal.entities.Configuration.entityFailure(Configuration.java:
 123)
 at com.airs.utilities.server.Entity.failure(Entity.java:1235)
 at com.airs.utilities.server.Entity.find(Entity.java:1531)
 at com.airs.utilities.server.Entity.find(Entity.java:1376)
 at

com.airs.portal.entities.TypeEncoding.makeSymbols(TypeEncoding.java:812)
 at

com.airs.portal.entities.TypeRegistry.theTypeRegistry(TypeRegistry.java:
 108)
 at com.airs.portNov 20, 2007 11:39:19 AM 
 org.apache.catalina.core.ApplicationContext log
 
 When I did the kill -3 on the tomcat process I get this information:
 
 SocketTimeout daemon prio=10 tid=0xb4819000 nid=0x1d5e waiting on 
 condition [0xb4d9..0xb4d90f20]
java.lang.Thread.State: TIMED_WAITING (sleeping)
 at 

Re: how to create multiple instances

2007-11-20 Thread Mark Thomas
raghav wrote:
 how to create multiple instances for tomcat?

When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. This is known as thread hijacking and to many of the
list archiving services and mail clients used by list subscribers this
makes your new message appear as part of the old thread. This makes it
harder for other users to find relevant information when searching the
lists.

It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.

Thanks,

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: javax/mail/address

2007-11-20 Thread Dustin Fortin
Thank you, I'll read the docs.

-dustin  

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 20, 2007 1:43 PM
To: Tomcat Users List
Subject: RE: javax/mail/address

 From: Dustin Fortin [mailto:[EMAIL PROTECTED]
 Subject: RE: javax/mail/address
 
 Should these database definitions be defined in the local contexts?

If you want Tomcat to manage the database connections, then server.xml
is appropriate.

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

There are no ResourceParams elements in Tomcat 6.0.

 I assumed most of the tomcat 5.0.25 params would be ok to port over, 
 but I claim to be no expert.

Bad assumption.  Read the docs:
http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.h
tml

 - 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 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: Configure webapp Session timeout

2007-11-20 Thread Caldarale, Charles R
 From: Dustin Fortin [mailto:[EMAIL PROTECTED] 
 Subject: RE: Configure webapp Session timeout
 
 That timeout is set to 60 seconds as it is.

Since your servlet runs for 2 hours, a 60-second timeout seems a mite on
the short side...

 Even then it wont throw a stack trace to log,
 or to the web browser.

Why would you expect a stack trace on a session timeout?  Session
expiration doesn't affect requests being processed, only future ones.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: javax/mail/address

2007-11-20 Thread Caldarale, Charles R
 From: Dustin Fortin [mailto:[EMAIL PROTECTED] 
 Subject: RE: javax/mail/address
 
 Should these database definitions be defined in the local contexts?

If you want Tomcat to manage the database connections, then server.xml
is appropriate.

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

There are no ResourceParams elements in Tomcat 6.0.

 I assumed most of the tomcat 5.0.25 params would be ok to port
 over, but I claim to be no expert.

Bad assumption.  Read the docs:
http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.h
tml

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: unable to access Tomcat Admin

2007-11-20 Thread Caldarale, Charles R
 From: Ralph [mailto:[EMAIL PROTECTED] 
 Subject: unable to access Tomcat Admin
 
 After starting the tomcat server, when I click on the Tomcat
 Administration link, I got the following error message just 
 like before

Your browser has likely cached the page.  Refresh it.

 I typed  http://localhost:8080/admin/index.html
 http://localhost:8080/admin/index.html, which mysteriously 
 brought up the signon page for the Tomcat Web Server
 Administration Tool with the background in purple.

Why do you think that's mysterious?  You referenced a protected resource
(even though it doesn't exist), so Tomcat diverted the request to the
configured login form.

 I typed in the admin username and password and would get
 HTTP Status 404
 The requested resource (/admin/index.html) is not available.

That's because there is no /admin/index.html.  After successful login,
Tomcat reran the specifed request, which correctly gets the 404.

 I also added 
   !-- Link to the user database we will get roles from --
   ResourceLink name=users global=UserDatabase
 type=org.apache.catalina.UserDatabase/

Take out the above - it's pointless.

Just refresh the original page (http://localhost:8080/admin) in your
browser, or clear its cache.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie mod_jk question - Getting HTTP 404 error for existing servlets-examples directory

2007-11-20 Thread K S
Thanks a lot Rainer! The problem as you guessed was with the Vhost.
After putting the JkMounts in the global server configuration, it
worked.

I started using the VHost (though now I have realised I don't need
them at all since I am not hosting more than one website on a single
server) because the automatically generated mod_jk.conf file had the
JkMounts within the VHost tags.

I have one clarification:

  (A) Engine name=Catalina defaultHost=bacis.vm.acis.intranet
 

 Throw this listener out. It's only used for automatic configuration
 generation, which is partially broken, and you've got a configuration
 already.

I would prefer to use the automatic configuration since it seems to
nicely include all the necessary JkMounts for each webapp in the
'webapps' directory. It saves me the extra step of having to modify
the mod_jk.conf file for each new webapp I add. But like I said, the
automatically generated mod_jk.conf file puts all the JkMounts in to
VirtualHost localhost VirtualHost set of tags. If I comment this
out and then restart apache it seems to work fine. Do you have any
suggestions on how this can be overcome or would it just be better to
avoid this auto generated file (since you say it is partially broken)
?

Thanks again!

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



unable to access Tomcat Admin

2007-11-20 Thread Ralph

Hi

I have a question about tomcat 5.5 admin pacakge.  I downloaded it and
installed it according to the instruction.

After starting the tomcat server, when I click on the Tomcat
Administration link, I got the following error message just like before

Tomcat's administration web application is no longer installed by
default.  Download and install the admin package to use it

I used the Manager and see the /admin was deployed and running. So
instead of  http://localhost:8080/admin http://localhost:8080/admin

I typed  http://localhost:8080/admin/index.html
http://localhost:8080/admin/index.html, which mysteriously brought up the
signon page for the Tomcat Web Server
Administration Tool with the background in purple.

I typed in the admin username and password and would get

HTTP Status 404 - /admin/index.htmltype Status report
message /admin/index.html
description The requested resource (/admin/index.html) is not
available.


Now, after this, the link won't work anymore until the admin app is
reloaded.

I also added 

  !-- Link to the user database we will get roles from --
  ResourceLink name=users global=UserDatabase
type=org.apache.catalina.UserDatabase/

in the admin.xml (which the instruction didn't say) but it didn't help
either


Am I missing a step?

Thanks

Ralph



Re: mod_proxy_ajp TIME_WAIT

2007-11-20 Thread Jim Jagielski

I'm hoping to get it out the top of December :)

On Nov 20, 2007, at 3:57 AM, David Cassidy wrote:


Hi Jim !!!

This is fantastic news !

When is 2.2.7 going to be released ?

:)

Many many thanks

David


On Mon, 2007-11-19 at 15:27 -0500, Jim Jagielski wrote:

2.2.6 has a nasty bug were AJP connections are being closed
when they shouldn't. 2.2.7 will fix that. In the meantime,
trying building httpd with USE_ALTERNATE_IS_CONNECTED defined
as 0 (proxy_util.c).

On Nov 19, 2007, at 9:07 AM, Rainer Jung wrote:


Hi David,

TIME_WAIT is a normal TCP state after a connection was successfully
closed. Only one side of the connection goes into TIME_WAIT, namely
the side that sent the first FIN.

So since you've got httpd and Tomcat on the same server, you first
need to find out, which side of the conection is in TIME_WAIT. In
netstat, usually the left hand IP:PORT is the local side, and the
right IP:PORT the remote side. In case the left pair of the
TIME_WAIT line includes the port 8009, this would mean, that Tomcat
closed the connection first, in case 8009 is on the right side, it
would mean, that Apache httpd closed the connection first. Maybe
you could show us some of the TIME_WAIT netstat lines.

Both could be OK, so we could ask ourselves, if we expect such
behaviour. In general AJP connections should be used persistently
and only closed, if they have been idle for to long.

Is the number of TIME_WAIT connections much larger, than the
concurrency (-c) used with ab?

Regards,

Rainer

David Cassidy wrote:

Guys,
I'm using mod_proxy in apache 2.2.6 with the ajp connector in  
tomcat.

apache config
-
Proxy balancer://myclusterclear
BalancerMember ajp://localhost:8009 route=server1 min=0
smax=1000 max=1000  keepalive=On
/Proxy
ProxyPass // balancer://myclusterclear/
stickysession=JSESSIONID|jsessionid
Tomcat config (Using the native apr libs)
Executor name=tomcatThreadPool namePrefix=catalina-exec-
maxThreads=150 minSpareThreads=4/
Connector executor=tomcatThreadPool port=8009  
secure=false

protocol=AJP/1.3 enableLookups=false proxyPort=80
redirectPort=443 maxKeepAliveRequests=2000 tcpNoDelay=true
keepAliveTimeout=1 connectionTimeout=60/
After running a few hits with ab to give it some load
there are a very large number of connections between apache and
tomcat
in a TIME_WAIT status.
Is this a common happening ? Is there something that can be
configured
to prevent this from appearing ?
Thanks David


 
-

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]




-
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: How Do I use Tomcat 6.0.14 as a http Proxy?

2007-11-20 Thread Tony Anecito
Thanks I suspected Tomcat did not support that
configuration but wanted to be sure.

I currently have the Apache in front of Tomcat
confiuration and was interested in using Tomcat in
place of Apache but the issues regarding php support
seemed to negate the use of Tomcat for my current
functionality. Thus I was interested in having Tomcat
forward certain http requests to Apache.

I am considering giving up on php since it is very
slow compared to straight html.

Is APR complicated to setup on Tomcat? Is it part of
the standard 6.0.14 install? I did not see on the
Tomcat web site a reference to APR being built into
6.0.14 so I am curious.

Thanks,
-Tony
--- Filip Hanik - Dev Lists [EMAIL PROTECTED]
wrote:

 Tomcat doesn't have built in proxy capabilities.
 You want to use Apache in front of Tomcat, not the
 other way around
 
 Filip
 
 Tony Anecito wrote:
  Hi All,
 
  I found some old documentation and looking for
  something more current than 2004 about how to use
  Tomcat as a http proxy to say Apache. I am running
 a
  test and want to keep Tomcat in front of Apache.
 
  Thanks,
  -Tony
 
 
   


  Never miss a thing.  Make Yahoo your home page. 
  http://www.yahoo.com/r/hs
 
 

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



  

Be a better sports nut!  Let your teams follow you 
with Yahoo Mobile. Try it now.  
http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ

-
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: Newbie mod_jk question - Getting HTTP 404 error for existing servlets-examples directory

2007-11-20 Thread Rainer Jung

K S wrote:

Thanks a lot Rainer! The problem as you guessed was with the Vhost.
After putting the JkMounts in the global server configuration, it
worked.

I started using the VHost (though now I have realised I don't need
them at all since I am not hosting more than one website on a single
server) because the automatically generated mod_jk.conf file had the
JkMounts within the VHost tags.

I have one clarification:


(A) Engine name=Catalina defaultHost=bacis.vm.acis.intranet


Throw this listener out. It's only used for automatic configuration
generation, which is partially broken, and you've got a configuration
already.


I would prefer to use the automatic configuration since it seems to
nicely include all the necessary JkMounts for each webapp in the
'webapps' directory. It saves me the extra step of having to modify
the mod_jk.conf file for each new webapp I add. But like I said, the
automatically generated mod_jk.conf file puts all the JkMounts in to
VirtualHost localhost VirtualHost set of tags. If I comment this
out and then restart apache it seems to work fine. Do you have any
suggestions on how this can be overcome or would it just be better to
avoid this auto generated file (since you say it is partially broken)
?

Thanks again!


I would say, the auto-generated file might give you an easy start for a 
configuration, but for production purposes you might like to have a look 
at the connectors docs pages, especially concerning Apache config and 
workers.properties, to adjust the config to your needs.


Regards,

Rainer

-
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: How to Deploy WAR using a sub-context path?

2007-11-20 Thread Eric B.
Mark Thomas [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Eric B. wrote:
From a cursory inspection, it looks like the # naming convention wasn't
 thoroughly tested out for these types of scenarios in Tomcat's 
 autodeployer.
 Either that, or I am missing something somewhere obvious.

 What you are missing is that it was never intended to work in this way. 
 The
 # convention is currently only for webapps hosted outside the appBase. If
 you'd like to submit a patch...

Am in the midst of a rush for a major release here right now, but once I'm 
done I'll take a look at the deployment code and see if I can patch it.  I 
suspect it to be something relatively minor (a couple of hours), but will 
let you know once I'm done.

Thanks!

Eric




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



iBatis + Spring + Spring MVC and Webflow on Tomcat vs. JBoss

2007-11-20 Thread P.B.

Hello,
I am going to write an application using the following frameworks:
iBatis + Spring + Spring MVC and Webflow. The application is going to talk
to external web services and maybe expose its own as well.
I am wondering what features would not be possible for this configuration if
it was running on Tomcat in comparison to what I would get if it was running
on JBoss or other container like Websphere.

Thanks,
P.B.
-- 
View this message in context: 
http://www.nabble.com/iBatis-%2B-Spring-%2B-Spring-MVC-and-Webflow-on-Tomcat-vs.-JBoss-tf4846095.html#a13864888
Sent from the Tomcat - User mailing list archive at Nabble.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]



xx

2007-11-20 Thread rahul
rahul
--
1. e4 _

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



mod_jk compatibilities between versions.

2007-11-20 Thread rahul
Hi,
I am trying to integrate mod_jk with the apache 2.2 package
distribution in solaris.
I would like to know what would be the versions that can have
incompatibilities with the previous versions (both API and configuration)

ie 
Is JK-1.2.25 going to be completely compatible with JK-1.2.26

How about JK-1.2.25 and JK-1.3.xx and 

JK-1.2.25 and JK-2.xx.yy 

which is the version change where I can expect the compatibility to be
guaranteed?


rahul
--
1. e4 _

-
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 juli logging directory?

2007-11-20 Thread Albretch Mueller
 How can I avoid making this property and point a juli logger handler to
 web\logs directory?
~
 Have you taken a look into the directory setting or your
logging.properties file? Either the global or for the application?
~
 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: How to Deploy WAR using a sub-context path?

2007-11-20 Thread Mark Thomas
Eric B. wrote:
 Mark Thomas [EMAIL PROTECTED] wrote in message 
 news:[EMAIL PROTECTED]
 Eric B. wrote:
 From a cursory inspection, it looks like the # naming convention wasn't
 thoroughly tested out for these types of scenarios in Tomcat's 
 autodeployer.
 Either that, or I am missing something somewhere obvious.
 What you are missing is that it was never intended to work in this way. 
 The
 # convention is currently only for webapps hosted outside the appBase. If
 you'd like to submit a patch...
 
 Am in the midst of a rush for a major release here right now, but once I'm 
 done I'll take a look at the deployment code and see if I can patch it.  I 
 suspect it to be something relatively minor (a couple of hours), but will 
 let you know once I'm done.

Great. If you need a pointer or two - just ask.

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: iBatis + Spring + Spring MVC and Webflow on Tomcat vs. JBoss

2007-11-20 Thread Mark Thomas
P.B. wrote:
 Hello,
 I am going to write an application using the following frameworks:
 iBatis + Spring + Spring MVC and Webflow. The application is going to talk
 to external web services and maybe expose its own as well.
 I am wondering what features would not be possible for this configuration if
 it was running on Tomcat in comparison to what I would get if it was running
 on JBoss or other container like Websphere.

Well, unlike Websphere, JBoss or Tomcat don't offer you the feature that
lets you part with a large pile of cash ;)

Seriously - you'll need to spend some cash somewhere for support but I
would expect costs to be lower with JBoss or Tomcat.

In terms of the frameworks you selected, I see no reason why you would need
a full J2EE app server over a Servlet container. That said, there are
usually other factors to consider such as which software you already use.
From a system admin point of view, it is usually better to use existing
products than add a new one to the support mix.

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: ApacheTomcat Connector mod_jk, receiving 0711-244 ERROR when I dp a make.

2007-11-20 Thread Blumlein,Richard
Hello Rainer and group.
I tried using gmake instead of make and I got much further.
In the instdso.sh script it checks to see if AIX. If AIX it removes the 
component.
Not sure if this is ok.
The mv fails since it cannot find mod_jk.so.0 in the apache-1.3 directory to 
rename it
to mod_jk.so

I did find mod_jk.so.0 in the apache-1.3/.libs directory so can I copy it as
mod_jk.so to the Apache Directory myself?


../scripts/build/instdso.sh SH_LIBTOOL='/bin/sh ../libtool' mod_jk.la `pwd`
rm -f /software/source/gnu/apache_tomcat/work/tomcat-connectors-1.2.25-src/nativ
e/apache-1.3/mod_jk.so
/bin/sh ../libtool --mode=install cp mod_jk.la /software/source/gnu/apache_tomca
t/work/tomcat-connectors-1.2.25-src/native/apache-1.3/
cp .libs/mod_jk.a /software/source/gnu/apache_tomcat/work/tomcat-connectors-1.2.
25-src/native/apache-1.3/mod_jk.a
cp .libs/mod_jk.lai /software/source/gnu/apache_tomcat/work/tomcat-connectors-1.
2.25-src/native/apache-1.3/mod_jk.la
libtool: install: warning: remember to run `libtool --finish /opt/freeware/apach
e/libexec'
mv: 0653-401 Cannot rename /software/source/gnu/apache_tomcat/work/tomcat-connec
tors-1.2.25-src/native/apache-1.3/mod_jk.so.0 to /software/source/gnu/apache_tom
cat/work/tomcat-connectors-1.2.25-src/native/apache-1.3/mod_jk.so:
 A file or directory in the path name does not exist.
gmake[1]: Leaving directory `/software/source/gnu/apache_tomcat/work/tomcat-conn
ectors-1.2.25-src/native/apache-1.3'


By the way, I don't have a modules directory in my apache web server
Directory. Apache is install as part of the linux package using rpm in our shop,
so hopefully this is ok. This is what there is. Do I need to create it?

  pwd
/opt/freeware/apache
 ls
bin/  include/  libexec/  man/  sbin/ share/


Thanks for all the help
Rich


From: Blumlein,Richard
Sent: Tuesday, November 20, 2007 10:54 AM
To: 'users@tomcat.apache.org'
Subject: Re: ApacheTomcat Connector mod_jk, receiving 0711-244 ERROR when I dp 
a make.




Hi Rainer,

Yes there were numerous -mode=compile statements before the first -mode=link 
which

failed. It seems there is a hole in the process. I am following various docs 
which

say to run the configure, then the make/make install.

Yes, it seems something is not being passed properly.

Rich



  usr/bin/sh ../libtool --mode=compile xlc -I/opt/freeware/apache/include

 -g -O2 -DAIX=510 -U__STR__ -DAIX_BIND_PROCESSOR -DMOD_SSL=208119 -DUSE_HSREGEX

-DEAPI -DJK_PREFORK -g  -I /usr/local/bin/java/include -I /usr/local/bin/java/in

clude/ -c ./jk_status.c -o ./jk_status.lo

 xlc -I/opt/freeware/apache/include -g -O2 -DAIX=510 -U__STR__ -DAIX_BIND_PROCES

SOR -DMOD_SSL=208119 -DUSE_HSREGEX -DEAPI -DJK_PREFORK -g -I /usr/local/bin/java

/include -I /usr/local/bin/java/include/ -c ./jk_status.c  -DPIC -o ./.libs/jk_s

tatus.o

Target all is up to date.

Making all in apache-1.3

/usr/bin/sh ../libtool --mode=compile xlc -DUSE_APACHE_MD5 -I ../common

-I /usr/local/bin/java/include -I /usr/local/bin/java/include/ -I/opt/freeware/a

pache/include -O2 -DAIX=510 -U__STR__ -DAIX_BIND_PROCESSOR -DMOD_SSL=208119 -DUS

E_HSREGEX -DEAPI -DJK_PREFORK -g  -I../common -c mod_jk.c -o mod_jk.lo

mkdir .libs

 xlc -DUSE_APACHE_MD5 -I ../common -I /usr/local/bin/java/include -I /usr/local/

bin/java/include/ -I/opt/freeware/apache/include -O2 -DAIX=510 -U__STR__ -DAIX_B

IND_PROCESSOR -DMOD_SSL=208119 -DUSE_HSREGEX -DEAPI -DJK_PREFORK -g -I../common

-c mod_jk.c  -DPIC -o .libs/mod_jk.o

/usr/bin/sh ../libtool --mode=link xlc -o mod_jk.la -module -rpath /opt/

freeware/apache/libexec

generating symbol list for `mod_jk.la'

/usr/bin/nm -B -BCpg   | awk '{ if ((($2 == T) || ($2 == D) || ($2 == B))





 /usr/bin/sh ../libtool --mode=link xlc -o mod_jk.la -module -rpath /opt/

 freeware/apache/libexec



There should be a lot of object files in the above libtool command.

Before that output, all the files in common should have been compiled

and the object files should appear in the link.



 generating symbol list for `mod_jk.la'



Again, in the next line, the nm command doesn't have any file arguments.

It should have the same object files as arguments, that are missing in

the above libtool line.



These are just formal observations though, I've got not AIX specific

experience.



 /usr/bin/nm -B -BCpg   | awk '{ if ((($2 == T) || ($2 == D) || ($2 == 
 B))

  (substr($3,1,1) != .)) { print $3 } }' | sort -u  .libs/mod_jk.exp

 Usage: nm [-ACfhlprTv] [-B|-P] [-e|-g|-u] [-d|-o|-x|{-t [d|x|o]}]

 [-X{32|64|32_64|d64|any}] [--] File ...

 xlc -Wl,-bM:SRE -o .libs/mod_jk.so.0   -lc -Wl,-bnoentry  
 -Wl,-bE:.libs/mod_jk.e

 xp ${wl}-berok

 ld: 0711-244 ERROR: No csects or exported symbols have been saved.

 make: 1254-004 The error code from the last command is 8.





 Stop.

 make: 1254-004 The error code from the last command is 1



Regards,



Rainer



Questions about sometime slowness of tomcat

2007-11-20 Thread Jun Zhang
Hi,

I really do not know which mail alias is the correct one to post this
topic. So I send it to all.

I am developing a web application using Tomcat, which uses a servlet to
handle the request, which includes geting data from database and writing
the data back to the client to display. When I restart the tomcat and
begin this process, then the time would be 750ms for one request to get
response. However when the client sends the request after the tomcat
finish some requests, then the time would become about 200ms.

I do not know why. I have exclude the affect of database. You know I do
not know the working mechanism of tomcat. So if someone here could help
me explain why and if there is some way to avoid it.

Thanks a lot,

Jun


-
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: Questions about sometime slowness of tomcat

2007-11-20 Thread Tony Anecito
Hi Jun,

This could be due to several factors. I see this alot
in SOAP calls where the first request is signficanly
longer than susequent requests. It could be the jvm is
optimizing the code and after multiple passes through
the code it runs faster. It could also be there are
objects that get created and the first time it takes
longer than the susequent times especially if you use
JSP's and do not compile them first at server startup.

That is why when making performance measurements you
need to take many measurements of the same request to
get the optimal response and make measurements of of a
mixure of different types of requests to get a more
accurate picture.

Regards,
-Tony


--- Jun Zhang [EMAIL PROTECTED] wrote:

 Hi,
 
 I really do not know which mail alias is the correct
 one to post this
 topic. So I send it to all.
 
 I am developing a web application using Tomcat,
 which uses a servlet to
 handle the request, which includes geting data from
 database and writing
 the data back to the client to display. When I
 restart the tomcat and
 begin this process, then the time would be 750ms for
 one request to get
 response. However when the client sends the request
 after the tomcat
 finish some requests, then the time would become
 about 200ms.
 
 I do not know why. I have exclude the affect of
 database. You know I do
 not know the working mechanism of tomcat. So if
 someone here could help
 me explain why and if there is some way to avoid it.
 
 Thanks a lot,
 
 Jun
 
 

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



  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

-
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: Questions about sometime slowness of tomcat

2007-11-20 Thread david delbecq
First request is slower to respond to client becaus tomcat do have to
initialize your servlet before first request and, probably, to compile
your jsp

Jun Zhang a écrit :
 Hi,

 I really do not know which mail alias is the correct one to post this
 topic. So I send it to all.

 I am developing a web application using Tomcat, which uses a servlet to
 handle the request, which includes geting data from database and writing
 the data back to the client to display. When I restart the tomcat and
 begin this process, then the time would be 750ms for one request to get
 response. However when the client sends the request after the tomcat
 finish some requests, then the time would become about 200ms.

 I do not know why. I have exclude the affect of database. You know I do
 not know the working mechanism of tomcat. So if someone here could help
 me explain why and if there is some way to avoid it.

 Thanks a lot,

 Jun


 -
 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: Is there a quiet or headless install for Tomcat 5?

2007-11-20 Thread Kurt Kavanaugh

Semantics. By embedded I mean we use Tomcat, along with a number of
other processes/applications which we package into a single product
offering. I just wanted to be clear that I did not mean we are running
Tomcat in an embedded mode.

Thanks for reading and considering...

-Original Message-
From: Kurt Kavanaugh 
Sent: Tuesday, November 13, 2007 5:16 PM
To: users@tomcat.apache.org
Subject: Is there a quiet or headless install for Tomcat 5?

Tomcat is an embedded component in our product.

 

Thanks

 

Kurt

 



-
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: Is there a quiet or headless install for Tomcat 5?

2007-11-20 Thread Mark Thomas
Kurt Kavanaugh wrote:
 Semantics. By embedded I mean we use Tomcat, along with a number of
 other processes/applications which we package into a single product
 offering. I just wanted to be clear that I did not mean we are running
 Tomcat in an embedded mode.
 
 Thanks for reading and considering...
 
 -Original Message-
 From: Kurt Kavanaugh 
 Sent: Tuesday, November 13, 2007 5:16 PM
 To: users@tomcat.apache.org
 Subject: Is there a quiet or headless install for Tomcat 5?

Step 1. Unzip/untar a standard distribution.
Step 2. There is no step 2.

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: Application redeployment on Tomcat startup only

2007-11-20 Thread Beth Hechanova
The deployOnStartup attribute is not working for me.

Here's the snippet of my server.xml file:
  Host name=localhost  appBase=webapps
unpackWARs=true deployOnStartup=true autoDeploy=false
xmlValidation=false xmlNamespaceAware=false

If I copy a new war file and restart tomcat, I do not see any changes
made in the directory that the application expands to.

In my webapps directory, the war file is actually a symbolic link to the
actual war file that resides elsewhere.  Just in case the symbolic link
was causing the problem I removed it, and copied the newer war file
directly to the webapps directory.  Then I restarted tomcat.  I still
did not see any changes made to my application directory.

Am I missing something else?
Thanks,
Beth

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Sunday, November 19, 2000 6:19 PM
To: Tomcat Users List
Subject: Re: Application redeployment on Tomcat startup only

Always a good idea to read the manual
http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html

also a good idea to read the comments carefully

Autodeploy
If the Host autoDeploy attribute is true, the Host will attempt to
deploy
and
update web applications dynamically, as needed, for example if a new
WAR is dropped into the appBase.
For this to work, the Host needs to have background processing enabled
which
is the
default configuration.

so leave autodeploy=false

deployonStartup will be deployed on Tomcat startup only if the Host's
deployOnStartup
attribute is true.

so leave deployOnStartup = true

M-
- Original Message -
From: Beth Hechanova [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, November 19, 2007 1:50 PM
Subject: RE: Application redeployment on Tomcat startup only


If I set the autoDeploy attribute to true, then the application gets
dynamically deployed - I do NOT want that behavior.  So I've set that
attribute to false.  But I would like the war file to be deployed when
tomcat is restarted - that is the behavior I'm trying to get, and hoping
to configure via configuration parameters.  Maybe the only way to
accomplish this is by deleting the directory at startup?

Thanks,
Beth

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, November 19, 2007 9:38 AM
To: Tomcat Users List
Subject: Re: Application redeployment on Tomcat startup only

handled by autodeploy attribute of Host element
http://tomcat.apache.org/tomcat-5.5-doc/config/host.html

M--
- Original Message -
Wrom: EXCAXZOWCONEUQZAAFXISHJEXXIMQZUIVOTQNQEMSFDULHPQ
To: users@tomcat.apache.org
Sent: Monday, November 19, 2007 12:12 PM
Subject: Application redeployment on Tomcat startup only


Hi,



I am trying to configure Tomcat to only reploy my application war file
when Tomcat is started up.  I have set the autoDeploy attribute in
server.xml to false - this prevents my application from deploying
dynamically, which is the behavior that I want.  But then when I restart
Tomcat I would like my new war file to be deployed at that time, but
that is not happening (unless I delete the associated directory first).



Are there any configuration parameters that will ensure the war file
gets deployed at startup, but NOT dynamically when the application is
running?



Thanks,

Beth



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


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



Wr Rd in the JK status report

2007-11-20 Thread Dmitry Beransky
Hi,

I'm having problems understanding the legend text for Wr  Rd columns
of the JK status report.  What exactly do they mean?  Here's a
concrete example:

  Name Type Host Addr Act Stat D F M V Acc Err CE Wr Rd Busy Max Route RR Cd Rs
 static_1 ajp13 localhost:8012 127.0.0.1:8012 ACT OK 0 1 1 61 9613 0
29 8.3M 48M 0 8 static_1 0

So Wr=8.3M and Rd=48M.  This worker handles all static resources of
the website: images, scripts, styles, etc.  If 48M is the amount of
data sent to the client, what is 4.8M?


Thanks
Dmitry

-
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: mod_jk compatibilities between versions.

2007-11-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rahul,

rahul wrote:
 I am trying to integrate mod_jk with the apache 2.2 package
 distribution in solaris.
 I would like to know what would be the versions that can have
 incompatibilities with the previous versions (both API and configuration)

Check the change log:
http://tomcat.apache.org/connectors-doc/miscellaneous/changelog.html

It contains all changes between each version. If you need to know what
changed between 1.2.14 and 1.2.25, then you need read all of the changes
for intervening versions.

 Is JK-1.2.25 going to be completely compatible with JK-1.2.26

All of the 1.2.x versions are compatible with each other.

 How about JK-1.2.25 and JK-1.3.xx and 

I don't believe there are any 1.3.x versions.

 JK-1.2.25 and JK-2.xx.yy 

Same here: there are no 2.x versions.

 which is the version change where I can expect the compatibility to be
 guaranteed?

Do you mean feature compatibility? Each version of mod_jk includes
improvements and features that were not included in previous versions.
So, in a sense, all versions are incompatible (with each other).

On the other hand, they all implement the AJP12 and AJP13 protocols. So,
in a sense, they are all entirely compatible (with each other).

All versions along the 1.2.x line are expected to be drop-in replaceable
for other versions in the same line. You should always read the release
notes between versions so that some fixed bug doesn't end up breaking
your setup.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHQ8zY9CaO5/Lv0PARAvnxAKC1wJEKvRb7Ox0DBJrXSx38Z4oawQCeNU1O
B7+7v7hcCb010YHrG1Fokug=
=CM1Z
-END PGP SIGNATURE-

-
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 6.0 / Log4J!

2007-11-20 Thread First Last

Hi,

  Basically my situtation is that I want to use log4j for all my logging, for 
Tomcat itself and for vairous webapps. However, in order to make Tomcat itself 
use log4j, I have to place log4j in the common classloader from which all 
webapps inherit. This means all my webapps start to interfere with one anothers 
logging configuration.

  Is there any way I can make Tomcat not share the log4j jar?

_
Connect and share in new ways with Windows Live.
http://www.windowslive.com/connect.html?ocid=TXT_TAGLM_Wave2_newways_112007
-
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 juli logging directory?

2007-11-20 Thread Igor Vlasov



Albretch Mueller-3 wrote:
 
 How can I avoid making this property and point a juli logger handler to
 web\logs directory?
 ~
  Have you taken a look into the directory setting or your
 logging.properties file? Either the global or for the application?
 ~
  lbrtchx
 
 
For application
-- 
View this message in context: 
http://www.nabble.com/set-juli-logging-directory--tf4737613.html#a13872359
Sent from the Tomcat - User mailing list archive at Nabble.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 6.0 / Log4J!

2007-11-20 Thread First Last

In earlier versions I would have put log4j into the server classloader and not 
the common classloader; achieving the isolation I require. How do you do it in 
tomcat6?


 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Subject: Tomcat 6.0 / Log4J!
 Date: Wed, 21 Nov 2007 07:27:04 +
 
 
 Hi,
 
   Basically my situtation is that I want to use log4j for all my logging, for 
 Tomcat itself and for vairous webapps. However, in order to make Tomcat 
 itself use log4j, I have to place log4j in the common classloader from which 
 all webapps inherit. This means all my webapps start to interfere with one 
 anothers logging configuration.
 
   Is there any way I can make Tomcat not share the log4j jar?
 
 _
 Connect and share in new ways with Windows Live.
 http://www.windowslive.com/connect.html?ocid=TXT_TAGLM_Wave2_newways_112007
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_
Your smile counts. The more smiles you share, the more we donate.  Join in.
www.windowslive.com/smile?ocid=TXT_TAGLM_Wave2_oprsmilewlhmtagline
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]