Question: i want to increase my integer. but i don't know to fix it
Even i am using this code, my picture more brightness with int +10 from before.

```
try {
            ImageView image = (ImageView) findViewById(R.id.imgView);
            Bitmap bMap = mPhoto;
            int a=0;
            image.setImageBitmap(SetBrightness(bMap,20+a));
            a = a + 10;
} catch (Exception e) { }

```

Can you help me?

**solution**

```
 try {
            ImageView image = (ImageView) findViewById(R.id.imgView);
            Bitmap bMap = mPhoto;
            mPhoto = Bitmap.createBitmap(SetBrightness(bMap,20));
            image.setImageBitmap(mPhoto);

} catch (Exception e) { }

```

Just with code above....
When i click, this code increase by itself :)

Answer: 
In my case i tried example from mkyong

[jsf-2.0 spring hibernate integration example](http://www.mkyong.com/jsf2/jsf-2-0-spring-hibernate-integration-example/)

When i got the exception i searched alot i was using spring sts suit tool , and eclipse MARS with JDK 8 the **solution was**

I changed pom to **1.1** instead of **1.0.1B**

```
<dependency>
            <groupId>javax.transaction</groupId>
            <artifactId>jta</artifactId>
            <version>1.1</version>
</dependency>

```

And if it could not be downloaded automatically from m2 repo you should download it manualy (you can check this in the repo in folder `C:\Users\pc1\.m2\repository\javax\transaction\jta\1.1\jta-1.1.jar` )

and check the maven dependency in project properties it should not give you an error in the lib tab.

**References :**
[reference 1](https://snipt.net/belano/missing-artifact-javaxtransactionjtajar101bcompile/)
[reference 2](http://blog.dawouds.com/2008/11/missing-indirectly-referenced-artifact.html)
[reference 3](https://stackoverflow.com/questions/9003298/missing-javax-transaction-jta-artifact)
[reference 4](https://stackoverflow.com/questions/23285831/maven-missing-dependency-jta-1-0-1b)
[reference 5](https://stackoverflow.com/questions/6696805/java-repository-of-eclipse-with-maven-missing-artifactcompile)

**Related issues might appear after you solve this if you are applying the tutorial:**

1-<http://www.mkyong.com/web-development/the-web-xml-deployment-descriptor-examples/>

2-<http://jonathan.lalou.free.fr/?p=2026>

3-[Error creating bean with name 'sessionFactory' Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]](https://stackoverflow.com/questions/20144975/error-creating-bean-with-name-sessionfactory-unable-to-instantiate-default-tup)
[Tomcat error: Not Found in ExternalContext as a Resource](https://stackoverflow.com/questions/4915020/tomcat-error-not-found-in-externalcontext-as-a-resource)
some approach from [Unable to resolve javax.transaction dependency](https://groups.google.com/forum/#!topic/play-framework/QtEcVoMb0Po)

clear the .ivy/cache folder. it works, **but takes very long time**.