RE: Tomcat 5.5.4 / Context not responding - Test example webapp

2004-11-12 Thread Allistair Crossley
Hi,

Yep, I had read those but it does not mention that you do *not* delete ROOT 
anymore like you did in previous version of Tomcat and that you are supposed to 
also name the XML config file to ROOT. I've used Tomcat from version 3, and so 
I found this counter to previous experience with Tomcat configuration.

I also find that these types of feature changes slip by because the 
configuration pages are divided up quite a lot and it is difficult to spot 
these subleties. I would find a page that caters for a basic setup with the new 
version for a basic web application deployed from root + data sources quite 
helpful and I am happy to write this either as a blog on my site, or as an 
addition to the Tomcat docs .. whatever is most useful.

Cheers, Allistair.

> -Original Message-
> From: Remy Maucherat [mailto:[EMAIL PROTECTED]
> Sent: 12 November 2004 13:57
> To: Tomcat Users List
> Subject: Re: Tomcat 5.5.4 / Context not responding - Test 
> example webapp
> 
> 
> On Fri, 12 Nov 2004 13:50:12 -, Allistair Crossley
> <[EMAIL PROTECTED]> wrote:
> > ah ok, didn't see this anywhere in the docs :) thanks for 
> helping out. had to rename my web application to ROOT and the 
> iq.xml to ROOT.xml. caused a few issues with IIS but have 
> been able to remap those too. quite a big change from 5.0!
> 
> The docs mention it on the page for Context:
> The value of this field must not be set except when statically
> defining a Context in server.xml, as it will be infered from the
> filenames used for either the .xml context file or the docBase.
> 
> The change allows having more features for the hot deployer, while
> making it much simpler and more maintainable.
> 
> -- 
> x
> Rémy Maucherat
> Developer & Consultant
> JBoss Group (Europe) SàRL
> x
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



Re: Tomcat 5.5.4 / Context not responding - Test example webapp

2004-11-12 Thread Remy Maucherat
On Fri, 12 Nov 2004 13:50:12 -, Allistair Crossley
<[EMAIL PROTECTED]> wrote:
> ah ok, didn't see this anywhere in the docs :) thanks for helping out. had to 
> rename my web application to ROOT and the iq.xml to ROOT.xml. caused a few 
> issues with IIS but have been able to remap those too. quite a big change 
> from 5.0!

The docs mention it on the page for Context:
The value of this field must not be set except when statically
defining a Context in server.xml, as it will be infered from the
filenames used for either the .xml context file or the docBase.

The change allows having more features for the hot deployer, while
making it much simpler and more maintainable.

-- 
x
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
x

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



RE: Tomcat 5.5.4 / Context not responding - Test example webapp

2004-11-12 Thread Allistair Crossley
ah ok, didn't see this anywhere in the docs :) thanks for helping out. had to 
rename my web application to ROOT and the iq.xml to ROOT.xml. caused a few 
issues with IIS but have been able to remap those too. quite a big change from 
5.0!

all working now touch wood!

cheers, Allistair.

> -Original Message-
> From: Remy Maucherat [mailto:[EMAIL PROTECTED]
> Sent: 12 November 2004 13:23
> To: Allistair Crossley
> Subject: Re: Tomcat 5.5.4 / Context not responding - Test 
> example webapp
> 
> 
> On Fri, 12 Nov 2004 13:06:30 -, Allistair Crossley
> <[EMAIL PROTECTED]> wrote:
> > I have removed path="" from the test.xml but the result is 
> the same, blank page. Am I supposed to call the root application ROOT?
> 
> Yes. That's how the deployer works now.
> 
> Note: The "path" attribute is ignored, so whether or not it's there
> doesn't matter.
> 
> -- 
> x
> Rémy Maucherat
> Developer & Consultant
> JBoss Group (Europe) SàRL
> x
> 


 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



RE: Tomcat 5.5.4 / Context not responding - Test example webapp

2004-11-12 Thread Allistair Crossley
OK, so how would I make this test web application the root application. How is 
the root web application determined when there are several web applications 
that use the .xml configuration method?

I have removed path="" from the test.xml but the result is the same, blank 
page. Am I supposed to call the root application ROOT?

Thanks for your time :) Allistair.

> -Original Message-
> From: Remy Maucherat [mailto:[EMAIL PROTECTED]
> Sent: 12 November 2004 12:32
> To: Tomcat Users List
> Subject: Re: Tomcat 5.5.4 / Context not responding - Test 
> example webapp
> 
> 
> On Fri, 12 Nov 2004 12:10:09 -, Allistair Crossley
> <[EMAIL PROTECTED]> wrote:
> > To demonstrate this problem, I have reduced it to a small web app.
> > 
> > 1. Install 5.5.4 and delete tomcat/webapps/ROOT
> > 2. Create file test.xml and save it to 
> tomcat/conf/Catalina/localhost with the content
> > 
> > 
> > 
> > 3. Create folder tomcat/webapps/test
> > 4. Create in that folder (3) file called test.jsp with content
> > 
> > 
> > 
> > 
> > Hello 5.5.4
> > 
> > 
> > 
> > 
> > <%= "Hello 5.5.4" %>
> > 
> > 
> > 
> > 5. Start tomcat
> > 6. Request http://yourserver:8080/test/test.jsp
> 
> You mean http://yourserver:8080/test.jsp, I suppose.
> 
> > You should get a blank page. Not good!
> 
> ... but expected.
> "path" is no longer an allowed attribute of Context when using a
> context file (in server.xml, it is of course still allowed).
> 
> -- 
> x
> Rémy Maucherat
> Developer & Consultant
> JBoss Group (Europe) SàRL
> x
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



Re: Tomcat 5.5.4 / Context not responding - Test example webapp

2004-11-12 Thread Remy Maucherat
On Fri, 12 Nov 2004 12:10:09 -, Allistair Crossley
<[EMAIL PROTECTED]> wrote:
> To demonstrate this problem, I have reduced it to a small web app.
> 
> 1. Install 5.5.4 and delete tomcat/webapps/ROOT
> 2. Create file test.xml and save it to tomcat/conf/Catalina/localhost with 
> the content
> 
> 
> 
> 3. Create folder tomcat/webapps/test
> 4. Create in that folder (3) file called test.jsp with content
> 
> 
> 
> 
> Hello 5.5.4
> 
> 
> 
> 
> <%= "Hello 5.5.4" %>
> 
> 
> 
> 5. Start tomcat
> 6. Request http://yourserver:8080/test/test.jsp

You mean http://yourserver:8080/test.jsp, I suppose.

> You should get a blank page. Not good!

... but expected.
"path" is no longer an allowed attribute of Context when using a
context file (in server.xml, it is of course still allowed).

-- 
x
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
x

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



RE: Tomcat 5.5.4 / Context not responding - Test example webapp

2004-11-12 Thread Allistair Crossley
To demonstrate this problem, I have reduced it to a small web app.

1. Install 5.5.4 and delete tomcat/webapps/ROOT
2. Create file test.xml and save it to tomcat/conf/Catalina/localhost with the 
content



3. Create folder tomcat/webapps/test
4. Create in that folder (3) file called test.jsp with content




Hello 5.5.4




<%= "Hello 5.5.4" %>



5. Start tomcat
6. Request http://yourserver:8080/test/test.jsp

You should get a blank page. Not good!

Cheers, Allistair.

> -Original Message-
> From: Allistair Crossley 
> Sent: 12 November 2004 11:33
> To: [EMAIL PROTECTED]
> Subject: Tomcat 5.5.4 / Context not responding
> 
> 
> Hi All,
> 
> Well, I finally have Tomcat 5.5.4 running my application with 
> NTLM authentication and logging. One final hurdle remains and 
> that is requests and the web application context.
> 
> It appears that if I make a request to my web application with
> 
> http://testserver/loadPage.do
> 
> it does not work. When I say does not work, I mean I get a 
> blank page back.
> 
> When I request
> 
> http://testserver/iq/loadPage.do
> 
> i.e adding the context name, it works.
> 
> I am assuming this is configuration. I have iq.xml located in 
> tomcat/conf/Catalina/localhost. The entry looks like this...
> 
> 
> 
>  type="javax.sql.DataSource" 
>   username="usr" password="pw"
>   
> driverClassName="net.sourceforge.jtds.jdbc.Driver" 
> url="jdbc:jtds:sqlserver://testserver:1433/db_iQ;charset=Cp125
> 2;TDS=7.0"
>   maxActive="8" maxIdle="4" maxWait="1" 
> validationQuery="SELECT 1 + 1" />
> 
> 
> This is how 5.0.28 used to be setup in terms of path="" and 
> docBase="/iq". I looked at the 5.5 docs but path and docBase 
> appear to be used in the same way.
> 
> I have also deleted ROOT from webapps.
> 
> Can anyone suggest why I am having to add my web application 
> name into URLs?
> 
> Cheers!
> 
> 
> 
>  
> ---
> QAS Ltd.
> Developers of QuickAddress Software
> http://www.qas.com";>www.qas.com
> Registered in England: No 2582055
> Registered in Australia: No 082 851 474
> ---
> 
> 
> 
> -
> 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]