Wednesday, November 2, 2022

lombok was not importing in Intellij IDEA

 lombok was not importing in Intellij IDEA


What to do :


1. Go to File > Project Structure > Libraries 

2. Press the + icon to add a project

3. Choose 'from Maven'

4. Search for 'lombok' 

5. You will get a long list

6. Slide down to find out 'org.projectlombok....' and choose the latest available

7. Click OK and proceed


Thursday, March 21, 2019

I wish I read this 20 years ago

This article explains what one should learn to understand Spring and Spring boot. By the way, it explains an important hurdle in learning and how to overcome that.

https://codeboje.de/learn-spring-boot-without-spring-knowhow/

It was a great article Jens, but I couldn't find any there provision to give a feedback. But that is fine :) .


Sunday, February 10, 2019

Google adsense stopped working for my blog, yet to find out why

I found that my adsense balance had not changed for a long time. I realized I had not noted for a very long time whether the google ads are displaying in my site or not. When I did, i found that the ads had stopped displaying.

After some search, i found the below page (click to enlarge image) .


The thing is, google had removed the ads for some reason without even sending a notice about it, at least to my email id.

Currently, though i see some eligibility requirements, I still do not know for sure why google ads were removed from my blog.

On the blogger settings, under 'layout', there is an option to add an adsense gadget for my blog, when try adding an adsense gadget using that, the status msg says the gadget is added, when it actually doesn't add (hopefully, this one belongs to the blogger teams' issue list).

The work is still on to find out why. Will update when i get this sorted out.

If you find this blog post useful by any means, please comment 'i like' in the comment section below. Thank you !


Thursday, February 7, 2019

Tutorial old

If by any chance you are referring mkyong's tutorial for Struts 1, it would be very useful to understand beforehand that it is a very old tutorial and this small blog post could save you time. While the latest Struts 1 (version 1.3.10) itself is very old, the tutorial does not even seem to cover the latest version of Struts 1.

For example, the below page asks to add taglib tags to web.xml. But this is no longer required in Jsp 2.0 +.



I am writing this in case someone is wondering why somethings are not working for them while working with that tutorial.

Tuesday, May 1, 2018

Issue while calling java soap web service

If you are facing the below issue while calling a web service :

SOAPOverHTTPS E   WSWS7263E: The following exception occured: org.apache.axis2.AxisFault: WSWS7093W: The HTTP response redirected the target resource to a new location

The issue should most probably outside the application

In my case, my user login is controlled by another external application.

I just logged out and logged in, my app began working normally

--

If this still doesn't work, it may require your cookies to be updated. For example WSL cookies.


Thursday, December 11, 2014

Why my JSF navigation failed - for beginners in JSF

JSF navigation did not work for me with the following content

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html  xmlns="http://www.w3.org/1999/xhtml"   
      xmlns:h="http://java.sun.com/jsf/html">
      from page2.xhtml
      <h:commandButton action="home" value="go to home" />
</html>

Caused a standstill since it did not emit any error in logs.

Since <h:commandButton> produces the html <input type='submit' />, it is supposed to be inside a form. So made the correction and it worked.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html  xmlns="http://www.w3.org/1999/xhtml"   
      xmlns:h="http://java.sun.com/jsf/html">
      from page2.xhtml
      <body>
       <h:form>
      <h:commandButton action="home" value="go to home" />
       </h:form>
      </body>
</html>

Thursday, December 4, 2014

An excellent article which explains the basics of configuring a JSF application without using any IDE

If you know JSP and are looking for some help to get started on the basics of JSF without using any IDE or build tool (most tutorials use maven, but for those who have no maven knowledge, many things remain hidden), here is yours :

http://www.theserverside.com/tutorial/Slingshot-Yourself-into-JavaServer-Faces-20-Learning-JSF

Once you complete your JSF setup using the above link, then you can use http://www.tutorialspoint.com/jsf/ to explore further.