Re: Bug in c:url taglib

2006-07-13 Thread Giorgio Ponza

Hi Martyn
This is not a bug but a feature. Infact when you specify an absolute 
path for the value attribute, the JSTL will prepend it with the 
context of the web-app. In your case, i think you have a context with 
path / in your server.xml (or context.xml etc)


From the spec, section 7.5:

  The URL must be either an absolute URL starting with a scheme
  (e.g. http:// server/context/page.jsp) or a relative URL as
  defined by JSP 1.2 in JSP.2.2.1 Relative URL Specification. As a
  consequence, an implementation must prepend the context path to a
  URL that starts with a slash (e.g. /page2.jsp) so that such URLs
  can be properly interpreted by a client browser.

You should use relative paths to avoid it :D
Bye

Giorgio Ponza


Martyn Hiemstra wrote:

Hi All

I am having a problem with Tomcat 5.0.28. I designed a website a few 
months ago and I started working on it again. I cant remember what 
version Tomcat I designed it in but now I'm trying Tomcat 5.0.28.


When I deploy my website everything deploys perfectly. When i view the 
page it's white as if there is no style. I then viewed the source and I 
saw this:


   link rel=stylesheet href=//displayThemeCss type=text/css /
   link rel=stylesheet href=//displayModuleCss type=text/css /
   link rel=stylesheet href=//displaySystemModulesCss 
type=text/css /

   link rel=stylesheet href=//core/css/common.css type=text/css /

The source code in my jsp file is this:

   link rel=stylesheet href=c:url value=/displayThemeCss / 
type=text/css /
   link rel=stylesheet href=c:url value=/displayModuleCss / 
type=text/css /
   link rel=stylesheet href=c:url 
value=/displaySystemModulesCss / type=text/css /
   link rel=stylesheet href=c:url value=/core/css/common.css 
/ type=text/css /


As you can see the c:url tag messes up the url by adding 2 forward 
slahes. This makes the browser think that it shoulod load the style 
sheets from the server displayThemeCss, displayModuleCss etc


I beleive this to be a bug in the class that formats the url. Does 
anybody know how to solve this.


Thanks in advance,
Martyn




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



Tomcat 5.5 load balancing URL redirefction not transparent to client

2006-07-13 Thread Madhur K Tanwani

Hi,
I'm separating this question from my earlier thread on load balancing 
rules - it

seems that it was over-looked there since it did not fit in there :(.

My question is that when I use the default balancer webapp from Tomcat 
5.5 the
redirection rules redirect me to either jakarta, cnn or yahoo's site. 
However,

the redirection is not transparent to the user.

for example,
Client Types : http://servername:8080/balancer/
Balancer Redirects To: http://jakarta.apache.org
*The browser URL changes to  : http://jakarta.apache.org*

I think this change of URL does not make the transition transparent. 
Also, the
subsequent requests bypass the load balancer(LB) and are directly served 
by the
server (so what happens if the server is down - the LB has support for 
fail over

but the request never went via the LB)

Please could someone throw some light on the same?
Awaiting responses,

--
Madhur Kumar Tanwani

-
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: HTTP Status 503 - Servlet admin.login_jsp is currently unavailable

2006-07-13 Thread simon jones
Hi David,

Ok I did as instructed and tried the admin.  Now I get the Tomcat's
administration web application is no longer installed by default.
Download and install the admin package to use it.  error.

No entries in the log either, where next?

Cheers,

Simon 

 -Original Message-
 From: David Smith [mailto:[EMAIL PROTECTED] 
 Sent: 12 July 2006 19:58
 To: Tomcat Users List
 Subject: Re: HTTP Status 503 - Servlet admin.login_jsp is 
 currently unavailable
 
 I also don't see even one reference to the admin webapp.  
 This tells me something fishy is going on.
 
 Try this:
 
 First, I see you copied the admin webapp to server/webapps 
 instead of moving it.  Delete the admin webapp in 
 /usr/local/jakarta/jakarta-tomcat-5.5.9/webapps.  It's just 
 going to be confusing to leave a copy there (for both you and tomcat).
 
 Second, there should be an admin.xml file in the same archive 
 you got the admin webapp from.  That should be placed in 
 /usr/local/jakarta/jakarta-tomcat-5.5.9/conf/Catalina/localhos
 t right along side manager.xml.
 
 Now restart tomcat and take a look for messages related to 
 the admin webapp.
 
 --David
 
 simon jones wrote:
 
 Hi David,
 
 Ok looks as thought the files are in the correct place:
 
 cp -r admin /usr/local/jakarta/jakarta-tomcat-5.5.9/server/webapps
 
 There's nothing in tail -f
 /usr/local/jakarta/jakarta-tomcat-5.5.9/logs/tomcat.log
 
 When I do a tail and access the admin it doesn't do anything.
 
  DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
 org.apache.catalina.startup.HostConfig - Checking context[] redeploy 
 resource 
 /usr/local/jakarta/jakarta-tomcat-5.5.9/webapps/ROOT/META-INF
 /context.x
 m
 l
  DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
 org.apache.catalina.startup.HostConfig - Checking context[] reload 
 resource 
 /usr/local/jakarta/jakarta-tomcat-5.5.9/webapps/ROOT/WEB-INF/web.xml
  DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
 org.apache.catalina.startup.HostConfig - Checking context[] reload 
 resource /usr/local/jakarta/jakarta-tomcat-5.5.9/conf/context.xml
  DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
 org.apache.catalina.startup.HostConfig - Checking context[/manager] 
 redeploy resource 
 /usr/local/jakarta/jakarta-tomcat-5.5.9/server/webapps/manager
  DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
 org.apache.catalina.startup.HostConfig - Checking context[/manager] 
 redeploy resource 
 /usr/local/jakarta/jakarta-tomcat-5.5.9/conf/Catalina/localho
 st/manager.
 xml
  DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
 org.apache.catalina.startup.HostConfig - Checking context[/manager] 
 reload resource 
 /usr/local/jakarta/jakarta-tomcat-5.5.9/conf/context.xml
  DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
 org.apache.catalina.startup.HostConfig - Checking context[/manager] 
 reload resource 
 /usr/local/jakarta/jakarta-tomcat-5.5.9/conf/Catalina/localho
 st/manager.
 xml
  DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
 org.apache.catalina.loader.WebappClassLoader - modified()  DEBUG 
 ContainerBackgroundProcessor[StandardEngine[Catalina]]
 org.apache.catalina.loader.WebappClassLoader - modified()
 
 -Original Message-
 From: David Smith [mailto:[EMAIL PROTECTED]
 Sent: 12 July 2006 17:38
 To: Tomcat Users List
 Subject: Re: HTTP Status 503 - Servlet admin.login_jsp is currently 
 unavailable
 
 Did you store the admin webapp in server/webapps where it belongs?  
 Also check your logs.  There should be an exception trace 
 just before 
 the place where this was marked as unavailable.
 
 --David
 
 simon jones wrote:
 
   
 
 Hi, can anyone help me with this one?  Thanks!
 
 I've installed tomcat - no probs - manager works great as does the 
 installation but I can't get the admin working, I know this 
 has been 
 posted before but I can't find a fix so I'm also providing as much 
 information as possible with this post.
 
 When I call the admin page I get the following error:
 
 HTTP Status 503 - Servlet admin.login_jsp is currently unavailable
 
 
 --
 -
 -
 
 
 type Status report
 
 message Servlet admin.login_jsp is currently unavailable
 
 description The requested service (Servlet admin.login_jsp is 
 currently
 unavailable) is not currently available.
 
 
 
 --
 -
 -
 
 
 Apache Tomcat/5.5.9
 
 I have my admin files installed in the following locations:
 
 /usr/local/jakarta/jakarta-tomcat-5.5.9/conf/Catalina/localh
 ost/admin.
 x
 m
 l
 /usr/local/jakarta/jakarta-tomcat-5.5.9/webapps/server/webap
 ps/admin/a
 d
 m
 in.xml
 
 thanks
 
 Simon Jones
 SAQ Group
 
 Simon Jones
 SAQ Group
 Tel: 0870 737 7707
 VoIP: 4822813
 Fax: 0870 737 7708
 [EMAIL PROTECTED]
 http://www.saqnet.co.uk AS29219
 SAQ Group providers of communications services for UK Business.
 

Re: Tomcat 5.5 Load Balancing Rule Classes

2006-07-13 Thread welcome77in

you can refer workers.properties file in apache and this file can be created
in apache_home/conf/ path

workers.tomcat_home=/tomcat
workers.java_home=$JAVA_HOME
ps=/
worker.list=tomcat,loadbalancer

worker.tomcatC.port=8009
worker.tomcatC.host=192.168.1.80
worker.tomcatC.type=ajp13
worker.tomcatC.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat
worker.loadbalancer.sticky_session=1

you may refer to this link also for basic knowledge 

http://www.easywayserver.com/

http://tomcat.apache.org/tomcat-5.5-doc/printer/balancer-howto.html 


-- 
View this message in context: 
http://www.nabble.com/Tomcat-5.5-Load-Balancing-Rule-Classes-tf1919151.html#a5304476
Sent from the Tomcat - User forum 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: Bug in c:url taglib

2006-07-13 Thread Martyn Hiemstra

Hi Giorgio

Thanks for your explanation. After reading your explanation I looked at 
my Tomcat server.xml. I use host tags to attach hostnames to contexts.


My code was:
Host name=acc.test.com debug=10 appBase=/opt/tomcat/webapps/Test 
unpackWARs=true autoDeploy=true xmlValidation=false 
xmlNamespaceAware=false
   Logger className=org.apache.catalina.logger.FileLogger 
directory=logs  prefix=Test_log. suffix=.txt timestamp=true/

/Host

and in the Catalina/acc.test.com/ROOT.xml I had this
Context path=/ docBase= debug=0 privileged=true /

I removed the forward slah in the path string and now everything works.

Thanks for your advice. I hope this information is helpfull to some else 
in the future


Thanks in advance,
M. Hiemstra

-
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: HTTP Status 503 - Servlet admin.login_jsp is currently unavailable

2006-07-13 Thread David Smith
There has to be some messages about the admin webapp.  The only way to 
not have any is if admin.xml is not stored in the correct place.  Even 
bad permissions should generate an exception of some sort attempting to 
read it.  So to recap, here's how your file structure looks and all the 
permissions are set correctly?:


/usr/local/jakarta/jakarta-tomcat-5.5.9
   - conf
   - Catalina
   - localhost
   ROOT.xml
   manager.xml
   admin.xml (hopefully the original as provided by the 
downloaded admin webapp distribution)

   - server
   - lib
   [server jar files here]
   - webapps
   manager
   admin
   - webapps
   - ROOT

Admittedly I've abbreviated and not included some directories.  Also, do 
you have a catalina.out log file?  What does that show.


--David

simon jones wrote:


Hi David,

Ok I did as instructed and tried the admin.  Now I get the Tomcat's
administration web application is no longer installed by default.
Download and install the admin package to use it.  error.

No entries in the log either, where next?

Cheers,

Simon 

 


-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: 12 July 2006 19:58

To: Tomcat Users List
Subject: Re: HTTP Status 503 - Servlet admin.login_jsp is 
currently unavailable


I also don't see even one reference to the admin webapp.  
This tells me something fishy is going on.


Try this:

First, I see you copied the admin webapp to server/webapps 
instead of moving it.  Delete the admin webapp in 
/usr/local/jakarta/jakarta-tomcat-5.5.9/webapps.  It's just 
going to be confusing to leave a copy there (for both you and tomcat).


Second, there should be an admin.xml file in the same archive 
you got the admin webapp from.  That should be placed in 
/usr/local/jakarta/jakarta-tomcat-5.5.9/conf/Catalina/localhos

t right along side manager.xml.

Now restart tomcat and take a look for messages related to 
the admin webapp.


--David

simon jones wrote:

   


Hi David,

Ok looks as thought the files are in the correct place:

cp -r admin /usr/local/jakarta/jakarta-tomcat-5.5.9/server/webapps

There's nothing in tail -f
/usr/local/jakarta/jakarta-tomcat-5.5.9/logs/tomcat.log

When I do a tail and access the admin it doesn't do anything.

DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.startup.HostConfig - Checking context[] redeploy 
resource 
/usr/local/jakarta/jakarta-tomcat-5.5.9/webapps/ROOT/META-INF
 


/context.x
   


m
l
DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.startup.HostConfig - Checking context[] reload 
resource 
/usr/local/jakarta/jakarta-tomcat-5.5.9/webapps/ROOT/WEB-INF/web.xml

DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.startup.HostConfig - Checking context[] reload 
resource /usr/local/jakarta/jakarta-tomcat-5.5.9/conf/context.xml

DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.startup.HostConfig - Checking context[/manager] 
redeploy resource 
/usr/local/jakarta/jakarta-tomcat-5.5.9/server/webapps/manager

DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.startup.HostConfig - Checking context[/manager] 
redeploy resource 
/usr/local/jakarta/jakarta-tomcat-5.5.9/conf/Catalina/localho
 


st/manager.
   


xml
DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.startup.HostConfig - Checking context[/manager] 
reload resource 
/usr/local/jakarta/jakarta-tomcat-5.5.9/conf/context.xml

DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.startup.HostConfig - Checking context[/manager] 
reload resource 
/usr/local/jakarta/jakarta-tomcat-5.5.9/conf/Catalina/localho
 


st/manager.
   


xml
DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.loader.WebappClassLoader - modified()  DEBUG 
ContainerBackgroundProcessor[StandardEngine[Catalina]]

org.apache.catalina.loader.WebappClassLoader - modified()

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: 12 July 2006 17:38
To: Tomcat Users List
Subject: Re: HTTP Status 503 - Servlet admin.login_jsp is currently 
unavailable


Did you store the admin webapp in server/webapps where it belongs?  
Also check your logs.  There should be an exception trace 
 

just before 
   


the place where this was marked as unavailable.

--David

simon jones wrote:



 


Hi, can anyone help me with this one?  Thanks!

I've installed tomcat - no probs - manager works great as does the 
installation but I can't get the admin working, I know this 
   

has been 
   

posted before but I can't find a fix so I'm also providing as much 
information as possible with this post.


When I call the admin page I get the following error:

HTTP Status 503 - Servlet admin.login_jsp is currently unavailable


RE: HTTP Status 503 - Servlet admin.login_jsp is currently unavailable

2006-07-13 Thread simon jones
Think it is most likely me having the files in the wrong place by the
looks of it, here's my dirs with file list:

/usr/local/jakarta/jakarta-tomcat-5.5.9/conf/Catalina/localhost 

drwxr-xr-x  2 tomcat nobody 4096 Jul 12 15:27 ./
drwxr-xr-x  3 tomcat nobody 4096 Mar 26  2005 ../
-rw---  1 root   root566 Jul 12 15:27 admin.xml
-rw---  1 tomcat nobody  299 Mar 26  2005 host-manager.xml
-rw---  1 tomcat nobody  454 Mar 26  2005 manager.xml

/usr/src/apache-tomcat-5.5.17/server/webapps/admin

drwxr-xr-x  13 root root 4096 Apr 14 19:09 ./
drwxr-xr-x   3 root root 4096 Jul 10 16:53 ../
-rw-r--r--   1 root root 2151 Apr 14 19:09 admin.css
-rw-r--r--   1 root root  586 Apr 14 19:09 admin.xml
drwxr-xr-x   2 root root 4096 Apr 14 19:09 connector/
drwxr-xr-x   2 root root 4096 Apr 14 19:09 context/
drwxr-xr-x   2 root root 4096 Apr 14 19:09 host/
drwxr-xr-x   2 root root 4096 Jul 10 16:53 images/
drwxr-xr-x   2 root root 4096 Apr 14 19:09 realm/
drwxr-xr-x   2 root root 4096 Apr 14 19:09 resources/
drwxr-xr-x   2 root root 4096 Apr 14 19:09 server/
drwxr-xr-x   2 root root 4096 Apr 14 19:09 service/
-rw-r--r--   1 root root  344 Apr 14 19:09 tree-control-test.css
drwxr-xr-x   2 root root 4096 Apr 14 19:09 users/
drwxr-xr-x   2 root root 4096 Apr 14 19:09 valve/
drwxr-xr-x   3 root root 4096 Jul 10 16:53 WEB-INF/

Simon

 -Original Message-
 From: David Smith [mailto:[EMAIL PROTECTED] 
 Sent: 13 July 2006 12:49
 To: Tomcat Users List
 Subject: Re: HTTP Status 503 - Servlet admin.login_jsp is 
 currently unavailable
 
 There has to be some messages about the admin webapp.  The 
 only way to not have any is if admin.xml is not stored in the 
 correct place.  Even bad permissions should generate an 
 exception of some sort attempting to read it.  So to recap, 
 here's how your file structure looks and all the permissions 
 are set correctly?:
 
 /usr/local/jakarta/jakarta-tomcat-5.5.9
 - conf
 - Catalina
 - localhost
 ROOT.xml
 manager.xml
 admin.xml (hopefully the original as provided 
 by the downloaded admin webapp distribution)
 - server
 - lib
 [server jar files here]
 - webapps
 manager
 admin
 - webapps
 - ROOT
 
 Admittedly I've abbreviated and not included some 
 directories.  Also, do you have a catalina.out log file?  
 What does that show.
 
 --David
 
 simon jones wrote:
 
 Hi David,
 
 Ok I did as instructed and tried the admin.  Now I get the Tomcat's 
 administration web application is no longer installed by default.
 Download and install the admin package to use it.  error.
 
 No entries in the log either, where next?
 
 Cheers,
 
 Simon
 
   
 
 -Original Message-
 From: David Smith [mailto:[EMAIL PROTECTED]
 Sent: 12 July 2006 19:58
 To: Tomcat Users List
 Subject: Re: HTTP Status 503 - Servlet admin.login_jsp is currently 
 unavailable
 
 I also don't see even one reference to the admin webapp.  
 This tells me something fishy is going on.
 
 Try this:
 
 First, I see you copied the admin webapp to server/webapps 
 instead of 
 moving it.  Delete the admin webapp in 
 /usr/local/jakarta/jakarta-tomcat-5.5.9/webapps.  It's just 
 going to 
 be confusing to leave a copy there (for both you and tomcat).
 
 Second, there should be an admin.xml file in the same 
 archive you got 
 the admin webapp from.  That should be placed in 
 /usr/local/jakarta/jakarta-tomcat-5.5.9/conf/Catalina/localhos
 t right along side manager.xml.
 
 Now restart tomcat and take a look for messages related to 
 the admin 
 webapp.
 
 --David
 
 simon jones wrote:
 
 
 
 Hi David,
 
 Ok looks as thought the files are in the correct place:
 
 cp -r admin /usr/local/jakarta/jakarta-tomcat-5.5.9/server/webapps
 
 There's nothing in tail -f
 /usr/local/jakarta/jakarta-tomcat-5.5.9/logs/tomcat.log
 
 When I do a tail and access the admin it doesn't do anything.
 
 DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
 org.apache.catalina.startup.HostConfig - Checking 
 context[] redeploy 
 resource 
 /usr/local/jakarta/jakarta-tomcat-5.5.9/webapps/ROOT/META-INF
   
 
 /context.x
 
 
 m
 l
 DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
 org.apache.catalina.startup.HostConfig - Checking context[] reload 
 resource 
 /usr/local/jakarta/jakarta-tomcat-5.5.9/webapps/ROOT/WEB-IN
 F/web.xml
 DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
 org.apache.catalina.startup.HostConfig - Checking context[] reload 
 resource /usr/local/jakarta/jakarta-tomcat-5.5.9/conf/context.xml
 DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
 org.apache.catalina.startup.HostConfig - Checking 
 context[/manager] 
 redeploy resource 
 /usr/local/jakarta/jakarta-tomcat-5.5.9/server/webapps/manager
 DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
 org.apache.catalina.startup.HostConfig - Checking 
 context[/manager] 
 redeploy 

Re: Tomcat shutdowns unexpectedly - Please help

2006-07-13 Thread Arunan Kannan

Hi,

Even after making the timeout parameter to 0, still the problem exist.

Even I ran a continous polling application in the tomcat and still the
problem exist.

The tomcat server gets shutdown unexpectedly after some irregular period of
time 3 or 4 or 6 hrs. However this problem doesn't exists in other sun
machines.
Only in a particular system it is occuring. Please help me out to find whats
the problem with the system and the tomcat server.
Machine Detail: SUN OS 5.8
Tomcat versio: 4.1

Please help.
Thanks again.


On 7/11/06, Arunan Kannan [EMAIL PROTECTED] wrote:


 Hi David, Martin, and Alireza,

Thank you very much for your comments and suggestions. Thanks a lot.

Hi David,
There is no logs corresponding to this shutdown anywhere on the system. I
couldn't find any thing relevent to this crash on syslog or at any other
place. Thanks for your help.

Hi Martin,
Here is the log from catalina.out file. Please have a look at it.
Jul 10, 2006 11:57:18 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.31
Jul 10, 2006 11:57:21 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jul 10, 2006 11:57:21 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Jul 10, 2006 11:57:21 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=2/53  config=/temp/jakarta-tomcat-4.1.31
/conf/jk2.pro
perties
Stopping service Tomcat-Standalone

and here are the logs from localhost_admin_log.2006-07-10.txt

2006-07-11 05:01:40 StandardContext[/admin]: Servlet /admin threw load()
excepti
on
javax.servlet.ServletException: Wrapper cannot find servlet class
org.apache.web
app.admin.ApplicationServlet or a class it depends on
at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.
java:844)
6)  at org.apache.catalina.core.StandardWrapper.load(
StandardWrapper.java:77
t.ja
3363)rg.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
586)at org.apache.catalina.core.StandardContext.start(
StandardContext.java:3
.java:774) org.apache.catalina.core.ContainerBase.addChildInternal
(ContainerBase
0)  at org.apache.catalina.core.ContainerBase.addChild (
ContainerBase.java:76

--at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)

2006-07-11 05:01:40 StandardWrapper[/admin:invoker]: Loading container
servlet i
nvoker

I couldn't understand much. Can you please let me know some more info
about this.

As you said, I tried to find some timeout parameters in the conf files.

!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 9080 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=9080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=9443
   acceptCount=100 debug=0 connectionTimeout=2
   useURIValidationHack=false disableUploadTimeout=true /
!-- Note : To disable connection timeouts, set connectionTimeout value
 to -1 --


In the server.xml the ConnectionTimeout is set to 2. I will change
that to 0 and let you know the results. Thanks for your help.

Hi Alireza,

The tomcat I am using is not configured with apache.

Initially I run some sample application and left it ideal for some 3 to 4
hr. There is no action done in this time. Then the tomcat gets shutdown
unexpectedly.

I will try your suggestion and let you know the result. Thanks for your
help.

Thanks again for all,

Thanks and Regards,

Arunan


 On 7/11/06, Martin Gainty [EMAIL PROTECTED] wrote:

 I would also look at workers.properties files and make sure
 socket_KeepAlive is set on
 Also socket_timeout is set to 0 so it never times out

 M-
 *
 This email message and any files transmitted with it contain
 confidential
 information intended only for the person(s) to whom this email message
 is
 addressed.  If you have received this email message in error, please
 notify
 the sender immediately by telephone or email and destroy the original
 message without making a copy.  Thank you.



 - Original Message -
 From: Mr Alireza Fattahi [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org; Martin Gainty 
 [EMAIL PROTECTED]
 Sent: Tuesday, July 11, 2006 9:45 AM
 Subject: Re: Tomcat shutdowns unexpectedly - Please help


  Hi,
 
  I hope I get it correctly, the Tomcat shutdowns when it is ideal. That
 means no one is working with it and there is no connection to it.
  If I assume correct and this is the case, please let me know if this
 shutdown happens when there are some connections to it.
  We had this problem once with Apache and OracleAS, the OracleAS
 shouted down itself when it does not received any requests (made a suicide!)
 We end up writing a small program which was connected to Tomcat every 10 min
 and 

Re: HTTP Status 503 - Servlet admin.login_jsp is currently unavailable

2006-07-13 Thread David Smith
Look at permissions for admin.xml -- root.root and read/write only by 
owner?  Try doing this:


(from /usr/local/jakarta/jakarta-tomcat-5.5.9)
chown tomcat.nobody conf/Catalina/localhost/admin.xml
chown -R tomcat.nobody server/webapps/admin

Then restart tomcat

--David

simon jones wrote:


Think it is most likely me having the files in the wrong place by the
looks of it, here's my dirs with file list:

/usr/local/jakarta/jakarta-tomcat-5.5.9/conf/Catalina/localhost 


drwxr-xr-x  2 tomcat nobody 4096 Jul 12 15:27 ./
drwxr-xr-x  3 tomcat nobody 4096 Mar 26  2005 ../
-rw---  1 root   root566 Jul 12 15:27 admin.xml
-rw---  1 tomcat nobody  299 Mar 26  2005 host-manager.xml
-rw---  1 tomcat nobody  454 Mar 26  2005 manager.xml

/usr/src/apache-tomcat-5.5.17/server/webapps/admin

drwxr-xr-x  13 root root 4096 Apr 14 19:09 ./
drwxr-xr-x   3 root root 4096 Jul 10 16:53 ../
-rw-r--r--   1 root root 2151 Apr 14 19:09 admin.css
-rw-r--r--   1 root root  586 Apr 14 19:09 admin.xml
drwxr-xr-x   2 root root 4096 Apr 14 19:09 connector/
drwxr-xr-x   2 root root 4096 Apr 14 19:09 context/
drwxr-xr-x   2 root root 4096 Apr 14 19:09 host/
drwxr-xr-x   2 root root 4096 Jul 10 16:53 images/
drwxr-xr-x   2 root root 4096 Apr 14 19:09 realm/
drwxr-xr-x   2 root root 4096 Apr 14 19:09 resources/
drwxr-xr-x   2 root root 4096 Apr 14 19:09 server/
drwxr-xr-x   2 root root 4096 Apr 14 19:09 service/
-rw-r--r--   1 root root  344 Apr 14 19:09 tree-control-test.css
drwxr-xr-x   2 root root 4096 Apr 14 19:09 users/
drwxr-xr-x   2 root root 4096 Apr 14 19:09 valve/
drwxr-xr-x   3 root root 4096 Jul 10 16:53 WEB-INF/

Simon

 


-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: 13 July 2006 12:49

To: Tomcat Users List
Subject: Re: HTTP Status 503 - Servlet admin.login_jsp is 
currently unavailable


There has to be some messages about the admin webapp.  The 
only way to not have any is if admin.xml is not stored in the 
correct place.  Even bad permissions should generate an 
exception of some sort attempting to read it.  So to recap, 
here's how your file structure looks and all the permissions 
are set correctly?:


/usr/local/jakarta/jakarta-tomcat-5.5.9
   - conf
   - Catalina
   - localhost
   ROOT.xml
   manager.xml
   admin.xml (hopefully the original as provided 
by the downloaded admin webapp distribution)

   - server
   - lib
   [server jar files here]
   - webapps
   manager
   admin
   - webapps
   - ROOT

Admittedly I've abbreviated and not included some 
directories.  Also, do you have a catalina.out log file?  
What does that show.


--David

simon jones wrote:

   


Hi David,

Ok I did as instructed and tried the admin.  Now I get the Tomcat's 
administration web application is no longer installed by default.

Download and install the admin package to use it.  error.

No entries in the log either, where next?

Cheers,

Simon



 


-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: 12 July 2006 19:58
To: Tomcat Users List
Subject: Re: HTTP Status 503 - Servlet admin.login_jsp is currently 
unavailable


I also don't see even one reference to the admin webapp.  
This tells me something fishy is going on.


Try this:

First, I see you copied the admin webapp to server/webapps 
   

instead of 
   

moving it.  Delete the admin webapp in 
/usr/local/jakarta/jakarta-tomcat-5.5.9/webapps.  It's just 
   

going to 
   


be confusing to leave a copy there (for both you and tomcat).

Second, there should be an admin.xml file in the same 
   

archive you got 
   

the admin webapp from.  That should be placed in 
/usr/local/jakarta/jakarta-tomcat-5.5.9/conf/Catalina/localhos

t right along side manager.xml.

Now restart tomcat and take a look for messages related to 
   

the admin 
   


webapp.

--David

simon jones wrote:

  

   


Hi David,

Ok looks as thought the files are in the correct place:

cp -r admin /usr/local/jakarta/jakarta-tomcat-5.5.9/server/webapps

There's nothing in tail -f
/usr/local/jakarta/jakarta-tomcat-5.5.9/logs/tomcat.log

When I do a tail and access the admin it doesn't do anything.

DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.startup.HostConfig - Checking 
 

context[] redeploy 
   

resource 
/usr/local/jakarta/jakarta-tomcat-5.5.9/webapps/ROOT/META-INF


 


/context.x
  

   


m
l
DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.startup.HostConfig - Checking context[] reload 
resource 
/usr/local/jakarta/jakarta-tomcat-5.5.9/webapps/ROOT/WEB-IN
 


F/web.xml
   


DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
org.apache.catalina.startup.HostConfig - Checking context[] reload 
resource /usr/local/jakarta/jakarta-tomcat-5.5.9/conf/context.xml

DEBUG 

Run shell script when web application start/restart

2006-07-13 Thread Tom Potter

The JSP pages in the Web application I install under Tomcat 4.1.30
are based on some configuration files the user wants to modify, thus
I wrote a shell script to rebuild the JSP pages and repopulate
the webapps folder.

My question is that is there a way to hook up my shell script with the
webapp start/stop proces so it would run at every startup, in other
words the user would activate my script by restarting the application ?

Thanks
Thomas


RE: HTTP Status 503 - Servlet admin.login_jsp is currently unavailable

2006-07-13 Thread simon jones
You sir are a star!  Well spotted, that did the trick.

Thanks very much.

Simon 

 -Original Message-
 From: David Smith [mailto:[EMAIL PROTECTED] 
 Sent: 13 July 2006 13:01
 To: Tomcat Users List
 Subject: Re: HTTP Status 503 - Servlet admin.login_jsp is 
 currently unavailable
 
 Look at permissions for admin.xml -- root.root and read/write 
 only by owner?  Try doing this:
 
 (from /usr/local/jakarta/jakarta-tomcat-5.5.9)
 chown tomcat.nobody conf/Catalina/localhost/admin.xml chown 
 -R tomcat.nobody server/webapps/admin
 
 Then restart tomcat
 
 --David
 
 simon jones wrote:
 
 Think it is most likely me having the files in the wrong 
 place by the 
 looks of it, here's my dirs with file list:
 
 /usr/local/jakarta/jakarta-tomcat-5.5.9/conf/Catalina/localhost
 
 drwxr-xr-x  2 tomcat nobody 4096 Jul 12 15:27 ./ drwxr-xr-x  
 3 tomcat 
 nobody 4096 Mar 26  2005 ../
 -rw---  1 root   root566 Jul 12 15:27 admin.xml
 -rw---  1 tomcat nobody  299 Mar 26  2005 host-manager.xml
 -rw---  1 tomcat nobody  454 Mar 26  2005 manager.xml
 
 /usr/src/apache-tomcat-5.5.17/server/webapps/admin
 
 drwxr-xr-x  13 root root 4096 Apr 14 19:09 ./
 drwxr-xr-x   3 root root 4096 Jul 10 16:53 ../
 -rw-r--r--   1 root root 2151 Apr 14 19:09 admin.css
 -rw-r--r--   1 root root  586 Apr 14 19:09 admin.xml
 drwxr-xr-x   2 root root 4096 Apr 14 19:09 connector/
 drwxr-xr-x   2 root root 4096 Apr 14 19:09 context/
 drwxr-xr-x   2 root root 4096 Apr 14 19:09 host/
 drwxr-xr-x   2 root root 4096 Jul 10 16:53 images/
 drwxr-xr-x   2 root root 4096 Apr 14 19:09 realm/
 drwxr-xr-x   2 root root 4096 Apr 14 19:09 resources/
 drwxr-xr-x   2 root root 4096 Apr 14 19:09 server/
 drwxr-xr-x   2 root root 4096 Apr 14 19:09 service/
 -rw-r--r--   1 root root  344 Apr 14 19:09 tree-control-test.css
 drwxr-xr-x   2 root root 4096 Apr 14 19:09 users/
 drwxr-xr-x   2 root root 4096 Apr 14 19:09 valve/
 drwxr-xr-x   3 root root 4096 Jul 10 16:53 WEB-INF/
 
 Simon
 
   
 
 -Original Message-
 From: David Smith [mailto:[EMAIL PROTECTED]
 Sent: 13 July 2006 12:49
 To: Tomcat Users List
 Subject: Re: HTTP Status 503 - Servlet admin.login_jsp is currently 
 unavailable
 
 There has to be some messages about the admin webapp.  The 
 only way to 
 not have any is if admin.xml is not stored in the correct 
 place.  Even 
 bad permissions should generate an exception of some sort 
 attempting 
 to read it.  So to recap, here's how your file structure 
 looks and all 
 the permissions are set correctly?:
 
 /usr/local/jakarta/jakarta-tomcat-5.5.9
 - conf
 - Catalina
 - localhost
 ROOT.xml
 manager.xml
 admin.xml (hopefully the original as 
 provided by the 
 downloaded admin webapp distribution)
 - server
 - lib
 [server jar files here]
 - webapps
 manager
 admin
 - webapps
 - ROOT
 
 Admittedly I've abbreviated and not included some 
 directories.  Also, 
 do you have a catalina.out log file?
 What does that show.
 
 --David
 
 simon jones wrote:
 
 
 
 Hi David,
 
 Ok I did as instructed and tried the admin.  Now I get the 
 Tomcat's 
 administration web application is no longer installed by default.
 Download and install the admin package to use it.  error.
 
 No entries in the log either, where next?
 
 Cheers,
 
 Simon
 
  
 
   
 
 -Original Message-
 From: David Smith [mailto:[EMAIL PROTECTED]
 Sent: 12 July 2006 19:58
 To: Tomcat Users List
 Subject: Re: HTTP Status 503 - Servlet admin.login_jsp is 
 currently 
 unavailable
 
 I also don't see even one reference to the admin webapp.  
 This tells me something fishy is going on.
 
 Try this:
 
 First, I see you copied the admin webapp to server/webapps
 
 
 instead of
 
 
 moving it.  Delete the admin webapp in 
 /usr/local/jakarta/jakarta-tomcat-5.5.9/webapps.  It's just
 
 
 going to
 
 
 be confusing to leave a copy there (for both you and tomcat).
 
 Second, there should be an admin.xml file in the same
 
 
 archive you got
 
 
 the admin webapp from.  That should be placed in 
 /usr/local/jakarta/jakarta-tomcat-5.5.9/conf/Catalina/localhos
 t right along side manager.xml.
 
 Now restart tomcat and take a look for messages related to
 
 
 the admin
 
 
 webapp.
 
 --David
 
 simon jones wrote:
 

 
 
 
 Hi David,
 
 Ok looks as thought the files are in the correct place:
 
 cp -r admin 
 /usr/local/jakarta/jakarta-tomcat-5.5.9/server/webapps
 
 There's nothing in tail -f
 /usr/local/jakarta/jakarta-tomcat-5.5.9/logs/tomcat.log
 
 When I do a tail and access the admin it doesn't do anything.
 
 DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
 org.apache.catalina.startup.HostConfig - Checking
   
 
 context[] redeploy
 
 
 resource
 /usr/local/jakarta/jakarta-tomcat-5.5.9/webapps/ROOT/META-INF
  
 
   
 
 /context.x
   

RE: RE: XML Fileupload 8k with mod_jk

2006-07-13 Thread Thilko Richter
Hi Martina,


I´ve get now some debug informations from mod_jk. As far as I´ve understand 
them, apache sends 8K of data, which should be the packet size. It seems that 
no packets follow?



=

[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] jk_handler::mod_jk.c (1839): 
Into handler jakarta-servlet worker=ajp13 r-proxyreq=0
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] 
wc_get_worker_for_name::jk_worker.c (111): found a worker ajp13
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] wc_maintain::jk_worker.c (301): 
Maintaining worker ajp13
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] init_ws_service::mod_jk.c (531): 
Service protocol=HTTP/1.1 method=POST host=(null) addrr=127.0.0.1 
name=localhost port=80 auth=(null) user=(null) laddr=127.0.0.1 raddr=127.0.0.1
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] 
ajp_get_endpoint::jk_ajp_common.c (2131): acquired connection cache slot=0
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] 
ajp_marshal_into_msgb::jk_ajp_common.c (566): ajp marshaling done
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] ajp_service::jk_ajp_common.c 
(1670): processing with 3 retries
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): sending to ajp13 pos=4 
len=192 max=8192
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 12 34 00 BC 02 
04 00 08 48 54 54 50 2F 31 2E 31  - .4..HTTP/1.1
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 001000 00 19 2F 73 
75 6E 72 65 61 64 65 72 2F 44 61  - .../sunreader/Da
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 002074 61 4C 6F 67 
67 65 72 47 61 74 65 00 00 09 31  - taLoggerGate...1
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 003032 37 2E 30 2E 
30 2E 31 00 FF FF 00 09 6C 6F 63  - 27.0.0.1.loc
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 004061 6C 68 6F 73 
74 00 00 50 00 00 04 A0 07 00 08  - alhost..P...
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 005074 65 78 74 2F 
78 6D 6C 00 A0 0E 00 1E 4A 61 6B  - text/xml.Jak
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 006061 72 74 61 20 
43 6F 6D 6D 6F 6E 73 2D 48 74 74  - arta.Commons-Htt
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 007070 43 6C 69 65 
6E 74 2F 33 2E 30 00 A0 0B 00 09  - pClient/3.0.
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 00806C 6F 63 61 6C 
68 6F 73 74 00 A0 08 00 06 32 32  - localhost.22
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 009038 34 30 37 00 
05 00 26 64 61 74 61 74 79 70 65  - 8407...datatype
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 00a03D 6C 6F 67 46 
69 6C 65 26 6C 6F 67 67 65 72 3D  - =logFilelogger=
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 00b044 4C 2D 43 4F 
31 30 31 2D 30 30 36 36 35 00 FF  - DL-CO101-00665..
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] 
ajp_send_request::jk_ajp_common.c (1261): request body to send 228407 - request 
body to resend 0
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): sending to ajp13 pos=4 
len=8192 max=8192
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 12 34 1F FC 1F 
FA 3E 30 36 30 32 20 30 36 32 38  - .40602.0628
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 001031 36 20 46 53 
59 53 20 49 4E 46 4F 20 70 75 74  - 16.FSYS.INFO.put
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 00205F 68 69 73 74 
6F 72 79 3A 20 73 6C 6F 74 20 32  - _history:.slot.2
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 00302C 20 74 72 69 
61 6C 73 20 33 2C 20 77 64 6F 67  - ,.trials.3,.wdog
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 004020 30 2C 20 6C 
6F 67 5F 65 61 72 6C 79 20 35 0A  - .0,.log_early.5.
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 00503E 30 36 30 32 
20 30 36 32 38 31 36 20 46 53 59  - 0602.062816.FSY
[Wed Jul 12 16:38:44 2006] [3928:3136] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 006053 20 49 4E 46 
4F 20 70 75 74 5F 68 69 73 74 6F  - 

RE: HTTP Status 503 - Servlet admin.login_jsp is currently unavailable

2006-07-13 Thread simon jones
Don't suppose you know how to give customers with jsp enable space
access to the error logs too do you? 

 -Original Message-
 From: David Smith [mailto:[EMAIL PROTECTED] 
 Sent: 13 July 2006 13:01
 To: Tomcat Users List
 Subject: Re: HTTP Status 503 - Servlet admin.login_jsp is 
 currently unavailable
 
 Look at permissions for admin.xml -- root.root and read/write 
 only by owner?  Try doing this:
 
 (from /usr/local/jakarta/jakarta-tomcat-5.5.9)
 chown tomcat.nobody conf/Catalina/localhost/admin.xml chown 
 -R tomcat.nobody server/webapps/admin
 
 Then restart tomcat
 
 --David
 
 simon jones wrote:
 
 Think it is most likely me having the files in the wrong 
 place by the 
 looks of it, here's my dirs with file list:
 
 /usr/local/jakarta/jakarta-tomcat-5.5.9/conf/Catalina/localhost
 
 drwxr-xr-x  2 tomcat nobody 4096 Jul 12 15:27 ./ drwxr-xr-x  
 3 tomcat 
 nobody 4096 Mar 26  2005 ../
 -rw---  1 root   root566 Jul 12 15:27 admin.xml
 -rw---  1 tomcat nobody  299 Mar 26  2005 host-manager.xml
 -rw---  1 tomcat nobody  454 Mar 26  2005 manager.xml
 
 /usr/src/apache-tomcat-5.5.17/server/webapps/admin
 
 drwxr-xr-x  13 root root 4096 Apr 14 19:09 ./
 drwxr-xr-x   3 root root 4096 Jul 10 16:53 ../
 -rw-r--r--   1 root root 2151 Apr 14 19:09 admin.css
 -rw-r--r--   1 root root  586 Apr 14 19:09 admin.xml
 drwxr-xr-x   2 root root 4096 Apr 14 19:09 connector/
 drwxr-xr-x   2 root root 4096 Apr 14 19:09 context/
 drwxr-xr-x   2 root root 4096 Apr 14 19:09 host/
 drwxr-xr-x   2 root root 4096 Jul 10 16:53 images/
 drwxr-xr-x   2 root root 4096 Apr 14 19:09 realm/
 drwxr-xr-x   2 root root 4096 Apr 14 19:09 resources/
 drwxr-xr-x   2 root root 4096 Apr 14 19:09 server/
 drwxr-xr-x   2 root root 4096 Apr 14 19:09 service/
 -rw-r--r--   1 root root  344 Apr 14 19:09 tree-control-test.css
 drwxr-xr-x   2 root root 4096 Apr 14 19:09 users/
 drwxr-xr-x   2 root root 4096 Apr 14 19:09 valve/
 drwxr-xr-x   3 root root 4096 Jul 10 16:53 WEB-INF/
 
 Simon
 
   
 
 -Original Message-
 From: David Smith [mailto:[EMAIL PROTECTED]
 Sent: 13 July 2006 12:49
 To: Tomcat Users List
 Subject: Re: HTTP Status 503 - Servlet admin.login_jsp is currently 
 unavailable
 
 There has to be some messages about the admin webapp.  The 
 only way to 
 not have any is if admin.xml is not stored in the correct 
 place.  Even 
 bad permissions should generate an exception of some sort 
 attempting 
 to read it.  So to recap, here's how your file structure 
 looks and all 
 the permissions are set correctly?:
 
 /usr/local/jakarta/jakarta-tomcat-5.5.9
 - conf
 - Catalina
 - localhost
 ROOT.xml
 manager.xml
 admin.xml (hopefully the original as 
 provided by the 
 downloaded admin webapp distribution)
 - server
 - lib
 [server jar files here]
 - webapps
 manager
 admin
 - webapps
 - ROOT
 
 Admittedly I've abbreviated and not included some 
 directories.  Also, 
 do you have a catalina.out log file?
 What does that show.
 
 --David
 
 simon jones wrote:
 
 
 
 Hi David,
 
 Ok I did as instructed and tried the admin.  Now I get the 
 Tomcat's 
 administration web application is no longer installed by default.
 Download and install the admin package to use it.  error.
 
 No entries in the log either, where next?
 
 Cheers,
 
 Simon
 
  
 
   
 
 -Original Message-
 From: David Smith [mailto:[EMAIL PROTECTED]
 Sent: 12 July 2006 19:58
 To: Tomcat Users List
 Subject: Re: HTTP Status 503 - Servlet admin.login_jsp is 
 currently 
 unavailable
 
 I also don't see even one reference to the admin webapp.  
 This tells me something fishy is going on.
 
 Try this:
 
 First, I see you copied the admin webapp to server/webapps
 
 
 instead of
 
 
 moving it.  Delete the admin webapp in 
 /usr/local/jakarta/jakarta-tomcat-5.5.9/webapps.  It's just
 
 
 going to
 
 
 be confusing to leave a copy there (for both you and tomcat).
 
 Second, there should be an admin.xml file in the same
 
 
 archive you got
 
 
 the admin webapp from.  That should be placed in 
 /usr/local/jakarta/jakarta-tomcat-5.5.9/conf/Catalina/localhos
 t right along side manager.xml.
 
 Now restart tomcat and take a look for messages related to
 
 
 the admin
 
 
 webapp.
 
 --David
 
 simon jones wrote:
 

 
 
 
 Hi David,
 
 Ok looks as thought the files are in the correct place:
 
 cp -r admin 
 /usr/local/jakarta/jakarta-tomcat-5.5.9/server/webapps
 
 There's nothing in tail -f
 /usr/local/jakarta/jakarta-tomcat-5.5.9/logs/tomcat.log
 
 When I do a tail and access the admin it doesn't do anything.
 
 DEBUG ContainerBackgroundProcessor[StandardEngine[Catalina]]
 org.apache.catalina.startup.HostConfig - Checking
   
 
 context[] redeploy
 
 
 resource
 /usr/local/jakarta/jakarta-tomcat-5.5.9/webapps/ROOT/META-INF
  
 
  

RE: Run shell script when web application start/restart

2006-07-13 Thread Mead, Jennifer L - VSCM
On my box the start and stop scripts are just that.  .sh shell scripts.
In your case I would just copy them to a save file and put in an
execution string.  The start scripts are in tomcat_home/bin.  

Jen 

-Original Message-
From: Tom Potter [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 13, 2006 5:28 AM
To: users@tomcat.apache.org
Subject: Run shell script when web application start/restart

The JSP pages in the Web application I install under Tomcat 4.1.30 are
based on some configuration files the user wants to modify, thus I wrote
a shell script to rebuild the JSP pages and repopulate the webapps
folder.

My question is that is there a way to hook up my shell script with the
webapp start/stop proces so it would run at every startup, in other
words the user would activate my script by restarting the application ?

Thanks
Thomas

-
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 shutdowns unexpectedly - Please help

2006-07-13 Thread Mead, Jennifer L - VSCM
It sounds like that SUN box is either configured different than the
other SUN machines or you have some bad memory modules in it.

Jen 

-Original Message-
From: Arunan Kannan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 13, 2006 4:59 AM
To: Tomcat Users List; Martin Gainty
Subject: Re: Tomcat shutdowns unexpectedly - Please help

Hi,

Even after making the timeout parameter to 0, still the problem exist.

Even I ran a continous polling application in the tomcat and still the
problem exist.

The tomcat server gets shutdown unexpectedly after some irregular period
of time 3 or 4 or 6 hrs. However this problem doesn't exists in other
sun machines.
Only in a particular system it is occuring. Please help me out to find
whats the problem with the system and the tomcat server.
Machine Detail: SUN OS 5.8
Tomcat versio: 4.1

Please help.
Thanks again.


On 7/11/06, Arunan Kannan [EMAIL PROTECTED] wrote:

  Hi David, Martin, and Alireza,

 Thank you very much for your comments and suggestions. Thanks a lot.

 Hi David,
 There is no logs corresponding to this shutdown anywhere on the 
 system. I couldn't find any thing relevent to this crash on syslog or 
 at any other place. Thanks for your help.

 Hi Martin,
 Here is the log from catalina.out file. Please have a look at it.
 Jul 10, 2006 11:57:18 PM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on http-8080 Starting service 
 Tomcat-Standalone Apache Tomcat/4.1.31 Jul 10, 2006 11:57:21 PM 
 org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on http-8080 Jul 10, 2006 11:57:21 PM 
 org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 listening on /0.0.0.0:8009 Jul 10, 2006 11:57:21 PM 
 org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=2/53  config=/temp/jakarta-tomcat-4.1.31
 /conf/jk2.pro
 perties
 Stopping service Tomcat-Standalone

 and here are the logs from localhost_admin_log.2006-07-10.txt

 2006-07-11 05:01:40 StandardContext[/admin]: Servlet /admin threw 
 load() excepti on
 javax.servlet.ServletException: Wrapper cannot find servlet class 
 org.apache.web app.admin.ApplicationServlet or a class it depends on
 at org.apache.catalina.core.StandardWrapper.loadServlet
 (StandardWrapper.
 java:844)
 6)  at org.apache.catalina.core.StandardWrapper.load(
 StandardWrapper.java:77
 t.ja

3363)rg.apache.catalina.core.StandardContext.loadOnStartup(StandardConte
x
 586)at org.apache.catalina.core.StandardContext.start(
 StandardContext.java:3
 .java:774) org.apache.catalina.core.ContainerBase.addChildInternal
 (ContainerBase
 0)  at org.apache.catalina.core.ContainerBase.addChild (
 ContainerBase.java:76
 
 --at java.lang.reflect.Method.invoke(Method.java:324)
 at 
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)

 2006-07-11 05:01:40 StandardWrapper[/admin:invoker]: Loading container

 servlet i nvoker

 I couldn't understand much. Can you please let me know some more info 
 about this.

 As you said, I tried to find some timeout parameters in the conf
files.

 !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 9080 -- 
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=9080 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=9443
acceptCount=100 debug=0 connectionTimeout=2
useURIValidationHack=false disableUploadTimeout=true /
 !-- Note : To disable connection timeouts, set connectionTimeout 
 value  to -1 --


 In the server.xml the ConnectionTimeout is set to 2. I will change

 that to 0 and let you know the results. Thanks for your help.

 Hi Alireza,

 The tomcat I am using is not configured with apache.

 Initially I run some sample application and left it ideal for some 3 
 to 4 hr. There is no action done in this time. Then the tomcat gets 
 shutdown unexpectedly.

 I will try your suggestion and let you know the result. Thanks for 
 your help.

 Thanks again for all,

 Thanks and Regards,

 Arunan


  On 7/11/06, Martin Gainty [EMAIL PROTECTED] wrote:
 
  I would also look at workers.properties files and make sure 
  socket_KeepAlive is set on Also socket_timeout is set to 0 so it 
  never times out
 
  M-
  
  * This email message and any files transmitted with it contain 
  confidential information intended only for the person(s) to whom 
  this email message is addressed.  If you have received this email 
  message in error, please notify the sender immediately by telephone 
  or email and destroy the original message without making a copy.  
  Thank you.
 
 
 
  - Original Message -
  From: Mr Alireza Fattahi [EMAIL PROTECTED]
  To: Tomcat Users List users@tomcat.apache.org; Martin Gainty 

  [EMAIL PROTECTED]
  Sent: Tuesday, July 11, 2006 9:45 AM
  Subject: Re: Tomcat shutdowns unexpectedly - Please help
 
 
   Hi,
  
   I hope I get it correctly, the 

Re: Tomcat shutdowns unexpectedly - Please help

2006-07-13 Thread Arunan Kannan

Can you please let me know how to diagnoise the issue further
please help

thanks again,
arunan


On 7/13/06, Mead, Jennifer L - VSCM [EMAIL PROTECTED] wrote:


It sounds like that SUN box is either configured different than the
other SUN machines or you have some bad memory modules in it.

Jen

-Original Message-
From: Arunan Kannan [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 13, 2006 4:59 AM
To: Tomcat Users List; Martin Gainty
Subject: Re: Tomcat shutdowns unexpectedly - Please help

Hi,

Even after making the timeout parameter to 0, still the problem exist.

Even I ran a continous polling application in the tomcat and still the
problem exist.

The tomcat server gets shutdown unexpectedly after some irregular period
of time 3 or 4 or 6 hrs. However this problem doesn't exists in other
sun machines.
Only in a particular system it is occuring. Please help me out to find
whats the problem with the system and the tomcat server.
Machine Detail: SUN OS 5.8
Tomcat versio: 4.1

Please help.
Thanks again.


On 7/11/06, Arunan Kannan [EMAIL PROTECTED] wrote:

  Hi David, Martin, and Alireza,

 Thank you very much for your comments and suggestions. Thanks a lot.

 Hi David,
 There is no logs corresponding to this shutdown anywhere on the
 system. I couldn't find any thing relevent to this crash on syslog or
 at any other place. Thanks for your help.

 Hi Martin,
 Here is the log from catalina.out file. Please have a look at it.
 Jul 10, 2006 11:57:18 PM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on http-8080 Starting service
 Tomcat-Standalone Apache Tomcat/4.1.31 Jul 10, 2006 11:57:21 PM
 org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on http-8080 Jul 10, 2006 11:57:21 PM
 org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 listening on /0.0.0.0:8009 Jul 10, 2006 11:57:21 PM
 org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=2/53  config=/temp/jakarta-tomcat-4.1.31
 /conf/jk2.pro
 perties
 Stopping service Tomcat-Standalone

 and here are the logs from localhost_admin_log.2006-07-10.txt

 2006-07-11 05:01:40 StandardContext[/admin]: Servlet /admin threw
 load() excepti on
 javax.servlet.ServletException: Wrapper cannot find servlet class
 org.apache.web app.admin.ApplicationServlet or a class it depends on
 at org.apache.catalina.core.StandardWrapper.loadServlet
 (StandardWrapper.
 java:844)
 6)  at org.apache.catalina.core.StandardWrapper.load(
 StandardWrapper.java:77
 t.ja

3363)rg.apache.catalina.core.StandardContext.loadOnStartup(StandardConte
x
 586)at org.apache.catalina.core.StandardContext.start(
 StandardContext.java:3
 .java:774) org.apache.catalina.core.ContainerBase.addChildInternal
 (ContainerBase
 0)  at org.apache.catalina.core.ContainerBase.addChild (
 ContainerBase.java:76
 
 --at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)

 2006-07-11 05:01:40 StandardWrapper[/admin:invoker]: Loading container

 servlet i nvoker

 I couldn't understand much. Can you please let me know some more info
 about this.

 As you said, I tried to find some timeout parameters in the conf
files.

 !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 9080 --
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=9080 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=9443
acceptCount=100 debug=0 connectionTimeout=2
useURIValidationHack=false disableUploadTimeout=true /
 !-- Note : To disable connection timeouts, set connectionTimeout
 value  to -1 --


 In the server.xml the ConnectionTimeout is set to 2. I will change

 that to 0 and let you know the results. Thanks for your help.

 Hi Alireza,

 The tomcat I am using is not configured with apache.

 Initially I run some sample application and left it ideal for some 3
 to 4 hr. There is no action done in this time. Then the tomcat gets
 shutdown unexpectedly.

 I will try your suggestion and let you know the result. Thanks for
 your help.

 Thanks again for all,

 Thanks and Regards,

 Arunan


  On 7/11/06, Martin Gainty [EMAIL PROTECTED] wrote:
 
  I would also look at workers.properties files and make sure
  socket_KeepAlive is set on Also socket_timeout is set to 0 so it
  never times out
 
  M-
  
  * This email message and any files transmitted with it contain
  confidential information intended only for the person(s) to whom
  this email message is addressed.  If you have received this email
  message in error, please notify the sender immediately by telephone
  or email and destroy the original message without making a copy.
  Thank you.
 
 
 
  - Original Message -
  From: Mr Alireza Fattahi [EMAIL PROTECTED]
  To: Tomcat Users List users@tomcat.apache.org; Martin Gainty 

  [EMAIL PROTECTED]
  Sent: 

Re: Run shell script when web application start/restart

2006-07-13 Thread Tom Potter

Jen,

Just to make sure that we both talk about the same events :
I don't want to restart the whole tomcat, only one web application,
that is, by clicking on the start link(or restart) in on the admin page.
I don't see how your suggestion would help me... if I'm missing
something please make it clear to me...

Rgds
Thomas

On 7/13/06, Mead, Jennifer L - VSCM [EMAIL PROTECTED] wrote:


On my box the start and stop scripts are just that.  .sh shell scripts.
In your case I would just copy them to a save file and put in an
execution string.  The start scripts are in tomcat_home/bin.

Jen

-Original Message-
From: Tom Potter [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 13, 2006 5:28 AM
To: users@tomcat.apache.org
Subject: Run shell script when web application start/restart

The JSP pages in the Web application I install under Tomcat 4.1.30 are
based on some configuration files the user wants to modify, thus I wrote
a shell script to rebuild the JSP pages and repopulate the webapps
folder.

My question is that is there a way to hook up my shell script with the
webapp start/stop proces so it would run at every startup, in other
words the user would activate my script by restarting the application ?

Thanks
Thomas

-
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: Run shell script when web application start/restart

2006-07-13 Thread Avi Deitcher
I don't think so. You could, theoretically, have a context listener that
then executes a shell script, but that is really messy, and the security
manager probably won't even allow it.

If I understand correctly, you want to have the following happen on
context restart:
- JSP pages get rebuilt from some macros or config files

I can think of two ways to do this. The not-so-great way is to have a
context listener read the config files and generate the pages. The
problem is that I don't know when JSP pages are compiled by the Tomcat
engine - before or after context listeners are invoked. I believe you
can force a re-compilation of the JSP pages at that point, but I am not
sure how.

The much smarter way is to ask why your JSP pages need to be
macro/dynamically generated. JSP includes enough logic tags. Why not
refactor your JSP pages so that they read the configuration files and
output the appropriate information? This would be much cleaner, and
probably wouldn't even require context restart?

Tom Potter wrote:

 Jen,

 Just to make sure that we both talk about the same events :
 I don't want to restart the whole tomcat, only one web application,
 that is, by clicking on the start link(or restart) in on the admin page.
 I don't see how your suggestion would help me... if I'm missing
 something please make it clear to me...

 Rgds
 Thomas

 On 7/13/06, Mead, Jennifer L - VSCM [EMAIL PROTECTED] wrote:


 On my box the start and stop scripts are just that.  .sh shell scripts.
 In your case I would just copy them to a save file and put in an
 execution string.  The start scripts are in tomcat_home/bin.

 Jen

 -Original Message-
 From: Tom Potter [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 13, 2006 5:28 AM
 To: users@tomcat.apache.org
 Subject: Run shell script when web application start/restart

 The JSP pages in the Web application I install under Tomcat 4.1.30 are
 based on some configuration files the user wants to modify, thus I wrote
 a shell script to rebuild the JSP pages and repopulate the webapps
 folder.

 My question is that is there a way to hook up my shell script with the
 webapp start/stop proces so it would run at every startup, in other
 words the user would activate my script by restarting the application ?

 Thanks
 Thomas

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




-- 
__
Avi Deitcher
[EMAIL PROTECTED]



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



RE: Tomcat shutdowns unexpectedly - Please help

2006-07-13 Thread Mead, Jennifer L - VSCM
Are you the unix admin?  Or do you have an unix admin to help out?
There is limited things one can do without being root.  The easy stuff
to do is check out how much memory there is, how much Gig on that
particular machine, look at the swap size that is configured, run ipcs
to look at what memory is loaded and how it is being used, compare that
to the other boxes.  Possibly top is loaded on the boxes.  The system
admin has other tools available to them that help further.  You can send
your core dumps off to SUN.  If you have the machines configured exactly
the same in every way yet one is dieing then I suspect it is hardware
related.

Jen 

-Original Message-
From: Arunan Kannan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 13, 2006 7:03 AM
To: Tomcat Users List
Subject: Re: Tomcat shutdowns unexpectedly - Please help

Can you please let me know how to diagnoise the issue further please
help

thanks again,
arunan


On 7/13/06, Mead, Jennifer L - VSCM [EMAIL PROTECTED] wrote:

 It sounds like that SUN box is either configured different than the 
 other SUN machines or you have some bad memory modules in it.

 Jen

 -Original Message-
 From: Arunan Kannan [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 13, 2006 4:59 AM
 To: Tomcat Users List; Martin Gainty
 Subject: Re: Tomcat shutdowns unexpectedly - Please help

 Hi,

 Even after making the timeout parameter to 0, still the problem exist.

 Even I ran a continous polling application in the tomcat and still the

 problem exist.

 The tomcat server gets shutdown unexpectedly after some irregular 
 period of time 3 or 4 or 6 hrs. However this problem doesn't exists in

 other sun machines.
 Only in a particular system it is occuring. Please help me out to find

 whats the problem with the system and the tomcat server.
 Machine Detail: SUN OS 5.8
 Tomcat versio: 4.1

 Please help.
 Thanks again.


 On 7/11/06, Arunan Kannan [EMAIL PROTECTED] wrote:
 
   Hi David, Martin, and Alireza,
 
  Thank you very much for your comments and suggestions. Thanks a lot.
 
  Hi David,
  There is no logs corresponding to this shutdown anywhere on the 
  system. I couldn't find any thing relevent to this crash on syslog 
  or at any other place. Thanks for your help.
 
  Hi Martin,
  Here is the log from catalina.out file. Please have a look at it.
  Jul 10, 2006 11:57:18 PM org.apache.coyote.http11.Http11Protocol 
  init
  INFO: Initializing Coyote HTTP/1.1 on http-8080 Starting service 
  Tomcat-Standalone Apache Tomcat/4.1.31 Jul 10, 2006 11:57:21 PM 
  org.apache.coyote.http11.Http11Protocol start
  INFO: Starting Coyote HTTP/1.1 on http-8080 Jul 10, 2006 11:57:21 PM

  org.apache.jk.common.ChannelSocket init
  INFO: JK2: ajp13 listening on /0.0.0.0:8009 Jul 10, 2006 11:57:21 PM

  org.apache.jk.server.JkMain start
  INFO: Jk running ID=0 time=2/53  config=/temp/jakarta-tomcat-4.1.31
  /conf/jk2.pro
  perties
  Stopping service Tomcat-Standalone
 
  and here are the logs from localhost_admin_log.2006-07-10.txt
 
  2006-07-11 05:01:40 StandardContext[/admin]: Servlet /admin threw
  load() excepti on
  javax.servlet.ServletException: Wrapper cannot find servlet class 
  org.apache.web app.admin.ApplicationServlet or a class it depends on
  at org.apache.catalina.core.StandardWrapper.loadServlet
  (StandardWrapper.
  java:844)
  6)  at org.apache.catalina.core.StandardWrapper.load(
  StandardWrapper.java:77
  t.ja
 
 3363)rg.apache.catalina.core.StandardContext.loadOnStartup(StandardCon
 te
 x
  586)at org.apache.catalina.core.StandardContext.start(
  StandardContext.java:3
  .java:774) org.apache.catalina.core.ContainerBase.addChildInternal
  (ContainerBase
  0)  at org.apache.catalina.core.ContainerBase.addChild (
  ContainerBase.java:76
  
  --at java.lang.reflect.Method.invoke(Method.java:324)
  at
  org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
 
  2006-07-11 05:01:40 StandardWrapper[/admin:invoker]: Loading 
  container

  servlet i nvoker
 
  I couldn't understand much. Can you please let me know some more 
  info about this.
 
  As you said, I tried to find some timeout parameters in the conf
 files.
 
  !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 9080 -- 
  Connector className=org.apache.coyote.tomcat4.CoyoteConnector
 port=9080 minProcessors=5 maxProcessors=75
 enableLookups=true redirectPort=9443
 acceptCount=100 debug=0 connectionTimeout=2
 useURIValidationHack=false disableUploadTimeout=true 
  /
  !-- Note : To disable connection timeouts, set connectionTimeout 
  value  to -1 --
 
 
  In the server.xml the ConnectionTimeout is set to 2. I will 
  change

  that to 0 and let you know the results. Thanks for your help.
 
  Hi Alireza,
 
  The tomcat I am using is not configured with apache.
 
  Initially I run some sample application and left it ideal for some 3

  to 4 hr. There is no action done in this time. Then the tomcat gets 

Re: Run shell script when web application start/restart

2006-07-13 Thread Tom Potter

The reason for me choosing the first, messy solution was that
this had to be a quick fix, rewriting the logic in the JSP pages
was out of the question (and way above the allocated budget ;) ).

Of course I had the shell scripts and configuration files so it
seemed just the right solution to  use these tools in the startup
process of the webapp.

It seems that I can convince the cusomer to just run the shell
scripts that modify(actually generate) the JSP pages but then I face
an other problem. After generating and copying the JSP pages in the
right place how can I tell tomcat (from the shell script) to restart
the application (or to recompile the pages) ?

Rgds
Thomas

On 7/13/06, Avi Deitcher [EMAIL PROTECTED] wrote:


I don't think so. You could, theoretically, have a context listener that
then executes a shell script, but that is really messy, and the security
manager probably won't even allow it.

If I understand correctly, you want to have the following happen on
context restart:
- JSP pages get rebuilt from some macros or config files

I can think of two ways to do this. The not-so-great way is to have a
context listener read the config files and generate the pages. The
problem is that I don't know when JSP pages are compiled by the Tomcat
engine - before or after context listeners are invoked. I believe you
can force a re-compilation of the JSP pages at that point, but I am not
sure how.

The much smarter way is to ask why your JSP pages need to be
macro/dynamically generated. JSP includes enough logic tags. Why not
refactor your JSP pages so that they read the configuration files and
output the appropriate information? This would be much cleaner, and
probably wouldn't even require context restart?

Tom Potter wrote:

 Jen,

 Just to make sure that we both talk about the same events :
 I don't want to restart the whole tomcat, only one web application,
 that is, by clicking on the start link(or restart) in on the admin page.
 I don't see how your suggestion would help me... if I'm missing
 something please make it clear to me...

 Rgds
 Thomas

 On 7/13/06, Mead, Jennifer L - VSCM [EMAIL PROTECTED] wrote:


 On my box the start and stop scripts are just that.  .sh shell scripts.
 In your case I would just copy them to a save file and put in an
 execution string.  The start scripts are in tomcat_home/bin.

 Jen

 -Original Message-
 From: Tom Potter [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 13, 2006 5:28 AM
 To: users@tomcat.apache.org
 Subject: Run shell script when web application start/restart

 The JSP pages in the Web application I install under Tomcat 4.1.30 are
 based on some configuration files the user wants to modify, thus I
wrote
 a shell script to rebuild the JSP pages and repopulate the webapps
 folder.

 My question is that is there a way to hook up my shell script with the
 webapp start/stop proces so it would run at every startup, in other
 words the user would activate my script by restarting the application ?

 Thanks
 Thomas

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




--
__
Avi Deitcher
[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: Run shell script when web application start/restart

2006-07-13 Thread Avi Deitcher
Well, if you have to, from the shell script, you can probably connect to
the tomcat manager URL and tell it to do the right thing. Still, all and
all, it is hard to believe it isn't faster to refactor the JSP pages.

Tom Potter wrote:

 The reason for me choosing the first, messy solution was that
 this had to be a quick fix, rewriting the logic in the JSP pages
 was out of the question (and way above the allocated budget ;) ).

 Of course I had the shell scripts and configuration files so it
 seemed just the right solution to  use these tools in the startup
 process of the webapp.

 It seems that I can convince the cusomer to just run the shell
 scripts that modify(actually generate) the JSP pages but then I face
 an other problem. After generating and copying the JSP pages in the
 right place how can I tell tomcat (from the shell script) to restart
 the application (or to recompile the pages) ?

 Rgds
 Thomas

 On 7/13/06, Avi Deitcher [EMAIL PROTECTED] wrote:


 I don't think so. You could, theoretically, have a context listener that
 then executes a shell script, but that is really messy, and the security
 manager probably won't even allow it.

 If I understand correctly, you want to have the following happen on
 context restart:
 - JSP pages get rebuilt from some macros or config files

 I can think of two ways to do this. The not-so-great way is to have a
 context listener read the config files and generate the pages. The
 problem is that I don't know when JSP pages are compiled by the Tomcat
 engine - before or after context listeners are invoked. I believe you
 can force a re-compilation of the JSP pages at that point, but I am not
 sure how.

 The much smarter way is to ask why your JSP pages need to be
 macro/dynamically generated. JSP includes enough logic tags. Why not
 refactor your JSP pages so that they read the configuration files and
 output the appropriate information? This would be much cleaner, and
 probably wouldn't even require context restart?

 Tom Potter wrote:

  Jen,
 
  Just to make sure that we both talk about the same events :
  I don't want to restart the whole tomcat, only one web application,
  that is, by clicking on the start link(or restart) in on the admin
 page.
  I don't see how your suggestion would help me... if I'm missing
  something please make it clear to me...
 
  Rgds
  Thomas
 
  On 7/13/06, Mead, Jennifer L - VSCM [EMAIL PROTECTED]
 wrote:
 
 
  On my box the start and stop scripts are just that.  .sh shell
 scripts.
  In your case I would just copy them to a save file and put in an
  execution string.  The start scripts are in tomcat_home/bin.
 
  Jen
 
  -Original Message-
  From: Tom Potter [mailto:[EMAIL PROTECTED]
  Sent: Thursday, July 13, 2006 5:28 AM
  To: users@tomcat.apache.org
  Subject: Run shell script when web application start/restart
 
  The JSP pages in the Web application I install under Tomcat 4.1.30
 are
  based on some configuration files the user wants to modify, thus I
 wrote
  a shell script to rebuild the JSP pages and repopulate the webapps
  folder.
 
  My question is that is there a way to hook up my shell script with
 the
  webapp start/stop proces so it would run at every startup, in other
  words the user would activate my script by restarting the
 application ?
 
  Thanks
  Thomas
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 -- 
 __
 Avi Deitcher
 [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]




-- 
__
Avi Deitcher
[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]



HowTo configure IP Filter XOR User Login

2006-07-13 Thread Peter . Neu
Hello,

I need to configure two different ways to login to an app. The first one 
is an ip filter which lets users with certain ip's enter withouth 
authentication. The second one is the usual user login. Both authentications
must work on an XOR basis. How can this be done? 
I recall in apache httpd there was the famous satifies clause. 

cheers,
Peter
-- 


Echte DSL-Flatrate dauerhaft für 0,- Euro*!
Feel free mit GMX DSL! http://www.gmx.net/de/go/dsl

-
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 load balancing URL redirefction not transparent to client

2006-07-13 Thread Filip Hanik - Dev Lists
redirection, as the name tells you, doesn't balance, it redirects, and 
there is nothing transparent about a redirection.
what you are looking for is called proxying, and the best example for 
that, would be mod_proxy in the Apache httpd web server.



Filip

Madhur K Tanwani wrote:

Hi,
I'm separating this question from my earlier thread on load balancing 
rules - it

seems that it was over-looked there since it did not fit in there :(.

My question is that when I use the default balancer webapp from Tomcat 
5.5 the
redirection rules redirect me to either jakarta, cnn or yahoo's site. 
However,

the redirection is not transparent to the user.

for example,
Client Types : http://servername:8080/balancer/
Balancer Redirects To: http://jakarta.apache.org
*The browser URL changes to  : http://jakarta.apache.org*

I think this change of URL does not make the transition transparent. 
Also, the
subsequent requests bypass the load balancer(LB) and are directly 
served by the
server (so what happens if the server is down - the LB has support for 
fail over

but the request never went via the LB)

Please could someone throw some light on the same?
Awaiting responses,




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



Filter IP

2006-07-13 Thread ngolehung84

Hi, 
How can I configure the Tomcat to filter the IP that can access my web site?
Thanks,
Hung.
-- 
View this message in context: 
http://www.nabble.com/Filter-IP-tf1938118.html#a5310734
Sent from the Tomcat - User forum 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: Filter IP

2006-07-13 Thread Markus Schönhaber
ngolehung84 wrote:
 How can I configure the Tomcat to filter the IP that can access my web
 site? Thanks,

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

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: Filter IP

2006-07-13 Thread Grant Johnson

Create a firewall rule.

ngolehung84 wrote:
Hi, 
How can I configure the Tomcat to filter the IP that can access my web site?

Thanks,
Hung.


-
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: HowTo configure IP Filter XOR User Login

2006-07-13 Thread David Smith
I know of nothing built-in to tomcat for that.  You could implement a 
request filter to handle the job although it would mean implementing 
your own authentication.


--David

[EMAIL PROTECTED] wrote:


Hello,

I need to configure two different ways to login to an app. The first one 
is an ip filter which lets users with certain ip's enter withouth authentication. The second one is the usual user login. Both authentications
must work on an XOR basis. How can this be done? 
I recall in apache httpd there was the famous satifies clause. 


cheers,
Peter
 




-
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 and OCSP

2006-07-13 Thread Mark Claassen
Does the new support for OCSP in Java 5.0 have any impact on how
certificates are handled in Tomcat?
http://java.sun.com/j2se/1.5.0/docs/guide/security/pki-tiger.html
 
It looks like it might just work if it is set up right in the java property
files.  I checked the mailing list archives and found a few old references
to OCSP, but nothing definitive.  Any guidance would be greatly appreciated.

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]



Deploying web application thats not located in the webapps directory

2006-07-13 Thread tomjerry

How can I deploy a web application that's not located in the webapps
directory in tomcat.My scenario is I have my app sitting in my folder say
C:\myfolder\myapp.

I have installed tomcat 4.1 on C:\myfolder. I have modified the server.xml
file 
Context path=/myapp docBase=c:\myfolder\myapp\webapp debug=0
 privileged=true workDir=c:\myfolder\myapp\tomcatwork 

Where webapp are where my jsp and images reside.
And tomcatwork is where my classes reside.

Is there any other modification I need to do inorder to run a web app which
is not sitting in the webapps folder of TOmcat 4.1.

I will really appreciate your help, as I am struggling with it for the past
2 weeks.

Thanks!
-- 
View this message in context: 
http://www.nabble.com/Deploying-web-application-thats-not-located-in-the-webapps-directory-tf1938730.html#a5312702
Sent from the Tomcat - User forum 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]



Frustrated by NoClassDefFound errors

2006-07-13 Thread Timothy Collett

Greetings.

I've been using Tomcat for some time now, but recently I started  
getting a series of intermittent NoClassDefFound errors.  They were  
first occurring with the Commons Configuration package (specifically,  
org.apache.commons.configuration.PropertiesConfiguration), though I  
was occasionally able to make those go away with some fiddling  
(unfortunately, I'm not quite sure just *which* fiddling it was that  
fixed it, aside from the times when I simply commented it out...).   
However, once that disappeared, I started having problems with the  
AspectJ package (org.aspectj.lang.Signature, being called from  
Class.forName).


In an effort to track down the problem, I created a fresh install of  
Tomcat, and it still cannot find the org.aspectj.lang.Signature.


The jars in question were all originally placed in the $CATALINA_HOME/ 
common/lib directory (after I did a little tidying up).  I've tried  
them in the shared/lib directory as well, to no avail.


I'm running Tomcat 5.5.17 on Mac OS X 10.4.7, with JDK 1.5.0_06.

Any help would be greatly appreciated.

Timothy Collett

--

Having been erased,
The document you're seeking
Must now be retyped.
~haiku~


-
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: starting with windows service

2006-07-13 Thread Vinu Varghese

Hi Sk,
Have u tried with the windows binary of tomcat ?

- regards
Vinu

Shinya Koizumi wrote:
Any word on this problem. 


SK.

- Original Message - 
From: Shinya Koizumi [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Monday, July 10, 2006 3:22 PM
Subject: starting with windows service


Recently i take over project developed by servlet.
Currently whenever start the web server I have to
click on the mycompany.bat file in CATALINA_HOME/bin folder

mycompany.bat===
@echo off
rem set CATALINA_OPTS=-Djava.security.debug=all

cd %CATALINA_HOME%\bin\
catalina start -security
pause
===

This way is different from how the tomcat starts up when starting
tomcat from windows menu? How can I change the configuration so that
the tomcat is going to start up just like when i click on mycompany.bat
file?

SK





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



  


--


Vinu Varghese
[EMAIL PROTECTED]
www.x-minds.org



Re: starting with windows service

2006-07-13 Thread Filip Hanik - Dev Lists

http://people.apache.org/~fhanik/wrapper.html

Vinu Varghese wrote:

Hi Sk,
Have u tried with the windows binary of tomcat ?

- regards
Vinu

Shinya Koizumi wrote:

Any word on this problem.
SK.

- Original Message - From: Shinya Koizumi 
[EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Monday, July 10, 2006 3:22 PM
Subject: starting with windows service


Recently i take over project developed by servlet.
Currently whenever start the web server I have to
click on the mycompany.bat file in CATALINA_HOME/bin folder

mycompany.bat===
@echo off
rem set CATALINA_OPTS=-Djava.security.debug=all

cd %CATALINA_HOME%\bin\
catalina start -security
pause
===

This way is different from how the tomcat starts up when starting
tomcat from windows menu? How can I change the configuration so that
the tomcat is going to start up just like when i click on mycompany.bat
file?

SK





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



  




No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.0/388 - Release Date: 7/13/2006
  



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



JDBC Realm error

2006-07-13 Thread Propes, Barry L
I'm not sure if this is the method of which to go about posting my problem or 
issue, but here goes.
 
I've tried configuring my JDBC realm in Tomcat 4.0.1  the last 2 days with no 
success. Sure, I can mess up the app or get the protection to engage and kick 
to a login page, but my Oracle configuration doesn't work.
 
For starters, I use the following driver and can connect regularly to do 
inserts, selects and updates just fine.
 
 Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
   String dbURL = jdbc:odbc:DSNName;
   String usernm = user_name;
   String pwd = password;
   Connection connection = DriverManager.getConnection(dbURL, usernm, pwd);
 
 
Here are some errors I get when I do the following:
Configure the Realm like so:
-
Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
driverName=sun.jdbc.odbc.JdbcOdbcDriver
 
connectionURL=jdbc:odbc:DSNName:@169.xxx.xx.xxx:1521:SID?user=user_name;password=password
 userTable=chg_users userNameCol=user_name userCredCol=user_pass
 userRoleTable=chg_users_roles roleNameCol=role_name /
-
 
Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Catalina.start: LifecycleException:  Exception opening database connection:  jav
a.sql.SQLException: invalid arguments in call
LifecycleException:  Exception opening database connection:  java.sql.SQLExcepti
on: invalid arguments in call
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
 
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307
)
at org.apache.catalina.core.StandardService.start(StandardService.java:3
88)
--
Then, if I try configuring like the following:
--
  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
driverName=sun.jdbc.odbc.JdbcOdbcDriver
   connectionURL=jdbc:odbc:DSNName:@169.xxx.xx.xxx:1521:SID.WORLD(or just 
SID w/o WORLD)
   connectionName=user_name
   connectionPassword=password
   userTable=chg_users userNameCol=user_name userCredCol=user_pass
   userRoleTable=chg_users_roles roleNameCol=role_name /
-
 
I get this error:
---
 
Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Catalina.start: LifecycleException:  Exception opening database connection:  jav
a.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name too long
LifecycleException:  Exception opening database connection:  java.sql.SQLExcepti
on: [Microsoft][ODBC Driver Manager] Data source name too long
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
 
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307
)

- Root Cause -
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name too lon
g
 
---
 
 
any help at all would be appreciated and if I went about posing my question in 
the wrong manner I apologize and will be glad to receive instuctions on the 
proper protocol 

Barry Propes
CitiFinancial Mortgage - 
Workflow Enhancements Group
972-657-1128

  

 


using addRepository to add additional classpaths

2006-07-13 Thread Barrie Selack
Is there an example of using this __ addRepository() __ either in a web
application, or a way to configure it at startup?

I need to have additional classpaths for migrating from Resin to Tomcat.

Any help is appreciated.

Barrie Selack



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



Tomcat Not An App Server

2006-07-13 Thread Mike Wannamaker
I know that Tomcat is not really an App Server like JBoss etc... However, if
I had a component that was not a web application and I wanted to start it
inside tomcat how could I do that ?

Is there some configuration file I would need to add something to in order
to have a component started and would I need to implement some Tomcat
interface to do it?

TIA
Mike Wannamaker


-
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: JDBC Realm error

2006-07-13 Thread David Smith
Why don't you try using the same dbURL you use in the java code -- 
jdbc:odbc:DSNName.  Also add in the attributes connectionName for the 
auth username to the database and connectionPassword for the auth 
password to same.


--David

Propes, Barry L wrote:


I'm not sure if this is the method of which to go about posting my problem or 
issue, but here goes.

I've tried configuring my JDBC realm in Tomcat 4.0.1  the last 2 days with no 
success. Sure, I can mess up the app or get the protection to engage and kick 
to a login page, but my Oracle configuration doesn't work.

For starters, I use the following driver and can connect regularly to do 
inserts, selects and updates just fine.

Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
  String dbURL = jdbc:odbc:DSNName;
  String usernm = user_name;
  String pwd = password;
  Connection connection = DriverManager.getConnection(dbURL, usernm, pwd);


Here are some errors I get when I do the following:
Configure the Realm like so:
-
   Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
   driverName=sun.jdbc.odbc.JdbcOdbcDriver
connectionURL=jdbc:odbc:DSNName:@169.xxx.xx.xxx:1521:SID?user=user_name;password=password
userTable=chg_users userNameCol=user_name userCredCol=user_pass
userRoleTable=chg_users_roles roleNameCol=role_name /
-

Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Catalina.start: LifecycleException:  Exception opening database connection:  jav
a.sql.SQLException: invalid arguments in call
LifecycleException:  Exception opening database connection:  java.sql.SQLExcepti
on: invalid arguments in call
   at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)

   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307
)
   at org.apache.catalina.core.StandardService.start(StandardService.java:3
88)
--
Then, if I try configuring like the following:
--
 Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
   driverName=sun.jdbc.odbc.JdbcOdbcDriver
  connectionURL=jdbc:odbc:DSNName:@169.xxx.xx.xxx:1521:SID.WORLD(or just 
SID w/o WORLD)
  connectionName=user_name
  connectionPassword=password
  userTable=chg_users userNameCol=user_name userCredCol=user_pass
  userRoleTable=chg_users_roles roleNameCol=role_name /
-

I get this error:
---

Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Catalina.start: LifecycleException:  Exception opening database connection:  jav
a.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name too long
LifecycleException:  Exception opening database connection:  java.sql.SQLExcepti
on: [Microsoft][ODBC Driver Manager] Data source name too long
   at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)

   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307
)
   
- Root Cause -
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name too lon
g

---


any help at all would be appreciated and if I went about posing my question in the wrong manner I apologize and will be glad to receive instuctions on the proper protocol 


Barry Propes
CitiFinancial Mortgage - 
Workflow Enhancements Group

972-657-1128

 




 




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



Re: Tomcat Not An App Server

2006-07-13 Thread Christopher Schultz
Mike,

 I know that Tomcat is not really an App Server like JBoss etc... 

Some may argue with me, but I would consider Tomcat an app server. JBoss
happens to be an EJB container as well as a servlet container (and
provides some other services as well), while Tomcat provides only the
servlet container and some directory services.

 However, if I had a component that was not a web application and I
 wanted to start it inside tomcat how could I do that ?

 Is there some configuration file I would need to add something to in 
 order to have a component started and would I need to implement some
 Tomcat interface to do it?

What do you want to run inside of Tomcat that is not a web application?
Tomcat is basically a web application container, so I'm not sure what
else you'd want to run.

-chris




signature.asc
Description: OpenPGP digital signature


Re: Tomcat Not An App Server

2006-07-13 Thread David Smith
Tomcat's not really an app server?  Geee really, I feel so inadequate 
now. :-(


Seriously, I think I've seen this religious war around here somewhere 
and it really depends on definition.  No, it's not a full J2EE 
container, but it's definitely an app server in my opinion.


Have you read the servlet spec and thought about the 
ServletContextListener for handling the start/shutdown of a component 
within your app?


--David

Mike Wannamaker wrote:


I know that Tomcat is not really an App Server like JBoss etc... However, if
I had a component that was not a web application and I wanted to start it
inside tomcat how could I do that ?

Is there some configuration file I would need to add something to in order
to have a component started and would I need to implement some Tomcat
interface to do it?

TIA
Mike Wannamaker


-
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: JDBC Realm error

2006-07-13 Thread Propes, Barry L
well, Tomcat didn't like that at all!

It tries to come up (the console) and then quickly disappears!

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 13, 2006 3:00 PM
To: Tomcat Users List
Subject: Re: JDBC Realm error


Why don't you try using the same dbURL you use in the java code -- 
jdbc:odbc:DSNName.  Also add in the attributes connectionName for the 
auth username to the database and connectionPassword for the auth 
password to same.

--David

Propes, Barry L wrote:

I'm not sure if this is the method of which to go about posting my problem or 
issue, but here goes.
 
I've tried configuring my JDBC realm in Tomcat 4.0.1  the last 2 days with no 
success. Sure, I can mess up the app or get the protection to engage and kick 
to a login page, but my Oracle configuration doesn't work.
 
For starters, I use the following driver and can connect regularly to do 
inserts, selects and updates just fine.
 
 Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
   String dbURL = jdbc:odbc:DSNName;
   String usernm = user_name;
   String pwd = password;
   Connection connection = DriverManager.getConnection(dbURL, usernm, pwd);
 
 
Here are some errors I get when I do the following:
Configure the Realm like so:
-
Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
driverName=sun.jdbc.odbc.JdbcOdbcDriver
 connectionURL=jdbc:odbc:DSNName:@169.xxx.xx.xxx:1521:SID?user=user_name;password=password
 userTable=chg_users userNameCol=user_name userCredCol=user_pass
 userRoleTable=chg_users_roles roleNameCol=role_name /
-
 
Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Catalina.start: LifecycleException:  Exception opening database connection:  
jav
a.sql.SQLException: invalid arguments in call
LifecycleException:  Exception opening database connection:  
java.sql.SQLExcepti
on: invalid arguments in call
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
at 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
 
at 
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307
)
at 
 org.apache.catalina.core.StandardService.start(StandardService.java:3
88)
--
Then, if I try configuring like the following:
--
  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
driverName=sun.jdbc.odbc.JdbcOdbcDriver
   connectionURL=jdbc:odbc:DSNName:@169.xxx.xx.xxx:1521:SID.WORLD(or 
 just SID w/o WORLD)
   connectionName=user_name
   connectionPassword=password
   userTable=chg_users userNameCol=user_name userCredCol=user_pass
   userRoleTable=chg_users_roles roleNameCol=role_name /
-
 
I get this error:
---
 
Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Catalina.start: LifecycleException:  Exception opening database connection:  
jav
a.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name too long
LifecycleException:  Exception opening database connection:  
java.sql.SQLExcepti
on: [Microsoft][ODBC Driver Manager] Data source name too long
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
at 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
 
at 
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307
)

- Root Cause -
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name too 
lon
g
 
---
 
 
any help at all would be appreciated and if I went about posing my question in 
the wrong manner I apologize and will be glad to receive instuctions on the 
proper protocol 

Barry Propes
CitiFinancial Mortgage - 
Workflow Enhancements Group
972-657-1128

  

 

  



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



JTA?

2006-07-13 Thread Avi Deitcher
Does Tomcat have any native JTA support? I know 5.5 has the
Transaction tag in the context, which should make it easier (as far as
I understand it) to use JTA factories, but does Tomcat have any built-in
support, or is it planning?

-- 
__
Avi Deitcher
[EMAIL PROTECTED]



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



RE: Tomcat Not An App Server

2006-07-13 Thread Mike Wannamaker
Sorry guys I didn't mean to offend anyone.  I know that Tomcat offers a lot
but what I meant is as you said, it's not a full J2EE App Server, like
JBoss, WebSphere ...

What I have is a large enterprise application that does have a web
application.  In fact it has many.  These web apps rely on our core services
to be running.  Within JBoss etc I can install this as an EAR or SAR and
JBoss will start it.

I was wondering if there is anything in Tomcat like that, were my Core
Services could get loaded/started before the tomcat web container loads the
web apps.  Thus I wouldn't have to code anything into the web apps
themselves to try and start it.

TIA

Mike Wannamaker

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: July 13, 2006 4:05 PM
To: Tomcat Users List
Subject: Re: Tomcat Not An App Server

Tomcat's not really an app server?  Geee really, I feel so inadequate 
now. :-(

Seriously, I think I've seen this religious war around here somewhere 
and it really depends on definition.  No, it's not a full J2EE 
container, but it's definitely an app server in my opinion.

Have you read the servlet spec and thought about the 
ServletContextListener for handling the start/shutdown of a component 
within your app?

--David

Mike Wannamaker wrote:

I know that Tomcat is not really an App Server like JBoss etc... However,
if
I had a component that was not a web application and I wanted to start it
inside tomcat how could I do that ?

Is there some configuration file I would need to add something to in order
to have a component started and would I need to implement some Tomcat
interface to do it?

TIA
Mike Wannamaker


-
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: JDBC Realm error

2006-07-13 Thread David Smith

Is your Realm configured as follows:

Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
driverName=sun.jdbc.odbc.JdbcOdbcDriver
connectionURL=jdbc:odbc:DSNName
connectionName=user_name
connectionPassword=password
userTable=chg_users
userNameCol=user_name
userCredCol=user_pass
userRoleTable=chg_users_roles
roleNameCol=role_name /

You're orignal Realm won't work because you're mixing the Oracle schema 
and the JDBC-ODBC bridge connection schema.  If you use the JDBC-ODBC 
bridge, you have to use a connection string for that driver.  You could 
(and this is MUCH better in my opinion) toss the JDBC-ODBC bridge 
software and just use a true Oracle JDBC driver with a standard Oracle 
connection string.


--David

Propes, Barry L wrote:


well, Tomcat didn't like that at all!

It tries to come up (the console) and then quickly disappears!

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 13, 2006 3:00 PM
To: Tomcat Users List
Subject: Re: JDBC Realm error


Why don't you try using the same dbURL you use in the java code -- 
jdbc:odbc:DSNName.  Also add in the attributes connectionName for the 
auth username to the database and connectionPassword for the auth 
password to same.


--David

Propes, Barry L wrote:

 


I'm not sure if this is the method of which to go about posting my problem or 
issue, but here goes.

I've tried configuring my JDBC realm in Tomcat 4.0.1  the last 2 days with no 
success. Sure, I can mess up the app or get the protection to engage and kick 
to a login page, but my Oracle configuration doesn't work.

For starters, I use the following driver and can connect regularly to do 
inserts, selects and updates just fine.

Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
 String dbURL = jdbc:odbc:DSNName;
 String usernm = user_name;
 String pwd = password;
 Connection connection = DriverManager.getConnection(dbURL, usernm, pwd);


Here are some errors I get when I do the following:
Configure the Realm like so:
-
  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=sun.jdbc.odbc.JdbcOdbcDriver
connectionURL=jdbc:odbc:DSNName:@169.xxx.xx.xxx:1521:SID?user=user_name;password=password
   userTable=chg_users userNameCol=user_name userCredCol=user_pass
userRoleTable=chg_users_roles roleNameCol=role_name /
-

Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Catalina.start: LifecycleException:  Exception opening database connection:  jav
a.sql.SQLException: invalid arguments in call
LifecycleException:  Exception opening database connection:  java.sql.SQLExcepti
on: invalid arguments in call
  at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)

  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307
)
  at org.apache.catalina.core.StandardService.start(StandardService.java:3
88)
--
Then, if I try configuring like the following:
--
Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=sun.jdbc.odbc.JdbcOdbcDriver
 connectionURL=jdbc:odbc:DSNName:@169.xxx.xx.xxx:1521:SID.WORLD(or just 
SID w/o WORLD)
 connectionName=user_name
 connectionPassword=password
 userTable=chg_users userNameCol=user_name userCredCol=user_pass
 userRoleTable=chg_users_roles roleNameCol=role_name /
-

I get this error:
---

Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Catalina.start: LifecycleException:  Exception opening database connection:  jav
a.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name too long
LifecycleException:  Exception opening database connection:  java.sql.SQLExcepti
on: [Microsoft][ODBC Driver Manager] Data source name too long
  at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)

  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307
)
  
- Root Cause -
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name too lon
g

---


any help at all would be appreciated and if I went about posing my question in the wrong manner I apologize and will be glad to receive instuctions on the proper protocol 


Barry Propes
CitiFinancial Mortgage - 
Workflow Enhancements Group

972-657-1128







   




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

RE: JDBC Realm error

2006-07-13 Thread Propes, Barry L
precisely it is, as you  typed below.

I'd actually like to toss the JDBC-ODBC bridge software, as I've heard some 
unstable things about it, maybe this included, but am a little uncertain as to 
how to truly go about getting the Oracle driver I need. I don't claim to be an 
expert on Oracle, but I downloaded two zip files - ora9018 and ORA92065.zip. I 
unzipped these, but neither seems to place a new driver on my machine, nor does 
it include an exe file that would ostensibly install such.

I've also downloaded three different OTN zipped files, huge in nature, which I 
think would install the connectivity client and other components, which I 
already have on my machine.

Is there a way to just cherry pick to the actual driver? And get it on the 
box in question? The process doesn't seem to be real intuitive!

Any feedback is appreciated, though!

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 13, 2006 3:19 PM
To: Tomcat Users List
Subject: Re: JDBC Realm error


Is your Realm configured as follows:

 Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=sun.jdbc.odbc.JdbcOdbcDriver
 connectionURL=jdbc:odbc:DSNName
 connectionName=user_name
 connectionPassword=password
 userTable=chg_users
 userNameCol=user_name
 userCredCol=user_pass
 userRoleTable=chg_users_roles
 roleNameCol=role_name /

You're orignal Realm won't work because you're mixing the Oracle schema 
and the JDBC-ODBC bridge connection schema.  If you use the JDBC-ODBC 
bridge, you have to use a connection string for that driver.  You could 
(and this is MUCH better in my opinion) toss the JDBC-ODBC bridge 
software and just use a true Oracle JDBC driver with a standard Oracle 
connection string.

--David

Propes, Barry L wrote:

well, Tomcat didn't like that at all!

It tries to come up (the console) and then quickly disappears!

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 13, 2006 3:00 PM
To: Tomcat Users List
Subject: Re: JDBC Realm error


Why don't you try using the same dbURL you use in the java code -- 
jdbc:odbc:DSNName.  Also add in the attributes connectionName for the 
auth username to the database and connectionPassword for the auth 
password to same.

--David

Propes, Barry L wrote:

  

I'm not sure if this is the method of which to go about posting my problem or 
issue, but here goes.

I've tried configuring my JDBC realm in Tomcat 4.0.1  the last 2 days with no 
success. Sure, I can mess up the app or get the protection to engage and kick 
to a login page, but my Oracle configuration doesn't work.

For starters, I use the following driver and can connect regularly to do 
inserts, selects and updates just fine.

Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
  String dbURL = jdbc:odbc:DSNName;
  String usernm = user_name;
  String pwd = password;
  Connection connection = DriverManager.getConnection(dbURL, usernm, pwd);


Here are some errors I get when I do the following:
Configure the Realm like so:
-
   Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
   driverName=sun.jdbc.odbc.JdbcOdbcDriver
connectionURL=jdbc:odbc:DSNName:@169.xxx.xx.xxx:1521:SID?user=user_name;password=password
userTable=chg_users userNameCol=user_name userCredCol=user_pass
userRoleTable=chg_users_roles roleNameCol=role_name /
-

Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Catalina.start: LifecycleException:  Exception opening database connection:  
jav
a.sql.SQLException: invalid arguments in call
LifecycleException:  Exception opening database connection:  
java.sql.SQLExcepti
on: invalid arguments in call
   at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
   at 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)

   at 
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307
)
   at 
 org.apache.catalina.core.StandardService.start(StandardService.java:3
88)
--
Then, if I try configuring like the following:
--
 Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
   driverName=sun.jdbc.odbc.JdbcOdbcDriver
  connectionURL=jdbc:odbc:DSNName:@169.xxx.xx.xxx:1521:SID.WORLD(or 
 just SID w/o WORLD)
  connectionName=user_name
  connectionPassword=password
  userTable=chg_users userNameCol=user_name userCredCol=user_pass
  userRoleTable=chg_users_roles roleNameCol=role_name /
-

I get this error:
---

Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Catalina.start: LifecycleException:  Exception opening database connection:  
jav
a.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name too long
LifecycleException:  Exception opening database 

Re: Tomcat Not An App Server

2006-07-13 Thread dhay
I agree with you - an app server without EJB.  And with Spring framework
and the like, you rarely need EJB any more.  But that might start a flame
war!! ;-)

cheers,

David



|-+--
| |   Christopher Schultz|
| |   [EMAIL PROTECTED]|
| |   chultz.net|
| |  |
| |   13/07/2006 16:05   |
| |   Please respond to  |
| |   Tomcat Users List|
| |  |
|-+--
  
-|
  | 
|
  |   To:   Tomcat Users List users@tomcat.apache.org 
|
  |   cc:   
|
  |   Subject:  Re: Tomcat Not An App Server
|
  
-|



Mike,

 I know that Tomcat is not really an App Server like JBoss etc...

Some may argue with me, but I would consider Tomcat an app server. JBoss
happens to be an EJB container as well as a servlet container (and
provides some other services as well), while Tomcat provides only the
servlet container and some directory services.

 However, if I had a component that was not a web application and I
 wanted to start it inside tomcat how could I do that ?

 Is there some configuration file I would need to add something to in
 order to have a component started and would I need to implement some
 Tomcat interface to do it?

What do you want to run inside of Tomcat that is not a web application?
Tomcat is basically a web application container, so I'm not sure what
else you'd want to run.

-chris


(See attached file: signature.asc)

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

RE: Tomcat Not An App Server

2006-07-13 Thread dhay
How do your webapps communicate with the core services?

cheers,

David



|-+--
| |   Mike Wannamaker|
| |   [EMAIL PROTECTED]|
| |   ngbird.com|
| |  |
| |   13/07/2006 16:18   |
| |   Please respond to Tomcat Users|
| |   List  |
| |  |
|-+--
  
-|
  | 
|
  |   To:   'Tomcat Users List' users@tomcat.apache.org 
|
  |   cc:   
|
  |   Subject:  RE: Tomcat Not An App Server
|
  
-|



Sorry guys I didn't mean to offend anyone.  I know that Tomcat offers a lot
but what I meant is as you said, it's not a full J2EE App Server, like
JBoss, WebSphere ...

What I have is a large enterprise application that does have a web
application.  In fact it has many.  These web apps rely on our core
services
to be running.  Within JBoss etc I can install this as an EAR or SAR and
JBoss will start it.

I was wondering if there is anything in Tomcat like that, were my Core
Services could get loaded/started before the tomcat web container loads the
web apps.  Thus I wouldn't have to code anything into the web apps
themselves to try and start it.

TIA

Mike Wannamaker

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: July 13, 2006 4:05 PM
To: Tomcat Users List
Subject: Re: Tomcat Not An App Server

Tomcat's not really an app server?  Geee really, I feel so inadequate
now. :-(

Seriously, I think I've seen this religious war around here somewhere
and it really depends on definition.  No, it's not a full J2EE
container, but it's definitely an app server in my opinion.

Have you read the servlet spec and thought about the
ServletContextListener for handling the start/shutdown of a component
within your app?

--David

Mike Wannamaker wrote:

I know that Tomcat is not really an App Server like JBoss etc... However,
if
I had a component that was not a web application and I wanted to start it
inside tomcat how could I do that ?

Is there some configuration file I would need to add something to in order
to have a component started and would I need to implement some Tomcat
interface to do it?

TIA
Mike Wannamaker


-
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: JDBC Realm error

2006-07-13 Thread Mark Shifman

The oracle driver library that seems to work is ojdbc14.jar
http://download.oracle.com/otn/utilities_drivers/jdbc/9205/ojdbc14.jar
I just set up a JDBCRealm the other day using it following the realm howto
http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html
and it worked like a charm.

You can also easily create a datasource for your webapp and use it to get
connections. 
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html

mas
Propes, Barry L wrote:

precisely it is, as you  typed below.

I'd actually like to toss the JDBC-ODBC bridge software, as I've heard some 
unstable things about it, maybe this included, but am a little uncertain as to 
how to truly go about getting the Oracle driver I need. I don't claim to be an 
expert on Oracle, but I downloaded two zip files - ora9018 and ORA92065.zip. I 
unzipped these, but neither seems to place a new driver on my machine, nor does 
it include an exe file that would ostensibly install such.

I've also downloaded three different OTN zipped files, huge in nature, which I 
think would install the connectivity client and other components, which I 
already have on my machine.

Is there a way to just cherry pick to the actual driver? And get it on the 
box in question? The process doesn't seem to be real intuitive!

Any feedback is appreciated, though!

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 13, 2006 3:19 PM
To: Tomcat Users List
Subject: Re: JDBC Realm error


Is your Realm configured as follows:

 Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=sun.jdbc.odbc.JdbcOdbcDriver
 connectionURL=jdbc:odbc:DSNName
 connectionName=user_name
 connectionPassword=password
 userTable=chg_users
 userNameCol=user_name
 userCredCol=user_pass
 userRoleTable=chg_users_roles
 roleNameCol=role_name /

You're orignal Realm won't work because you're mixing the Oracle schema 
and the JDBC-ODBC bridge connection schema.  If you use the JDBC-ODBC 
bridge, you have to use a connection string for that driver.  You could 
(and this is MUCH better in my opinion) toss the JDBC-ODBC bridge 
software and just use a true Oracle JDBC driver with a standard Oracle 
connection string.


--David

Propes, Barry L wrote:

  

well, Tomcat didn't like that at all!

It tries to come up (the console) and then quickly disappears!

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 13, 2006 3:00 PM
To: Tomcat Users List
Subject: Re: JDBC Realm error


Why don't you try using the same dbURL you use in the java code -- 
jdbc:odbc:DSNName.  Also add in the attributes connectionName for the 
auth username to the database and connectionPassword for the auth 
password to same.


--David

Propes, Barry L wrote:

 



I'm not sure if this is the method of which to go about posting my problem or 
issue, but here goes.

I've tried configuring my JDBC realm in Tomcat 4.0.1  the last 2 days with no 
success. Sure, I can mess up the app or get the protection to engage and kick 
to a login page, but my Oracle configuration doesn't work.

For starters, I use the following driver and can connect regularly to do 
inserts, selects and updates just fine.

Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
 String dbURL = jdbc:odbc:DSNName;
 String usernm = user_name;
 String pwd = password;
 Connection connection = DriverManager.getConnection(dbURL, usernm, pwd);


Here are some errors I get when I do the following:
Configure the Realm like so:
-
  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=sun.jdbc.odbc.JdbcOdbcDriver
connectionURL=jdbc:odbc:DSNName:@169.xxx.xx.xxx:1521:SID?user=user_name;password=password
   userTable=chg_users userNameCol=user_name userCredCol=user_pass
userRoleTable=chg_users_roles roleNameCol=role_name /
-

Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Catalina.start: LifecycleException:  Exception opening database connection:  jav
a.sql.SQLException: invalid arguments in call
LifecycleException:  Exception opening database connection:  java.sql.SQLExcepti
on: invalid arguments in call
  at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)

  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307
)
  at org.apache.catalina.core.StandardService.start(StandardService.java:3
88)
--
Then, if I try configuring like the following:
--
Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=sun.jdbc.odbc.JdbcOdbcDriver
 connectionURL=jdbc:odbc:DSNName:@169.xxx.xx.xxx:1521:SID.WORLD(or just 
SID w/o WORLD)
 connectionName=user_name
 connectionPassword=password
 

RE: JDBC Realm error

2006-07-13 Thread Propes, Barry L
thanks, Mark. What about ojdbc14_g? That's what I have. Would that work?

-Original Message-
From: Mark Shifman [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 13, 2006 5:03 PM
To: Tomcat Users List
Subject: Re: JDBC Realm error


The oracle driver library that seems to work is ojdbc14.jar
http://download.oracle.com/otn/utilities_drivers/jdbc/9205/ojdbc14.jar
I just set up a JDBCRealm the other day using it following the realm howto
http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html
and it worked like a charm.

You can also easily create a datasource for your webapp and use it to get
connections. 
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
mas
Propes, Barry L wrote:
 precisely it is, as you  typed below.

 I'd actually like to toss the JDBC-ODBC bridge software, as I've heard some 
 unstable things about it, maybe this included, but am a little uncertain as 
 to how to truly go about getting the Oracle driver I need. I don't claim to 
 be an expert on Oracle, but I downloaded two zip files - ora9018 and 
 ORA92065.zip. I unzipped these, but neither seems to place a new driver on my 
 machine, nor does it include an exe file that would ostensibly install such.

 I've also downloaded three different OTN zipped files, huge in nature, which 
 I think would install the connectivity client and other components, which I 
 already have on my machine.

 Is there a way to just cherry pick to the actual driver? And get it on the 
 box in question? The process doesn't seem to be real intuitive!

 Any feedback is appreciated, though!

 -Original Message-
 From: David Smith [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 13, 2006 3:19 PM
 To: Tomcat Users List
 Subject: Re: JDBC Realm error


 Is your Realm configured as follows:

  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=sun.jdbc.odbc.JdbcOdbcDriver
  connectionURL=jdbc:odbc:DSNName
  connectionName=user_name
  connectionPassword=password
  userTable=chg_users
  userNameCol=user_name
  userCredCol=user_pass
  userRoleTable=chg_users_roles
  roleNameCol=role_name /

 You're orignal Realm won't work because you're mixing the Oracle schema 
 and the JDBC-ODBC bridge connection schema.  If you use the JDBC-ODBC 
 bridge, you have to use a connection string for that driver.  You could 
 (and this is MUCH better in my opinion) toss the JDBC-ODBC bridge 
 software and just use a true Oracle JDBC driver with a standard Oracle 
 connection string.

 --David

 Propes, Barry L wrote:

   
 well, Tomcat didn't like that at all!

 It tries to come up (the console) and then quickly disappears!

 -Original Message-
 From: David Smith [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 13, 2006 3:00 PM
 To: Tomcat Users List
 Subject: Re: JDBC Realm error


 Why don't you try using the same dbURL you use in the java code -- 
 jdbc:odbc:DSNName.  Also add in the attributes connectionName for the 
 auth username to the database and connectionPassword for the auth 
 password to same.

 --David

 Propes, Barry L wrote:

  

 
 I'm not sure if this is the method of which to go about posting my problem 
 or issue, but here goes.

 I've tried configuring my JDBC realm in Tomcat 4.0.1  the last 2 days with 
 no success. Sure, I can mess up the app or get the protection to engage and 
 kick to a login page, but my Oracle configuration doesn't work.

 For starters, I use the following driver and can connect regularly to do 
 inserts, selects and updates just fine.

 Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
  String dbURL = jdbc:odbc:DSNName;
  String usernm = user_name;
  String pwd = password;
  Connection connection = DriverManager.getConnection(dbURL, usernm, pwd);


 Here are some errors I get when I do the following:
 Configure the Realm like so:
 -
   Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
   driverName=sun.jdbc.odbc.JdbcOdbcDriver
 connectionURL=jdbc:odbc:DSNName:@169.xxx.xx.xxx:1521:SID?user=user_name;password=password
userTable=chg_users userNameCol=user_name userCredCol=user_pass
 userRoleTable=chg_users_roles roleNameCol=role_name /
 -

 Starting service Tomcat-Standalone
 Apache Tomcat/4.0.1
 Catalina.start: LifecycleException:  Exception opening database connection: 
  jav
 a.sql.SQLException: invalid arguments in call
 LifecycleException:  Exception opening database connection:  
 java.sql.SQLExcepti
 on: invalid arguments in call
   at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
   at 
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)

   at 
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307
 )
   at 
 org.apache.catalina.core.StandardService.start(StandardService.java:3
 88)
 --
 Then, if I try configuring like 

RE: Run shell script when web application start/restart

2006-07-13 Thread Richard Mixon
Maybe I'm missing something, but if you re-generate the pages, and have
Tomcat in development mode, the new pages will automatically be re-compiled
the next time they are accessed. 

-Original Message-
From: Tom Potter [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 13, 2006 7:59 AM
To: Tomcat Users List
Subject: Re: Run shell script when web application start/restart

The reason for me choosing the first, messy solution was that this had to be
a quick fix, rewriting the logic in the JSP pages was out of the question
(and way above the allocated budget ;) ).

Of course I had the shell scripts and configuration files so it seemed just
the right solution to  use these tools in the startup process of the webapp.

It seems that I can convince the cusomer to just run the shell scripts that
modify(actually generate) the JSP pages but then I face an other problem.
After generating and copying the JSP pages in the right place how can I tell
tomcat (from the shell script) to restart the application (or to recompile
the pages) ?

Rgds
Thomas

On 7/13/06, Avi Deitcher [EMAIL PROTECTED] wrote:

 I don't think so. You could, theoretically, have a context listener 
 that then executes a shell script, but that is really messy, and the 
 security manager probably won't even allow it.

 If I understand correctly, you want to have the following happen on 
 context restart:
 - JSP pages get rebuilt from some macros or config files

 I can think of two ways to do this. The not-so-great way is to have a 
 context listener read the config files and generate the pages. The 
 problem is that I don't know when JSP pages are compiled by the Tomcat 
 engine - before or after context listeners are invoked. I believe you 
 can force a re-compilation of the JSP pages at that point, but I am 
 not sure how.

 The much smarter way is to ask why your JSP pages need to be 
 macro/dynamically generated. JSP includes enough logic tags. Why not 
 refactor your JSP pages so that they read the configuration files and 
 output the appropriate information? This would be much cleaner, and 
 probably wouldn't even require context restart?

 Tom Potter wrote:

  Jen,
 
  Just to make sure that we both talk about the same events :
  I don't want to restart the whole tomcat, only one web application, 
  that is, by clicking on the start link(or restart) in on the admin page.
  I don't see how your suggestion would help me... if I'm missing 
  something please make it clear to me...
 
  Rgds
  Thomas
 
  On 7/13/06, Mead, Jennifer L - VSCM [EMAIL PROTECTED] wrote:
 
 
  On my box the start and stop scripts are just that.  .sh shell scripts.
  In your case I would just copy them to a save file and put in an 
  execution string.  The start scripts are in tomcat_home/bin.
 
  Jen
 
  -Original Message-
  From: Tom Potter [mailto:[EMAIL PROTECTED]
  Sent: Thursday, July 13, 2006 5:28 AM
  To: users@tomcat.apache.org
  Subject: Run shell script when web application start/restart
 
  The JSP pages in the Web application I install under Tomcat 4.1.30 
  are based on some configuration files the user wants to modify, 
  thus I
 wrote
  a shell script to rebuild the JSP pages and repopulate the webapps 
  folder.
 
  My question is that is there a way to hook up my shell script with 
  the webapp start/stop proces so it would run at every startup, in 
  other words the user would activate my script by restarting the
application ?
 
  Thanks
  Thomas
 
  ---
  -- To start a new topic, e-mail: users@tomcat.apache.org To 
  unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 __
 Avi Deitcher
 [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: Run shell script when web application start/restart

2006-07-13 Thread Avi Deitcher
Richard,

I think he is discussing a 2-step process. First the JSP pages are
*generated* via some shell script, then they are *compiled* from the JSP
source by Tomcat. that is why I suggested inverting it, having the JSPs
fully formed, but have them pull config info as necessary.

Richard Mixon wrote:

Maybe I'm missing something, but if you re-generate the pages, and have
Tomcat in development mode, the new pages will automatically be re-compiled
the next time they are accessed. 

-Original Message-
From: Tom Potter [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 13, 2006 7:59 AM
To: Tomcat Users List
Subject: Re: Run shell script when web application start/restart

The reason for me choosing the first, messy solution was that this had to be
a quick fix, rewriting the logic in the JSP pages was out of the question
(and way above the allocated budget ;) ).

Of course I had the shell scripts and configuration files so it seemed just
the right solution to  use these tools in the startup process of the webapp.

It seems that I can convince the cusomer to just run the shell scripts that
modify(actually generate) the JSP pages but then I face an other problem.
After generating and copying the JSP pages in the right place how can I tell
tomcat (from the shell script) to restart the application (or to recompile
the pages) ?

Rgds
Thomas

On 7/13/06, Avi Deitcher [EMAIL PROTECTED] wrote:
  

I don't think so. You could, theoretically, have a context listener 
that then executes a shell script, but that is really messy, and the 
security manager probably won't even allow it.

If I understand correctly, you want to have the following happen on 
context restart:
- JSP pages get rebuilt from some macros or config files

I can think of two ways to do this. The not-so-great way is to have a 
context listener read the config files and generate the pages. The 
problem is that I don't know when JSP pages are compiled by the Tomcat 
engine - before or after context listeners are invoked. I believe you 
can force a re-compilation of the JSP pages at that point, but I am 
not sure how.

The much smarter way is to ask why your JSP pages need to be 
macro/dynamically generated. JSP includes enough logic tags. Why not 
refactor your JSP pages so that they read the configuration files and 
output the appropriate information? This would be much cleaner, and 
probably wouldn't even require context restart?

Tom Potter wrote:



Jen,

Just to make sure that we both talk about the same events :
I don't want to restart the whole tomcat, only one web application, 
that is, by clicking on the start link(or restart) in on the admin page.
I don't see how your suggestion would help me... if I'm missing 
something please make it clear to me...

Rgds
Thomas

On 7/13/06, Mead, Jennifer L - VSCM [EMAIL PROTECTED] wrote:

  

On my box the start and stop scripts are just that.  .sh shell scripts.
In your case I would just copy them to a save file and put in an 
execution string.  The start scripts are in tomcat_home/bin.

Jen

-Original Message-
From: Tom Potter [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 13, 2006 5:28 AM
To: users@tomcat.apache.org
Subject: Run shell script when web application start/restart

The JSP pages in the Web application I install under Tomcat 4.1.30 
are based on some configuration files the user wants to modify, 
thus I


wrote


a shell script to rebuild the JSP pages and repopulate the webapps 
folder.

My question is that is there a way to hook up my shell script with 
the webapp start/stop proces so it would run at every startup, in 
other words the user would activate my script by restarting the


application ?
  

Thanks
Thomas

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




--
__
Avi Deitcher
[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]

  


-- 
__
Avi Deitcher
[EMAIL PROTECTED]




Re: Run shell script when web application start/restart

2006-07-13 Thread Ibrahim . Siddiqui
 a 'pstc' reveals 'vignette' as the user, which is the same for the 
internals file.
startup is thru a alias command: starttcmcm
and can be done in any directory





Avi Deitcher [EMAIL PROTECTED]
07/13/2006 04:19 PM
Please respond to Tomcat Users List

 
To: Tomcat Users List users@tomcat.apache.org
cc: 
Subject:Re: Run shell script when web application start/restart


Richard,

I think he is discussing a 2-step process. First the JSP pages are
*generated* via some shell script, then they are *compiled* from the JSP
source by Tomcat. that is why I suggested inverting it, having the JSPs
fully formed, but have them pull config info as necessary.

Richard Mixon wrote:

Maybe I'm missing something, but if you re-generate the pages, and have
Tomcat in development mode, the new pages will automatically be 
re-compiled
the next time they are accessed. 

-Original Message-
From: Tom Potter [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 13, 2006 7:59 AM
To: Tomcat Users List
Subject: Re: Run shell script when web application start/restart

The reason for me choosing the first, messy solution was that this had to 
be
a quick fix, rewriting the logic in the JSP pages was out of the question
(and way above the allocated budget ;) ).

Of course I had the shell scripts and configuration files so it seemed 
just
the right solution to  use these tools in the startup process of the 
webapp.

It seems that I can convince the cusomer to just run the shell scripts 
that
modify(actually generate) the JSP pages but then I face an other problem.
After generating and copying the JSP pages in the right place how can I 
tell
tomcat (from the shell script) to restart the application (or to 
recompile
the pages) ?

Rgds
Thomas

On 7/13/06, Avi Deitcher [EMAIL PROTECTED] wrote:
 

I don't think so. You could, theoretically, have a context listener 
that then executes a shell script, but that is really messy, and the 
security manager probably won't even allow it.

If I understand correctly, you want to have the following happen on 
context restart:
- JSP pages get rebuilt from some macros or config files

I can think of two ways to do this. The not-so-great way is to have a 
context listener read the config files and generate the pages. The 
problem is that I don't know when JSP pages are compiled by the Tomcat 
engine - before or after context listeners are invoked. I believe you 
can force a re-compilation of the JSP pages at that point, but I am 
not sure how.

The much smarter way is to ask why your JSP pages need to be 
macro/dynamically generated. JSP includes enough logic tags. Why not 
refactor your JSP pages so that they read the configuration files and 
output the appropriate information? This would be much cleaner, and 
probably wouldn't even require context restart?

Tom Potter wrote:

 

Jen,

Just to make sure that we both talk about the same events :
I don't want to restart the whole tomcat, only one web application, 
that is, by clicking on the start link(or restart) in on the admin 
page.
I don't see how your suggestion would help me... if I'm missing 
something please make it clear to me...

Rgds
Thomas

On 7/13/06, Mead, Jennifer L - VSCM [EMAIL PROTECTED] 
wrote:

 

On my box the start and stop scripts are just that.  .sh shell 
scripts.
In your case I would just copy them to a save file and put in an 
execution string.  The start scripts are in tomcat_home/bin.

Jen

-Original Message-
From: Tom Potter [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 13, 2006 5:28 AM
To: users@tomcat.apache.org
Subject: Run shell script when web application start/restart

The JSP pages in the Web application I install under Tomcat 4.1.30 
are based on some configuration files the user wants to modify, 
thus I
 

wrote
 

a shell script to rebuild the JSP pages and repopulate the webapps 
folder.

My question is that is there a way to hook up my shell script with 
the webapp start/stop proces so it would run at every startup, in 
other words the user would activate my script by restarting the
 

application ?
 

Thanks
Thomas

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


 

--
__
Avi Deitcher
[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]

 


-- 
__
Avi Deitcher
[EMAIL PROTECTED]






DigestAthenticator and session registeration

2006-07-13 Thread Alex Jalali
Hello,

I have extented the DigestAthenticator and everything is working fine. but
after the first authentication the register(...) method of the base class
does not create the internal session and set the cookie. So for every
request I have to go to database and re-authenticate.

This is version 5.5.15 but I also looked and .16 and .17 and something is
not working in register(...) of base class.

I am not sure how the internal session and setting of cookie works in
tomcat to override the register method but I think there is something
wrong. I pass the right parameters and test them and see they are correct
and are not null or anything. when I call register it does not do the job.

Anyone else has come across this problem?

many thanks





-
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's scalability

2006-07-13 Thread Biernatowski Bartosz J
To follow up and close the Tomcat scalability thread I opened a while
ago It turned out the bottleneck was on the database hardware end.
Reducing disk utilization resolved our performance issues.
BJ Biernatowski

This e-mail, including attachments, may include confidential and/or proprietary 
information, and may be used only by the person or entity to which it is 
addressed. If the reader of this e-mail is not the intended recipient or his or 
her authorized agent, the reader is hereby notified that any dissemination, 
distribution or copying of this e-mail, including its contents and attachments, 
is prohibited. If you have received this e-mail in error, please notify the 
sender by a reply to sender only message and delete this e-mail immediately 
and destroy all electronic and hard copies of the communication, including 
attachments.


-
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: DigestAthenticator and session registeration

2006-07-13 Thread Mark Thomas
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. 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.

This is known as thread hijacking and is behaviour that is frowned
upon on this list. Frequent offenders will be removed from the list.
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.

Mark
tomcat-user-owner


-
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: DigestAthenticator and session registeration

2006-07-13 Thread Alex
Sure, I am sorry I didn't know about emails being grouped as threads. This
was my first question on the list.

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 13, 2006 6:16 PM
To: Tomcat Users List
Subject: Re: DigestAthenticator and session registeration

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

This is known as thread hijacking and is behaviour that is frowned
upon on this list. Frequent offenders will be removed from the list.
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.

Mark
tomcat-user-owner


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



Ajp connector attributes *Processors vs *Threads

2006-07-13 Thread Fred K

Hello:

One of my colleagues had a good question today.

On the document about the Ajp connector (mod_jk ):
http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html

minProcessors and maxProcessors are said to be deprecated 
Apparently these atributes are replaced by *Threads.

So the questions are:

- what is the difference between the *Processors and the *Threads ?

- if they are equivalent then why is maxProcessors defaults 20 and the
maxThreads default is 10 times more: 200?

- what happens when both set of attributes are set?

Many Thanks - Fred


Re: Tomcat 5.5 load balancing URL redirefction not transparent to client

2006-07-13 Thread Madhur K Tanwani

Thanks Filip.
I understand now that Tomcat performs redirection - which implies that the
URL must change.
Then, I suppose I must ask
- Is something like mod_proxy available in Tomcat?
- Is it possible to emulate the same behavior in Tomcat?

After my discussion on the Tomcat 5.5 load balancing thread and this 
one, I'm

thinking of a setup like
request
|
   V
Apache 2.0 httpd Webserver
(LB with sticky sessions, weighted round robin, mod_jk2)
   |
   | Tomcat Worker 1 (ajp13)
   | Tomcat Worker 2 (ajp13)
   | Tomcat Worker 3 (ajp13)

The session management will be done using either JDBCStore or in-memory
replication amongst the Tomcat servers.

Can you suggest something in the design that is wither wrong or can be 
improved?
Is there something that the LB gurus find obviously wrong here and would 
want to

tell me (or would you want me to encounter it as it comes :) )?

Awaiting your valuable comments,
Madhur.

Filip Hanik - Dev Lists wrote:
redirection, as the name tells you, doesn't balance, it redirects, and 
there is nothing transparent about a redirection.
what you are looking for is called proxying, and the best example for 
that, would be mod_proxy in the Apache httpd web server.



Filip

Madhur K Tanwani wrote:

Hi,
I'm separating this question from my earlier thread on load balancing 
rules - it

seems that it was over-looked there since it did not fit in there :(.

My question is that when I use the default balancer webapp from 
Tomcat 5.5 the
redirection rules redirect me to either jakarta, cnn or yahoo's site. 
However,

the redirection is not transparent to the user.

for example,
Client Types : http://servername:8080/balancer/
Balancer Redirects To: http://jakarta.apache.org
*The browser URL changes to  : http://jakarta.apache.org*

I think this change of URL does not make the transition transparent. 
Also, the
subsequent requests bypass the load balancer(LB) and are directly 
served by the
server (so what happens if the server is down - the LB has support 
for fail over

but the request never went via the LB)

Please could someone throw some light on the same?
Awaiting responses,




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





--
__
Madhur Kumar Tanwani
[EMAIL PROTECTED]
Ph.: 0253-5614792.
__

+  A bus station is where a bus stops. A train station
+ is where train stops. On my desk, I have a work station...
+ What more can I say !



-
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 load balancing URL redirefction not transparent to client

2006-07-13 Thread Filip Hanik - Dev Lists

Madhur K Tanwani wrote:

Thanks Filip.
I understand now that Tomcat performs redirection - which implies that 
the

URL must change.
Then, I suppose I must ask
- Is something like mod_proxy available in Tomcat?
- Is it possible to emulate the same behavior in Tomcat?
not really, Tomcat isn't really built for any of that kind of stuff 
either, even the tomcat balancer is not a real load balancer, its just 
an example app, but you would never use it in the real world due to 
blocking IO and thread dependencies in Tomcat/Java


After my discussion on the Tomcat 5.5 load balancing thread and this 
one, I'm

thinking of a setup like
request
|
   V
Apache 2.0 httpd Webserver
(LB with sticky sessions, weighted round robin, mod_jk2)
mod_jk2 is obsolete and longer used nor developed. You would need to go 
with mod_jk 1.2.15

   |
   | Tomcat Worker 1 (ajp13)
   | Tomcat Worker 2 (ajp13)
   | Tomcat Worker 3 (ajp13)

The session management will be done using either JDBCStore or in-memory
replication amongst the Tomcat servers.

Can you suggest something in the design that is wither wrong or can be 
improved?
Is there something that the LB gurus find obviously wrong here and 
would want to

tell me (or would you want me to encounter it as it comes :) )?
looks good, if you only have one httpd, is that a single point of 
failure for you?





Awaiting your valuable comments,
Madhur.

Filip Hanik - Dev Lists wrote:
redirection, as the name tells you, doesn't balance, it redirects, 
and there is nothing transparent about a redirection.
what you are looking for is called proxying, and the best example for 
that, would be mod_proxy in the Apache httpd web server.



Filip

Madhur K Tanwani wrote:

Hi,
I'm separating this question from my earlier thread on load 
balancing rules - it

seems that it was over-looked there since it did not fit in there :(.

My question is that when I use the default balancer webapp from 
Tomcat 5.5 the
redirection rules redirect me to either jakarta, cnn or yahoo's 
site. However,

the redirection is not transparent to the user.

for example,
Client Types : http://servername:8080/balancer/
Balancer Redirects To: http://jakarta.apache.org
*The browser URL changes to  : http://jakarta.apache.org*

I think this change of URL does not make the transition transparent. 
Also, the
subsequent requests bypass the load balancer(LB) and are directly 
served by the
server (so what happens if the server is down - the LB has support 
for fail over

but the request never went via the LB)

Please could someone throw some light on the same?
Awaiting responses,




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