score:1
Accepted answer
your custom class overriddes the setpassword
method, but contains only half of the operations of the original method:
public void setpassword(string password) {
this.poolproperties.setpassword(password);
this.poolproperties.getdbproperties().setproperty("password",this.poolproperties.getpassword());
}
when overriding methods you should always consider calling the overridden method, by using the keyword super
:
@override
public void setpassword(string encodedpassword){
crypt crypt = new crypt();
string decodepassword = crypt.decryptvalue(encodedpassword);
super.setpassword(decodepassword);
}
Source: stackoverflow.com
Related Query
- Tomcat9 org.apache.tomcat.jdbc.pool.ConnectionPool.init ignores custom DataSource
- JDBC connection pool runs out of connections when Context reload="true" is enabled in Tomcat
- Cannot create JDBC driver of class '' for connect URL 'null' -:ERROR while creating and using a Datasource in tomcat 6
- Apache Tomcat Not Showing in Eclipse Server Runtime Environments
- What does "The APR based Apache Tomcat Native library was not found" mean?
- Eclipse WTP plugin no Apache Tomcat adapter
- Eclipse - Target runtime Apache Tomcat v7.0 is not defined
- The APR based Apache Tomcat Native library was not found on the java.library.path
- How to enable CORS in apache tomcat
- apache Tomcat installation directory in ubuntu / configure Tomcat in eclipse + ubuntu
- Removing the Apache TomCat runtime from a project in Eclipse?
- apache tomcat 9.x not working with eclipse & Java 10.0.1
- How to deploy created .jar file in Apache Tomcat server in Eclipse IDE?
- Apache Tomcat 404 Error
- Download and install button in greyed out in Eclipse for Apache Tomcat v8.0
- Apache Tomcat 9 Not Showing in Eclipse Server Runtime Environments
- JNDI DataSource with Tomcat 6 and Eclipse
- Tomcat ignores logging.properties when started from Eclipse
- Can I use XAMPP's apache tomcat to execute java Dynamic Web Project?
- Cannot load JDBC driver class 'com.mysql.jdbc.Driver' Tomcat 8 & Eclipse
- What is the "source" attribute of the Context element of an Apache Tomcat configuration file for?
- Eclipse unable to add apache tomcat 10
- "HTTP Status 404 - /" (localhost:8080) when trying to install apache tomcat in Eclipse
- 414 URI too long with Apache Tomcat Eclipse
- Eclipse: Apache Tomcat doesn't update my project until I restarted Eclipse
- An incompatible version 1.1.12 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.17
- Apache Tomcat in Eclipse with a proxied network
- eclipse(set with scala envirnment) : object apache is not a member of package org
- How to run an Eclipse Dynamic Web Application with Apache Tomcat Server?
- Is it possible to debug apache nifi custom processor?
More Query from same tag
- Format C/C++ code on save
- How to make text go to webBrowser/Url
- After doing all what I can, there is still error "Could not find OpenCV Library - 2.4.9.apk" in Android for OpenCV
- New to Angular - setup in eclipse does not work properly
- Google Maps API works in Eclipse, Not when Exported as a JAR
- How to change style of the tab bar in Eclipse look like this?
- Ctrl 2 refactorings in Eclipse / STS
- Annotations help in java
- Deploying .war in debug mode fails with an error
- OSGi - running outside eclipse
- How to create environment variable SONAR_RUNNER_HOME for sonar (eclipse ) in windows 7
- How to debug remote deployed spring boot app & maven on eclipse
- how to use Tomcat as Eclipse Server with Maven test scope
- Migrating from Eclipse to IntelliJ - Moving a project linked with EGit
- 80+ R cannot be resolved to a variable errors and No resource found that matches the given name
- Example MQTT Client Code not working C
- Add alias for jquery support in Eclipse Aptana Plugin
- Can I get gradle to update my existing Eclipse project?
- Re-apply a previously reverted commit in SVN
- Eclipse AVD Not Seeing Connected Devices - Win 8
- Signals when debugging
- Android/Eclipse: Error in importing a project
- Android Studio - Internationalizing an app / support foriegn languages
- Get error when coding Python in Eclipse
- How to use Eclipse to surf the java source
- class.getResource returns a wrong path of my file
- Code generated with eclipse cdt much faster than in command line
- Eclipse java Exception Breakpoint (2 items)
- Eclipse Juno with CDT Doesn't Add Built-in Include Directories
- ActivityNotFoundException in androidManifestFile