Header Ad

Thursday, November 27, 2014

Specified VM install not found: type Standard VM

Are you facing this in your eclipse, then here is the solution


  1. Right Click on build.xml
  2. Go to "Run As" >> "External Tools Configurations..."
  3. It shall open new window
  4. Go to JRE tab
  5. Select proper JRE if missing (sometimes jre tabs shows error mark on that.)
Help more people:- Share this link, comment if you have any suggestion.


Sunday, January 5, 2014

webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)



If you are adding pom.xml in your existing web project, then it could be looking for web.xml.
To add web.xml add following line of code in pom.xml, make sure the path of web.xml  is correct.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webXml>WebContent\WEB-INF\web.xml</webXml>
</configuration>
</plugin>

Thursday, January 2, 2014

incorrect column specifier for column mysql with hibernate




Reason behind this error is you are doing
1. Auto increment of table id
2. Id which you are incrementing is String
3. And last you are using MySQL database.
        @Id
@Column(name = "year_id")
@GeneratedValue(strategy = GenerationType.AUTO)
private int yearId;

Help more people:- Share this link, or comment if you have any suggestion.

Wednesday, January 1, 2014

org.hibernate.AnnotationException: No identifier specified for entity:




This is simple mistake you might be making.
Do as following:

  1.  Got to the POJO class where you are seeing this error.
  2. Look for the property which is primary key of your database table, mostly Id etc.
  3. Add @Id annotation on the property of variable.
  4. Test your code again.



Remember:- Help more people by sharing this link, and you may comment if you have any suggestion.

org.hibernate.MappingException: Unknown entity:

I must tell you that don't give up by seeing such error, you might get frustrated initially but hold your emotions these errors will help you to learn more. 


Now what you should do? Check below steps

  1. Open your POJO classes which recently you have created.
  2. Look for annotation @Entity at class level.
  3. You must be missing it now add it there.
  4. Run your code again.

Remember:- Help more people by sharing this link, and you may comment if you have any suggestion.