Hi Chris,

Thank you for your reply!!

Please note that we tried to make changes to the contex.xml file located under 
the conf directory of tomcat.

On 2/16/18 6:58 PM, Halder, Arpan [ITSUS Non J&J] wrote:
> We could able to locate context.xml under "
> /apps/apache-tomcat-7.0.67/conf" path - see below:


The properties we were modifying are given below .

> <Resource name="jdbc/E2EMFPostGres" auth="Container"
> type="javax.sql.DataSource" maxActive="50" maxIdle="30"
> maxWait="10000" username="saevdcep" password="xxxxxx"
> driverClassName="org.postgresql.Driver"
> url="jdbc:postgresql://itsusralsp06829:5432/spectra"/>
>
> <Resource name="jdbc/EVDSEARCH" auth="Container"
> type="javax.sql.DataSource" maxActive="50" maxIdle="30"
> maxWait="10000" username="saevdcep" password="xxxxxxx"
> driverClassName="org.postgresql.Driver"
> url="jdbc:postgresql://itsusralsp06829:5432/evidencesearch"/>

However, on restarting the tomcat server after making changes to values in 
these, the application is throwing a 404: Resource not Found error. The tomcat 
server is up and running but on hitting the application URL, we are getting the 
404 error.

We even tried restoring the context.xml file to its original values but that 
did not seem to  make a difference.

Can you  please advise what steps we need to follow in  order to fix this issue?

Thanks and Regards,
Arpan

Arpan Halder 
Tata Consultancy Services providing services to:
Global Data and Analytics
Application Support / ITAS
Route 22 West▪NJ 08876 ▪ USA
Mobile: +1 (908) 392 2947 


-----Original Message-----
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Sunday, February 18, 2018 11:13 AM
To: users@tomcat.apache.org
Subject: [EXTERNAL] Re: [E] Re: Cannot get a connection, pool error Timeout 
waiting for ideal object

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Arpan,

On 2/16/18 6:58 PM, Halder, Arpan [ITSUS Non J&J] wrote:
> We could able to locate context.xml under "
> /apps/apache-tomcat-7.0.67/conf" path - see below:

That is the wrong file. The file conf/context.xml contains the defaults for 
every application deployed onto that Tomcat server. Your application should 
have its own, separate context.xml file in the META-INF directory.

> <Resource name="jdbc/E2EMFPostGres" auth="Container"
> type="javax.sql.DataSource" maxActive="50" maxIdle="30"
> maxWait="10000" username="saevdcep" password="xxxxxx"
> driverClassName="org.postgresql.Driver" 
> url="jdbc:postgresql://itsusralsp06829:5432/spectra"/>
> 
> <Resource name="jdbc/EVDSEARCH" auth="Container"
> type="javax.sql.DataSource" maxActive="50" maxIdle="30"
> maxWait="10000" username="saevdcep" password="xxxxxxx"
> driverClassName="org.postgresql.Driver" 
> url="jdbc:postgresql://itsusralsp06829:5432/evidencesearch"/>

Okay.

> Could you please check which are the parameters to add/modify/delete.

Everything looks okay up there. You might want to add:

   logAbandoned="true"

This will log places in your code where you have resource leaks.

> Also we could locate another "context.xml" under " 
> /apps/apache-tomcat-7.0.67/webapps/host-manager/META-INF" and " 
> /apps/apache-tomcat-7.0.67/webapps/manager/META-INF" path - could you 
> please advise if we need to make any change here
Those are the deployment descriptors for the host-manager and the manager 
applications respectively. Do not modify those files.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlqJpggACgkQHPApP6U8
pFi3UQ/+K3rSSb0cke4obIjlrZUrOsiPFCsNPRPl9iTRvU/L1AGb8cJ1YjPdbu03
Veac/wM3gNa9PgRpfUImq9gaKl03MjMCfyCGMfX1Z/dJWcw8WNiFGDxW69O+sANl
ALoFBzi0ya0icYKFfk7EF4e7DkZ9Jcwp0CfE319Z7+b/rTUNhD3AMjRsW0LK3E0c
kxr6qbu0Ba+WmuITLKXSLGJBAW9nNBLIJ+WuO73S7UpTVWBexXLTNAyNheG6KFJl
eC7ukAyunrXagoKmC6JAVl2wboNGgCZStIuj+htq/nxjRSb7MA+uSah+uzCPR94k
GC17fhxPx76seW3kbmt8UUPU1thqUjsE+pXgmskHlUw70al3MO59rdjuoRm0ac3r
+TrtCoeanYQYfXGJmHI8tClZ2f2qhwhfZ0Co9DxF/Pjz8V/01CXKYHfeV3a74+GF
LTw2MHfwHXT8NgpmixCExC47HNGrYDqZG7gNtmKiytIaAi+f0otEjFLvlNeRId67
Fs9pXlyBDlwhPigFj1Uv4f3yBw2cqsZDvL7YD6tioU48ptu113yM0R4S61x4xAZw
bwpuZomRgzbsOHvoWkNfQ3/1H6U/YEJvmUFJ/D9mmjEfSZq+u0czZ4jiRkcz3shA
EKyatdAlRGBcT21t/AkdR6QRPaAB5YPOuj+/+ycVVXRXT7uln7M=
=EpQk
-----END PGP SIGNATURE-----

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

Reply via email to