Tomcat going down abruptly

2007-03-13 Thread Venkatesh Babu
Hello all,

We have hosted a small vehicle retail website using tomcat as app server. The 
site has been live from around 6-7 months, just that the number of vehicles on 
our site is increasing. The site was working fine till last week, but in the 
last week we are seeing that our site is unstable, and tomcat keeps going down 
regularly. We are not able to find out the exact reason behind why this is 
happening. Tomcat log files are not containing note of any exceptions or error 
conditions resulting in tomcat going down.

Can anybody tell me as to how we can find out the cause?

As far as our webapp is concerned, addition of vehicles will cause increase in 
memory usage, but we are hosting our site in a machine having good amount of 
memory (2GB RAM).

Given below are details of our setup:

Hardware - AMD Opteron 170 (2GHz)
OS - Redhat linux 
Memory - 2 GB RAM
Tomcat - 4.1.31
Apache - 2.0.47

Thank you,
Venkatesh





 

TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/

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



Re: DST2007 - 3 Character Time Zone Problems with Java Patch

2007-03-13 Thread Mark Thomas
Sharma, Siddharth wrote:
> Hi
> Does anyone know if Tomcat is affected by this?
> I have Tomcat 5.5.16 with Sun JRE 1.5 patched with TZupdater on RHEL.
> Thanks
> Sid

Only if your application uses those timezones. Tomcat internals are
not affected by any of the daylight savings issues.

Mark


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



RE: Tomcat 5.5 failure to deploy javac 1.6 servlet

2007-03-13 Thread Caldarale, Charles R
> From: Horine Travis Contr AEDC/ATA 
> [mailto:[EMAIL PROTECTED] 
> Subject: Tomcat 5.5 failure to deploy javac 1.6 servlet
> 
> Basically I have no idea how to cross-reference Signature 
> index 63 from the class file to whatever in the java source
> code is causing it. Has anybody seen this kind of behavior
> before?

Can't say I've seen it, but you should be able to use javap to dump the
class file of interest, and at least identify what index 63 actually
points to.  You also might want to use -Xlint:all with javac to see if
there are ny suspect constructs in the source code.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: How does one configure Plain host domain url to run web app?

2007-03-13 Thread Rashmi Rubdi
You are right, the set-up I've mentioned only works for one application.

Perhaps you want to configure multiple virtual hosts. 

There's an example on that here: 
http://confluence.atlassian.com/display/DOC/Guide+to+using+Apache+Tomcat's+Virtual+Hosts

You won't need Apache HTTP connector, just Tomcat is fine I think (not sure).

On MS Windows , configure the hosts in the 
C:\WINDOWS\system32\drivers\etc\hosts , by adding this line:

127.0.0.1 pebble practice

Then configure these two apps in server.xml , as:




 




 





Then you'll be able to call 2 different applications on the root context , for 
example http://pebble:8080/   and http://practice:8080/  , you might be 
able to do something similiar on Unix, and also might be able to change the 
port to 80 , from 8080.  

I give credit to Hassan for explaining the above configuration to me a few 
months ago.

Over here 
http://confluence.atlassian.com/display/DOC/Guide+to+using+Apache+Tomcat's+Virtual+Hosts
  it also says 
because the above configuration uses name-based virtual hosting, you need to 
have entries in your DNS server for "app1" and "app2" that point to the 
application server

-Rashmi

- Original Message 
From: John Moore <[EMAIL PROTECTED]>
To: Tomcat Users List 
Sent: Tuesday, March 13, 2007 7:41:40 PM
Subject: Re: How does one configure Plain host domain url to run web app?


Thank you for replying..

This is one webapp among many on this server..  

So if I understand you correctly this will not be possible..

If I have miss understood.. could you clarify..??

John..

Rashmi Rubdi wrote:
> If you place your application as ROOT.war , directly under Tomcat's webapps 
> folder then Tomcat should load it on the root context / 
>
> But if it's named anything else then it will be at the // 
> context.
>
> I have mine set-up like this on a clean install of Tomcat 5.5 (with no 
> additional configuration) and the web application loads on the root context.
>
> If you place an index.jsp directly in the root folder of your project then, 
> that takes care of hiding the directory listing and rendering the home page 
> of your app.
>
> Also configure welcome-file in your project's web.xml to index.jsp
>   

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


 

8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

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



Re: How does one configure Plain host domain url to run web app?

2007-03-13 Thread Hassan Schroeder

On 3/13/07, John Moore <[EMAIL PROTECTED]> wrote:


> Front-ending Tomcat with Apache is messy :-)

Really..   Why.. ??


By which I meant, httpd is an extraneous complication, unless you
really need to have something like PHP or other service outside of
Tomcat. Do you?

If that's the case, mod_proxy_ajp is far simpler to configure than mod_jk.
But if not, simplify your life :-)

--
Hassan Schroeder  [EMAIL PROTECTED]

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



Re: How does one configure Plain host domain url to run web app?

2007-03-13 Thread John Moore

Thank you for replying..

This is one webapp among many on this server..  


So if I understand you correctly this will not be possible..

If I have miss understood.. could you clarify..??

John..

Rashmi Rubdi wrote:
If you place your application as ROOT.war , directly under Tomcat's webapps folder then Tomcat should load it on the root context / 


But if it's named anything else then it will be at the // context.

I have mine set-up like this on a clean install of Tomcat 5.5 (with no 
additional configuration) and the web application loads on the root context.

If you place an index.jsp directly in the root folder of your project then, 
that takes care of hiding the directory listing and rendering the home page of 
your app.

Also configure welcome-file in your project's web.xml to index.jsp
  


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



Re: How does one configure Plain host domain url to run web app?

2007-03-13 Thread John Moore

Hassan Schroeder wrote:

On 3/13/07, John Moore <[EMAIL PROTECTED]> wrote:


Problem with this an your solution is that is it messy..


Front-ending Tomcat with Apache is messy :-)


Really..   Why.. ??


-
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: Could filter redirect the request from one servlet to another servlet ?

2007-03-13 Thread Hassan Schroeder

On 3/13/07, David Delbecq <[EMAIL PROTECTED]> wrote:


You could do an internal redirect (request -> requestDispatcher ->
forward), but it would short circuit the filter chain, some important
filter might not be executed..


which presumably one knows when one's developing the app :-)

Just to reiterate David's point: put your forwarding filter /last/ in the
chain, and it'll be fine; I've done this in the past with no problems.

FWIW,
--
Hassan Schroeder  [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]



getInnerMostDelegate returns null after 24+ hours

2007-03-13 Thread darrin.edelman
Hello all -
 
Before anyone jumps the gun - we've had an application running in production
for the last several months so this isn't the usual issue with
"setAccessToUnderlyingConnectionAllowed".  
 
The issue is transient - occurring sometimes after 24+ hours operation and
seem to have started after our customer's IS team applied a daylight savings
patch (and some security patches) to their server last week.   The obvious
solution to back out these changes is not an option (so I'm told).  I'm
wondering if anyone has experienced this issue before and has a work around.
Here's the code causing the problem:
 
   conn = OracleDAOFactory.createConnection();  
   Connection dconn = ((DelegatingConnection) conn).getInnermostDelegate();
---
 
[The code for createConnection is below for reference.]
 
This body of code is executed in the top of many of our DAL methods... for
some reason it seems that the native connection that we get via
getInnermostDelegate returns null.   Againt the problem doesn't happen right
away BUT we are pretty sure that once it shows up it doesn't go away
(perhaps the result of associating our statements with caching).  You will
note that we do ((BasicDataSource)
ds).setAccessToUnderlyingConnectionAllowed(true).  Also we've done a
complete code review and we are certain that we NEVER close the dconn -
rather we are always closing the parent connection.  We've also checked to
be sure that we never close a connection twice... 
 
If anyone has ideas on how configuration or code could be wrong it would be
greatly appreciated.  Another challenge here is that we don't seem to be
able to reproduce this problem outside of the production environment.  In
production (as mentioned) this manifests after 24+ hours of successful
operation.  The current (painful) workaround is to bring down the tomcat
server and bring it back up.
 
We are considering adding a check to the code on the dconn - when the dconn
is null fetch another and remove the offending connection from the pool.
Has anyone had to implement such a thing before?  If we take this approach
is there any clean way to discard that connection so that it is not reused?
I have a current prototype that removes it from the pool if the delegate is
null and never "closes" it again so that it would effectively be removed
from operation but eventually the DB Pool will recycle these "abandond"
connections... or worse - we'll run out. 
 
Any help is greatly appreciated.
 
Thanks in advance,
-Darrin F. Edelman
 
 
 
--- code for createConnection ---
 
  public static Connection createConnection() throws Exception {
final Context initContext = new InitialContext();
final Context envContext = (Context)
initContext.lookup("java:/comp/env");
final DataSource ds = (DataSource) envContext.lookup("jdbc/ar");
 
if (ds == null) {
  throw new Exception("Error: No DataSource");
}
Connection conn;
((BasicDataSource) ds).setAccessToUnderlyingConnectionAllowed(true);
conn = ds.getConnection();
 
return conn;
  }
 


Re: Turn off Tomcat Version on 404 error.

2007-03-13 Thread Rashmi Rubdi
Custom 404 error pages can be specified in Tomcat's web.xml file located under 
TomcatFolder\conf\

Add the following to the web.xml:


  
 404
 /web/not_found_404.jsp


I've also seen this in some project's web.xml , instead of Tomcat's web.xml - 
but haven't tested it.

Some common mistakes to avoid :

- Don't name the error page with a number , for example don't name it with 
404error.jsp - as JSPs get transformed into Servlets , and Java class names
  can't begin with numbers. 

- The order of appearance matters, so place the above error-page tag , after 
the last servlet-mapping xml node.

-Rashmi

- Original Message 
From: Susan Richards <[EMAIL PROTECTED]>
To: users@tomcat.apache.org
Sent: Tuesday, March 13, 2007 4:58:45 PM
Subject: Turn off Tomcat Version on 404 error.


How does one prevent Tomcat from displaying the Tomcat version in the 404 not 
found page?


 

Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367

-
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: Could filter redirect the request from one servlet to another servlet ?

2007-03-13 Thread David Delbecq
No you can't really do a redirect from the filter. All the filter can do
is alter the request/response/session
However, what you an do i a filter for servlet /xyz that, under certain
conditions, don't call the rest of filter chain but immediatly tells the
browser (HTTP moved temporarily status code) to reissue same request to
/abc. This is not an internal server redirect, you ask browser to
reattempt operation somewhere else.

You could do an internal redirect (request -> requestDispatcher ->
forward), but it would short circuit the filter chain, some important
filter might not be executed.. The forward is, i think, supposed to
happend after full filter chain has been executed.

Erica Zhang a écrit :
> Hi,
>
> Thanks a lot for Thomas and Tim. I know an overview about filter for
> requests and responses. Now, I am not very clear if a filter could
> redirect the requests from one servlet, which is originally to handle
> the request,  to another servlet, which is really to handle the
> request after the redirection?
>
> Thanks,
>
> Erica
>
> -
> 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]



Turn off Tomcat Version on 404 error.

2007-03-13 Thread Susan Richards
How does one prevent Tomcat from displaying the Tomcat version in the 404 not 
found page?


Re: Tomcat 5.5 failure to deploy javac 1.6 servlet

2007-03-13 Thread Boris Unckel

Hello Travis,

Horine Travis Contr AEDC/ATA wrote:

Just recently upgraded our server to use tomcat 5.5 with JRE 1.6 (was tomcat
4.0 with JRE 1.3). We had several poorly written servlets that still manage
to compile under both javac 1.3 and javac 1.6.  When I compile them under
javac 1.6 they no longer deploy correctly under tomcat 5.5. I have used the
same 1.6 compiler to compile some of the tomcat 5.5 servlet examples and
they continue to deploy correctly. Basically I have no idea how to
cross-reference Signature index 63 from the class file to whatever in the
java source code is causing it. Has anybody seen this kind of behavior
before? The strange thing is I can put a static void main(...) sub in the
class and am able to compile and execute it from the command line so I know
the JRE 1.6 is able to load the class ...just tomcat seems to have the class
loading problem
  

which -source -target version did you specify?
Please have a try with
JDK 1.3 -> javac -source 1.3 -target 1.3 
and
JDK 1.6 -> javac -source 1.6 -target 1.6 .

Regards
Boris


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



Re: How does one configure Plain host domain url to run web app?

2007-03-13 Thread Hassan Schroeder

On 3/13/07, John Moore <[EMAIL PROTECTED]> wrote:


Problem with this an your solution is that is it messy..


Front-ending Tomcat with Apache is messy :-)

If you *must* use Apache for whatever reason, you'd be better off
using mod_proxy_ajp in conjunction with mod_rewrite to handle this
configuration.

FWIW,
--
Hassan Schroeder  [EMAIL PROTECTED]

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



Re: How does one configure Plain host domain url to run web app?

2007-03-13 Thread Rashmi Rubdi
If you place your application as ROOT.war , directly under Tomcat's webapps 
folder then Tomcat should load it on the root context / 

But if it's named anything else then it will be at the // context.

I have mine set-up like this on a clean install of Tomcat 5.5 (with no 
additional configuration) and the web application loads on the root context.

If you place an index.jsp directly in the root folder of your project then, 
that takes care of hiding the directory listing and rendering the home page of 
your app.

Also configure welcome-file in your project's web.xml to index.jsp

-Rashmi

- Original Message 
From: John Moore <[EMAIL PROTECTED]>
To: Tomcat Users List 
Sent: Tuesday, March 13, 2007 4:12:48 PM
Subject: Re: How does one configure Plain host domain url to run web app?


Rashmi Rubdi wrote:
> I think an application runs on the root context / by default, if it's 
> configured this way in server.xml :
>
> 
>
>  reloadable="true" />
> 
>
> 
>   
Thanks for replying..

I have that already and it does not help..

Other suggestions..??

John..


 

8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

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



Re: How does one configure Plain host domain url to run web app?

2007-03-13 Thread John Moore

Caldarale, Charles R wrote:
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Subject: Re: How does one configure Plain host domain url to 
run web app?


Dont use a redirect... it goes back to the browser and its not cool.



Nothing wrong with redirects.  They're quite appropriate to allow the
browser to properly evaluate relative links in pages without the need
for the extra gyrations you're suggesting.

  

 I agree...

Do you have any thoughts on a solution...

John..


Re: How does one configure Plain host domain url to run web app?

2007-03-13 Thread John Moore

[EMAIL PROTECTED] wrote:

Hi John,

Ok, I'm going to try show you how I think about this stuff... and I'm 
often wrong ;)


Dont use a redirect... it goes back to the browser and its not cool.

Firstly make a servlet and have a look at the CONTEXT.XML file under 
META-INF


Thank you for taking the time to explain your idea..   I actually often 
do it another way.. I create another "host" for the webapp and then 
place the plain domain "www.mydomain.com" as an Apache HTdocs and then 
redirect to the webapp host..


Problem with this an your solution is that is it messy.. We serve a LOT 
of webapps and need to keep it as simple as possible..  I will study 
your idea and see if it can help me on finding a cleaner solution..


John..

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



Re: How does one configure Plain host domain url to run web app?

2007-03-13 Thread John Moore

Rashmi Rubdi wrote:

I think an application runs on the root context / by default, if it's 
configured this way in server.xml :


   


   

  

Thanks for replying..

I have that already and it does not help..

Other suggestions..??

John..



-
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 failure to deploy javac 1.6 servlet

2007-03-13 Thread Horine Travis Contr AEDC/ATA
Just recently upgraded our server to use tomcat 5.5 with JRE 1.6 (was tomcat
4.0 with JRE 1.3). We had several poorly written servlets that still manage
to compile under both javac 1.3 and javac 1.6.  When I compile them under
javac 1.6 they no longer deploy correctly under tomcat 5.5. I have used the
same 1.6 compiler to compile some of the tomcat 5.5 servlet examples and
they continue to deploy correctly. Basically I have no idea how to
cross-reference Signature index 63 from the class file to whatever in the
java source code is causing it. Has anybody seen this kind of behavior
before? The strange thing is I can put a static void main(...) sub in the
class and am able to compile and execute it from the command line so I know
the JRE 1.6 is able to load the class ...just tomcat seems to have the class
loading problem

 

Thanks for any help,

[EMAIL PROTECTED]  

 

Error message from tomcat stdout file:

 

SEVERE: Error deploying web application archive dimReporting.war

java.lang.ClassFormatError: Signature index 63 in LocalVariableTable has bad
constant type in class file
mil/af/arnold/cm/dimensions/reporting/CrStatusServlet

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:620)

at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
ader.java:1650)

at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
a:856)

at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1305)

at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1187)

at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:10
27)

at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)

at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3880)

at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4141)

at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
59)

at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)

at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)

at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693)

at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)

at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)

at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)

at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:119)

at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)

at
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)

at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)

at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)

at
org.apache.catalina.core.StandardService.start(StandardService.java:450)

at
org.apache.catalina.core.StandardServer.start(StandardServer.java:680)

at org.apache.catalina.startup.Catalina.start(Catalina.java:536)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)

at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)



Re: modjk isapi_redirect.dll denying access to web-inf and meta-inf

2007-03-13 Thread Mladen Turk

[EMAIL PROTECTED] wrote:


Is there an option to configure modjk so that it only protects the WEB-INF
and META-INF directories when they are part of a url defined in
uriworkermap.properties?



No, but good point.


Is there an option to turn this protection off completely?



No.

Regards,
Mladen.

-
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: SSO ID in the first request

2007-03-13 Thread Gregor Schneider

I guess you're talking about JSSOSessionID-Cookie, right?

I believe the whole design is not too smart:

Since all webapps are sharing the same session, I'd store the needed
values as session-attributes (too lazy to look it up right now, but
should work like

HttpSession session = .;
session.setAttribute(String nameOfYourObject, Object yourObject);
Object yourObject = session.getAttribute(String nameOfYourObject);

However, this works only when running all your webapps within the same
Tomcat-instance.
If this is not the case, take a look at webservices.

HTH

Greg
--
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

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



modjk isapi_redirect.dll denying access to web-inf and meta-inf

2007-03-13 Thread Cory . Bestgen

Windows 2003 server with Tomcat 5.5.20 and modjk 1.2.21

This server is running ViewVC along with having Tomcat serving Hudson and
Jira.

We have been unable to browse the WEB-INF and META-INF directories of our
projects under ViewVC since adding the isapi_redirect.dll.

Is there an option to configure modjk so that it only protects the WEB-INF
and META-INF directories when they are part of a url defined in
uriworkermap.properties?

Is there an option to turn this protection off completely?

Thanks,
Cory


-
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: Apache - tomcat connection on Suse Lnux

2007-03-13 Thread Larry Isaacs
The presence of "/usr/share/tomcat5" in the servlet-api.jar
path suggests you are using a packaged install of Tomcat.  While
doing some Eclipse Web Tools testing on SUSE 10.x (I think 10.1),
the "servlet-api.jar" it was installed as a dependency of the
Tomcat install and was symlinked as "[servletapi5].jar".  It worked
fine as a symlink, but for this install, you won't be able to use
"standard" (i.e. Apache Tomcat download equivalent) batch scripts
or names which aren't compatible with alterations made to create
the packaged Tomcat install.  There isn't enough info to tell why
startup is looking for a jar named servlet-api.jar.  The packaged
install wouldn't normally do that.

Cheers,
Larry

> -Original Message-
> From: David Smith [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 13, 2007 1:56 PM
> To: Tomcat Users List
> Subject: Re: Apache - tomcat connection on Suse Lnux
> 
> Looks like the error says it all.  Tomcat can't find 
> servlet-api.jar in common/lib.  Check that it really exists 
> there and isn't a symlink. 
> Tomcat isn't known for tolerating symlinks all that well.
> 
> --David
> 
> dianelane wrote:
> > On a Suse linu 10 server, with Apache2 I am trying to setup Tomcat5 
> > (coonector with Apache2) to run web applicatons.
> > I do foolow the Apache Tomcat Coonector - webserver how-to, 
> but have errors.
> >
> > Java and Tomcat installed from Suse repository via YAst.
> > mod_jk.so downloaded and stored in /usr/lib/apache2 
> > /etc/tomcat5/base/workers.properties modified as follows ...
> > #workers.tomcat_home=/var/tomcat3
> > workers.tomcat_home=/usr/share/tomcat5
> > #
> > # workers.java_home should point to your Java installation. 
> Normally # 
> > you should have a bin and lib directories beneath it.
> > #
> > #workers.java_home=/opt/IBMJava2-13
> > workers.java_home=/usr/lib/java
> > ...
> >
> > in /etc/apache2/httpd.con file added last line Include 
> > /usr/share/tomcat5/conf/jk/mod_jk.conf-auto
> >
> > /ets/tomcat5/base/server.xml modified as follows:
> >className="org.apache.catalina.mbeans.ServerLifecycleListener"
> > debug="0"/>
> >> 
> className="org.apache.catalina.mbeans.GlobalResourcesLifecycle
> Listener"
> > debug="0"/>
> >> modJk="/usr/lib/apache2/mod_jk.so" />
> >
> > tomcat restarted with error 7 and log
> > files
> >
> > start.log:
> > Using CATALINA_BASE:   /srv/www/tomcat5/base/
> > Using CATALINA_HOME:   /usr/share/tomcat5
> > Using CATALINA_TMPDIR: /srv/www/tomcat5/base//temp
> > Using JAVA_HOME:   /usr/lib/jvm/java
> >
> > catalina.out:
> > Bootstrap: Class loader creation threw exception
> > java.lang.IllegalArgumentException: addRepositoryInternal:
> > repository='file:/usr/share/tomcat5/common/lib/servlet-api.jar'
> > at
> > 
> org.apache.catalina.loader.StandardClassLoader.addRepositoryIn
> ternal(StandardClassLoader.java:957)
> > at
> > 
> org.apache.catalina.loader.StandardClassLoader.(Standard
> ClassLoader.java:153)
> > at
> > 
> org.apache.catalina.startup.ClassLoaderFactory.createClassLoad
> er(ClassLoaderFactory.java:207)
> > at
> > 
> org.apache.catalina.startup.Bootstrap.createClassLoader(Bootst
> rap.java:163)
> > at
> > 
> org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstr
> ap.java:104)
> > at 
> org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:196)
> > at 
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402)
> > Caused by: java.util.zip.ZipException: No such file or directory
> > at java.util.zip.ZipFile.open(Native Method)
> > at java.util.zip.ZipFile.(ZipFile.java:203)
> > at java.util.jar.JarFile.(JarFile.java:132)
> > at java.util.jar.JarFile.(JarFile.java:70)
> > at
> > 
> org.apache.catalina.loader.StandardClassLoader.addRepositoryIn
> ternal(StandardClassLoader.java:944)
> > ... 6 more
> >
> > Could you help me?
> > thank you
> >   
> 
> 
> -
> 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]



HTTPS services will not start (after stopping services)

2007-03-13 Thread Jayson Enriquez
Our server is scheduled to restart tomcat5.exe to relieve memory leaks
on a 
daily basis. Our HTTP site is fine but our HTTPS is not. HTTP status 404
- / 
is the error message.type Status report - message / description The
requested 
resource (/) is not available.
 
HTTPS services will not start (after stopping services) for Tomcat5.exe
 
We run Documentum on this site. We simply ask the user community to
remove 
the 's' on the HTTP'S' to enter the Documentum login site. This occurs
2-3 
times a week. Any ideas?
 
Thanks for your assistance.

 

System config>:

Tomat5 - 5.0.28 server

Java VM - j2sdk1.4.2

OS - win2k

Mem - 3gb

Processors - 4

Service Pack - SP4

Environment - production

 

 

Thank you



 

Jayson Enriquez CHDP

Sacramento Municipal Utility District

Business Technology / EDM Support

916 . 732 . 6977

 



Re: Apache - tomcat connection on Suse Lnux

2007-03-13 Thread David Smith
Looks like the error says it all.  Tomcat can't find servlet-api.jar in
common/lib.  Check that it really exists there and isn't a symlink. 
Tomcat isn't known for tolerating symlinks all that well.

--David

dianelane wrote:
> On a Suse linu 10 server, with Apache2 I am trying to setup Tomcat5
> (coonector with Apache2) to run web applicatons.
> I do foolow the Apache Tomcat Coonector - webserver how-to, but have errors.
>
> Java and Tomcat installed from Suse repository via YAst.
> mod_jk.so downloaded and stored in /usr/lib/apache2
> /etc/tomcat5/base/workers.properties modified as follows
> ...
> #workers.tomcat_home=/var/tomcat3
> workers.tomcat_home=/usr/share/tomcat5
> #
> # workers.java_home should point to your Java installation. Normally
> # you should have a bin and lib directories beneath it.
> #
> #workers.java_home=/opt/IBMJava2-13
> workers.java_home=/usr/lib/java
> ...
>
> in /etc/apache2/httpd.con file added last line 
> Include /usr/share/tomcat5/conf/jk/mod_jk.conf-auto
>
> /ets/tomcat5/base/server.xml modified as follows:
>debug="0"/>
>className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
> debug="0"/>
>modJk="/usr/lib/apache2/mod_jk.so" />
>
> tomcat restarted with error 7 and log
> files
>
> start.log:
> Using CATALINA_BASE:   /srv/www/tomcat5/base/
> Using CATALINA_HOME:   /usr/share/tomcat5
> Using CATALINA_TMPDIR: /srv/www/tomcat5/base//temp
> Using JAVA_HOME:   /usr/lib/jvm/java
>
> catalina.out:
> Bootstrap: Class loader creation threw exception
> java.lang.IllegalArgumentException: addRepositoryInternal:
> repository='file:/usr/share/tomcat5/common/lib/servlet-api.jar'
>   at
> org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:957)
>   at
> org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.java:153)
>   at
> org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:207)
>   at
> org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.java:163)
>   at
> org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:104)
>   at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:196)
>   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402)
> Caused by: java.util.zip.ZipException: No such file or directory
>   at java.util.zip.ZipFile.open(Native Method)
>   at java.util.zip.ZipFile.(ZipFile.java:203)
>   at java.util.jar.JarFile.(JarFile.java:132)
>   at java.util.jar.JarFile.(JarFile.java:70)
>   at
> org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:944)
>   ... 6 more
>
> Could you help me?
> thank you
>   


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



Could filter redirect the request from one servlet to another servlet ?

2007-03-13 Thread Erica Zhang

Hi,

Thanks a lot for Thomas and Tim. I know an overview about filter for 
requests and responses. Now, I am not very clear if a filter could 
redirect the requests from one servlet, which is originally to handle 
the request,  to another servlet, which is really to handle the request 
after the redirection?


Thanks,

Erica

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

2007-03-13 Thread Markus Schönhaber
daniel martin wrote:

> I'm trying to get my tomcat instance to connect over https to an external
> server.
> I have written a test servlet to do this
>
> String httpsURL = "*https*://*example*.microsoft.com";

The '*'s aren't really in your code, are they?

> But always get the following exception
>
> java.net.UnknownHostException: example.microsoft.com
>   java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
>   java.net.Socket.connect(Socket.java:519)
>   java.net.Socket.connect(Socket.java:469)
>
> Any ideas?

Yes.
1. Check the DNS settings of the machine. example.microsoft.com should be 
resolvable.
2. Connect to a server that presents a certificate to your client that matches 
the host's name or set a HostnameVerifier with a verify method that returns 
true for this connection.
3. Connect to a host that actually returns content and not only an error 
message.

BTW: this has nothing to do with Tomcat.

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]



Apache - tomcat connection on Suse Lnux

2007-03-13 Thread dianelane

On a Suse linu 10 server, with Apache2 I am trying to setup Tomcat5
(coonector with Apache2) to run web applicatons.
I do foolow the Apache Tomcat Coonector - webserver how-to, but have errors.

Java and Tomcat installed from Suse repository via YAst.
mod_jk.so downloaded and stored in /usr/lib/apache2
/etc/tomcat5/base/workers.properties modified as follows
...
#workers.tomcat_home=/var/tomcat3
workers.tomcat_home=/usr/share/tomcat5
#
# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
#workers.java_home=/opt/IBMJava2-13
workers.java_home=/usr/lib/java
...

in /etc/apache2/httpd.con file added last line 
Include /usr/share/tomcat5/conf/jk/mod_jk.conf-auto

/ets/tomcat5/base/server.xml modified as follows:
  
  
  

tomcat restarted with error 7 and log
files

start.log:
Using CATALINA_BASE:   /srv/www/tomcat5/base/
Using CATALINA_HOME:   /usr/share/tomcat5
Using CATALINA_TMPDIR: /srv/www/tomcat5/base//temp
Using JAVA_HOME:   /usr/lib/jvm/java

catalina.out:
Bootstrap: Class loader creation threw exception
java.lang.IllegalArgumentException: addRepositoryInternal:
repository='file:/usr/share/tomcat5/common/lib/servlet-api.jar'
at
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:957)
at
org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.java:153)
at
org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java:207)
at
org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.java:163)
at
org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:104)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:196)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402)
Caused by: java.util.zip.ZipException: No such file or directory
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:203)
at java.util.jar.JarFile.(JarFile.java:132)
at java.util.jar.JarFile.(JarFile.java:70)
at
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java:944)
... 6 more

Could you help me?
thank you
-- 
View this message in context: 
http://www.nabble.com/Apache---tomcat-connection-on-Suse-Lnux-tf3397240.html#a9458949
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: Can one map a servlet to a specific connctor?

2007-03-13 Thread Peter Kennard



Try ServletRequest.getLocalPort() rather than getServerPort().


Yes exactly, thanks - that is an addition to the api after the book I read :)
eclipse auto-complete and the sun website is your friend :)

*

Part of all these questions is I am looking to implement a servlet 
subclass which will "auto register" itself with an upstream front end 
(maybe AJP does this?) so ideally I would want to be able to query 
what URI "host,port,path" would access the proper connector and 
servlet when it's "init()" is called so I can pass it to upstream to 
the front-end router.  Of course at this time no request has been 
recieved.  I guess I could do it by parsing the server.xml or putting 
in rendundant per servlet initParameters but that makes me queasy, I 
like the thing itself to propagate it's own state changes :)


PK

At 11:58 3/13/2007, you wrote:

> From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
> Subject: RE: Can one map a servlet to a specific connctor?

Try ServletRequest.getLocalPort() rather than getServerPort().




-
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: Memory continues to increase (Tomcat5.exe)

2007-03-13 Thread Peter Crowther
> From: Jayson Enriquez [mailto:[EMAIL PROTECTED] 
> I am not a developer. I support an application called EDMS (Electronic
> Documentum Management System).
[...]
> Is there a permanent fix to keep tomcat5.exe memory usage stable?

Yes.  Tell Documentum to find and fix the memory leak in their
application.  Then install the fixed version.

- 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 different docbases multiple context

2007-03-13 Thread kyle999312

we are using Tomcat 5.0.28 and currently we have about 100 different contexts
.ie domain/a.. domain/b.. and so on all of which run off of the same code
but each domain runs against a different database.  Currently everything
runs off its own docbase /a looks at /a, /b at /b and so on.  I dont like
the fact that we have the same code duplicated 100 times makes maintaining
and updating a pain and it seems like it wouldnt be the best result
performance wise.

Would changing everything to point at one docbase improve the performance of
tomcat? 
Are there other performance enhancements I could do to help out tomcat?
It seems like when we get up to around 100 threads in tomcat that tomcat
will start really struggling usually results in a out of memory error we
have 4 gigs of ram and i think we were able to allocate like 1.2 or so to
tomcat should we be able to handle more then 100 threads at a single time?

Im not much of a tomcat person but it seems we should be able to get some
better performance out of it so any help is appreciated

Thanks
-- 
View this message in context: 
http://www.nabble.com/Tomcat-different-docbases-multiple-context-tf3397202.html#a9458819
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Memory continues to increase (Tomcat5.exe)

2007-03-13 Thread Jayson Enriquez
Hi - 

 

I am not a developer. I support an application called EDMS (Electronic
Documentum Management System). To run this we too must utilize Tomcat to
launch JVM. I restart Tomcat to release memory usage on a daily basis.
(Task Manager) We start at 260mb and by the end of the day we are at
900+mb. This depends on how many users are connected and rendering jobs.
Is there a permanent fix to keep tomcat5.exe memory usage stable? The
memory increase can cause our server to error out on 'lock'.  Please
assist.

 

I've read article in http://tomcat.apache.org/faq/memory.html#why but
did not help.

 

System config>:

 

Tomat5 - 5.0.28 server

Java VM - j2sdk1.4.2

OS - win2k

Mem - 3gb

Processors - 4

Service Pack - SP4

Environment - production

 

Thank you



 

Jayson Enriquez CHDP

Sacramento Municipal Utility District

Business Technology / EDM Support

916 . 732 . 6977

 



Tomcat https

2007-03-13 Thread daniel martin

Hi,
I'm trying to get my tomcat instance to connect over https to an external
server.
I have written a test servlet to do this

String httpsURL = "*https*://*example*.microsoft.com";
   URL myurl = new URL(httpsURL);
   HttpsURLConnection con = (HttpsURLConnection)myurl.openConnection();
   InputStream ins = con.getInputStream();
   InputStreamReader isr=new InputStreamReader(ins);
   BufferedReader in =new BufferedReader(isr);
   String inputLine;
   while ((inputLine = in.readLine()) != null)
   out.println(inputLine);
   in.close();


But always get the following exception

java.net.UnknownHostException: example.microsoft.com
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
java.net.Socket.connect(Socket.java:519)
java.net.Socket.connect(Socket.java:469)

Any ideas?

Cheers

Dan


RE: Can one map a servlet to a specific connctor?

2007-03-13 Thread Peter Kennard

This could be the ticket!

At 11:53 3/13/2007, you wrote:

You could configure proxyPort in your  to some value that you
could use as a flag for your particular environment.  This will override
the header value returned by getServerPort().  Don't know if there would
be any undesirable side effects.

 - Chuck




-
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: Cannot start tomcat5 service with jrockit

2007-03-13 Thread bb

Hi,

We are running 5.5.17 as a service using JRockit. A couple things to check:

1) if you are using the service.bat to install as a service confirm that 
the PR_JVM is considering the correct path to the jrockit dll. this 
should be std in the 5.5.20 service.bat:


rem Set the server jvm from JAVA_HOME
set PR_JVM=%JAVA_HOME%\jre\bin\server\jvm.dll
if exist "%PR_JVM%" goto foundJvm
rem Set the client jvm from JAVA_HOME
set PR_JVM=%JAVA_HOME%\jre\bin\client\jvm.dll
if exist "%PR_JVM%" goto foundJvm
rem Check for JRockit JVM: Bugzilla 39674
set PR_JVM=%JAVA_HOME%\jre\bin\jrockit\jvm.dll
if exist "%PR_JVM%" goto foundJvm
set PR_JVM=auto

2) you might need to add the %JAVA_HOME%\jre\bin to the environment 
PATH. I didn't think we had to do this for Win2003 but it was required 
for XP.


Hope that helps.

Igor Shevchenko wrote:

> Hello,
> I'm experiencing problems with starting tomcat as a service under 
Win2003 server with jrockit jvm.
> Tomcat version is 5.5.20 and it starts successfully using startup.bat 
script, but when trying to start it as a service I have the following 
output in jakarta-service log:

> [2007-03-12 04:45:48] [info] Running Service...
> [2007-03-12 04:45:48] [info] Starting service...
> [2007-03-12 04:45:48] [173  javajni.c] [error] The specified module 
could not be found.
> [2007-03-12 04:45:48] [924  prunsrv.c] [error] Failed creating java 
C:\jrockit-R27.1.0-jdk1.5.0_08\jre\bin\jrockit\jvm.dll

> [2007-03-12 04:45:48] [1179 prunsrv.c] [error] ServiceStart returned 1
> [2007-03-12 04:45:48] [info] Run service finished.
> [2007-03-12 04:45:48] [info] Procrun finished.
> I've tried googling and reading mailing archives but couldn't find a 
solution.

>
> Best regards,
> ---
> Igor Shevchenko

-
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: Can one map a servlet to a specific connctor?

2007-03-13 Thread Caldarale, Charles R
> From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
> Subject: RE: Can one map a servlet to a specific connctor?

Try ServletRequest.getLocalPort() rather than getServerPort().

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



RE: Can one map a servlet to a specific connctor?

2007-03-13 Thread Caldarale, Charles R
> From: Peter Kennard [mailto:[EMAIL PROTECTED] 
> Subject: RE: Can one map a servlet to a specific connctor?
> 
> I Verified this returns the port indicated by the client in 
> the header.

You could configure proxyPort in your  to some value that you
could use as a flag for your particular environment.  This will override
the header value returned by getServerPort().  Don't know if there would
be any undesirable side effects.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



RE: Can one map a servlet to a specific connctor?

2007-03-13 Thread Peter Kennard

I Verified this returns the port indicated by the client in the header.

Not the port the request was recieved by at the tomcat instance.
Appropriate for a client to send and passed through by proxys, 
remappers, front ends etc. but not to determine where it ends up.

PK

At 07:23 3/13/2007, you wrote:

Damn! I missed that :)  Thanks.

I assume this is taking it from where the hit arrives in at the 
server and not the HTTP headers passed in (which could be anything)


At 01:32 3/13/2007, you wrote:

> From: Peter Kennard [mailto:[EMAIL PROTECTED]
> Subject: Re: Can one map a servlet to a specific connctor?
>
> Can I determine the connector port connected to for a request from
> service() I don't see it in the servlet API but am willing to access
> somthing tomcat specific.

ServletRequest.getServerPort() is inherited by HTTPServletRequest.

 - Chuck




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



SSO ID in the first request

2007-03-13 Thread Fredrik Tolf
Hi List!

We are developing a couple of webapps that need to talk to each other,
and to do that, we have been using HTTP to just fetch certain URLs from
the other webapps to the requesting webapp. To ensure that the
programmatic request is carried out in the context of the user doing the
client request to the first webapp, we are fetching the SSOID cookie
value and putting that in the request to the second webapp. (I hope I'm
making myself clear)

However, we have encountered the problem that if the user is not already
authenticated upon the client request, the SSOID cookie doesn't exist,
so we can't forward its value to the second webapp. We haven't been able
to find a good workaround for this problem so far, so I'm turning to you
good people on the list for assistance.

What do you think? Are we making a mistake in using the SSOID to begin
with and should just think of another way, or is there a way to do this
properly. We have thought of the following workarounds -- could you
please tell me what you think of them?

1. Write a subclass of org.apache.catalina.authenticator.SingleSignOn,
which catches a call to the register() method and puts that SSOID in a
request attribute, which can later be fetched from another webapp to do
the second request.
2. Write a filter, which upon detection of a non-existing SSOID cookie,
sends a redirect back to the same URL to the client, which should make
the AuthenticatorBase valve send the SSOID cookie to the client, so that
it exists when the client comes back.
3. Use reflection somehow to fetch the SSOID cookie from the SSO valve.
I don't think this is possible, though, thanks to Tomcat's protection
against reflection from webapps.

Thanks for reading!

Fredrik Tolf



-
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.23 Will Not Unpackage Application

2007-03-13 Thread neilac333

I put commons-el.jar back in common/lib and removed the corresponding jar
from my WAR file.  I still got the same result.

FYI, here is the latest WAR file:

META-INF/
META-INF/MANIFEST.MF
index.html
index.xhtml
result.xhtml
WEB-INF/
WEB-INF/classes/
WEB-INF/classes/test/
WEB-INF/classes/test/PersonBean.class
WEB-INF/faces-config.xml
WEB-INF/web.xml
WEB-INF/lib/
WEB-INF/lib/jsf-facelets.jar
WEB-INF/lib/myfaces-api-1.1.5.jar
WEB-INF/lib/myfaces-impl-1.1.5.jar
WEB-INF/lib/tomahawk-1.1.3.jar
WEB-INF/lib/commons-beanutils-1.7.0.jar
WEB-INF/lib/commons-codec-1.3.jar
WEB-INF/lib/commons-collections-3.1.jar
WEB-INF/lib/commons-digester-1.6.jar
WEB-INF/lib/commons-lang-2.1.jar
WEB-INF/lib/commons-logging-1.0.4.jar
WEB-INF/lib/commons-validator-1.3.1.jar

I have also attached the file for your perusal.
http://www.nabble.com/file/7135/myfaces.war myfaces.war 
Neil



Caldarale, Charles R wrote:
> 
>> From: neilac333 [mailto:[EMAIL PROTECTED] 
>> Subject: RE: Tomcat 5.5.23 Will Not Unpackage Application
>> 
>> I did, however, find commons-el.jar in common/lib.
>> I removed it, but I continue to get the same result.
> 
> Don't remove things from common/lib - Tomcat itself needs what's in
> there.  Remove duplicate classes and jars from your webapp instead.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tomcat-5.5.23-Will-Not-Unpackage-Application-tf3383274.html#a9456480
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



DST2007 - 3 Character Time Zone Problems with Java Patch

2007-03-13 Thread Sharma, Siddharth
Hi
Does anyone know if Tomcat is affected by this?
I have Tomcat 5.5.16 with Sun JRE 1.5 patched with TZupdater on RHEL.
Thanks
Sid


Explanation of scope of the 3-character time zone problems with Java
Applications (DST2007 - Java Patch)
 
Abstract   
Two types of 3-character time zone incompatibility problem have resulted
from the change introduced by the Olson table in late-2005 and these have
been present in all Sun and IBM® Java(tm) 1.4.2 and 5.0 refreshes since
mid-2006. They are also present in all instances of Java 1.4.2 and 5.0 that
have been patched by the IBM Time Zone Update Utility for Java.
 
http://www-1.ibm.com/support/docview.wss?rs=3068&uid=swg21256531 

-
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: Chrooting Tomcat // Linux threading issue

2007-03-13 Thread Andrew Miehs

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Roman,

To be honest I don't really understand your concerns with 2.6,
but if you really want to be running anything that uses threads,
use a 2.6 kernel.

If the Java Tomcat App that you are running is just a frontend
to something else, and not really for production purposes, then
you can happily stick with 2.4

And yes - 2.6 with NPTL is MUCH faster under high load than
using an old 2.4 kernel.

In my experience Java 1.5 is also much quicker than Java 1.42

On 13/03/2007, at 3:48 PM, Roman Medina-Heigl Hernandez wrote:


Hi Chuck,

"Not too much relevant" != "isn't relevant". Performance is always
relevant, so it's good to enhance it *if possible*. I mean, if  
switching to
2.6 could make security worse (I know, this assert could be  
subjective /

questionable but it's one opinion) AND performance is not too much
relevant, I will not switch to 2.6.

I don't know the enhancements of different JVM branchs/versions,  
nor from a
 performance perspective, neither from a security perspective, so a  
JVM

upgrade could be perfectly possible and coherent with my thoughts.

I hope your curiosity is satisfied :-)

Cheers,
-r

Caldarale, Charles R escribió:

From: Roman Medina-Heigl Hernandez [mailto:[EMAIL PROTECTED]
Subject: Re: Chrooting Tomcat // Linux threading issue

Performance, in this case, is not too much relevant.

Would I notice big performance improvements if upgrading?


I'm curious: if performance isn't relevant, why do you care if a JVM
upgrade would make it better?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE  
PROPRIETARY

MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e- 
mail

and its attachments from all computers.

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



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



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFF9ruYW126qUNSzvURAuR/AJ9VMX4gL161TxBXaDYEPXNKNJdq5QCffZgJ
gJOVSu4uVlJ4shlP0yZFH7I=
=KZVm
-END PGP SIGNATURE-

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



Re: Chrooting Tomcat // Linux threading issue

2007-03-13 Thread Roman Medina-Heigl Hernandez
Hi Chuck,

"Not too much relevant" != "isn't relevant". Performance is always
relevant, so it's good to enhance it *if possible*. I mean, if switching to
2.6 could make security worse (I know, this assert could be subjective /
questionable but it's one opinion) AND performance is not too much
relevant, I will not switch to 2.6.

I don't know the enhancements of different JVM branchs/versions, nor from a
 performance perspective, neither from a security perspective, so a JVM
upgrade could be perfectly possible and coherent with my thoughts.

I hope your curiosity is satisfied :-)

Cheers,
-r

Caldarale, Charles R escribió:
>> From: Roman Medina-Heigl Hernandez [mailto:[EMAIL PROTECTED] 
>> Subject: Re: Chrooting Tomcat // Linux threading issue
>>
>> Performance, in this case, is not too much relevant.
>>
>> Would I notice big performance improvements if upgrading?
> 
> I'm curious: if performance isn't relevant, why do you care if a JVM
> upgrade would make it better?
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



RE: How does one configure Plain host domain url to run web app?

2007-03-13 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Subject: Re: How does one configure Plain host domain url to 
> run web app?
> 
> Dont use a redirect... it goes back to the browser and its not cool.

Nothing wrong with redirects.  They're quite appropriate to allow the
browser to properly evaluate relative links in pages without the need
for the extra gyrations you're suggesting.

> Firstly make a servlet and have a look at the CONTEXT.XML file under 
> META-INF
> 
> Now have a look at WEB.XML under WEB-INF

Watch out for case sensitivity here; both context.xml and web.xml must
be lower-case file names.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



RE: Chrooting Tomcat // Linux threading issue

2007-03-13 Thread Caldarale, Charles R
> From: Roman Medina-Heigl Hernandez [mailto:[EMAIL PROTECTED] 
> Subject: Re: Chrooting Tomcat // Linux threading issue
> 
> Performance, in this case, is not too much relevant.
> 
> Would I notice big performance improvements if upgrading?

I'm curious: if performance isn't relevant, why do you care if a JVM
upgrade would make it better?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



RE: Tomcat 5.5.23 Will Not Unpackage Application

2007-03-13 Thread Caldarale, Charles R
> From: neilac333 [mailto:[EMAIL PROTECTED] 
> Subject: RE: Tomcat 5.5.23 Will Not Unpackage Application
> 
> I did, however, find commons-el.jar in common/lib.
> I removed it, but I continue to get the same result.

Don't remove things from common/lib - Tomcat itself needs what's in
there.  Remove duplicate classes and jars from your webapp instead.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: apache-tomcat-6.0.10 OutOfMemoryError

2007-03-13 Thread acec acec
Hi, Remy
After I added <%@ page session="false" %> into
/apache-tomcat-6.0.10/webapps/examples/jsp/tagplugin/foreach.jsp
, I could not reproduce OutOfMemoryError.
But if I add <%@ page session="false" %> into my
application, my jsp could not get information from
session. How can I walk around this problem?
Thanks.
Arden

--- Rémy Maucherat <[EMAIL PROTECTED]> wrote:

> On 3/12/07, Filip Hanik - Dev Lists
> <[EMAIL PROTECTED]> wrote:
> > add -XX:+HeapDumpOnOutOfMemoryError to your
> JAVA_OPTS, then you can zip
> > up the file that gets generated, make it available
> to us and I'll take a
> > look at it
> 
> Most likely it's because of session creation. (you
> should not be too
> naive about problem reports, I think :D)
> 
> -> Add <%@ page session="false" %> before testing
> the page, or make
> the client send a cookie with the session id.
> 
> Rémy
> 
>
-
> To start a new topic, e-mail:
> users@tomcat.apache.org
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To 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.23 Will Not Unpackage Application

2007-03-13 Thread neilac333

There is nothing in shared/lib.  I did, however, find commons-el.jar in
common/lib.  I removed it, but I continue to get the same result.

Here are the remaining contents of common/lib:

commons-logging.jar
jasper-compiler-jdt.jar
jasper-compiler.jar
jasper-runtime.jar
jsp-api.jar
log4j-1.2.14.jar
naming-factory-dbcp.jar
naming-factory.jar
naming-resources.jar
servlet-api.jar

Off the top of your head, do you know any others I should consider removing?

Neil


Caldarale, Charles R wrote:
> 
>> From: neilac333 [mailto:[EMAIL PROTECTED] 
>> Subject: Re: [OT] Tomcat 5.5.23 Will Not Unpackage Application
>> 
>> That is a good thought, but I have included all the Commons 
>> files in my WAR file as you can see.
> 
> Which will be a problem if they're already in the common/lib or
> shared/lib.  A given class must not appear in more than one place in a
> given class loader branch, or you will get NCDFE problems.
> 
> Take a look at:
> http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tomcat-5.5.23-Will-Not-Unpackage-Application-tf3383274.html#a9454484
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Cannot start tomcat5 service with jrockit

2007-03-13 Thread kjcollins
> look you say that your >>"Tomcat version is 5.5.20"<<. Why don't u 
> simply try/attempt to get version 6.x of Tomcat by now??? I mean any 
> kind of version 5 is way too old by now! Capiche? [Understand?] 


If someone is looking to impliment a new PRODUCTION install of Tomcat for 

Centric CRM - or some other purpose - is version 5.5.* really that 'old' ?

In terms of what people are finding from actual use, is version 6.* 
considered a stable release OR 
more of a beta release ?


(I mean,  MS considered Vista a 'stable' release - so if those guys with 
millions of dollars and
 man hours and QA ability missed one or two things - so might anyone 
else.)

Re: The requested resource (/) is not available.

2007-03-13 Thread David Smith
It would except tomcat just serves up folders with out web.xml files as
static resources.  A WARN might be in order, but that's about it.  In
addition, tomcat does not chase down sym links.  Best practice is to be
sure all required resources are contained within the webapp.

--David

Aditya Prasad wrote:
> I guess all I'm looking for is something like "could not find a
> web.xml for resource" or somesuch.
>
> On 3/12/07, Martin Gainty <[EMAIL PROTECTED]> wrote:
>> Prasad-
>>
>> If you can get Tomcat to resolve any of the hundreds of OS specific
>> binary or construct (such as symlink)..
>> you can always exit the VM to the OS thru Runtime.exec() ..but then
>> again that would spawn a process
>>
>> Anyone else?
>> M-
>> ---
>>
>> This e-mail message (including attachments, if any) is intended for
>> the use of the individual or entity to which it is addressed and may
>> contain information that is privileged, proprietary , confidential
>> and exempt from disclosure. If you are not the intended recipient,
>> you are notified that any dissemination, distribution or copying of
>> this communication is strictly prohibited.
>> ---
>>
>> Le présent message électronique (y compris les pièces qui y sont
>> annexées, le cas échéant) s'adresse au destinataire indiqué et peut
>> contenir des renseignements de caractère privé ou confidentiel. Si
>> vous n'êtes pas le destinataire de ce document, nous vous signalons
>> qu'il est strictement interdit de le diffuser, de le distribuer ou de
>> le reproduire.
>> - Original Message -
>> From: "Aditya Prasad" <[EMAIL PROTECTED]>
>> To: "Tomcat Users List" 
>> Sent: Monday, March 12, 2007 8:15 PM
>> Subject: Re: The requested resource (/) is not available.
>>
>>
>> > Thanks for the suggestion.
>> >
>> > It turns out that the problem was that my web.xml was a symlink.  I
>> > had to figure this out through trial and error.  Is there no better
>> > way to debug this sort of thing?
>> >
>> > Cheers,
>> > Aditya
>> >
>> > On 3/12/07, Rashmi Rubdi <[EMAIL PROTECTED]> wrote:
>> >> I had a similar problem too, I did a few things that got it resolved.
>> >>
>> >> One thing I remember is, setting the directory listings to "true"
>> in server.xml , at that time if there's no index page in the directory
>> >> it listed the directory listings instead of giving a 404 error.
>> >>
>> >> Other possible causes:
>> >>
>> >> -Check for conflicting ports - see if another app is using the
>> same port as Tomcat. On my machine Oracle 10g HTML interface was
>> using port 8080, so I changed
>> >> Tomcat port to 9090.
>> >>
>> >> -Check CATALINA_HOME path
>> >>
>> >> -Rashmi
>> >>
>> >> - Original Message 
>> >> From: Aditya Prasad <[EMAIL PROTECTED]>
>> >> To: users@tomcat.apache.org
>> >> Sent: Monday, March 12, 2007 5:35:39 PM
>> >> Subject: The requested resource (/) is not available.
>> >>
>> >>
>> >> I've set my JULI logging to FINE to figure out why I always get "The
>> >> requested resource (/) is not available."  Unfortunately, the log
>> >> seems to indicate that the ROOT context was started up all right:
>> >>
>> >> Mar 12, 2007 2:32:56 PM org.apache.catalina.startup.HostConfig
>> deployDirectory
>> >> FINE: Deploying web application directory ROOT
>> >> ...
>> >> Mar 12, 2007 2:32:56 PM org.apache.catalina.core.StandardContext
>> start
>> >> FINE: Starting ROOT
>> >>
>> >> And there are no errors in the log.  Any suggestions on where to
>> go to
>> >> figure out why my webapp stopped working all of a sudden?  I don't
>> >> recall making any changes that should have broken it.
>> >>
>> >> 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: Can one map a servlet to a specific connctor?

2007-03-13 Thread Peter Kennard

Damn! I missed that :)  Thanks.

I assume this is taking it from where the hit arrives in at the 
server and not the HTTP headers passed in (which could be anything)


At 01:32 3/13/2007, you wrote:

> From: Peter Kennard [mailto:[EMAIL PROTECTED]
> Subject: Re: Can one map a servlet to a specific connctor?
>
> Can I determine the connector port connected to for a request from
> service() I don't see it in the servlet API but am willing to access
> somthing tomcat specific.

ServletRequest.getServerPort() is inherited by HTTPServletRequest.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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




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



RE: Can one map a servlet to a specific connctor?

2007-03-13 Thread Peter Kennard

Thanks - I assume "any way you want" would include the port?
I'll have to dive more into Filters.

At 01:15 3/13/2007, you wrote:

> From: Peter Kennard [mailto:[EMAIL PROTECTED]
> Subject: Can one map a servlet to a specific connctor?
>
> On a stand alone tomcat with more than one connector (port)
> Is it possible to map a servlet to only one or a subset of connectors?

No, but you can use a filter or valve to restrict access any way you
want.

 - Chuck




-
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: Same version of Tomcat

2007-03-13 Thread p.logaraman
Hi,

I have resolved the issue which was being faced by me

Regards
Logu


-Original Message-
From: P Logaraman -IPEXT 
Sent: Tuesday, March 13, 2007 3:42 PM
To: users@tomcat.apache.org
Subject: RE: Same version of Tomcat

 

Hi All,

 

I need to clarify a doubt which I have come across..

 

Can we have two instances of the same version (for eg. Tomcat 4.1.24)
running on the same server in parallel.

 

If there is a possibility, pls do let me know what are the ports that
need to be changed on the server.xml.

 

I am able to run only one instance at a moment. I have also specified
port 8080 for one and 8081 for the other,.

 

Require your comments and suggestions

 

Regards

Logu

 

 



DISCLAIMER:
This message contains privileged and confidential information and is
intended only for an individual named. If you are not the intended
recipient, you should not disseminate, distribute, store, print, copy or
deliver this message. Please notify the sender immediately by e-mail if
you have received this e-mail by mistake and delete this e-mail from
your system. E-mail transmission cannot be guaranteed to be secure or
error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete or contain viruses. The sender,
therefore,  does not accept liability for any errors or omissions in the
contents of this message which arise as a result of e-mail transmission.
If verification is required, please request a hard-copy version.


DISCLAIMER:
This message contains privileged and confidential information and is intended 
only for an individual named. If you are not the intended recipient, you should 
not disseminate, distribute, store, print, copy or deliver this message. Please 
notify the sender immediately by e-mail if you have received this e-mail by 
mistake and delete this e-mail from your system. E-mail transmission cannot be 
guaranteed to be secure or error-free as information could be intercepted, 
corrupted, lost, destroyed, arrive late or incomplete or contain viruses. The 
sender, therefore,  does not accept liability for any errors or omissions in 
the contents of this message which arise as a result of e-mail transmission. If 
verification is required, please request a hard-copy version.

-
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: Chrooting Tomcat // Linux threading issue

2007-03-13 Thread Roman Medina-Heigl Hernandez
Hello David,

There are tools/scripts which try to automate the process of chrooting an
application, i.e, guessing libraries needed and so on. But they usually
require additional work (fine-tunning, etc), trial&error tests, etc. Being
Tomcat/Java a common application (at least amongst this list's users), I
had supposed some of you have already done this work and could share with
me their findings/work, so I could anticipate problems, issues, etc.

Cheers,
-Roman

David Delbecq escribió:
> Hi,
> 
> it's, as far as i know, impossible to chroot tomcat after startup
> (unless some JNI tools to do it exist am not aware about)
> So, like any other application you would chroot before linking, you need
> to ensure your chrooted environment contains all libraries needed by the
> JVM (don't ask me for this list, sun doesn't provide it)
> 
> also your JAVA_HOME should be updated after chroot :)
> and tomcat script will required availabilty of bash most probably.
> 
> 
> En l'instant précis du 13/03/07 11:22, Roman Medina-Heigl Hernandez
> s'exprimait en ces termes:
>> Hello,
>>
>> Please, could you recommend to me some tutorial/howto for chrooting Tomcat?
>> Some special points to take into account?
>>
>> I suppose Tomcat version shouldn't mind but anyway...:
>> [EMAIL PROTECTED]:/usr/local/obs/tomcat/bin# ./catalina.sh version
>> Using CATALINA_BASE:   /usr/local/obs/tomcat
>> Using CATALINA_HOME:   /usr/local/obs/tomcat
>> Using CATALINA_TMPDIR: /usr/local/obs/tomcat/temp
>> Using JRE_HOME:   /usr/local/obs/java
>> Server version: Apache Tomcat/5.5.17
>> Server built:   Apr 14 2006 02:08:29
>> Server number:  5.5.17.0
>> OS Name:Linux
>> OS Version: 2.4.34-grsec-rslabs-k7
>> Architecture:   i386
>> JVM Version:1.4.2_10-b03
>> JVM Vendor: Sun Microsystems Inc.
>>
>>
>> PS: A 2nd issue (not related to chroot) that I would like to clarify, if
>> you're so kind: when I run the web app in Tomcat (version showed above) I
>> got several processes (69 in particular). It seems to be related to the
>> following FAQ:
>> http://tomcat.apache.org/faq/unix.html#ps
>> But I've read FAQ entry (and followed the two links in the entry) and it is
>> unclear to me where there is some workaround in latest 2.4 kernels (I'm
>> using 2.4.34; don't wanna switch to 2.6 yet). The FAQ talks about
>> lightweight processes (the "threads", as seen by Linux 2.4), but how could
>> I check that they're really light? I'm trying to "measure" the possible
>> impact of "linux threading problem" over my application. Some URLs or help
>> would be welcomed. I've also set "LD_ASSUME_KERNEL=2.4" and exported the
>> variable, without any apparent change of behaviour.
>>
>> Thanks in advance.
>> -Román
>>
>> -
>> 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: Chrooting Tomcat // Linux threading issue

2007-03-13 Thread Roman Medina-Heigl Hernandez
Hello,

Andrew Miehs escribió:
> 
> On 13/03/2007, at 11:22 AM, Roman Medina-Heigl Hernandez wrote:
> 
>>> Hello,
>>>
>>> Server version: Apache Tomcat/5.5.17
>>> Server number:  5.5.17.0
>>> OS Version: 2.4.34-grsec-rslabs-k7
>>> JVM Version:1.4.2_10-b03
>>>
> Look for NPTL and Linux in Google...

I liked this article:
http://linuxdevices.com/articles/AT6753699732.html

> I would seriously recommend upgrading to a 2.6 kernel - (unless performance
> for your web app is irrelevant)

I'll think about it. Performance, in this case, is not too much relevant. I
was indeed worried about "memory exhausted" problems and things like that,
but not about how speedy my application could run. If the application is
stable enough in 2.4, I could keep that kernel. Many people consider kernel
2.4 more secure than 2.6, and in my case I prefer security to performance.

> It would also be time to think about an upgrade to Java 1.5 or 1.6.

Would I notice big performance improvements if upgrading? (specially
regarding threading?) 1.5 or 1.6?

Thanks for your help, Andrew. It is appreciated.

Cheers,
-Roman

-
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: Cannot start tomcat5 service with jrockit

2007-03-13 Thread Igor Shevchenko
>Why don't u 
> simply try/attempt to get version 6.x of Tomcat by now???
The answer is very simple: customer uses this version of Tomcat and wants 
no upgrade.
Best regards,
---
Igor Shevchenko

"Mr. Steve Burrus" <[EMAIL PROTECTED]> wrote on 13.03.2007 00:59:03:

> look you say that your >>"Tomcat version is 5.5.20"<<. Why don't u 
> simply try/attempt to get version 6.x of Tomcat by now??? I mean any 
> kind of version 5 is way too old by now! Capiche? [Understand?] 
> 
> Igor Shevchenko wrote:
> 
> >Hello,
> >I'm experiencing problems with starting tomcat as a service under 
Win2003 
> >server with jrockit jvm.
> >Tomcat version is 5.5.20 and it starts successfully using startup.bat 
> >script, but when trying to start it as a service I have the following 
> >output in jakarta-service log:
> >[2007-03-12 04:45:48] [info] Running Service...
> >[2007-03-12 04:45:48] [info] Starting service...
> >[2007-03-12 04:45:48] [173  javajni.c] [error] The specified module 
could 
> >not be found.
> >[2007-03-12 04:45:48] [924  prunsrv.c] [error] Failed creating java 
> >C:\jrockit-R27.1.0-jdk1.5.0_08\jre\bin\jrockit\jvm.dll
> >[2007-03-12 04:45:48] [1179 prunsrv.c] [error] ServiceStart returned 1
> >[2007-03-12 04:45:48] [info] Run service finished.
> >[2007-03-12 04:45:48] [info] Procrun finished.
> >I've tried googling and reading mailing archives but couldn't find a 
> >solution.
> >
> >Best regards,
> >---
> >Igor Shevchenko
> >
> > 
> >
> 
> 
> -
> 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: Chrooting Tomcat // Linux threading issue

2007-03-13 Thread David Delbecq
Hi,

it's, as far as i know, impossible to chroot tomcat after startup
(unless some JNI tools to do it exist am not aware about)
So, like any other application you would chroot before linking, you need
to ensure your chrooted environment contains all libraries needed by the
JVM (don't ask me for this list, sun doesn't provide it)

also your JAVA_HOME should be updated after chroot :)
and tomcat script will required availabilty of bash most probably.


En l'instant précis du 13/03/07 11:22, Roman Medina-Heigl Hernandez
s'exprimait en ces termes:
> Hello,
>
> Please, could you recommend to me some tutorial/howto for chrooting Tomcat?
> Some special points to take into account?
>
> I suppose Tomcat version shouldn't mind but anyway...:
> [EMAIL PROTECTED]:/usr/local/obs/tomcat/bin# ./catalina.sh version
> Using CATALINA_BASE:   /usr/local/obs/tomcat
> Using CATALINA_HOME:   /usr/local/obs/tomcat
> Using CATALINA_TMPDIR: /usr/local/obs/tomcat/temp
> Using JRE_HOME:   /usr/local/obs/java
> Server version: Apache Tomcat/5.5.17
> Server built:   Apr 14 2006 02:08:29
> Server number:  5.5.17.0
> OS Name:Linux
> OS Version: 2.4.34-grsec-rslabs-k7
> Architecture:   i386
> JVM Version:1.4.2_10-b03
> JVM Vendor: Sun Microsystems Inc.
>
>
> PS: A 2nd issue (not related to chroot) that I would like to clarify, if
> you're so kind: when I run the web app in Tomcat (version showed above) I
> got several processes (69 in particular). It seems to be related to the
> following FAQ:
> http://tomcat.apache.org/faq/unix.html#ps
> But I've read FAQ entry (and followed the two links in the entry) and it is
> unclear to me where there is some workaround in latest 2.4 kernels (I'm
> using 2.4.34; don't wanna switch to 2.6 yet). The FAQ talks about
> lightweight processes (the "threads", as seen by Linux 2.4), but how could
> I check that they're really light? I'm trying to "measure" the possible
> impact of "linux threading problem" over my application. Some URLs or help
> would be welcomed. I've also set "LD_ASSUME_KERNEL=2.4" and exported the
> variable, without any apparent change of behaviour.
>
> Thanks in advance.
> -Román
>
> -
> 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: Chrooting Tomcat // Linux threading issue

2007-03-13 Thread Andrew Miehs

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 13/03/2007, at 11:22 AM, Roman Medina-Heigl Hernandez wrote:


Hello,

Server version: Apache Tomcat/5.5.17
Server number:  5.5.17.0
OS Version: 2.4.34-grsec-rslabs-k7
JVM Version:1.4.2_10-b03



PS: A 2nd issue (not related to chroot) that I would like to  
clarify, if
you're so kind: when I run the web app in Tomcat (version showed  
above) I
got several processes (69 in particular). It seems to be related to  
the

following FAQ:


Actually, you get 69 'threads'. Linux 2.4 kernel shows (and deals  
with) threads

as processes.


http://tomcat.apache.org/faq/unix.html#ps
But I've read FAQ entry (and followed the two links in the entry)  
and it is
unclear to me where there is some workaround in latest 2.4 kernels  
(I'm

using 2.4.34; don't wanna switch to 2.6 yet). The FAQ talks about
lightweight processes (the "threads", as seen by Linux 2.4), but  
how could
I check that they're really light? I'm trying to "measure" the  
possible
impact of "linux threading problem" over my application. Some URLs  
or help
would be welcomed. I've also set "LD_ASSUME_KERNEL=2.4" and  
exported the

variable, without any apparent change of behaviour.


Look for NPTL and Linux in Google...

for example: http://kerneltrap.org/node/429

I would seriously recommend upgrading to a 2.6 kernel - (unless  
performance

for your web app is irrelevant)
It would also be time to think about an upgrade to Java 1.5 or 1.6.


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFF9n8yW126qUNSzvURAkcMAJ93juvogDO9QxMAOW19R+I/cjDfcACfT3gl
w9MjlRfL7zzzByl77Y7xu08=
=pe3y
-END PGP SIGNATURE-

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



Chrooting Tomcat // Linux threading issue

2007-03-13 Thread Roman Medina-Heigl Hernandez
Hello,

Please, could you recommend to me some tutorial/howto for chrooting Tomcat?
Some special points to take into account?

I suppose Tomcat version shouldn't mind but anyway...:
[EMAIL PROTECTED]:/usr/local/obs/tomcat/bin# ./catalina.sh version
Using CATALINA_BASE:   /usr/local/obs/tomcat
Using CATALINA_HOME:   /usr/local/obs/tomcat
Using CATALINA_TMPDIR: /usr/local/obs/tomcat/temp
Using JRE_HOME:   /usr/local/obs/java
Server version: Apache Tomcat/5.5.17
Server built:   Apr 14 2006 02:08:29
Server number:  5.5.17.0
OS Name:Linux
OS Version: 2.4.34-grsec-rslabs-k7
Architecture:   i386
JVM Version:1.4.2_10-b03
JVM Vendor: Sun Microsystems Inc.


PS: A 2nd issue (not related to chroot) that I would like to clarify, if
you're so kind: when I run the web app in Tomcat (version showed above) I
got several processes (69 in particular). It seems to be related to the
following FAQ:
http://tomcat.apache.org/faq/unix.html#ps
But I've read FAQ entry (and followed the two links in the entry) and it is
unclear to me where there is some workaround in latest 2.4 kernels (I'm
using 2.4.34; don't wanna switch to 2.6 yet). The FAQ talks about
lightweight processes (the "threads", as seen by Linux 2.4), but how could
I check that they're really light? I'm trying to "measure" the possible
impact of "linux threading problem" over my application. Some URLs or help
would be welcomed. I've also set "LD_ASSUME_KERNEL=2.4" and exported the
variable, without any apparent change of behaviour.

Thanks in advance.
-Román

-
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: Same version of Tomcat

2007-03-13 Thread p.logaraman
 

Hi All,

 

I need to clarify a doubt which I have come across..

 

Can we have two instances of the same version (for eg. Tomcat 4.1.24)
running on the same server in parallel.

 

If there is a possibility, pls do let me know what are the ports that
need to be changed on the server.xml.

 

I am able to run only one instance at a moment. I have also specified
port 8080 for one and 8081 for the other,.

 

Require your comments and suggestions

 

Regards

Logu

 

 



DISCLAIMER:
This message contains privileged and confidential information and is intended 
only for an individual named. If you are not the intended recipient, you should 
not disseminate, distribute, store, print, copy or deliver this message. Please 
notify the sender immediately by e-mail if you have received this e-mail by 
mistake and delete this e-mail from your system. E-mail transmission cannot be 
guaranteed to be secure or error-free as information could be intercepted, 
corrupted, lost, destroyed, arrive late or incomplete or contain viruses. The 
sender, therefore,  does not accept liability for any errors or omissions in 
the contents of this message which arise as a result of e-mail transmission. If 
verification is required, please request a hard-copy version.


RE: Multiple instances problem...

2007-03-13 Thread Peter Björkman

Thanks Christopher, works like a charm!

Regards
Peter

> 
> Peter,
> 
> Peter Björkman wrote:
> > Hi! I'm setting up an environment where I need a lot of 
> differens web
> > containers running, and part of that is setting up tomcat5.0 to run
> > multiple instances.
> > 
> > I tried to find a startup/stop script and this is what I came up
> > with:
> 
> [snip]
> 
> > but that won't work, it randomly starts, stopping stops all 
> instances
> > and the general behaviour is strange.
> > 
> > Any ideas? Can you point me to a better startup script
> 
> Not sure what's wrong with your script, but I have used this one for
> years. It's completely parameterized and intended to be used from ant,
> although there's no reason not to use it directly from the 
> command line.
> 
> Hope this helps,
> - -chris
> 
> #!/bin/sh
> # name: tomcat.sh
> # args:
> #   start|stop
> #   java-home=S OPTIONAL (uses JAVA_HOME otherwise)
> #   tomcat-home=S   REQUIRED
> #   tomcat-port=N   REQUIRED
> #   tomcat-shutdown-port=n  REQUIRED
> #   project-base-dir=S  REQUIRED
> 
> SCRIPT=`basename $0`
> USAGE="usage: ${SCRIPT} start|stop [java-home=S] tomcat-home=S
> tomcat-port=N tomcat-shutdown-port=N project-base-dir=S"
> 
> while test $# -gt 0
> do
> case "x$1" in
> xstart)
> MODE=start
> ;;
> xstop)
> MODE=stop
> ;;
> xjava-home=*)
> JAVA_HOME=`expr $1 : 'java-home=\(.*\)'`
> ;;
> xtomcat-port=*)
> TOMCAT_PORT=`expr $1 : 'tomcat-port=\(.*\)'`
> ;;
> xtomcat-shutdown-port=*)
> TOMCAT_SHUTDOWN_PORT=`expr $1 :
> 'tomcat-shutdown-port=\(.*\)'`
> ;;
> xproject-base-dir=*)
> PROJECT_BASE_DIR=`expr $1 : 'project-base-dir=\(.*\)'`
> ;;
> xtomcat-home=*)
> TOMCAT_HOME=`expr $1 : 'tomcat-home=\(.*\)'`
> ;;
> x*)
> echo "Invalid argument: $1."
> echo "${USAGE}"
> exit 1
> ;;
> esac
> shift
> done
> if test -z "${TOMCAT_PORT}" -o -z "${TOMCAT_SHUTDOWN_PORT}" -o -z
> "${PROJECT_BASE_DIR}" -o -z "${TOMCAT_HOME}"
> then
> echo "${USAGE}"
> exit 1
> fi
> case "x$MODE" in
> xstart|xstop)
> ;;
> *)
> echo "${USAGE}"
> exit 1
> ;;
> esac
> 
> CATALINA_BASE=$PROJECT_BASE_DIR
> 
> export TOMCAT_SHUTDOWN_PORT TOMCAT_PORT CATALINA_BASE TOMCAT_HOME
> 
> echo "${SCRIPT}: JAVA_HOME is $JAVA_HOME"
> echo "${SCRIPT}: TOMCAT_PORT is $TOMCAT_PORT"
> echo "${SCRIPT}: TOMCAT_SHUTDOWN_PORT is $TOMCAT_SHUTDOWN_PORT"
> echo "${SCRIPT}: CATALINA_BASE is $CATALINA_BASE"
> echo "${SCRIPT}: TOMCAT_HOME is $TOMCAT_HOME"
> 
> case "x${MODE}" in
> xstart)
> echo "${SCRIPT} signing off - exec'ing 
> $TOMCAT_HOME/bin/startup.sh"
> exec "$TOMCAT_HOME/bin/startup.sh"
> ;;
> xstop)
> echo "${SCRIPT} signing off - exec'ing 
> $TOMCAT_HOME/bin/shutdown.sh"
> exec "$TOMCAT_HOME/bin/shutdown.sh"
> ;;
> esac
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFF9WQ19CaO5/Lv0PARAryDAJ9BGZGW6xCMX+O55lnhyntw0E99RQCgg/71
> DPkGrIzaXMbwh+/5heCeTtc=
> =uOP+
> -END PGP SIGNATURE-
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
###

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.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]



AW: AW: AW: Cannot run JVM in server mode with JSVC

2007-03-13 Thread Peter Neu
Sorry, couldn't get back to this as I had a week off.

I set jsvc to debug mode. The problem was: the search path for 
jvm.cfg was here : .../jdk1.5.0_06/jre/lib/jvm.cfg while the 
actual file resided here: .../jdk1.5.0_06/jre/lib/i386/jvm.cfg. 

What I did I just copied the jvm.cfg to the search path and everything
went all right. ;o) 

Thanks for the help!

Cheers,
Pete







> -Ursprüngliche Nachricht-
> Von: news [mailto:[EMAIL PROTECTED] Im Auftrag von Bill Barker
> Gesendet: Samstag, 3. März 2007 04:35
> An: users@tomcat.apache.org
> Betreff: Re: AW: AW: Cannot run JVM in server mode with JSVC
> 
> The correct syntax is '-jvm server' (assuming that you are using Sun's
> JVM).
> The last error you posted from trying this was because you forgot to
> escape
> the CR at the end (no '\' at the end of the line).  As a result, the shell
> took the next argument line as the next command line.
> 
> To get a better idea what is going wrong, try running it with server, and
> with '-debug'.  If this doesn't help you, you can always post the output
> to
> this list, and somebody else might see what the problem is.
> 
> <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> > By config you still mean the shell script, right?
> >
> > It looks like this. I have removed the -server parameter from
> > the CATALINA_OPTS variable since the script won't execute
> > properly with it.
> >
> > -Pete
> >
> > JAVA_HOME1=/usr/local/jdk1.5.0_06
> > CATALINA_HOME=/usr/local/jakarta-tomcat-5.5.9
> > DAEMON_BIN=/usr/local/jakarta-tomcat-5.5.9/bin/jsvc
> > TOMCAT_USER=loew
> > TMP_DIR=/var/tmp
> > JAVA_OPTS="-server"
> > CATALINA_OPTS="-Xmx1900m -Xms256m -XX:MaxPermSize=256m -
> XX:ReservedCodeCacheSize=64m
> >  -
> > CLASSPATH=/usr/local/jdk1.5.0_06/lib/tools.jar:\
> > $CATALINA_HOME/bin/commons-daemon.jar:\
> > $CATALINA_HOME/bin/bootstrap.jar
> > #JVM=server
> >
> > case "$1" in
> > start)
> > #
> > # Start Tomcat
> > #
> > $DAEMON_BIN \
> > -user $TOMCAT_USER \
> > -home $JAVA_HOME1 \
> > -Dcatalina.home=$CATALINA_HOME \
> > -Djava.io.tmpdir=$TMP_DIR \
> > -outfile $CATALINA_HOME/logs/catalina.out \
> > -errfile '&1' \
> > $CATALINA_OPTS \
> > -cp $CLASSPATH \
> >  org.apache.catalina.startup.Bootstrap \
> >   #
> > # To get a verbose JVM
> > # -verbBose \
> > # To get a debug of jsvc.
> > #-debug \
> > ;;
> >
> > --
> > Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
> > Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
> >
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



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



Re: How to develop filter for tomcat ?

2007-03-13 Thread Thomas Brudermann

Hello,

you can find a tutorial at 
http://java.sun.com/products/servlet/Filters.html


Best regards,
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: Writing Access-Log to Database-Table?

2007-03-13 Thread Thomas Brudermann

Thanks Peter, that works fine.
Best regards,
Thomas

P.S. for the Archive:
The tutorial can be found at
http://java.sun.com/products/servlet/Filters.html




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