Skip to main content

All Questions

Tagged with
1 vote
0 answers
21 views

Unable to configure the Datasource realm through embedded tomcat jar.(not an springboot app)

On tomcat 8.x ,We have been using JDBCRealm to set the connection parameter like jdbc url, user name ,password and with these details we initialize the context and start the server . After upgrading ...
balaji hari's user avatar
-1 votes
1 answer
37 views

How do I connect to my database from Java/JSP when upgrading to Jakarta?

I am trying to migrate code that I wrote 15 years ago to a new server. One of the changes is the javax.* package naming changed to jakarta.* naming as part of Oracle transferring Java EE to the ...
ferzle's user avatar
  • 103
0 votes
2 answers
53 views

Why would a Tomcat 8.5 Connection Pool with Oracle have unused open (Dead?) connections?

I have a Grails 2.5 application that is deployed to Tomcat 8.5 application server where one customer is reporting that they are running out of connections in the connection pool. As part of the ...
John Lear's user avatar
1 vote
0 answers
23 views

Tomcat Connection pool to Forge MySQL

My Database happens to be hosted on https://forge.laravel.com/ They appear to be using MySQL8 if that makes a difference. I'm writing a Tomcat application from which I would like to connect to this ...
LostAndConfused's user avatar
0 votes
0 answers
47 views

ERROR o.h.e.jdbc.spi.SqlExceptionHelper - (conn:99709) Connection reset

In my spring boot application I have multiple database connections SqlServer and MariaDB. In my function there are multiple DB calls over a table in MariaDB. While executing the query for the first ...
Sampath Sammy's user avatar
1 vote
1 answer
121 views

Does Postgres JDBC LazyCleaner cause a classloader memory leak?

I have a Spring Boot web application which is deployed multiple times a day, so a clean undeploy is essential. Tomcat is reporting a memory leak, and MAT points me to I'm using postgresql-42.6.0.jar, ...
Simon's user avatar
  • 3,194
0 votes
0 answers
20 views

DriverManager vs Tomcat Resource driver selection

Based only on URL, DriverManager it's selecting the jdbc driver. Why Tomcat Resource tag need driverClassName to select the jdbc driver? It's not enough the URL information?
Blocked's user avatar
  • 351
-1 votes
2 answers
174 views

JDBC connection object returns null in Servlet/Web [duplicate]

I'm stuck with a servlet problem – my database connection is turning up null. The weird part is, the same database code works fine in another class. I've double-checked my configuration, loaded the ...
ussahimself's user avatar
-1 votes
3 answers
137 views

Mysql getting disconnected from application during populating

Recently i got mac m1 i am running a product which uses [email protected] installed through homebrew, the data from the product is connected successfully to mysql and started populating but nearing the end of ...
hariharan baskaran's user avatar
0 votes
0 answers
78 views

Tomcat jdbc pool shows ClassNotFoundException but works

To configure a JDBC pool for Microsoft SQLServer in Tomcat 9 I've added below to server.xml <Resource auth="Container" type="javax.sql.DataSource" driverClassName="com....
Alireza Fattahi's user avatar
0 votes
1 answer
503 views

Oracle incompatible driver ORA-12650

We try to upgrade our web application database from Oracle 12c (12.1.0.2.0) to Oracle 19c (19.0.0.0.0), but I'm encountering the error ORA-12650 with the following stack trace in catalina.log: WARNING:...
Andrei Manolache's user avatar
0 votes
1 answer
121 views

Nullpointer exception in servlet but not in normal class [duplicate]

I am trying to run a code which creates a row in mysql database everything works well with normal classes but when I use servlets it throws a nullpointerexception I am unable to understand the reason ...
Ronit Pandey's user avatar
0 votes
0 answers
479 views

Postgres connection stuck at idle even after serving 200 requests per second through a JDBC connection

Just like the title says. I am monitoring the pg_stat_activity table in my Postgres DB and trying to capture the behavior of my Tomcat JDBC connection pooling implementation. The idle connections that ...
Iceweasel's user avatar
0 votes
1 answer
746 views

How to encrypt JDBC password for apache-tomcat-9.0.74?

Decryption of JDBC Password for Tomcat not working for apache-tomcat-9.0.74 using SecureTomcatJDBC.jar. What should be the work around? I followed the steps provided in https://www.aivhub.com/wiki/...
Debraj Bhowmik's user avatar
0 votes
0 answers
297 views

How can I encrypt the passwords of a data source on Tomcat 9 in the context.xml?

Like the title says, our application has resources in the context.xml that we need to encrypt for security audit purposes. I know Tomcat's FAQ mentions security through obscurity, but we need to have ...
Rob's user avatar
  • 428

15 30 50 per page
1
2 3 4 5
55