I feel kinda silly now :)
I am sorry you had taken time out of your schedule to help me here. And I thank you 
for your efforts!

What had happened was, I recieved a compressed file from another developer, I 
uncompressed the file and dropped it into place.
I added the web.xml after. What I didn't notice was the fact that the directories were 
set with the wrong mode (no execute at all), I am believing that the compressed file 
was created on windows, so that may have caused this issue. Sigh, a lesson learned, 
and paid for by two.

Thank you once again John for your time.

As a side note: there was no log, and no error, the page didnt resolve (page not 
found) because the context didnt load.

Luc

-----Original Message-----
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Monday, July 21, 2003 1:11 PM
To: Tomcat Users List
Subject: Re: Loading context



I was just asking.

So, you:

- created a directory called webapps/portal
- created a directory called webapps/portal/WEB-INF
- created a file called webapps/portal/WEB-INF/web.xml
- put some JSP in webapps/portal

With all of the above, you cannot resolve 
http://www.host.com/portal/some.jsp?

What's the error message?  What does the log say?  Are you sure you have 
the right host name?

I just did exactly the above  (I used a different directory name) on a 
4.1.12 instance of Tomcat (old dev box) and it worked perfectly.

John

On Mon, 21 Jul 2003 12:57:01 -0400, Luc Foisy <[EMAIL PROTECTED] 
magic.com> wrote:

>
> I am checking with the manager to see if the context is there, and I am 
> trying to hit that page
> How else would you suppose I should test this, its there or not isnt it?
>
> -----Original Message-----
> From: John Turner [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 21, 2003 12:54 PM
> To: Tomcat Users List
> Subject: Re: Loading context
>
>
>
> As far as I know.  As I said, if this isn't working, and you have 
> verified this (how are you testing it, anyways?), then you should file a 
> bug.
>
> John
>
> On Mon, 21 Jul 2003 12:48:47 -0400, Luc Foisy <[EMAIL PROTECTED] 
> magic.com> wrote:
>
>> Any subdirectory within the Application Base directory that appears to 
>> be an unpacked web application (that is, it contains a /WEB-INF/web.xml 
>> file) will receive an automatically generated Context element, even if 
>> this directory is not mentioned in the conf/server.xml file. This 
>> generated Context entry will be configured according to the properties 
>> set in any DefaultContext element nested in this Host element. The 
>> context path for this deployed Context will be a slash character ("/") 
>> followed by the directory name, unless the directory name is ROOT, in 
>> which case the context path will be an empty string ("").
>>
>> This is now all true, missed that /WEB-INF/web.xml initially, but now I 
>> have that ( a basic one, but there )
>> I do not have to do anything further correct?
>>
>> -----Original Message-----
>> From: Luc Foisy Sent: Monday, July 21, 2003 12:35 PM
>> To: Tomcat Users List
>> Subject: RE: Loading context
>>
>>
>> I put a web.xml file in there, still not autodeploying
>> The autodeploy is something that runs in the background, correct? Should 
>> just be able to drop it down, and away it goes when it hits that deploy 
>> cycle?
>>
>> -----Original Message-----
>> From: John Turner [mailto:[EMAIL PROTECTED]
>> Sent: Monday, July 21, 2003 12:31 PM
>> To: Tomcat Users List
>> Subject: Re: Loading context
>>
>>
>>
>> No, that is the whole point of auto-deploy...you can deploy when Tomcat 
>> is running.  There are various ways to do this, as outlined in the docs, 
>> not to mention the Tomcat manager application.
>>
>> As I read the docs, if you have a directory within appBase that has a 
>> valid directory structure (WEB-INF, WEB-INF/web.xml, etc.) then that 
>> Context will be available to Tomcat without restarting.
>>
>> If I'm wrong, someone please correct me.  If I'm right, and it isn't 
>> working (but "isn't working" is verified), then you should file a bug.
>>
>> Lately, I've been using WAR files, and they deploy just fine without 
>> restarting Tomcat. YMMV.
>>
>> John
>>
>> On Mon, 21 Jul 2003 12:26:39 -0400, Luc Foisy <[EMAIL PROTECTED] 
>> magic.com> wrote:
>>
>>> Ok.
>>> When I restart the tomcat server, it will deploy an empty directory
>>> And it will deploy contexts that do not have a web.xml file
>>>
>>> Is this a definate need for the autodeploy function to work?
>>> I know my version of tomcat has the autodeploy, since it has its value 
>>> set in conf/server.xml, so that can't be it
>>> Does there need to be an entry for this new context in the server.xml 
>>> for the autodeploy function to work?
>>>
>>> -----Original Message-----
>>> From: John Turner [mailto:[EMAIL PROTECTED]
>>> Sent: Monday, July 21, 2003 12:17 PM
>>> To: Tomcat Users List
>>> Subject: Re: Loading context
>>>
>>>
>>>
>>> There should be one, as explained in the docs.
>>>
>>> John
>>>
>>>
>>> On Mon, 21 Jul 2003 12:03:42 -0400, Luc Foisy <[EMAIL PROTECTED] 
>>> magic.com> wrote:
>>>
>>>> no
>>>>
>>>> -----Original Message-----
>>>> From: John Turner [mailto:[EMAIL PROTECTED]
>>>> Sent: Monday, July 21, 2003 11:55 AM
>>>> To: Tomcat Users List
>>>> Subject: Re: Loading context
>>>>
>>>>
>>>>
>>>> There's no web.xml file?
>>>>
>>>> John
>>>>
>>>> On Mon, 21 Jul 2003 11:40:29 -0400, Luc Foisy <[EMAIL PROTECTED] 
>>>> magic.com> wrote:
>>>>
>>>>> I created a directory in webapps
>>>>> webapps/portal
>>>>> This directory contains some jsp's
>>>>> There is also webapp/portal/WEB-INF directory ( empty )
>>>>> All files and directories in this "context" are owned by the tomcat 
>>>>> user ( same as the other contexts this tomcat server is running )
>>>>>
>>>>> Should that work or not?
>>>>>
>>>>> -----Original Message-----
>>>>> From: John Turner [mailto:[EMAIL PROTECTED]
>>>>> Sent: Monday, July 21, 2003 11:36 AM
>>>>> To: Tomcat Users List
>>>>> Subject: Re: Loading context
>>>>>
>>>>>
>>>>>
>>>>> What do you mean, exactly, by "I placed a context directory into 
>>>>> webapps".  You just created the directory?  Is there a valid 
>>>>> structure there (WEB-INF, etc)?
>>>>>
>>>>> John
>>>>>
>>>>> On Mon, 21 Jul 2003 11:23:13 -0400, Luc Foisy <[EMAIL PROTECTED] 
>>>>> magic.com> wrote:
>>>>>
>>>>>>
>>>>>> autodeploy=true ( the default )
>>>>>> I placed a context directory into webapps and it is not 
>>>>>> autodeploying
>>>>>> Does it only auto deploy if the context is packed as .war?
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: John Turner [mailto:[EMAIL PROTECTED]
>>>>>> Sent: Monday, July 21, 2003 11:04 AM
>>>>>> To: Tomcat Users List
>>>>>> Subject: Re: Loading context
>>>>>>
>>>>>>
>>>>>>
>>>>>> See Auto Deploy:
>>>>>>
>>>>>> http://jakarta.apache.org/tomcat/tomcat-4.1- 
>>>>>> doc/config/host.html#Automatic%20Application%20Deployment
>>>>>>
>>>>>> John
>>>>>>
>>>>>> On Mon, 21 Jul 2003 10:58:41 -0400, Luc Foisy <[EMAIL PROTECTED] 
>>>>>> magic.com> wrote:
>>>>>>
>>>>>>>
>>>>>>> How would I go about loading a new context so that it is live, 
>>>>>>> without restarting the tomcat server?
>>>>>>>
>>>>>>> -------------------------------------------------------------------- 
>>>>>>>
>>>>>>>
>>>>>>> -
>>>>>>>
>>>>>>>
>>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>>> For additional commands, e-mail: tomcat-user- 
>>>>>>> [EMAIL PROTECTED]
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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

Reply via email to