You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Megha Agrawal <me...@appperfect.com> on 2020/05/04 14:02:18 UTC
Getting 404 error while accessing URL after deployment
Hi
I am trying to deploy my project on the tomcat server and access the URL using browser. Project is deploying successfully on the server but unable to access URL related to that project. Also, logs are not generating for the deployment and request. Therefore unable to find the reason for the problem.
I am using the following configurations:
Tomcat version: 9.0.34
Operating system: Windows 10 (64-bit)
IDE: Eclipse (Version: 2019-03 (4.11.0), Build id: 20190314-1200)
Java: JDK-8
The same project is running fine on other machines and also other projects are running fine on this server.
Please look into this issue and provide some details about it.
Thanks and regards
Megha Agrawal
RE: Getting 404 error while accessing URL after deployment
Posted by jo...@wellsfargo.com.INVALID.
Dream * Excel * Explore * Inspire
Jon McAlexander
Asst Vice President
Middleware Product Engineering
Enterprise CIO | Platform Services | Middleware | Infrastructure Solutions
8080 Cobblestone Rd | Urbandale, IA 50322
MAC: F4469-010
Tel 515-988-2508 | Cell 515-988-2508
jonmcalexander@wellsfargo.com
This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation.
-----Original Message-----
From: Martin Grigorov <mg...@apache.org>
Sent: Monday, May 4, 2020 9:19 AM
To: Tomcat Users List <us...@tomcat.apache.org>
Subject: Re: Getting 404 error while accessing URL after deployment
Hi,
On Mon, May 4, 2020 at 5:02 PM Megha Agrawal <me...@appperfect.com> wrote:
> Hi
>
> I am trying to deploy my project on the tomcat server and access the
> URL using browser. Project is deploying successfully on the server but
> unable to access URL related to that project. Also, logs are not
> generating for the deployment and request. Therefore unable to find
> the reason for the problem.
>
Where did you look for the logs ?
Please check your Tomcat configuration. If there are errors during the deployment they must be written to logs/catalina.out.
>
> I am using the following configurations:
> Tomcat version: 9.0.34
> Operating system: Windows 10 (64-bit)
> IDE: Eclipse (Version: 2019-03 (4.11.0), Build id: 20190314-1200)
> Java: JDK-8
>
> The same project is running fine on other machines and also other
> projects are running fine on this server.
> Please look into this issue and provide some details about it.
>
> Thanks and regards
> Megha Agrawal
>
Is your Tomcat implementation behind a web server and are you using AJP? If so, you may need to modify your AJP connector.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Getting 404 error while accessing URL after deployment
Posted by Luis Rodríguez Fernández <uo...@gmail.com>.
Hello Megha,
I am afraid that with that information you can not be sure if your webapp
has been deployed or not. Maybe you can have a look at the manager app of
your tomcat [1] instance (http://localhost:8080/manager), or query for the
state of the applications using the jmxproxyservlet (
http://localhost:8080/manager/jmxproxy/?qry=*:j2eeType=WebModule,*)
About the logs: I would recommend you to increase the level. The tomcat
logging [2] can be a good place to start, or check in your application
sources, chances are that you are using some logging framework.
Hope it helps,
Luis
[1] http://tomcat.apache.org/tomcat-9.0-doc/manager-howto.html
[2] http://tomcat.apache.org/tomcat-9.0-doc/logging.html
El mar., 5 may. 2020 a las 6:23, Megha Agrawal (<me...@appperfect.com>)
escribió:
> Hi,
>
> > Where did you look for the logs ?
> I look into the files inside the logs folder.
>
> >Please check your Tomcat configuration. If there are errors during the
> >deployment they must be written to logs/catalina.out.
>
> There is no file named Catalina.out in the logs folder. In
> logs/catalina.txt file no such error logged that means deployment of
> project is successful.
> Project is deploying successfully but unable to run the API related to
> project.
>
> Thanks
> Megha Agrawal
>
>
> From: Martin Grigorov
> Sent: Monday, May 4, 2020 7:49 PM
> To: Tomcat Users List
> Subject: Re: Getting 404 error while accessing URL after deployment
>
> Hi,
>
> On Mon, May 4, 2020 at 5:02 PM Megha Agrawal <me...@appperfect.com> wrote:
>
> > Hi
> >
> > I am trying to deploy my project on the tomcat server and access the URL
> > using browser. Project is deploying successfully on the server but unable
> > to access URL related to that project. Also, logs are not generating for
> > the deployment and request. Therefore unable to find the reason for the
> > problem.
> >
>
> Where did you look for the logs ?
> Please check your Tomcat configuration. If there are errors during the
> deployment they must be written to logs/catalina.out.
>
>
> >
> > I am using the following configurations:
> > Tomcat version: 9.0.34
> > Operating system: Windows 10 (64-bit)
> > IDE: Eclipse (Version: 2019-03 (4.11.0), Build id: 20190314-1200)
> > Java: JDK-8
> >
> > The same project is running fine on other machines and also other
> projects
> > are running fine on this server.
> > Please look into this issue and provide some details about it.
> >
> > Thanks and regards
> > Megha Agrawal
> >
>
>
--
"Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better."
- Samuel Beckett
Re: Getting 404 error while accessing URL after deployment
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Megha,
On 5/5/20 00:23, Megha Agrawal wrote:
> Hi,
>
>> Where did you look for the logs ?
> I look into the files inside the logs folder.
>
>> Please check your Tomcat configuration. If there are errors
>> during the deployment they must be written to logs/catalina.out.
>
> There is no file named Catalina.out in the logs folder. In
> logs/catalina.txt file no such error logged that means deployment
> of project is successful.> Project is deploying successfully but
> unable to run the API related to project.
Usually on Windows, using the Windows Service, you'll see some other
files and not catalina.out. I think they are something like
localhost-stdout-[date].txt or something like that.
But you should stop Tomcat, delete all logs, start Tomcat and inspect
every file in the logs/ directory to see if there are any indications
of what may be the problem.
- -chris
> From: Martin Grigorov Sent: Monday, May 4, 2020 7:49 PM To: Tomcat
> Users List Subject: Re: Getting 404 error while accessing URL after
> deployment
>
> Hi,
>
> On Mon, May 4, 2020 at 5:02 PM Megha Agrawal <me...@appperfect.com>
> wrote:
>
>> Hi
>>
>> I am trying to deploy my project on the tomcat server and access
>> the URL using browser. Project is deploying successfully on the
>> server but unable to access URL related to that project. Also,
>> logs are not generating for the deployment and request. Therefore
>> unable to find the reason for the problem.
>>
>
> Where did you look for the logs ? Please check your Tomcat
> configuration. If there are errors during the deployment they must
> be written to logs/catalina.out.
>
>
>>
>> I am using the following configurations: Tomcat version: 9.0.34
>> Operating system: Windows 10 (64-bit) IDE: Eclipse (Version:
>> 2019-03 (4.11.0), Build id: 20190314-1200) Java: JDK-8
>>
>> The same project is running fine on other machines and also other
>> projects are running fine on this server. Please look into this
>> issue and provide some details about it.
>>
>> Thanks and regards Megha Agrawal
>>
>
>
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl6yyRUACgkQHPApP6U8
pFiVoQ//Uy1HmvCPat7XG1yURUzTpzU9yyB9De94+wnMy3jWSK9wcNRNF/4R2QC5
9ehATbhLIWm1fBi+JZV4Ihxl61G9fcj88JdiET1NrZ9i4xK3MBV57yCTEKCVTjp+
ED6m65JuCsx6p0h0ymWqHjI8sKrDNa2oKEIUj2jhn4H3yVBKTfxS3lsc3+UjHL/S
hd/MYgRFd8xaxsrBJx88uklzdwWkDBNlbxW+UP30gR9ssmkBDrQ1oCHLBgvhH5K5
if4kFtSMTDG4bnN3Tb01btIwOYyRbLfovLzy4T3GRxeHa1RxBiyoDZVaKGuOxZsu
m6AMHL98fPieHqlUfuUIkFS7SHh6LBWQDCu49JEUNxGCMw1D7VJrCsQ4jJ0fVPsB
RCnDNOCXcxInFDSvLe1hhyav4VMLil3492IGHAWzgBhlNBhm8Hq7lc8ZZER7t0hQ
Y3izZLoLauHoGX1aMb3Yr/ul2hAgbMHbd0EX/US38mJZtGDnBfxuNtPZMHJIeXgW
D+kmCO9b9H0i7M6IeNJ569dx4Cb+slfae2PcP8RkRKkgVr2oFciQOkXd9ztzt0yc
HWhGe0dHNLKBHGuZkvCsQQb+qHcUEEqzALujOMrUzxIVd2ML07Xqfe6XB6d8TS50
S8e+MctoejJZXWegezNiS3EdoFMXyuOmiBp2fYN4kyCUi0ssefg=
=HTXS
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Getting 404 error while accessing URL after deployment
Posted by Megha Agrawal <me...@appperfect.com>.
Hi,
> Where did you look for the logs ?
I look into the files inside the logs folder.
>Please check your Tomcat configuration. If there are errors during the
>deployment they must be written to logs/catalina.out.
There is no file named Catalina.out in the logs folder. In logs/catalina.txt file no such error logged that means deployment of project is successful.
Project is deploying successfully but unable to run the API related to project.
Thanks
Megha Agrawal
From: Martin Grigorov
Sent: Monday, May 4, 2020 7:49 PM
To: Tomcat Users List
Subject: Re: Getting 404 error while accessing URL after deployment
Hi,
On Mon, May 4, 2020 at 5:02 PM Megha Agrawal <me...@appperfect.com> wrote:
> Hi
>
> I am trying to deploy my project on the tomcat server and access the URL
> using browser. Project is deploying successfully on the server but unable
> to access URL related to that project. Also, logs are not generating for
> the deployment and request. Therefore unable to find the reason for the
> problem.
>
Where did you look for the logs ?
Please check your Tomcat configuration. If there are errors during the
deployment they must be written to logs/catalina.out.
>
> I am using the following configurations:
> Tomcat version: 9.0.34
> Operating system: Windows 10 (64-bit)
> IDE: Eclipse (Version: 2019-03 (4.11.0), Build id: 20190314-1200)
> Java: JDK-8
>
> The same project is running fine on other machines and also other projects
> are running fine on this server.
> Please look into this issue and provide some details about it.
>
> Thanks and regards
> Megha Agrawal
>
Re: Getting 404 error while accessing URL after deployment
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
On Mon, May 4, 2020 at 5:02 PM Megha Agrawal <me...@appperfect.com> wrote:
> Hi
>
> I am trying to deploy my project on the tomcat server and access the URL
> using browser. Project is deploying successfully on the server but unable
> to access URL related to that project. Also, logs are not generating for
> the deployment and request. Therefore unable to find the reason for the
> problem.
>
Where did you look for the logs ?
Please check your Tomcat configuration. If there are errors during the
deployment they must be written to logs/catalina.out.
>
> I am using the following configurations:
> Tomcat version: 9.0.34
> Operating system: Windows 10 (64-bit)
> IDE: Eclipse (Version: 2019-03 (4.11.0), Build id: 20190314-1200)
> Java: JDK-8
>
> The same project is running fine on other machines and also other projects
> are running fine on this server.
> Please look into this issue and provide some details about it.
>
> Thanks and regards
> Megha Agrawal
>