jpa project problem in hibernate console configuration - eclipse

when i create a jpa project under eclipse, i encoutered the following problem: when i create the a configuration file, i check creat console, next when i specify jpa as type in the main tab of the Console Configuration Wizard, i get the error message in the top of the wizard:
how can i resolve this problem?

I think you should create Persistence unit first check this link http://schuchert.wikispaces.com/JPA+Tutorial+1+-+Persistence+Unit

Related

How to add eclipseLink to netbeans 12?

I want to use JPA in my Maven web application in netbeans 12.
So, I added in the dependencies folder the following:
And now I try to add eclipseLink to my project. So I try to create the persistence.xml file in META-INF, so I get the following where I cannot click finish:
Please any advice to solve this issue.
If I try to create directly the entity I get the same above dialog box.
I think you need to select Database Connection to finish this dialog.

iReport "org/primefaces/model/UploadedFile" error in hibernate connection testing

I'm trying to make a hibernate connection to create some reports, but every time I press Test it appears an error window that says org/primefaces/model/UploadedFile, only that.
My classpath already has a jar of my project and the only place where I have the library from the error is inside an entity on the project.
If switch to another's project jar the connection is successful.
I'm using iReport 5.0.4 and Spring 2.9.1.
I'll appreciate any idea of what could be wrong, thanks in advance.
I couldn't figure out what was the problem, so I commented all references to the library and generated the jar that way.
I did it only because there's no related data to the things I commented.

hibernate console configuration disappeared in Eclipse

I'm working with Eclipse Indigo and the Hibernate tools/plugins (3.4.0...) by JBoss Red Hat. For the purpose of reverse engineering of Hibernate value object classes I created several console configurations with the wizard that pops up when clicking on add in the Hibernate Configurations view.
Later when I wanted to regenerate the classes, some of the configurations had dissapeared. When I wanted to add a new configuration with the name of one of the now dissapeared configurations the wizard tells me that the configuration already exists.
Since I couldn't find out where these configurations are stored I'm unable to do anything about it.
Do I have to create a new configuration with a different name?
I have the same problem and finally I found the file in this directory:
.\WORK-SPACE\.metadata\.plugins\org.eclipse.debug.core\.launches\miConsoleConfig.launch
But is better to edit from eclipse. The console configuration is only visible in Hibernate perspective under tab Hibernate Configurations next to the package explorer.

Eclipse Axis2 WSDL2Java Exception: null

I'm trying to generate a Java Bean Skelleton from a WSDL (actually this will happen with Client generation as well).
So here are the Steps I did:
Rightclick on .wsdl -> WebServices -> Generate Java Bean Skelleton
Select Tomcat 7 and Axis 2
Click next (In this field the Parameters fields are Empty)
Click next, you will receive the following Error - Exception occurred during code generation for the WSDL : null
This Error seems to be thrown if you check out Projects with subversive (actually in the case of our project we see this correlation).
What could be done to fix this issue?
This issue is also an open bug since 2008, Axis2 BugTracker
The only Workarround I found for this, goes as follows:
Create a new DynamicWebProject
Create a new WSDL (You can copy you old one or what ever you like)
Create a new Java Bean Skelleton (or Client)
Now the WSDL2Java will work again for some time till it will be damaged again. You will be able to fix this by regenerate the Java Bean Skelleton. You won't need to create a new Project every time.
Edit:
The actual solution to this Problem was found now. I changed my SVN-Plugin from Subversive to Subclips. Now everything works out fine.

Spring Explorer not showing beans from bean definition file

I just downloaded the Springsource Tool Suite, and I created a simple bean configuration file called myDefinition.xml and placed it in the root directory of the Spring Project. However, the Spring Explorer is not showing any data. I'm using eclipse 3.5 and the latest SpringSource all-in-one installation.
Also, if I specify invalid property names in the configuration file, I get no error. Autocomplete, however, is working.
Thoughts?
In the Spring Explorer tab in Eclipse, right click on your project > properties. Then go to Spring > Beans Support and select the Config Files tab. You can then select files or scan a directory and that should add them. I haven't found a way to autoscan a directory so I don't have to do this whenever I add a new spring bean file. The beans that appear in that list are stored in the .springbeans file.
Just want to add that if you want to generate a diagram of a webflow of an existing project, you have to right-click said project in Eclipses Project Explorer and "Add Spring Project Nature" by using the Spring Tools entry of the context menu.
There currently (as of 2012-04-10) seem to be problems with the Spring Explorer view when using a purely annotation driven bean definition (i.e. using Java annotations to wire everything up instead of using XML files).
There is a workaround though, by providing a minimum XML file that declares scanning for components.
http://forum.springsource.org/showthread.php?118928-Spring-Explorer-with-Java-based-Web-Container-configuration
Unfortunately, this procedure is still flawed, missing some components.
Just to add Claudio030
Make sure you have JEE perspective selected for your project, otherwise it won't show in Java perspective.