Question about deployment of web app

2006-02-14 Thread Lian Liming
Hi, allI am using Tomcat 5.5.15 on Window 2000 server. My web app worked well before reinstallation of Window2000. After reinstallation, I set up the same java environment with the same tomcat version. But a problem comes in the deployment of my former well-working app.
In the tomcat log, I got the following message:2006-2-14 15:57:47 org.apache.catalina.startup.HostConfig deployDescriptorError deploying configuration descriptor myApp.xmljava.lang.NullPointerException
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:576)    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)    at org.apache.catalina.startup.HostConfig.check
(HostConfig.java:1195)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)    at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)    at java.lang.reflect.Method.invoke(Method.java:585)    at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)    at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke
(DynamicMetaDataImpl.java:213)    at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)    at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1377)    at org.apache.catalina.manager.ManagerServlet.deploy
(ManagerServlet.java:814)    at org.apache.catalina.manager.HTMLManagerServlet.deployInternal(HTMLManagerServlet.java:248)    at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:95)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java
:252)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)    at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:178)    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)    at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)    at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:148)    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java
:667)    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684)    at java.lang.Thread.run(Thread.java:595)2006-2-14 15:57:47 org.apache.catalina.startup.ContextConfig applicationWebConfigMessage: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/myApp]
It is really strange since I didn't change any codes in my web app including web.xml under WEB-INF. It worked well before the reinstallation, but fail to deploy after the reinstallation. What is the possible wrong?
My web.xml is attached. Thanks for any suggestions. 

http://java.sun.com/xml/ns/j2ee";
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
		xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
		version="2.4">
		
		A test servlet application
		
			Webmaster
			[EMAIL PROTECTED]
		
		
		
			test
			org.myapp.servlet.TestServlet
		
		
		
			test
			/servlet/test
		
		
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Setting up a parallel test environment on the same machine as main server

2006-02-14 Thread Alan Chandler
On Sunday 12 February 2006 17:07, Alan Chandler wrote:
...
> Unless anyone here can suggest a better way, I would like to move the
> JkMountFile directive from global scope to virtual host scope and have two
> separate files urimap files so that I can map different things dependent on
> which virtual host.
>
> However, since this is a live site I don't want to just conduct the simple
> experiment to see if will work, so I am asking here if this is OK.

Is there really nobody on this list who can answer this simple question?

...
> However, I don't fully understand the relationship between ,
>  and  stanza's in the server.xml file, and until I do, I am
> reluctant to muck about with it and potentially screw the currently working
> arrangement.

Specifically, there was some conversation here about it best that if tomcat 
was running on the same box as the web server (which it is in my case) that 
it would be best to make the connection between apache2 and tomcat be via 
localhost.  That being the case, how can I map the SAME servlet name but from 
a different virtual host (albeit ip based) on apache to DIFFERENT hosts on 
the same tomcat engine.

-- 
Alan Chandler
http://www.chandlerfamily.org.uk
Open Source. It's the difference between trust and antitrust.

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



Tomcat 5.5 documentation: how to update website?

2006-02-14 Thread Steve Meredith

Hi all

Just spent time getting the Tomcat5.sh script to work as a daemon  
under linux following the advice on the url:-



"The Apache Tomcat 5.5 Servlet/JSP Container"
http://tomcat.apache.org/tomcat-5.5-doc/setup.html


"The file $CATALINA_HOME/bin/jsvc/native/tomcat.sh can be used as a  
template for starting Tomcat automatically at boot time from /etc/ 
init.d. The file is currently setup for running Tomcat 4.1.x, so it  
is necessary to edit it and change the classname from  
BootstrapService to Bootstrap."



If only I'd known catalina.sh works 'out of the box'  :-)

How can I update this page to help let people know there's an easier  
option to get Tomcat using a startup script with catalina.sh rather  
than tomcat5.sh?



Many thanks

Steve

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



Re: Blocking AJP13 (port 8009) access

2006-02-14 Thread Antony Riley
Try adding address="127.0.0.1" to the ajp13  tag in  server.xml,
and configuring apache to connect to 127.0.0.1 if you haven't already.

This should stop the ajp13 port from being visable to other machines.

As far as iptables goes, you probably want -o lo -j ACCEPT at the top of the
ruleset, and I'm really not sure why you're using state flags to attempt to
block external access to port 8009. Mostly you don't want drop rules to
check the state table, though this might be some iptablism, I'm not too
familiar with it past basic NAT / port blocking.

-Antony

On 2/14/06, OG <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm trying to block external access to port 8009 (AJP13), as only my local
> host really needs to be able to talk to it.
> I'm wondering if there are any internal/mod_jk mechanisms for that, or if
> iptables is the best option.
>
> I have tried iptables, which did block external requests, but it also got
> me in a situation where I had a few hundred httpd processes in a SYN_SENT
> state ( netstat | grep 8009 | grep -c SYN_SENT ) and returning 503s instead
> of 200s:
>
> iptables -A INPUT \
>  -p TCP --dport 8009 \
>  -m state --state NEW \
>  -j DROP
> iptables -A INPUT \
>  -p UDP --dport 8009 \
>  -m state --state NEW \
>  -j DROP
>
> iptables -A OUTPUT -o lo -j ACCEPT
> iptables -A INPUT  -i lo -j ACCEPT
>
>
> If anyone has iptables rules that work, I'd appreciate it if you could
> share them.
>
> I'd also be curious to know whether people use some other mechanisms to
> prevent evil folks from connecting to your port 8009 from the outsite and
> consuming your available connections.
>
> Thanks,
> Otis
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Blocking AJP13 (port 8009) access

2006-02-14 Thread Mladen Turk

OG wrote:

Hi,

I'm trying to block external access to port 8009 (AJP13), as only my local host 
really needs to be able to talk to it.
I'm wondering if there are any internal/mod_jk mechanisms for that, or if 
iptables is the best option.


If anyone has iptables rules that work, I'd appreciate it if you could share 
them.



Take a look at:
http://www.linuxguruz.com/iptables/

For example:
http://www.linuxguruz.com/iptables/scripts/rc.firewall.txt
will make a simple firewall allowing only
ports 21,22,80 and 133, etc...

Just adjust you network IP's.

Regards,
Mladen.

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



Re: Trouble accessing Resources in my Context

2006-02-14 Thread Mark Slater
I've got my servlet working now, without resorting to using a Context  
element inside the server.xml. I found that putting the Context in  
$TOMCAT_HOME/conf/Catalina/localhost/jackrabbit_config_test.xml works  
fine.



 
factory="org.apache.jackrabbit.core.jndi.BindableRepositoryFactory"

configFilePath="conf/repository_model1.xml"
repHomeDir="shared/jackrabbit_model1" />

name="sharedJCRRepository" global="jcr/model2Repository"  
type="javax.jcr.Repository" />





And then in my web app, I have these lines:


Jackrabbit Model 1 Repository
jcr/model1Repository
javax.jcr.Repository
Container



Jackrabbit Model 2 Repository
sharedJCRRepositoryname>
javax.jcr.Repositoryref-type>




Test Number
testNum
java.lang.Integer
Container



I also finally realized that the 's name attribute  
can't be the same as the the global attribute. That took care of the  
null pointer I was getting trying to access that object.


So, while this works acceptably (the context information for the  
webapp is not included in server.xml), I would *much* prefer to use  
the WEB-INF/context.xml the Tomcat docs say I can (the fourth bullet  
on this page - http://tomcat.apache.org/tomcat-5.5-doc/config/ 
context.html). If someone could explain why that doesn't work, I'd be  
really appreciative. Is this possibly a known issue?


Thanks,

Mark

On Feb 13, 2006, at 9:40 PM, Mark Slater wrote:

I've solved part of the problem... or at least made it less  
complicated (I hope). The ClassNotFound exception mentioned at the  
bottom is due to the jackrabbit jars being located in server/lib as  
opposed to common/lib. I'd placed them in server lib on the advice  
of someone more familiar with jackrabbit than I. I'd assumed that,  
as long as the jar was included in the web app, this would not be a  
problem; obviously that was incorrect. So after putting jackrabbit  
and its dependencies in common/lib, here's what I've got:


If the context for web-app only resources and environment variables  
(jcr/model1Repository and testNum in the code below) are placed in  
 in $TOMCAT_HOME/conf/server.xml, the web app is  
able to find them.


If they are placed in the web-app's WEB-INF/context.xml, an  
exception is thrown (javax.naming.NamingException: Cannot create  
resource instance).


As the latter is definitely the preferred option (by tomcat  
documentation and myself), I'd really like to get that to work.  
I've also confirmed that I get the same errors on a newly  
downloaded and configured Tomcat 5.5.15.


Mark

On Feb 13, 2006, at 6:23 PM, Mark Slater wrote:

I'm running Tomcat 5.5.9 with JVM 1.5.0_05-83 on MacOS X 10.4.4.  
I'm trying to build an example webapp that shows the configuration  
for two Jackrabbit resources: one configured as an embedded  
resource for that web app and another configured as a shared  
resource for the entire host. I've tried to define the resources  
in a variety of places and haven't been able to get any of them to  
work.


My context files are defined like this

$TOMCAT_HOME/conf/context.xml:


WEB-INF/web.xml



webapp/WEB-INF/context.xml:



 
factory="org.apache.jackrabbit.core.jndi.BindableRepositoryFactory"

configFilePath="conf/repository_model1.xml"
repHomeDir="shared/jackrabbit_model1" />





I've got the following setup in server.xml:

  
...
 
factory="org.apache.jackrabbit.core.jndi.BindableRepositoryFactory"

configFilePath="conf/repository_model2.xml"
repHomeDir="shared/jackrabbit_model2" />

  

And in my web.xml, I've got the following references:


...

Jackrabbit Model 1 Repository
jcr/model1Repository
javax.jcr.Repository
Container



Jackrabbit Model 2 Repository
jcr/model2Repositoryref-name>
javax.jcr.Repositoryref-type>




Test Number
testNum
java.lang.Integer
Container




I know tomcat is finding the jcr/model2Repository resource because  
if I delete all of the database entries and repository files, and  
then restart Tomcat, upon restart the database and repository  
files are recreated. There's also log output in catalina.out about  
jackrabbit initializing itself for the model2Repository.


When I get to my servlet, I've got some code that prints the  
context entries for the initial context and the environment's  
context to the output webpage. Then I try to access both  
repositories. For good measure, I also try to access the testNum I  
defined in my webapp's context.xml. None of the objects are  
accessible. The locally defined objects (those in webapp/WEB-INF/ 
context.xml) throw an exception:


javax.naming.NamingException: Cannot create resource instance
	at org.apache.naming.factory.ResourceEnvFactory.getObjectInstance

Re: Tomcat 5.5 documentation: how to update website?

2006-02-14 Thread Warren Pace

> 
> From: Steve Meredith <[EMAIL PROTECTED]>
> Date: 2006/02/14 Tue AM 03:50:19 EST
> To: users@tomcat.apache.org
> Subject: Tomcat 5.5 documentation: how to update website?
> 
> Hi all
> 
> Just spent time getting the Tomcat5.sh script to work as a daemon  
> under linux following the advice on the url:-
> 
> 
> "The Apache Tomcat 5.5 Servlet/JSP Container"
> http://tomcat.apache.org/tomcat-5.5-doc/setup.html
> 
> 
> "The file $CATALINA_HOME/bin/jsvc/native/tomcat.sh can be used as a  
> template for starting Tomcat automatically at boot time from /etc/ 
> init.d. The file is currently setup for running Tomcat 4.1.x, so it  
> is necessary to edit it and change the classname from  
> BootstrapService to Bootstrap."
> 
> 
> If only I'd known catalina.sh works 'out of the box'  :-)

Section 1 of the docs - under the "Directories and Files" heading, second 
paragraph -
"These are some of the key tomcat directories all relative to
$CATALINA_HOME
./bin - Startup, shutdown, and other scripts. The *.sh files (for Unix systems) 
are functional duplicates of the *.bat files (for Windows systems). Since the 
Win32 command-line lacks certain functionality, there are some additional files 
in here."

HOWEVER - you're better off for having used jsvc.  "Out of the box" scrips run 
tc as root user. 
> 
> How can I update this page to help let people know there's an easier  
> option to get Tomcat using a startup script with catalina.sh rather  
> than tomcat5.sh?
> 
> 
> Many thanks
> 
> Steve
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



Re: Tomcat 5.5 documentation: how to update website?

2006-02-14 Thread Steve Meredith


On 14 Feb 2006, at 11:05, Warren Pace wrote:





From: Steve Meredith <[EMAIL PROTECTED]>
Date: 2006/02/14 Tue AM 03:50:19 EST
To: users@tomcat.apache.org
Subject: Tomcat 5.5 documentation: how to update website?

Hi all

Just spent time getting the Tomcat5.sh script to work as a daemon
under linux following the advice on the url:-


"The Apache Tomcat 5.5 Servlet/JSP Container"
http://tomcat.apache.org/tomcat-5.5-doc/setup.html


"The file $CATALINA_HOME/bin/jsvc/native/tomcat.sh can be used as a
template for starting Tomcat automatically at boot time from /etc/
init.d. The file is currently setup for running Tomcat 4.1.x, so it
is necessary to edit it and change the classname from
BootstrapService to Bootstrap."


If only I'd known catalina.sh works 'out of the box'  :-)


Section 1 of the docs - under the "Directories and Files" heading,  
second paragraph -

"These are some of the key tomcat directories all relative to
$CATALINA_HOME
./bin - Startup, shutdown, and other scripts. The *.sh files (for  
Unix systems) are functional duplicates of the *.bat files (for  
Windows systems). Since the Win32 command-line lacks certain  
functionality, there are some additional files in here."

HOWEVER - you're better off for having used jsvc.
"Out of the box" scrips run tc as root user.

Thanks Warren :-)
I guess I was overwhelmed with the sheer number of config files/ 
directories involved :)  (startup.sh, catalina.sh, tomcat.sh?)

All sorted now though.





How can I update this page to help let people know there's an easier
option to get Tomcat using a startup script with catalina.sh rather
than tomcat5.sh?


Many thanks

Steve

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





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




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



Problem with tomcat

2006-02-14 Thread Kasim

 when ever i am calling the jsp page Instead of it its code is been opening
in notepad.So can any body tell me the solution


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



RE: Setting up a parallel test environment on the same machine as main server

2006-02-14 Thread Tim Lucia
1. Moving the JkMount directive inside a  will make it
accesible from only that virtual host.  So, you must repeat common ones,
such as /jkmanager.  I put the mappings (JkMount(s)) right in the virtual
host definition(s) with no trouble at all.

2. The virtual host is determined by the http host header, not by the
connector host name.  This is true for both httpd and tomcat (and any other
web server.)

You can always install Apache httpd + Tomcat on a second machine (or on the
same machine on a separate set of ports), if you are reluctant to try it on
you production host.

HTH,
Tim


-Original Message-
From: Alan Chandler [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 3:50 AM
To: users@tomcat.apache.org
Subject: Re: Setting up a parallel test environment on the same machine as
main server


On Sunday 12 February 2006 17:07, Alan Chandler wrote:
...
> Unless anyone here can suggest a better way, I would like to move the 
> JkMountFile directive from global scope to virtual host scope and have 
> two separate files urimap files so that I can map different things 
> dependent on which virtual host.
>
> However, since this is a live site I don't want to just conduct the 
> simple experiment to see if will work, so I am asking here if this is 
> OK.

Is there really nobody on this list who can answer this simple question?

...
> However, I don't fully understand the relationship between , 
>  and  stanza's in the server.xml file, and until I do, I 
> am reluctant to muck about with it and potentially screw the currently 
> working arrangement.

Specifically, there was some conversation here about it best that if tomcat 
was running on the same box as the web server (which it is in my case) that 
it would be best to make the connection between apache2 and tomcat be via 
localhost.  That being the case, how can I map the SAME servlet name but
from 
a different virtual host (albeit ip based) on apache to DIFFERENT hosts on 
the same tomcat engine.

-- 
Alan Chandler
http://www.chandlerfamily.org.uk
Open Source. It's the difference between trust and antitrust.

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



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



Tomcat 5.0.28 Sending content that does not match the URL

2006-02-14 Thread M. Schot
Hi All,

I am experiencing strange problems with Tomcat 5.0.28. The problem is that
sometimes (1 out of 10) when I load a JSP Tomcat seems to send the wrong
stylesheets for a certain url. This problem occurs when serving them using a
servlet and a CMS but also if they are located on the harddrive and accessed
directly by tomcat.

I am using a server with an Intel Xeon 3.20 Ghz and 4GB of ram on Windows
Server 2003 hyperthreading is enabled. I have used Fiddler to see what goes
on when I request a page. Each page has about 10 stylesheets attached. When
the problem occurs, the page looks like crap in the browser, inspecting it
using Fiddler I can see that there is at least one css file (it might be
coincidence that it goes wrong with a stylesheet) that contains the content
of the next one that was requested.

So the content of the next item that was requested is the same as the one
requested before that. For example the layout.css might contain the actual
content of the main_content.css if the layout.css was requested before the
main_content.css. This behaviour occurs when serving the content using a
third party servlet (Mediasurface binary servlet) or serving it using
Tomcat.

Does anyone have an idea how I can prevent this from happening or what might
be wrong?

Kind regards,

Marcel Schot


RE: Trouble accessing Resources in my Context

2006-02-14 Thread Caldarale, Charles R
> From: Mark Slater [mailto:[EMAIL PROTECTED] 
> Subject: Re: Trouble accessing Resources in my Context
> 
> So, while this works acceptably (the context information for the  
> webapp is not included in server.xml), I would *much* prefer to use  
> the WEB-INF/context.xml the Tomcat docs say I can (the fourth bullet  
> on this page - http://tomcat.apache.org/tomcat-5.5-doc/config/ 
> context.html). If someone could explain why that doesn't 
> work, I'd be really appreciative. Is this possibly a known issue?

Read what the bullet actually says, not what you think it says:

  if the previous file was not found for this application,
  in individual file at /META-INF/context.xml inside the
  application files

What directory does it really specify?  (Hint: it's not WEB-INF.)

 - Chuck


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

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



Re: c:forEach not working as expected

2006-02-14 Thread Nikola Milutinovic
--- Reinhard Moosauer <[EMAIL PROTECTED]> wrote:

> Hi List,
> 
> it seemed clear to me, that this construct:
> 
>   
>  ... (some inner logic)
>   
>  
> should be equivalent to this one:

No. It is roughly equvalent to (see my corrections):

>   <%
>   for (Iterator it=t.getRecords(); it.hasNext(); ) {

for (Iterator it=t.getRecords().getIterator(); it.hasNext(); ) {

>  String x = (String)it.next();

   Object x = it.next();

>   %>
>  ... (some inner logic)
>   <% }
>   %>

I said roughly, because it can handle arrays, too.

> But the forEach-version is not working as expected. What can be wrong?
> Here are some quite strange effects:
> 1. The iterators-method "hasNext()" is called twice for every iteration
> (ok: no problem, if the iterator is clean, but why?)

This is normal. Try to locate the java code generated from that tag and see
what it comes to. You'll see something educational. There is no "while ()"
loop. Just "if () else" logic.

> 2. The loop-body is executed after hasNext() returned false.
> But the next()-method is NOT called ??

That would be strange.

Nix.

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

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



Re: App will work on localhost but blank on client PC.

2006-02-14 Thread Mike Sabroff
How does localhost resolve in that scenario...why not use the hostname 
or ip address


Alexander Alekseev wrote:


I have a 2K3 Server on our intranet running Trend InterScan Messaging
Security Suite which uses Apache Tomcat.



I can access this app on the server through http://localhost:8447/ just
fine.



But when we try to access this app through a client connected to the 2k3s,
we get a blank page with no error message, just one line of characters:





  _ 


[1][1]



We've searched through Trend's support for this product and they don't 
have
any suggestions except to make sure the redirects from IIS are there, 
which

they are.



Beyond that, they barely even mention Tomcat, so does anyone have an idea
what may be wrong?



--
Mike Sabroff
Web Services
Developer
[EMAIL PROTECTED]
920-568-8379


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



Re: context error

2006-02-14 Thread Mike Sabroff
Then do that

jacky wrote:
>
> hi,
> When i add a Context in the server.xml, an error occurs:
>
> Apache Tomcat/4.1.31
> Catalina.start: LifecycleException: Context startup failed due to
> previous errors
> LifecycleException: Context startup failed due to previous errors
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3578)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:707)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
> at
> org.apache.catalina.core.StandardService.start(StandardService.java:450)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
> at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
> at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
> 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:324)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
> Stopping service Tomcat-Standalone
> Catalina.stop: LifecycleException: Coyote connector has not been started
> LifecycleException: Coyote connector has not been started
> at
> org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1296)
> at org.apache.catalina.core.StandardService.stop(StandardService.java:499)
> at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2178)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:494)
> at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
> at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
> 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:324)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
>
> If i remove the added context, tomcat will start.
> In fact, i rearrange the directories, i don't know if this will impact
> on the Context. If i put all directories under $CATALINA_HOME, tomcat
> will work well with the Context.
>
> $CATALINA_HOME/bin/
> shared/
> server/
>
> $CATALINA_BASE/bin/
> conf/
> webapps/
> logs/
> work/
>
> Context is as following:
> 
>
> Best Regards.
> jacky
>

-- 
Mike Sabroff
Web Services
Developer
[EMAIL PROTECTED]
920-568-8379


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



JAASRealm and LoginContext reuse

2006-02-14 Thread Stefan Baramov
I found that the JAASRealm implementation
(org.apache.catalina.realm.JAASRealm) does not reuse the LoginContext
(javax.security.auth.login.LoginContext) instance. Every time the
authenticate(String,String) method is called a new LoginContext instance
is created. Creating a new instance of the LoginContext will result in
creating a new instance of all LoginModule's configured for this
application. In other words, for each login a new instance of the
LoginModule is created. However, in my case the initialization of the
login module is an expensive operation. 

The only way to resolve this is to write a custom JAASRealm
implementation. However, before doing this I would like to know whether
there is any rational of not caching the LoginContext instance. I looked
in the JAAS spec and could find anything against caching the
LoginContext. I've also looked at LoginContext source code in JDK 1.4
and it appears to be written to cache the LoginModule instances. So I
would assume it is correct to write a custom version of the JAASRealm to
operate on a single instance of the LoginContext. Am I right? 

I would appreciate any thoughts. 

Thanks
Stefan Baramov 
Software Developer 

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



default webapp not understanding

2006-02-14 Thread Scott Purcell
Hello,

 

I am having trouble understanding what is meant by the default webapp.
Here goes.

I have a site which I have a dns entry for. After reading the docs, I
put the application under $TOMCAT_HOME/webapps/mywebapp

 

In the server.xml I added this snippet:





 

Now when I hit my site with the dns which points to my IP addrss for
this box, it goes to a index.html file in the

$TOMCAT_HOME/webapps/root

 

It does not go to the index.html in the

$TOMCAT_HOME/webapps/mywebapp/index.html

 

Can I somehow configure this to go to the above
$TOMCAT_HOME/webapps/mywebapp/index.html?

 

I get confused when the doc states that the entry in the host must also
have a context entry? Can anyone clarify that. Here from the docs

Exactly one of the Hosts associated with each Engine MUST have a name
matching the defaultHost attribute of that Engine.

 

My big deal is to somehow get the index.jsp in the
$TOMCAT_HOME/webapps/mywebapp to be called automatically when I hit my
url.

 

Thanks,

 

 



RE: default webapp not understanding

2006-02-14 Thread Caldarale, Charles R
> From: Scott Purcell [mailto:[EMAIL PROTECTED] 
> Subject: default webapp not understanding
> 
> I am having trouble understanding what is meant by the default webapp.

(It would help if you'd tell us what Tomcat level you're running...)

For 5.5.x, the default webapp is the one located in webapps/ROOT.war or
the webapps/ROOT directory.

> Can I somehow configure this to go to the above
> $TOMCAT_HOME/webapps/mywebapp/index.html?

Deploy your webapp in webapps/ROOT, not webapps/mywebapp.

> I get confused when the doc states that the entry in the host 
> must also have a context entry? Can anyone clarify that.

Where does it say that?  The current doc states that you _can_ nest
 tags inside , not that you must.  Putting  tags
in server.xml is strongly discouraged these days, but not all of the doc
has caught up to that fact.

> Here from the docs
> 
> Exactly one of the Hosts associated with each Engine MUST have a name
> matching the defaultHost attribute of that Engine.

That attribute for simple Tomcat installations is "localhost", which you
already have.  Nothing to do with contexts.

 - Chuck


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

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



mod_jk error numbers

2006-02-14 Thread Peters Jan
Hi all,
 
I would like to ask the list if someone can give me a hint, what might
have gone wrong with our mod_jk. I just installed the connector and
switched logging to debug mode. When I open  the log file I see the
following:
 
[Tue Feb 14 18:00:23 2006] [27276:50880] [debug]
map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI
'/proxycheck.php' from 4 maps
[Tue Feb 14 18:00:23 2006] [27276:50880] [debug]
map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context
URI '/servlets-examples/*'
[Tue Feb 14 18:00:23 2006] [27276:50880] [debug]
map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context
URI '/jsp-examples/*.jsp'
[Tue Feb 14 18:00:23 2006] [27276:50880] [debug]
map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context
URI '/esriadmin/*'
[Tue Feb 14 18:00:23 2006] [27276:50880] [debug]
map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context
URI '/servlet/*'
[Tue Feb 14 18:00:23 2006] [27275:50880] [debug]
map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI
'/cgi-bin/iframe/autovol' from 4 maps
[Tue Feb 14 18:00:23 2006] [27275:50880] [debug]
map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context
URI '/servlets-examples/*'
[Tue Feb 14 18:00:23 2006] [27275:50880] [debug]
map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context
URI '/jsp-examples/*.jsp'
[Tue Feb 14 18:00:23 2006] [27275:50880] [debug]
map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context
URI '/esriadmin/*'
[Tue Feb 14 18:00:23 2006] [27275:50880] [debug]
map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context
URI '/servlet/*'
[Tue Feb 14 18:00:35 2006] [27272:50880] [debug]
map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI
'/ip.cgi' from 4 maps

over and over. What bothers me is the existence of the '/proxycheck.php'
, '/cgi-bin/iframe/autovol' and '/ip.cgi'  entries, since these are the
same requests at our apache firewall in mod_secure. These should have
been blocked, but seem to get through to the connector. So my questions
are:
 
1. What does the 449 and 461 numbers mean? 
2. Is there a security hole in our server?
 
Thanks for any reply and best regards
 
Jan Peters-Anders


RE: default webapp not understanding

2006-02-14 Thread Scott Purcell
5.5x on xp.



-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 10:46 AM
To: Tomcat Users List
Subject: RE: default webapp not understanding

> From: Scott Purcell [mailto:[EMAIL PROTECTED] 
> Subject: default webapp not understanding
> 
> I am having trouble understanding what is meant by the default webapp.

(It would help if you'd tell us what Tomcat level you're running...)

For 5.5.x, the default webapp is the one located in webapps/ROOT.war or
the webapps/ROOT directory.

> Can I somehow configure this to go to the above
> $TOMCAT_HOME/webapps/mywebapp/index.html?

Deploy your webapp in webapps/ROOT, not webapps/mywebapp.

> I get confused when the doc states that the entry in the host 
> must also have a context entry? Can anyone clarify that.

Where does it say that?  The current doc states that you _can_ nest
 tags inside , not that you must.  Putting  tags
in server.xml is strongly discouraged these days, but not all of the doc
has caught up to that fact.

> Here from the docs
> 
> Exactly one of the Hosts associated with each Engine MUST have a name
> matching the defaultHost attribute of that Engine.

That attribute for simple Tomcat installations is "localhost", which you
already have.  Nothing to do with contexts.

 - Chuck


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

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


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



RE: default webapp not understanding

2006-02-14 Thread Scott Purcell
Sorry, I didn't catch the other one.

Tomcat 5.5x on xp

If I deploy the webapp in ROOT, then the structure would look like this:
$TOMCAT_HOME/webapps/root/mywebapp. 
And the index.html would still live in root .. isn't that correct. So I
would still need a way to go from the root/index.html to the
mywebapp/index.html correct?

This is where it gets confusing.



Thanks,

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 10:46 AM
To: Tomcat Users List
Subject: RE: default webapp not understanding

> From: Scott Purcell [mailto:[EMAIL PROTECTED] 
> Subject: default webapp not understanding
> 
> I am having trouble understanding what is meant by the default webapp.

(It would help if you'd tell us what Tomcat level you're running...)

For 5.5.x, the default webapp is the one located in webapps/ROOT.war or
the webapps/ROOT directory.

> Can I somehow configure this to go to the above
> $TOMCAT_HOME/webapps/mywebapp/index.html?

Deploy your webapp in webapps/ROOT, not webapps/mywebapp.

> I get confused when the doc states that the entry in the host 
> must also have a context entry? Can anyone clarify that.

Where does it say that?  The current doc states that you _can_ nest
 tags inside , not that you must.  Putting  tags
in server.xml is strongly discouraged these days, but not all of the doc
has caught up to that fact.

> Here from the docs
> 
> Exactly one of the Hosts associated with each Engine MUST have a name
> matching the defaultHost attribute of that Engine.

That attribute for simple Tomcat installations is "localhost", which you
already have.  Nothing to do with contexts.

 - Chuck


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

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


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



Maintaing sessions

2006-02-14 Thread Marcelo Fukushima
Hello guys.

I dont know if this is the right list for this question, but i dont
have anywhere else to rely on so...
the problem im facing is kinda tricky: theres this one computer that
cant maintain sessions when i redirect it or click on a link... in
fact, my guess is that this one client is not able to maintain any
session at all... im guessing this client is buged, but it can acess
virtually any web site without problems, so i cant really be sure...
any toughs?

im using tomcat5.5 and i tried with ie and firefox and the results are
the same

--
[]'s
Marcelo Takeshi Fukushima

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



Re: default webapp not understanding

2006-02-14 Thread Hadraba Petr
Hi,

no, you must delete whole the original contents of the existing
directory webapps/ROOT and deploy your own ROOT.war web application.
Be careful. The `ROOT' word is case sensitive.

The default URL mapping is:

http://[machine]:[port]/[context]/[servlet]/

where
machine is currently localhost, port is 8080 by default

context is in the context.xml file and usualy is the same as the web
application name
servlet: it's defined in web.xml servlet-mapping tag


If you deploy your application as ROOT application, the context path
will be only `/' (slash).


Chuck explains it to me (thank you Chuck!) one month before. Look into
the mailing-list history.

Hope to help you

Have a nice day!

PETR


On 2/14/06, Scott Purcell <[EMAIL PROTECTED]> wrote:
> Sorry, I didn't catch the other one.
>
> Tomcat 5.5x on xp
>
> If I deploy the webapp in ROOT, then the structure would look like this:
> $TOMCAT_HOME/webapps/root/mywebapp.
> And the index.html would still live in root .. isn't that correct. So I
> would still need a way to go from the root/index.html to the
> mywebapp/index.html correct?
>
> This is where it gets confusing.
>
>
>
> Thanks,
>
> -Original Message-
> From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 14, 2006 10:46 AM
> To: Tomcat Users List
> Subject: RE: default webapp not understanding
>
> > From: Scott Purcell [mailto:[EMAIL PROTECTED]
> > Subject: default webapp not understanding
> >
> > I am having trouble understanding what is meant by the default webapp.
>
> (It would help if you'd tell us what Tomcat level you're running...)
>
> For 5.5.x, the default webapp is the one located in webapps/ROOT.war or
> the webapps/ROOT directory.
>
> > Can I somehow configure this to go to the above
> > $TOMCAT_HOME/webapps/mywebapp/index.html?
>
> Deploy your webapp in webapps/ROOT, not webapps/mywebapp.
>
> > I get confused when the doc states that the entry in the host
> > must also have a context entry? Can anyone clarify that.
>
> Where does it say that?  The current doc states that you _can_ nest
>  tags inside , not that you must.  Putting  tags
> in server.xml is strongly discouraged these days, but not all of the doc
> has caught up to that fact.
>
> > Here from the docs
> >
> > Exactly one of the Hosts associated with each Engine MUST have a name
> > matching the defaultHost attribute of that Engine.
>
> That attribute for simple Tomcat installations is "localhost", which you
> already have.  Nothing to do with contexts.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: Problem with tomcat

2006-02-14 Thread [EMAIL PROTECTED]


Well, the jsp page is clearely not being processed by a jsp engine.  Several 
things could cause this.  Perhaps there's no JSP engine mapped to process 
requests ending in .jsp, perhaps you mislabelled your .jsp file extensions, 
perhaps you're serving the .jps files out of a web server ( apache? ) that 
isn't configured to pass these requests on to the servlet container ( tomcat ). 
 

You probably need to give some more information, or perhaps do some more 
fundamentals type reading.



 --- On Tue 02/14, Kasim < [EMAIL PROTECTED] > wrote:
From: Kasim [mailto: [EMAIL PROTECTED]
To: users@tomcat.apache.org
Date: Tue, 14 Feb 2006 17:59:47 +0530
Subject: Problem with tomcat

 when ever i am calling the jsp page Instead of it its code is been openingin 
notepad.So can any body tell me the 
solution-To 
unsubscribe, e-mail: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL 
PROTECTED]

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



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



RE: default webapp not understanding

2006-02-14 Thread Caldarale, Charles R
> From: Scott Purcell [mailto:[EMAIL PROTECTED] 
> Subject: RE: default webapp not understanding
> 
> If I deploy the webapp in ROOT, then the structure would look 
> like this:
> $TOMCAT_HOME/webapps/root/mywebapp. 

No - get rid of the mywebapp idea.  Your app needs to be deployed AS
root, not under it.  Your app replaces the existing contents of
webapps/ROOT.

 - Chuck


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

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



RE: default webapp not understanding

2006-02-14 Thread Scott Purcell
This has been my confusion ... when I put the war file there, it creates
the
mywebapp folder structure. Should I of named the webapp root?

OK, lets say I take the contents from the war file and place all loose
in root ... that should work then, and my problem would be resolved. But
if I want another app, lets say devmywebapp, how does that work. As I
cannot put two folderless apps together under root.

Sorry, possibly I am making things more confusing than they are.




-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 12:02 PM
To: Tomcat Users List
Subject: RE: default webapp not understanding

> From: Scott Purcell [mailto:[EMAIL PROTECTED] 
> Subject: RE: default webapp not understanding
> 
> If I deploy the webapp in ROOT, then the structure would look 
> like this:
> $TOMCAT_HOME/webapps/root/mywebapp. 

No - get rid of the mywebapp idea.  Your app needs to be deployed AS
root, not under it.  Your app replaces the existing contents of
webapps/ROOT.

 - Chuck


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

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


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



RE: default webapp not understanding

2006-02-14 Thread Caldarale, Charles R
> From: Scott Purcell [mailto:[EMAIL PROTECTED] 
> Subject: RE: default webapp not understanding
> 
> This has been my confusion ... when I put the war file there, 
> it creates the mywebapp folder structure. Should I of named
> the webapp root?

The "name" of the webapp (what's used on the URI) is determined by its
location, not anything else (unless you put a  tag in
server.xml, but you're not supposed to do that).  Tomcat special cases
the location ROOT, so whatever is stored in there becomes the default
application.

> OK, lets say I take the contents from the war file and place all loose
> in root ... that should work then, and my problem would be 
> resolved.

Easier just to name the file ROOT.war, put it in webapps, and delete the
webapps/ROOT directory.

> But if I want another app, lets say devmywebapp, how does that work.
As I
> cannot put two folderless apps together under root.

Each directory or .war file immediately under webapps is a webapp (at
the risk of being redundant).  This is intended to be a single-level
layout - webapps aren't supposed to be nested (although they sometimes
seem to work that way).  Only one app can be the default (by
definition), and that's the one in ROOT (or ROOT.war); put your other
app under webapps/devmywebapp or whatever name you want to use.

 - Chuck


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

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



Re: Trouble accessing Resources in my Context

2006-02-14 Thread Mark Slater
Thanks Chuck for pointing that out. Given that everything else goes  
in WEB-INF, when I was reading the page I misread it every time.


Is there any particular reason the context file goes in META-INF as  
opposed to WEB-INF?


Mark

On Feb 14, 2006, at 6:16 AM, Caldarale, Charles R wrote:


From: Mark Slater [mailto:[EMAIL PROTECTED]
Subject: Re: Trouble accessing Resources in my Context

So, while this works acceptably (the context information for the
webapp is not included in server.xml), I would *much* prefer to use
the WEB-INF/context.xml the Tomcat docs say I can (the fourth bullet
on this page - http://tomcat.apache.org/tomcat-5.5-doc/config/
context.html). If someone could explain why that doesn't
work, I'd be really appreciative. Is this possibly a known issue?


Read what the bullet actually says, not what you think it says:

  if the previous file was not found for this application,
  in individual file at /META-INF/context.xml inside the
  application files

What directory does it really specify?  (Hint: it's not WEB-INF.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE  
PROPRIETARY

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

and its attachments from all computers.

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





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



Re: Setting up a parallel test environment on the same machine as main server

2006-02-14 Thread Alan Chandler
On Tuesday 14 February 2006 12:36, Tim Lucia wrote:
> 1. Moving the JkMount directive inside a  will make it
> accesible from only that virtual host.  So, you must repeat common ones,
> such as /jkmanager.  I put the mappings (JkMount(s)) right in the virtual
> host definition(s) with no trouble at all.

Thanks - just what I needed confirmation on

>
> 2. The virtual host is determined by the http host header, not by the
> connector host name.  This is true for both httpd and tomcat (and any other
> web server.)

Not sure I understand what you are mean here by "http host header", isn't that 
the name of the web site that I am accessing (ie as known by apache) rather 
than as known by a backend topcat



At the moment, I have apache, with two virtual host names of


home.chandlerfamily.org.uk (also known as www.chandlerfamily.org.uk) (ip 
address of my WAN)
money.home (ip address of 192.168.0.32)

based on ip addressing only (ie not named virtual hosts - because it also 
needs to support https where named virtual hosts are not supported)

which all end up using tomcat services for parts of the web site (urls as 
defined in JkMountFile).  It is all directed to a single tomcat host via a  
single worker.properties file with the following

worker.list=tomcat

worker.tomcat.type=ajp13
worker.tomcat.host=appserv.home
worker.tomcat.port=8009
worker.tomcat.connect_timeout=10

and a single host on the server.xml line defined as

appserv.home

This appserv.home (ip address 192.168.0.31) is certainly currently getting all 
the traffic it should get from apache - but I don't see how that is related 
to the http host in the header.

BUT ...

Do you mean that if I had changed my workers thusly

worker.list=production,test

worker.production.host=prodserv.home
worker.test.host=testserv.home
... for the other parameters

but where both prodserv.home, and testserv.home had the SAME ip address (say 
127.0.0.1 :-) )

AND i add an apache virtual host of test.home (ip address 192.168.0.39)

That I can differenciate them in the server.xml file by having an engine 
running of localhost, but with two hosts with names of prodserv.home and 
testserv.home respectively, and that provided the JkMountFile was then moved 
into the correct apache virtual host context, then the same url could be 
mapped by one apache virtual host to worker production and the other apache 
virtual host could map to worker test.

I could then have different versions of the same app running on production and 
test.



>
> You can always install Apache httpd + Tomcat on a second machine (or on the
> same machine on a separate set of ports), if you are reluctant to try it on
> you production host.
>
> HTH,
> Tim
>
>
> -Original Message-
> From: Alan Chandler [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 14, 2006 3:50 AM
> To: users@tomcat.apache.org
> Subject: Re: Setting up a parallel test environment on the same machine as
> main server
>
>
> On Sunday 12 February 2006 17:07, Alan Chandler wrote:
> ...
>
> > Unless anyone here can suggest a better way, I would like to move the
> > JkMountFile directive from global scope to virtual host scope and have
> > two separate files urimap files so that I can map different things
> > dependent on which virtual host.
> >
> > However, since this is a live site I don't want to just conduct the
> > simple experiment to see if will work, so I am asking here if this is
> > OK.
>
> Is there really nobody on this list who can answer this simple question?
>
> ...
>
> > However, I don't fully understand the relationship between ,
> >  and  stanza's in the server.xml file, and until I do, I
> > am reluctant to muck about with it and potentially screw the currently
> > working arrangement.
>
> Specifically, there was some conversation here about it best that if tomcat
> was running on the same box as the web server (which it is in my case) that
> it would be best to make the connection between apache2 and tomcat be via
> localhost.  That being the case, how can I map the SAME servlet name but
> from
> a different virtual host (albeit ip based) on apache to DIFFERENT hosts on
> the same tomcat engine.

-- 
Alan Chandler
http://www.chandlerfamily.org.uk
Open Source. It's the difference between trust and antitrust.

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



Re: Setting up a parallel test environment on the same machine as main server

2006-02-14 Thread Alan Chandler
On Tuesday 14 February 2006 12:36, Tim Lucia wrote:
>
>
> You can always install Apache httpd + Tomcat on a second machine (or on the
> same machine on a separate set of ports), if you are reluctant to try it on
> you production host.


Of course in an ideal world I would - but this is my home, and I don't have 
any more spare machines.  I am already testing on an independant machine 
first, but I want to essentially bring a new version gently into play - 
running off of a single database on my main server - just to prove that I can 
bring the application up in as close to production environment as possible in 
a test environment before switching it to live.

-- 
Alan Chandler
http://www.chandlerfamily.org.uk
Open Source. It's the difference between trust and antitrust.

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



RE: Trouble accessing Resources in my Context

2006-02-14 Thread Caldarale, Charles R
> From: Mark Slater [mailto:[EMAIL PROTECTED] 
> Subject: Re: Trouble accessing Resources in my Context
> 
> Is there any particular reason the context file goes in META-INF as  
> opposed to WEB-INF?

As I understand it, the structure and contents of WEB-INF are defined by
the servlet spec, and adding container-specific files to that directory
is frowned upon.  META-INF is somewhat of a catch-all location.

 - Chuck


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

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



Can't get caseSensitive="false" to work

2006-02-14 Thread David Kerber
I read the thread from last week about case-sensitivity, and did some 
additional googling when it didn't work, but still can't get my Tomcat 
5.5.12 on Win2k, running with Java 1.5.0_06 to be case-INsensitive for 
the context path.  That is a problem for my users, because we migrated 
them from SilverStream, which is NOT case-sensitive in the context 
path.  I have tried the following Context entries.  Note the entry in 
both the  field, and the  entry (I found that one 
via google).  I have tried these entries eash separately, and together, 
and still cannot get my context path to be case-INsensitive.  I don't 
care if things are case sensitive once they get into the app, but would 
really like to get the context path to not matter.


This is in my server.xml, because I can't get the context path to work 
in context.xml:


docBase="e:\TomcatClients\WebSiraCommon\webapps\SiteData" debug="0"
reloadable="true" autoDeploy="true" unpackWARs="true" 
crossContext="false" caseSensitive="false">


 

And yes, I know about the security warning about being non 
case-sensitive on Windows!  I also know that this context path setup is 
not the usual way of doing things; it's because I need to keep the path 
the same after the migration to Tomcat.


Thanks!
Dave



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



RE: New isapi_redirect.dll has problems

2006-02-14 Thread David Thielen
Hi;

I checked the registry - it's using the workers.properties.minimal I believe
(but I would be happier if it logged the files it uses).

The problem with the urls it should not touch only showed up with the new
version from Mark - that never happened before.

As to the thread count, if someone tells me how to raise this, I will do so.
But we get very low volume on this so I would be surprised if that is it.

Any other ideas anyone?

Thanks - dave

 
David Thielen
www.windwardreports.com
303-499-2544

-Original Message-
From: Ian Buzer [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 12:21 AM
To: 'Tomcat Users List'
Subject: RE: New isapi_redirect.dll has problems

OK, first I'll point out that I'm pretty new to Tomcat myself

> workers.properties.minimal:

Is jk even using this config file? Normally it would use workers.properties
unless it was configured otherwise.

> [Mon Feb 13 07:56:49 2006] [info]  jk_ajp_common.c (1248): 
> Error connecting
> to the Tomcat process.

These errors suggest that jk is sending threads to tomcat, but tomcat does
not have enough threads to provide a response. You might want to try
adjusting the backlog, maxThreads and all the other "threads" properties for
your connector in /conf/server.xml

I've noticed that if jk cannot receive any more threads from the web server
(worker.ajp13w.cachesize too small) or tomcat cannot respond to all the
threads that are sent to it (maxThreads too small), it just doesn't seem to
respond correctly, leading either to a host not available error in IE or a
blank page in Firefox. I personally feel that it would be better if jk could
respond with some kind of 500 error.

> [Mon Feb 13 17:03:09 2006] [warn]  jk_uri_worker_map.c (429): Uri
> http://www.windwardreports.com/root.htm?source=google&id=540 
> is invalid. Uri
> must start with /

This is a bit weird. Is your web server doing any URL rewriting? You haven't
got any links in your application that might end up looking like this:

http://www.somehost.com/http://www.windwardreports.com/root.htm?...

or even this:

/http://www.windwardreports.com/root.htm?...

Ian


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



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



RE: Tomcat 5.5.15 Context Reloading issue

2006-02-14 Thread Joey Geiger
I've done some further searching, and noticed that tomcat was also dumping
information into stdout. There is another log trace that might be helpful if
anyone else recognizes the problem. I'm of the belief that this is a bug of
some sort, but I don't know who to pass the information along to.

 

Also, I tried adding information into the context docbase, and it had no
effect on the problem. I also removed all log4j files that I had added to
the configuration. Again, this wasn't happening with tomcat 5.5.12, but
started after I began to use 5.5.15.

 

Thanks.

 

 

log4j:ERROR Error occured while converting date.

java.lang.NullPointerException

at java.lang.System.arraycopy(Native Method)

at
java.lang.AbstractStringBuilder.getChars(AbstractStringBuilder.java:331)

at java.lang.StringBuffer.getChars(StringBuffer.java:202)

at
org.apache.log4j.helpers.AbsoluteTimeDateFormat.format(AbsoluteTimeDateForma
t.java:117)

at java.text.DateFormat.format(DateFormat.java:314)

at
org.apache.log4j.helpers.PatternParser$DatePatternConverter.convert(PatternP
arser.java:444)

at
org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:64)

at org.apache.log4j.PatternLayout.format(PatternLayout.java:503)

at
org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301)

at
org.apache.log4j.WriterAppender.append(WriterAppender.java:159)

at
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)

at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(Append
erAttachableImpl.java:65)

at org.apache.log4j.Category.callAppenders(Category.java:203)

at org.apache.log4j.Category.forcedLog(Category.java:388)

at org.apache.log4j.Category.log(Category.java:853)

at
org.apache.commons.logging.impl.Log4JLogger.info(Log4JLogger.java:133)

at
org.apache.catalina.core.ApplicationContext.log(ApplicationContext.java:638)

at
org.apache.catalina.core.ApplicationContextFacade.log(ApplicationContextFaca
de.java:249)

at
org.springframework.web.context.ContextLoader.initWebApplicationContext(Cont
extLoader.java:176)

at
org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServl
et.java:83)

at javax.servlet.GenericServlet.init(GenericServlet.java:211)

at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:11
05)

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

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

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

at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:2988)

at
org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:
403)

at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:
1276)

at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1568)

at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1577)

at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1577)

at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Cont
ainerBase.java:1557)

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



Re: Maintaing sessions

2006-02-14 Thread Marcelo Fukushima
ok i guess ive found the source of the problem: this guys firewall is
set to block "foreign cookies" and when that rule is disabled, it runs
normally...
can anyone help me please?


On 2/14/06, Marcelo Fukushima <[EMAIL PROTECTED]> wrote:
> Hello guys.
>
> I dont know if this is the right list for this question, but i dont
> have anywhere else to rely on so...
> the problem im facing is kinda tricky: theres this one computer that
> cant maintain sessions when i redirect it or click on a link... in
> fact, my guess is that this one client is not able to maintain any
> session at all... im guessing this client is buged, but it can acess
> virtually any web site without problems, so i cant really be sure...
> any toughs?
>
> im using tomcat5.5 and i tried with ie and firefox and the results are
> the same
>
> --
> []'s
> Marcelo Takeshi Fukushima
>


--
[]'s
Marcelo Takeshi Fukushima

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



Re: Re: Tomcat 5.5 documentation: how to update website?

2006-02-14 Thread Warren Pace

> 
> From: Steve Meredith <[EMAIL PROTECTED]>
> Date: 2006/02/14 Tue AM 06:27:52 EST
> To: "Tomcat Users List" 
> Subject: Re: Tomcat 5.5 documentation: how to update website?
> 
> 
> On 14 Feb 2006, at 11:05, Warren Pace wrote:
> 
> >
> >>
> >> From: Steve Meredith <[EMAIL PROTECTED]>
> >> Date: 2006/02/14 Tue AM 03:50:19 EST
> >> To: users@tomcat.apache.org
> >> Subject: Tomcat 5.5 documentation: how to update website?
> >>
> >> Hi all
> >>
> >> Just spent time getting the Tomcat5.sh script to work as a daemon
> >> under linux following the advice on the url:-
> >>
> >>
> >> "The Apache Tomcat 5.5 Servlet/JSP Container"
> >> http://tomcat.apache.org/tomcat-5.5-doc/setup.html
> >>
> >> 
> >> "The file $CATALINA_HOME/bin/jsvc/native/tomcat.sh can be used as a
> >> template for starting Tomcat automatically at boot time from /etc/
> >> init.d. The file is currently setup for running Tomcat 4.1.x, so it
> >> is necessary to edit it and change the classname from
> >> BootstrapService to Bootstrap."
> >> 
> >>
> >> If only I'd known catalina.sh works 'out of the box'  :-)
> >
> > Section 1 of the docs - under the "Directories and Files" heading,  
> > second paragraph -
> > "These are some of the key tomcat directories all relative to
> > $CATALINA_HOME
> > ./bin - Startup, shutdown, and other scripts. The *.sh files (for  
> > Unix systems) are functional duplicates of the *.bat files (for  
> > Windows systems). Since the Win32 command-line lacks certain  
> > functionality, there are some additional files in here."
> > HOWEVER - you're better off for having used jsvc.
> > "Out of the box" scrips run tc as root user.
> Thanks Warren :-)
> I guess I was overwhelmed with the sheer number of config files/ 
> directories involved :)  (startup.sh, catalina.sh, tomcat.sh?)
> All sorted now though.

Oh.  You should have seen me trying to figure this thing out when I first got 
started . . . 
> 
> >
> >>
> >> How can I update this page to help let people know there's an easier
> >> option to get Tomcat using a startup script with catalina.sh rather
> >> than tomcat5.sh?
> >>
> >>
> >> Many thanks
> >>
> >> Steve
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



Re: Question about deployment of web app

2006-02-14 Thread Giorgio Clavelli
My 2 cents is on you have may have missed something in recreating your
environment.
Hence, I would test it with some very simple code just to ensure
classpath dependencies are fine.
Only after that check, if it doesn't resolve the problem, I would face
the app code.

On 2/14/06, Lian Liming <[EMAIL PROTECTED]> wrote:
> Hi, all
>
> I am using Tomcat 5.5.15 on Window 2000 server. My web app worked well
> before reinstallation of Window2000. After reinstallation, I set up the same
> java environment with the same tomcat version. But a problem comes in the
> deployment of my former well-working app.
>
> In the tomcat log, I got the following message:
> 2006-2-14 15:57:47 org.apache.catalina.startup.HostConfig
> deployDescriptor
> Error deploying configuration descriptor myApp.xml
> java.lang.NullPointerException
> at
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:576)
> at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493)
> at org.apache.catalina.startup.HostConfig.check
> (HostConfig.java:1195)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
> at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke
> (DynamicMetaDataImpl.java:213)
> at
> com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
> at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
>  at
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
> at
> org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1377)
> at org.apache.catalina.manager.ManagerServlet.deploy
> (ManagerServlet.java:814)
> at
> org.apache.catalina.manager.HTMLManagerServlet.deployInternal(HTMLManagerServlet.java:248)
> at
> org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:95)
>  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java
> :252)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke
> (StandardContextValve.java:178)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service
> (CoyoteAdapter.java:148)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java
> :667)
> at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> (ThreadPool.java:684)
> at java.lang.Thread.run(Thread.java:595)
> 2006-2-14 15:57:47
> org.apache.catalina.startup.ContextConfig
> applicationWebConfig
> Message: Missing application web.xml, using defaults only
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/myApp]
>
> It is really strange since I didn't change any codes in my web app including
> web.xml under WEB-INF. It worked well before the reinstallation, but fail to
> deploy after the reinstallation. What is the possible wrong?
>
> My web.xml is attached. Thanks for any suggestions.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

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



RE: No of concurrent requests per session

2006-02-14 Thread George Sexton
So? As someone else pointed out. That's what the standard recommends. You
really didn't even bother to find the registry key that I mentioned did you?

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

> -Original Message-
> From: Abhilash Kumar [mailto:[EMAIL PROTECTED] 
> Sent: Monday, February 13, 2006 9:45 PM
> To: Tomcat Users List
> Subject: RE: No of concurrent requests per session
> 
> Hello:
> 
> Thanking everyone for words of wisdom ..
> 
> I checked with firefox 1.0.7 also. It is also showing the 
> same behaviour as
> with IE.
> 
> thanks and regards,
> 
> -- Kannan.
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 13, 2006 9:58 PM
> To: Tomcat Users List
> Subject: RE: No of concurrent requests per session
> 
> 
> I suspect the problem relates to pipelining of  HTTP 1.1 
> requests over a
> single persistent TCP connection.   Pipelining is intended to improve
> efficiency, allowing the need for multiple images to present 
> a web page be
> expressed to a web server one after another, before any of 
> the responses
> are given.  However, the responses must be presented in the 
> same order as
> the requests, and therein lies your problem.  If your short running
> request is issued over the same TCP connection as one of the 
> earlier, yet
> to be responded to, long running requests, the response to the later
> request must wait for the earlier request to be responded to 
> first.  In
> this scenario, you need to get either the browser or the web server to
> stop using persistent connections.  Of course, this may make it less
> efficient for serving up "normal" web pages.
> 
> 
> 
> Please respond to "Tomcat Users List" 
> 
> To: "'Tomcat Users List'" 
> cc:
> Subject:RE: No of concurrent requests per session
> 
> 
> 
> I'm guessing this is more of a browser issue. If you're using 
> IE, I seem
> to
> recall there is a registry entry that lets you set the 
> maximum concurrent
> requests.
> 
> George Sexton
> MH Software, Inc.
> http://www.mhsoftware.com/
> Voice: 303 438 9585
> 
> 
> > -Original Message-
> > From: Abhilash Kumar [mailto:[EMAIL PROTECTED]
> > Sent: Monday, February 13, 2006 6:43 AM
> > To: Tomcat Users List
> > Subject: No of concurrent requests per session
> >
> > Hello:
> >
> >  I am using Tomcat 5.0.30 with HTTP 1.1 Connector. If I try
> > to make a third request while two other request's (which i
> > have already made) responses have not yet arrived, then
> > Tomcat is not serving the request until one of the pending
> > response arrives. This limits me to only two pending requests
> > (irrespective of the webapp) at a time.
> >
> >  My front app is like a dashboard which integarates 
> multiple > web apps of
> which some are reporting apps which requires 4 to
> > 7 minutes to process a request and some are data processing
> > apps which requires only seconds to process the request.
> > Assume the user clicks on two reporting links which open up
> > as new windows from the main app window. Now when he clicks
> > on another link irrespctive of the webapp, nothing happens
> > until one of the reporting request's response is arrived.
> > This problem appears only if the requests belong to the 
> same session.
> >
> > Any pointers / advices will be greatly appreciated.
> >
> > thanks and regards,
> >
> > -- Kannan.
> >
> >
> >
> > --
> > Amritha Institute of Medical Sciences, Cochin, India
> >Sent using "PostMaster" by QuantumLink Communications
> >  One Internet account, unlimited personal e-mail addresses
> > Get your free copy of "PostMaster" at http://www.mailserve.net/
> >
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> --
> Amritha Institute of Medical Sciences, Cochin, India
>Sent using "PostMaster" by QuantumLink Communications
>  One Internet account, unlimited personal e-mail addresses
> Get your free copy of "PostMaster" at http://www.mailserve.net/
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



RE: No of concurrent requests per session

2006-02-14 Thread George Sexton
I suppose turning off HTTP 1.1 would probably do it.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

> -Original Message-
> From: Abhilash Kumar [mailto:[EMAIL PROTECTED] 
> Sent: Monday, February 13, 2006 11:23 PM
> To: Tomcat Users List
> Subject: RE: No of concurrent requests per session
> 
> Hello:
> 
> Hello:
> 
> Can u tell how to prevent browser or webserver using 
> persistent connection ?
> 
> thanks and regards,
> 
> -- Kannan.
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 13, 2006 9:58 PM
> To: Tomcat Users List
> Subject: RE: No of concurrent requests per session
> 
> 
> I suspect the problem relates to pipelining of  HTTP 1.1 
> requests over a
> single persistent TCP connection.   Pipelining is intended to improve
> efficiency, allowing the need for multiple images to present 
> a web page be
> expressed to a web server one after another, before any of 
> the responses
> are given.  However, the responses must be presented in the 
> same order as
> the requests, and therein lies your problem.  If your short running
> request is issued over the same TCP connection as one of the 
> earlier, yet
> to be responded to, long running requests, the response to the later
> request must wait for the earlier request to be responded to 
> first.  In
> this scenario, you need to get either the browser or the web server to
> stop using persistent connections.  Of course, this may make it less
> efficient for serving up "normal" web pages.
> 
> 
> 
> Please respond to "Tomcat Users List" 
> 
> To: "'Tomcat Users List'" 
> cc:
> Subject:RE: No of concurrent requests per session
> 
> 
> 
> I'm guessing this is more of a browser issue. If you're using 
> IE, I seem
> to
> recall there is a registry entry that lets you set the 
> maximum concurrent
> requests.
> 
> George Sexton
> MH Software, Inc.
> http://www.mhsoftware.com/
> Voice: 303 438 9585
> 
> 
> > -Original Message-
> > From: Abhilash Kumar [mailto:[EMAIL PROTECTED]
> > Sent: Monday, February 13, 2006 6:43 AM
> > To: Tomcat Users List
> > Subject: No of concurrent requests per session
> >
> > Hello:
> >
> >  I am using Tomcat 5.0.30 with HTTP 1.1 Connector. If I try
> > to make a third request while two other request's (which i
> > have already made) responses have not yet arrived, then
> > Tomcat is not serving the request until one of the pending
> > response arrives. This limits me to only two pending requests
> > (irrespective of the webapp) at a time.
> >
> >  My front app is like a dashboard which integarates 
> multiple > web apps of
> which some are reporting apps which requires 4 to
> > 7 minutes to process a request and some are data processing
> > apps which requires only seconds to process the request.
> > Assume the user clicks on two reporting links which open up
> > as new windows from the main app window. Now when he clicks
> > on another link irrespctive of the webapp, nothing happens
> > until one of the reporting request's response is arrived.
> > This problem appears only if the requests belong to the 
> same session.
> >
> > Any pointers / advices will be greatly appreciated.
> >
> > thanks and regards,
> >
> > -- Kannan.
> >
> >
> >
> > --
> > Amritha Institute of Medical Sciences, Cochin, India
> >Sent using "PostMaster" by QuantumLink Communications
> >  One Internet account, unlimited personal e-mail addresses
> > Get your free copy of "PostMaster" at http://www.mailserve.net/
> >
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> --
> Amritha Institute of Medical Sciences, Cochin, India
>Sent using "PostMaster" by QuantumLink Communications
>  One Internet account, unlimited personal e-mail addresses
> Get your free copy of "PostMaster" at http://www.mailserve.net/
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



RE: Setting up a parallel test environment on the same machine as main server

2006-02-14 Thread Tim Lucia
Well, you can run Apache on any number of ports you wish, so if you are
limited by machines, then that is a way out.  Personally, I run IIS+2
tomcats clustered and Apache httpd + 2 tomcats clustered all on one dev
machine, just keep the ports straight.  That way, I can compare
configurations on the same hardware, same OS, etc.

Tim

-Original Message-
From: Alan Chandler [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 3:14 PM
To: users@tomcat.apache.org
Subject: Re: Setting up a parallel test environment on the same machine as
main server


On Tuesday 14 February 2006 12:36, Tim Lucia wrote:
>
>
> You can always install Apache httpd + Tomcat on a second machine (or 
> on the same machine on a separate set of ports), if you are reluctant 
> to try it on you production host.


Of course in an ideal world I would - but this is my home, and I don't have 
any more spare machines.  I am already testing on an independant machine 
first, but I want to essentially bring a new version gently into play - 
running off of a single database on my main server - just to prove that I
can 
bring the application up in as close to production environment as possible
in 
a test environment before switching it to live.

-- 
Alan Chandler
http://www.chandlerfamily.org.uk
Open Source. It's the difference between trust and antitrust.

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



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



RE: Setting up a parallel test environment on the same machine as main server

2006-02-14 Thread Tim Lucia
The http host header is sent by the user-agent ("browser") based on the
address requested in the URL.  This is how virtual hosts are differentiated.
Tomcat supports a  container for virtual host differentiation, just
like Apache does.  You do not need to change the workers at all.  Tomcat
sees the same host header that Apache does.  I.e., using Tamper Data and
FireFox, I see 

Host=www.chandlerfamily.org.uk

When I request your web site.  (Along with a photo of you, presumably, in a
tie & sunglasses ;-)  You might also want to send just "Apache" for the
server, rather then

Server=Apache/2.0.54 (Debian GNU/Linux) mod_auth_pgsql/2.0.2b1 DAV/2
SVN/1.1.4 mod_jk/1.2.14 mod_python/3.1.3 Python/2.3.5 PHP/4.3.10-16
mod_ssl/2.0.54 OpenSSL/0.9.7e mod-xslt/1.0.0rc1

As it is "more secure".  How to do this was recently discussed on this list.

So, you should have two virtual hosts (by name) in both server.xml and
httpd.conf.  Not sure how to solve the https problem -- never tried to
myself.

Hope this is helpful,
Tim

-Original Message-
From: Alan Chandler [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 3:09 PM
To: users@tomcat.apache.org
Subject: Re: Setting up a parallel test environment on the same machine as
main server


On Tuesday 14 February 2006 12:36, Tim Lucia wrote:
> 1. Moving the JkMount directive inside a  will make it 
> accesible from only that virtual host.  So, you must repeat common 
> ones, such as /jkmanager.  I put the mappings (JkMount(s)) right in 
> the virtual host definition(s) with no trouble at all.

Thanks - just what I needed confirmation on

>
> 2. The virtual host is determined by the http host header, not by the 
> connector host name.  This is true for both httpd and tomcat (and any 
> other web server.)

Not sure I understand what you are mean here by "http host header", isn't
that 
the name of the web site that I am accessing (ie as known by apache) rather 
than as known by a backend topcat



At the moment, I have apache, with two virtual host names of


home.chandlerfamily.org.uk (also known as www.chandlerfamily.org.uk) (ip 
address of my WAN)
money.home (ip address of 192.168.0.32)

based on ip addressing only (ie not named virtual hosts - because it also 
needs to support https where named virtual hosts are not supported)

which all end up using tomcat services for parts of the web site (urls as 
defined in JkMountFile).  It is all directed to a single tomcat host via a  
single worker.properties file with the following

worker.list=tomcat

worker.tomcat.type=ajp13
worker.tomcat.host=appserv.home
worker.tomcat.port=8009
worker.tomcat.connect_timeout=10

and a single host on the server.xml line defined as

appserv.home

This appserv.home (ip address 192.168.0.31) is certainly currently getting
all 
the traffic it should get from apache - but I don't see how that is related 
to the http host in the header.

BUT ...

Do you mean that if I had changed my workers thusly

worker.list=production,test

worker.production.host=prodserv.home
worker.test.host=testserv.home
... for the other parameters

but where both prodserv.home, and testserv.home had the SAME ip address (say

127.0.0.1 :-) )

AND i add an apache virtual host of test.home (ip address 192.168.0.39)

That I can differenciate them in the server.xml file by having an engine 
running of localhost, but with two hosts with names of prodserv.home and 
testserv.home respectively, and that provided the JkMountFile was then moved

into the correct apache virtual host context, then the same url could be 
mapped by one apache virtual host to worker production and the other apache 
virtual host could map to worker test.

I could then have different versions of the same app running on production
and 
test.



>
> You can always install Apache httpd + Tomcat on a second machine (or 
> on the same machine on a separate set of ports), if you are reluctant 
> to try it on you production host.
>
> HTH,
> Tim
>
>
> -Original Message-
> From: Alan Chandler [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 14, 2006 3:50 AM
> To: users@tomcat.apache.org
> Subject: Re: Setting up a parallel test environment on the same 
> machine as main server
>
>
> On Sunday 12 February 2006 17:07, Alan Chandler wrote:
> ...
>
> > Unless anyone here can suggest a better way, I would like to move 
> > the JkMountFile directive from global scope to virtual host scope 
> > and have two separate files urimap files so that I can map different 
> > things dependent on which virtual host.
> >
> > However, since this is a live site I don't want to just conduct the 
> > simple experiment to see if will work, so I am asking here if this 
> > is OK.
>
> Is there really nobody on this list who can answer this simple 
> question?
>
> ...
>
> > However, I don't fully understand the relationship between 
> > ,  and  stanza's in the server.xml file, and 
> > until I do, I am reluctant to muck about with it and potentially 
> > screw the current

Tomcat 5.5.15 Clustering ?

2006-02-14 Thread David Avenante
Hi,

I' ve try to use Tomcat 5.5.15 in cluster mod. And after some work on
configuration and test
i seems to be on limit of my all possibilities ;)

I try to use two tomcat in cluster with apache web server and mod_jk as
connector.

my Apache configuration look like :


# workers.properties

ps=/

# List the workers name
worker.list=loadbalancer

# 
# First worker
# 
worker.node01.port=8009
worker.node01.host=agnes
worker.node01.type=ajp13
worker.node01.lbfactor=1
#worker.node01.domain=cluster1
# 
# Second worker
# 
worker.node02.port=9009
worker.node02.host=ovea-inspiron
worker.node02.type=ajp13
worker.node02.lbfactor=1
#worker.node02.domain=cluster1
# --
# Load Balancer worker
# --
worker.loadbalancer.type=lb
worker.loadbalancer.sticky_session=false
worker.loadbalancer.balanced_workers=node01,node02

As you can see i use two server ('agnes' IP : 192.168.2.102 and
'ovea-inspiron' IP : 192.168.2.103)
I' ve coded a little aplication who read un file and create a sessions if
session not exist.

If i use the system in mod load balancing (with no cluster mod activate)
all is great (my config is of course worker.loadbalancer.sticky_session=true
)

So system run with session affinitu but the two server are accessible ;)

Now i try to configure as cluster mode with session replication
(my config is now worker.loadbalancer.sticky_session=3Dfalse)

I configure my to server.xml like that :
agnes (IP : 192.168.2.102)


  


  

  






  

  
 







  

  



ovea-inspiron (IP : 192.168.2.103)


  

  

  

   

   

   
 

 

 







  

  



I'm user linux so i've compiled my kernel with multicat kernel option
I add the rout like rooute add -host 224.0.0.1 dev eth0

N.B : why 224.0.0.1 => http://www.iana.org/assignments/multicast-addresses

So route is :
ALL-SYSTEMS.MCA * 255.255.255.255 UH0  00 eth0
192.168.2.0 *  255.255.255.0 U  0  00
eth0
loopback*   255.0.0.0U  0  0
 0 lo
default .  0.0.0.0   UG0  0
   0 eth0

now i start the two tomcat with the same application in webapp directories
with tcpdump i verify the multicasting btewen my server .. so :

19:39:17.809978 IP 192.168.2.102.45564 > all-systems.mcast.net.45564:UDP,
length 56
19:39:18.546034 IP ovea-inspiron.45564 > all-systems.mcast.net.45564:UDP,
length 56
19:39:18.814418 IP 192.168.2.102.45564 > all-systems.mcast.net.45564UDP,
length 56
19:39:19.790470 IP ovea-inspiron.45564 > all-systems.mcast.net.45564:UDP,
length 56
19:39:19.818691 IP 192.168.2.102.45564 > all-systems.mcast.net.45564:UDP,
length 56
19:39:20.826650 IP 192.168.2.102.45564 > all-systems.mcast.net.45564:UDP,
length 56
19:39:20.943933 IP ovea-inspiron.45564 > all-systems.mcast.net.45564:UDP,
length 56
19:39:21.806813 arp who-has . tell 192.168.2.102
19:39:21.806972 arp reply . is-at 00:04:e2:b6:65:0a (oui Unknown)
19:39:21.831048 IP 192.168.2.102.45564 > all-systems.mcast.net.45564:UDP,
length 56
19:39:22.164812 IP ovea-inspiron.45564 > all-systems.mcast.net.45564:UDP,
length 56
19:39:22.835240 IP 192.168.2.102.45564 > all-systems.mcast.net.45564:UDP,
length 56

So all semms to be OK but i've

Feb 14, 2006 6:33:26 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster st
art
INFO: Cluster is about to start
Feb 14, 2006 6:33:26 PM
org.apache.catalina.cluster.tcp.SimpleTcpClustercreateDefaultClusterValves
INFO: Add Default ClusterValves at cluster localhost
Feb 14, 2006 6:33:26 PM
org.apache.catalina.cluster.tcp.SimpleTcpClustercreateDefaultClusterListener
INFO: Add Default ClusterListener at cluster localhost
Feb 14, 2006 6:33:26 PM
org.apache.catalina.cluster.tcp.ReplicationTransmitter start
INFO: Start ClusterSender at cluster Catalina:type=3DCluster,host=3Dlocalhost
with name Catalina:type=3DClusterSender,host=3Dlocalhost
Feb 14, 2006 6:33:26 PM
org.apache.catalina.cluster.mcast.McastServiceImplsetupSocket
INFO: Setting multihome multicast interface to:/192.168.2.102
Feb 14, 2006 6:33:26 PM org.apache.catalina.cluster.mcast.McastService start
INFO: Sleeping for 4000 secs to establish cluster membership
Feb 14, 2006 6:33:30 PM
org.apache.catalina.cluster.mcast.McastServiceregisterMBean
INFO: membership mbean registered
(Catalina:type=3DClusterMembership,host=3Dlocalhost)
Feb 14, 2006 6:33:31 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive cluster-1.0-SNAPSHOT.war
Feb 14, 2006 6:33:31 PM org.apache.catalina.cluster.session.DeltaManager st
art
INFO: Register manager /cluster-1.0-SNAPSHOT to cluster element Host with
name localhost
Feb 14, 2006 6:33:31 PM org.apache.catalina.cluster.session.DeltaManager st
art
INFO: Starting clustering manager at /cluster-1.0-SNAPSHOT
Feb 14, 2006 6:33:31 PM
org.apac

Re: context error

2006-02-14 Thread jacky
hi, Mike,
   Do you mean put all directories together? 
No, we need to separate them. So, any other suggestions about this problem?

 Best Regards.
   jacky  
   
- Original Message - 
From: "Mike Sabroff" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Tuesday, February 14, 2006 10:56 PM
Subject: Re: context error


> Then do that
> 
> jacky wrote:
> >
> > hi,
> > When i add a Context in the server.xml, an error occurs:
> >
> > Apache Tomcat/4.1.31
> > Catalina.start: LifecycleException: Context startup failed due to
> > previous errors
> > LifecycleException: Context startup failed due to previous errors
> > at
> > org.apache.catalina.core.StandardContext.start(StandardContext.java:3578)
> > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
> > at org.apache.catalina.core.StandardHost.start(StandardHost.java:707)
> > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)
> > at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)
> > at
> > org.apache.catalina.core.StandardService.start(StandardService.java:450)
> > at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)
> > at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
> > at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
> > at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
> > 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:324)
> > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
> > Stopping service Tomcat-Standalone
> > Catalina.stop: LifecycleException: Coyote connector has not been started
> > LifecycleException: Coyote connector has not been started
> > at
> > org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1296)
> > at org.apache.catalina.core.StandardService.stop(StandardService.java:499)
> > at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2178)
> > at org.apache.catalina.startup.Catalina.start(Catalina.java:494)
> > at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
> > at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
> > 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:324)
> > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
> >
> > If i remove the added context, tomcat will start.
> > In fact, i rearrange the directories, i don't know if this will impact
> > on the Context. If i put all directories under $CATALINA_HOME, tomcat
> > will work well with the Context.
> >
> > $CATALINA_HOME/bin/
> > shared/
> > server/
> >
> > $CATALINA_BASE/bin/
> > conf/
> > webapps/
> > logs/
> > work/
> >
> > Context is as following:
> > 
> >
> > Best Regards.
> > jacky
> >
> 
> -- 
> Mike Sabroff
> Web Services
> Developer
> [EMAIL PROTECTED]
> 920-568-8379
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

security-constraint pattern: /* vs /

2006-02-14 Thread Marius Scurtescu
Hi all,

I am trying to secure the index page of a web application but
at the same time allow deeper path to be unprotected. For example:


  
Protected Area
  /
  /other/protected/*
  


But Tomcat 5.0 and 5.5 behave as I have written:


  
Protected Area
  /*
  /other/protected/*
  


...they basically secure everything.

I checked the source code, and indeed, the "/" pattern is treated as a
special one and it is called the "universal mapper".

I could not find anything in the spec about this "universal mapper" and
also I could not find anything that explains this behaviour for "/".

Any suggestions in this regard?

Thanks,
Marius



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



RE: No of concurrent requests per session

2006-02-14 Thread Wade Chandler
> > -Original Message-
> > From: Abhilash Kumar
> [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, February 13, 2006 9:45 PM
> > To: Tomcat Users List
> > Subject: RE: No of concurrent requests per session
> > 
> > Hello:
> > 
> > Thanking everyone for words of wisdom ..
> > 
> > I checked with firefox 1.0.7 also. It is also
> showing the 
> > same behaviour as
> > with IE.
> > 
> > thanks and regards,
> > 
> > -- Kannan.
And did you download the Fasterfox extension to allow
it more than "2" connections to any given web server? 
By default Firefox (without the Fasterfox settings or
manipulating user.js) will only use 2 connections at
any given time to a single web server.

Wade

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



RE: App will work on localhost but blank on client PC.

2006-02-14 Thread Alexander Alekseev
Server is 192.168.2.100, client is 192.168.2.X

We tried using http://192.168.2.100:8447/ from the client, and the blank
problem first cropped up.

Now, instead of http://localhost:8447/ we tried http://192.168.2.100:8447/
from the server itself, and it also comes up blank.



-Original Message-
From: Mike Sabroff [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 9:55 AM
To: Tomcat Users List
Subject: Re: App will work on localhost but blank on client PC.

>How does localhost resolve in that scenario...why not use the hostname 
>or ip address





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



Re: App will work on localhost but blank on client PC.

2006-02-14 Thread Pham Anh Tuan

maybe caused by firewall or something like that ... ?
- Original Message - 
From: "Alexander Alekseev" <[EMAIL PROTECTED]>

To: <[EMAIL PROTECTED]>
Cc: 
Sent: Wednesday, February 15, 2006 10:00 AM
Subject: RE: App will work on localhost but blank on client PC.



Server is 192.168.2.100, client is 192.168.2.X

We tried using http://192.168.2.100:8447/ from the client, and the blank
problem first cropped up.

Now, instead of http://localhost:8447/ we tried http://192.168.2.100:8447/
from the server itself, and it also comes up blank.



-Original Message-
From: Mike Sabroff [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 14, 2006 9:55 AM
To: Tomcat Users List
Subject: Re: App will work on localhost but blank on client PC.


How does localhost resolve in that scenario...why not use the hostname
or ip address






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




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



RE: No of concurrent requests per session

2006-02-14 Thread Abhilash Kumar
Hello:

  No, I haven't tried the Fasterfox extension. Let me try it and see the
results.

thanks and regards,

-- Kannan.

-Original Message-
From: Wade Chandler [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 15, 2006 8:13 AM
To: Tomcat Users List
Subject: RE: No of concurrent requests per session


> > -Original Message-
> > From: Abhilash Kumar
> [mailto:[EMAIL PROTECTED]
> > Sent: Monday, February 13, 2006 9:45 PM
> > To: Tomcat Users List
> > Subject: RE: No of concurrent requests per session
> >
> > Hello:
> >
> > Thanking everyone for words of wisdom ..
> >
> > I checked with firefox 1.0.7 also. It is also
> showing the
> > same behaviour as
> > with IE.
> >
> > thanks and regards,
> >
> > -- Kannan.
And did you download the Fasterfox extension to allow
it more than "2" connections to any given web server?
By default Firefox (without the Fasterfox settings or
manipulating user.js) will only use 2 connections at
any given time to a single web server.

Wade

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






--
Amritha Institute of Medical Sciences, Cochin, India
   Sent using "PostMaster" by QuantumLink Communications
 One Internet account, unlimited personal e-mail addresses
Get your free copy of "PostMaster" at http://www.mailserve.net/



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



RE: No of concurrent requests per session

2006-02-14 Thread Abhilash Kumar
Hello George,

  I tried out as you have suggested by adding the registry key entry
"MaxConnectionsPerServer" under
"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
Settings" with a value more than 2. After that, IE spans  more than two
concurrent requests to the same domain.
 Why I mentioned about Firefox was no one in the thread cleary stated that
it is the same behaviour in Firefox. So I decided to make a post wishing
later some one will be benefitted from that information since I have tested
the behaviuor with Firefox 1.0.7. And as you can see, the community again
benefitted from that posting since Wade posted the necessary info for
setting max connections in FireFox also.

thanks and regards,

-- Kannan.


-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 15, 2006 6:03 AM
To: 'Tomcat Users List'
Subject: RE: No of concurrent requests per session


So? As someone else pointed out. That's what the standard recommends. You
really didn't even bother to find the registry key that I mentioned did you?

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585


> -Original Message-
> From: Abhilash Kumar [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 13, 2006 9:45 PM
> To: Tomcat Users List
> Subject: RE: No of concurrent requests per session
>
> Hello:
>
> Thanking everyone for words of wisdom ..
>
> I checked with firefox 1.0.7 also. It is also showing the
> same behaviour as
> with IE.
>
> thanks and regards,
>
> -- Kannan.
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 13, 2006 9:58 PM
> To: Tomcat Users List
> Subject: RE: No of concurrent requests per session
>
>
> I suspect the problem relates to pipelining of  HTTP 1.1
> requests over a
> single persistent TCP connection.   Pipelining is intended to improve
> efficiency, allowing the need for multiple images to present
> a web page be
> expressed to a web server one after another, before any of
> the responses
> are given.  However, the responses must be presented in the
> same order as
> the requests, and therein lies your problem.  If your short running
> request is issued over the same TCP connection as one of the
> earlier, yet
> to be responded to, long running requests, the response to the later
> request must wait for the earlier request to be responded to
> first.  In
> this scenario, you need to get either the browser or the web server to
> stop using persistent connections.  Of course, this may make it less
> efficient for serving up "normal" web pages.
>
>
>
> Please respond to "Tomcat Users List" 
>
> To: "'Tomcat Users List'" 
> cc:
> Subject:RE: No of concurrent requests per session
>
>
>
> I'm guessing this is more of a browser issue. If you're using
> IE, I seem
> to
> recall there is a registry entry that lets you set the
> maximum concurrent
> requests.
>
> George Sexton
> MH Software, Inc.
> http://www.mhsoftware.com/
> Voice: 303 438 9585
>
>
> > -Original Message-
> > From: Abhilash Kumar [mailto:[EMAIL PROTECTED]
> > Sent: Monday, February 13, 2006 6:43 AM
> > To: Tomcat Users List
> > Subject: No of concurrent requests per session
> >
> > Hello:
> >
> >  I am using Tomcat 5.0.30 with HTTP 1.1 Connector. If I try
> > to make a third request while two other request's (which i
> > have already made) responses have not yet arrived, then
> > Tomcat is not serving the request until one of the pending
> > response arrives. This limits me to only two pending requests
> > (irrespective of the webapp) at a time.
> >
> >  My front app is like a dashboard which integarates
> multiple > web apps of
> which some are reporting apps which requires 4 to
> > 7 minutes to process a request and some are data processing
> > apps which requires only seconds to process the request.
> > Assume the user clicks on two reporting links which open up
> > as new windows from the main app window. Now when he clicks
> > on another link irrespctive of the webapp, nothing happens
> > until one of the reporting request's response is arrived.
> > This problem appears only if the requests belong to the
> same session.
> >
> > Any pointers / advices will be greatly appreciated.
> >
> > thanks and regards,
> >
> > -- Kannan.
> >
> >
> >
> > --
> > Amritha Institute of Medical Sciences, Cochin, India
> >Sent using "PostMaster" by QuantumLink Communications
> >  One Internet account, unlimited personal e-mail addresses
> > Get your free copy of "PostMaster" at http://www.mailserve.net/
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, 

Re: Tomcat 5.5.15 Clustering ?

2006-02-14 Thread Peter Rossbach

Hey,

1)	Clustering need sticky_session=true and is only design for  
failover (see servlet spec).

2)  Are your sure that MULTICAST is enabled at eth0?

regards
Peter
[EMAIL PROTECTED]



Am 15.02.2006 um 02:26 schrieb David Avenante:


Hi,

I' ve try to use Tomcat 5.5.15 in cluster mod. And after some work on
configuration and test
i seems to be on limit of my all possibilities ;)

I try to use two tomcat in cluster with apache web server and  
mod_jk as

connector.

my Apache configuration look like :


# workers.properties

ps=/

# List the workers name
worker.list=loadbalancer

# 
# First worker
# 
worker.node01.port=8009
worker.node01.host=agnes
worker.node01.type=ajp13
worker.node01.lbfactor=1
#worker.node01.domain=cluster1
# 
# Second worker
# 
worker.node02.port=9009
worker.node02.host=ovea-inspiron
worker.node02.type=ajp13
worker.node02.lbfactor=1
#worker.node02.domain=cluster1
# --
# Load Balancer worker
# --
worker.loadbalancer.type=lb
worker.loadbalancer.sticky_session=false
worker.loadbalancer.balanced_workers=node01,node02

As you can see i use two server ('agnes' IP : 192.168.2.102 and
'ovea-inspiron' IP : 192.168.2.103)
I' ve coded a little aplication who read un file and create a  
sessions if

session not exist.

If i use the system in mod load balancing (with no cluster mod  
activate)
all is great (my config is of course  
worker.loadbalancer.sticky_session=true

)

So system run with session affinitu but the two server are  
accessible ;)


Now i try to configure as cluster mode with session replication
(my config is now worker.loadbalancer.sticky_session=3Dfalse)

I configure my to server.xml like that :
agnes (IP : 192.168.2.102)


  
   description="User database that can be updated  
and saved"

   factory="
org.apache.catalina.users.MemoryUserDatabaseFactory"
   pathname="conf/tomcat-users.xml" />

  

  
  connectionTimeout="2"  
disableUploadTimeout="true"

/>



jvmRoute="node01" >


  

  
 className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"

  doClusterLog="true"
  clusterLogName="clusterlog"
  manager.className="
org.apache.catalina.cluster.session.DeltaManager"
  manager.expireSessionsOnShutdown="false"
  manager.notifyListenersOnReplication="true"
  manager.notifySessionListenersOnReplication="true"
  manager.sendAllSessions="true"
  manager.sendAllSessionsSize="500"
  manager.sendAllSessionsWaitTime="20">







  

  



ovea-inspiron (IP : 192.168.2.103)


  
 description="User database that can be updated  
and

saved"
 factory="
org.apache.catalina.users.MemoryUserDatabaseFactory"
 pathname="conf/tomcat-users.xml" />
  

  

connectionTimeout="2"  
disableUploadTimeout="true"

/>

   

   
 

 

 className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"

  doClusterLog="true"
  clusterLogName="clusterlog"
  manager.className="
org.apache.catalina.cluster.session.DeltaManager"
  manager.expireSessionsOnShutdown="false"
  manager.notifyListenersOnReplication="true"
  manager.notifySessionListenersOnReplication="true"
  manager.sendAllSessions="true"
  manager.sendAllSessionsSize="500"
  manager.sendAllSessionsWaitTime="20">







  

  



I'm user linux so i've compiled my kernel with multicat kernel option
I add the rout like rooute add -host 224.0.0.1 dev eth0

N.B : why 224.0.0.1 => http://www.iana.org/assignments/multicast- 
addresses


So route is :
ALL-SYSTEMS.MCA * 255.255.255.255 UH0  00 eth0
192.168.2.0 *  255.255.255.0 U  0   
00

eth0
loopback*   255.0.0.0U  0  0
 0 lo
default .  0.0.0.0   UG 
0  0

   0 eth0

now i start the two tomcat with the same application in webapp  
directories

with tcpdump i verify the multicasting btewen my server .. so :

19:39:17.809978 IP 192.168.2.102.45564 > all-systems.mcast.net. 
45564:UDP,

length 56
19:39:18.546034 IP ovea-inspiron.45564 > all-systems.mcast.net. 
45564:UDP,

length 56
19:39:18.814418 IP 192.168.2.102.45564 > all-systems.mcast.net. 
45564UDP,

length 56
19:39:19.790470 IP ovea-inspiron.45564 > all-systems.mcast.net. 
45564:UDP,

length 56
19:39:19.818691 IP 192.168.2.102.45564 > all-systems.mcast.net. 
45564:UDP,

length 56
19:39:20.826650 IP 192.168.2.102.45564 > all-systems.mcast.net. 
45564:UDP,

len

How can we capture all errors without defining it

2006-02-14 Thread Java Pro

Hi,

I would like to know, if we can capture all the errors to a servlet 
without defining the list of errors in web.xml as follows..


generally, we can capture an error like this:

400
/errorHandler

.
.
.

is this possible? (see below)

AllErrors
/errorHandler


or is there any other mechanism?

Thanks.




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



Re: Setting up a parallel test environment on the same machine as main server

2006-02-14 Thread Alan Chandler
On Wednesday 15 February 2006 01:13, Tim Lucia wrote:
> The http host header is sent by the user-agent ("browser") based on the
> address requested in the URL.  This is how virtual hosts are
> differentiated. Tomcat supports a  container for virtual host
> differentiation, just like Apache does.  You do not need to change the
> workers at all.  Tomcat sees the same host header that Apache does.  I.e.,
> using Tamper Data and FireFox, I see
>
> Host=www.chandlerfamily.org.uk

Yes - I get that part.

>
> When I request your web site.  (Along with a photo of you, presumably, in a
> tie & sunglasses ;-)  You might also want to send just "Apache" for the
> server, rather then

Yes its me (although they are my normal glasses that I wear all the time - 
they just have light sensitive lenses), taken at my daughters graduation from 
Southampton University in the summer 2004 :-)

>
> Server=Apache/2.0.54 (Debian GNU/Linux) mod_auth_pgsql/2.0.2b1 DAV/2
> SVN/1.1.4 mod_jk/1.2.14 mod_python/3.1.3 Python/2.3.5 PHP/4.3.10-16
> mod_ssl/2.0.54 OpenSSL/0.9.7e mod-xslt/1.0.0rc1
>
> As it is "more secure".  How to do this was recently discussed on this
> list.

Low priority - but I'll look at it.

>
> So, you should have two virtual hosts (by name) in both server.xml and
> httpd.conf.  Not sure how to solve the https problem -- never tried to
> myself.

This is where I get lost.  I currently have two virtual hosts on apache 
pointing at the same virtual host on tomcat ALL with different names - so 
this doesn't square with what you are saying  of there being a one to one 
mapping.

This server is running linux, with two ethernet cards. On the WAN side (which 
is what you can see) my ISP allocated via dhcp a single IP address.  That is 
the www.chandlerfamily.org.uk address. On the lan side, I can allocate 
multiple IP addresses to the card in a set of "psuedo devices", so at the 
moment it has address 192.168.0.20 and 192.168.0.30, 31, 32 and 39.  Each of 
these is given separate names such as roo.home, appserv.home, webmail.home 
money.home and test.home by a nameserver also running on that machine

On apache I have a number of virtual hosts set up (but because of the https 
problem they MUST be differenciated by ip address).  At the moment I have the 
virtual hosts www.chandlerfamily.org.uk and money.home directing traffic to 
tomcat on the host appserv.home (the home page you saw was being generated in 
a java application).

I want to add a tomcat host to serve java applications to an apache virtual 
host running on test.home.  If I understand you correctly you would advocate 
creating additional  elements of my server.xml file with names of 
www.chandlerfamily.org.uk and test.home (I presume I have to keep default 
host of appserv.home just so that tomcat knows which ip address to listen 
on).  If I do that how do I pick up traffic to money.home? add another  
statement with repeated contexts?



-- 
Alan Chandler
http://www.chandlerfamily.org.uk
Open Source. It's the difference between trust and antitrust.

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



RE: App will work on localhost but blank on client PC.

2006-02-14 Thread Alexander Alekseev
The 2k3s does not run a firewall, we have the router performing that
function. Pages on port 80 through IIS load fine.

I will try configuring the router to specifically not block port 8447 to the
server and see what happens.

-Original Message-
From: Pham Anh Tuan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 14, 2006 10:38 PM
To: Tomcat Users List
Subject: Re: App will work on localhost but blank on client PC.

maybe caused by firewall or something like that ... ?
- Original Message - 
From: "Alexander Alekseev" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: 
Sent: Wednesday, February 15, 2006 10:00 AM
Subject: RE: App will work on localhost but blank on client PC.


> Server is 192.168.2.100, client is 192.168.2.X
>
> We tried using http://192.168.2.100:8447/ from the client, and the blank
> problem first cropped up.
>
> Now, instead of http://localhost:8447/ we tried http://192.168.2.100:8447/
> from the server itself, and it also comes up blank.
>
>
>
> -Original Message-
> From: Mike Sabroff [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 14, 2006 9:55 AM
> To: Tomcat Users List
> Subject: Re: App will work on localhost but blank on client PC.
>
>>How does localhost resolve in that scenario...why not use the hostname
>>or ip address
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 




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