Thursday 18 December 2014

Spring Applicationcontext issue / IOException parsing XML document from class path resource [applicationContext.xml]; nested exception is java.io.FileNotFoundException: class path resource [applicationContext.xml] cannot be opened because it does not exist


Location of Application  Context XML file



Web.xml Entries


<context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>

        classpath:**/application-context.xml
    </param-value> 
</context-param>
<listener>
     <listener-class>

     org.springframework.web.context.ContextLoaderListener
     </listener-class>
</listener>

Bean entry in Application-Context.xml File.


<bean id="tweeterService" class="com.serviceImpl.TweeterServiceImpl">
</bean>


Getting beans instance from Application Context in java


@RequestMapping( value = "/pageInfo", method = RequestMethod.GET)
    public @ResponseBody String getPageInfo() {


/* 
*Try to avoid using this.
*
 ApplicationContext context = new FileSystemXmlApplicationContext("applicationContext.xml"); */


// Use below code for bean creation 
ApplicationContext ctx = new ClassPathXmlApplicationContext("../application-context.xml");

if(ctx!=null)
{   
 TweeterService ts =(TweeterService)ctx.getBean("tweeterService");

}  



Thanks 
Khansdroid





 




Monday 13 May 2013

How to install Custom jelly bean ROM in your Micromax A90s

How to install Custom jelly bean ROM in your Micromax A90s


Software required:


Note:-Please take backup of your phone like media card data, contacts and everything because this process will permanently remove all the data.

Before you do this please make sure your ready to take all the risk. it could brick your phone if you don't follow the steps properly.

Please jot down your EMI no. somewhere. it might be required in worst case.
and in the end be patient.. :)

Steps:

1.First install A90s drivers (Note:-you can use above link(A90s Driver) to download it).
   There are two version of driver once is for x86 family that is 32 bit and other is for 64 bit.
   Please install it as per your PC hardware.

2. Extract 
SP Flash Tool and search for Flash_tool.exe. double click on it.  

3. Follow the steps shown in below pic.




3. Now go to BLU_Stock_ROM_CWM.rar and extact it in a folder. 




5. Go to BLU.. extracted folder and select this MT6577_Andriod_scatter_emmc.txt file
    as shown in the above pic.




6. Once you are done with above step it will populate the grid with files as shown in below pic. 




7. Now remove your phone battery and connect your mobile to your PC using data cable.
check if phone get detected or not if yes then proceed with the below steps else check that you have installed driver properly or not.

Now click on Format button(this process will erase ROM(Read on memory) and make your handset ready to write new OS)

Note:- please don't unplug data cable until it is done else you will brick your phone 


8. If every thing goes well then you will able to see a Green Circle window. 

    Now we are ready to proceed further. we need it upgrade the Firmware. 


Note:- Please don't disconnect your mobile or data cable. Be patient.



9. Now we need to write new OS(jellybean) on your mobile ROM. Follow the below steps


10.Once you Clicked the download  it will start writing into your Phone ROM and the below red highlighted area of screen show will start showing progress in yellow and purple colour.

Note:-Until you get a green Circle window please don't unplug your mobile.

Once it done you can remove data cable put back battery and switch on your mobile.

viola ... you are done.










Sunday 12 May 2013

How to root a phone running on android (jelly bean ).



Software required.


How to do it (Step by step)

1.Install CWM Recovery in your mobile
2.Copy paste the downloaded SuperSuzip into your internal media card
3.Boot to recovery(switch off your mobile then power button + volume up key)
4.Select install form media card(use power button to select  and volume up/down key to move courser)
5.Select install form internal Storage
6.Select SuperSu.zip and install it.
7. After installation, restart your phone

Voila ...  you are done.

How to check whether the phone is rooted or not.


1. If SuperSu app is there in your app tray then your phone is rooted
2: Go to terminal write "su" commend  hit enter key. If your grant permission then your phone is rooted.