Posts

How to terminate application running in background

At times an application do not stop properly and keep running in background, occupying  port. Step 1: Identify the TCP process id binding to a specific port $>netstat -ano | find "8080" TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 28268 TCP [::]:8080 [::]:0 LISTENING 28268 Step 2: Kill the process $>taskkill /F /PID 28268

BeanDefinitionStoreException: Failed to parse configuration class: Could not find class [javax.jms.ConnectionFactory]

If you are creating a Spring Boot application and see the following error stack . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.2.0.RELEASE) 2020-06-27 19:30:32.786 INFO 35224 --- [ main] SchoolApplication : Starting SchoolApplication on LTUS76179 with PID 35224 (C:\personal\eclipse-workspace\apievolution\target\classes started by 381548 in C:\personal\eclipse-workspace\apievolution) 2020-06-27 19:30:32.796 INFO 35224 --- [ main] SchoolApplication : No active profile set, falling back to default profiles: default 2020-06-27 19:30:32.964 WARN 35224 --- [ main] ionWarningsApplicationContextInitializer : ** WARNING ** : Your ApplicationContext is unli...

Cloud Enabled Scalability – My Story

Image
Something prompted me to blog again after a long time and not sure if I would be motivated to continue. First, I thought to share a long pending experience, which I had the opportunity to have eight years back. The best weapon we have with the rise of Cloud is on demand scalability (my reference is of 8 years back which everyone knows now). Most of the times when we talk about cloud, we are not talking enabling application for cloud adoption but only talk about cloud infrastructure management (which is sad). I am going to talk about my experience in making an application cloud enable and the use of the design principles. As I am talking an experience gained 8 years back (I am a bit rusty now) I will go through the journey with the case study. Thats How it Started So our story start back in 2011 when hero Mr Dan came up with an idea to monetize the online imagery content of advertisement and make some money (back then it was a cool idea, Google was doin...

A required class was missing while executing org.mortbay.jetty:jetty-maven-plugin

When I was running the command mvn jetty:run I got the message [ERROR] Failed to execute goal org.mortbay.jetty:jetty-maven-plugin:8.1.1.v20120215:run (default-cli) on project CabShareService: Execution default-cli of goal org.mortbay.jetty:jetty-maven-plugin:8.1.1.v20120215:run failed: A required class was missing while executing org.mortbay.jetty:jetty-maven-plugin:8.1.1.v201202 15:run: org/slf4j/impl/StaticLoggerBinder My Jetty settings were org.mortbay.jetty jetty-maven-plugin 8.1.1.v20120215 com.jolbox bonecp 0.7.1.RELEASE /${project.artifactId} src/test/resources/jetty.xml true 10 ${project.artifactId}-stop 9999  The reason of the error was that the slf4j implementation was not defined. Tried setting the Logback as the one of the better implementation ( detailed post  ) . Added the following dependency in the jetty dependencies section. ...

Openstack Keystone : 'Client' object has no attribute 'service_catalog'

When I try the following command on my setup keystone catalog or keystone token-get I get the following error 'Client' object has no attribute 'service_catalog' When I run in debug mode I can see that the issue is client side. I checked my environment variables env | grep --perl "^OS|^SERV" the variables SERVICE_ENDPOINT and SERVICE_TOKEN were defined and taking precedence Doing following resolved it export SERVICE_TOKEN= export SERVICE_ENDPOINT=  

Openstack Keystone : No handlers could be found for logger "keystoneclient.client"

When I hit the the command Keystone user-list I get the following error No handlers could be found for logger "keystoneclient.client" Invalid OpenStack Identity credentials.  If you run the command in debug mode keystone --debug user-list you get the following response send: 'GET /v2.0//users HTTP/1.1\r\nHost: 10.1.1.1:35357\r\nx-auth-token: 012345\r\naccept-encoding: gzip, deflate\r\nuser-agent: python-keystoneclient\r\n\r\n' reply: 'HTTP/1.1 401 Not Authorized\r\n' header: Vary: X-Auth-Token header: Content-Type: application/json header: Date: Wed, 16 Jan 2013 08:58:36 GMT header: Transfer-Encoding: chunked No handlers could be found for logger "keystoneclient.client" connect: (10.128.176.48, 5000) send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 10.128.176.48:5000\r\nContent-Length: 87\r\nx-auth-token: 12345\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent: python-keystoneclient\r\n\r\n{"auth...

PaaS : Cloud Application Platforms

Cloud is having a thunderstorm these days. All the buzzbowrds related to cloud are raining everywhere and Cloud in itself is sweeping IT in all facets. I have no intentions of creating further confusion by "Cloud Application Platform". The sole intension is to put my perspective ( with comments and deviations most welcomed ). Slight flashback When we start reading about cloud, everyone comes accross 3 "is-a-Service". Iaas (Infrasructure as a Service), PaaS (Platform as a Service) and SaaS (Software as a Service). IaaS  - Model in which hardware infrastucture is rented out by the Infrastructure provider and charged as per usage. In this case the user would not want to maintain the physical infrastructure itself. SaaS  - Model in which applications are hosted by a provider or a vendor and made available over a network. It can be considered as the next level of IaaS PaaS  - It can be considered as the middle path of IaaS and PaaS. It is not a finished produc ...