Am 31.03.2017 um 15:42 schrieb M. Osama Alghwell:
> docBase="E:\MyOrg\OrgAPP\Field"
>
> This will cause the service to not work (I did it and after changing I do
> restart for the service) which meand Tomcat won't start

Whatever you set as a docbase, it must be a fully deployable web
application - e.g. you set the docbase to the directory that also
contains your WEB-INF directory - according to what you described
earlier, it would have been your Field directory.

I've been bitten often enough by the backslash to be interpreted as an
escape sign that I'm religiously only using the forward slash as a
directory separator. This works even on windows. Try
E:/MyOrg/OrgAPP/Field. And copy this from some place, e.g. Explorer, so
that you can be extra extra /extra/ sure that there's no typo. I've seen
problems come and go when the directory names contained spaces or other
weird characters, you might want to double check this as well.

If tomcat doesn't start: What's in the logs? Where does the startup
process stop? Any error logged?

Olaf


>
> On Fri, Mar 31, 2017 at 2:59 PM, Mark Thomas <ma...@apache.org> wrote:
>
>> On 31/03/17 13:36, M. Osama Alghwell wrote:
>>> I installed Tomcat 8 and application on Windows 2012 server. The
>> structure
>>> is as follows:
>>> Driver --> E:
>>> A main drictory named --> MyOrg
>>> Two directories under MyOrg --> OrgAPP & OrgServer
>>>
>>> Under OrgAPP another directory named --> Field
>>> Under Field all the directories for the application including WEB-INF
>>>
>>> Under OrgServer --> Tomcat8
>>> Under Tomcat8 --> Apache-Tomcat
>>> Under Apache-Tomcat the Tomcat 8 files
>>>
>>> in Tomcat 8 document saying to install an application outside webapps
>> this
>>> can be down by an xml file in conf/Catalina/localhost/app.xml (the
>> Engine
>>> is Catalina and the host is localhost)  which I did (the file is
>> Field.xml.
>>> In Field.xml I put <Context docBase="E:\MyOrg\OrgAPP">
>> This needs to be:
>>
>> docBase="E:\MyOrg\OrgAPP\Field"
>>
>> Try that and if that doesn't work provide the appropriate error
>> information.
>>
>> Mark
>>
>>
>>> Now, Tomcat 8 as a service works and I can open the manager GUI and find
>>> Field as one of the listed applications. But if I click on it to open it
>>> the 404 page comes up!
>>> Other thing, if I add to the URL in the Context \Field, the service (I
>> need
>>> to restart it) won't work.
>>> Any suggession? Shall I change the name of the xml file and add the
>> \Field
>>> in the Context?
>>> Thank you
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to