I want to create a JPA project in Eclipse but at the same time have it as a Maven project with the tipical maven source directory structure.
Can this somehow be done?
I just want to use the Dali feature to reverse engineer my database structure to JPA beans, but if I use a Maven only project I get a error that the project isn't a JPA project.
Is there some easier way to reverse engineer my beans?
This should be possible when you use the m2e Eclipse plug-in. The documentation is a bit scarce but it really works just like you know it from the Maven command line. I suggest to create projects with the "New Maven Project" wizard to get you started.
You should also be able to activate the JPA nature for the same project (one project can have any number of different "natures").
If it doesn't work, open a new question giving specific information like error messages.
PS: You will want m2e 1.200 and Eclipse 3.7.2.
Related
I need to write code that communicates to Oracle Content Server 11g in Java. My understanding is that it's done using RIDC (Remote Intradoc Client).
The best I can find on getting started is this:
http://docs.oracle.com/cd/E23943_01/doc.1111/e10807/c23_ridc.htm
However, it doesn't cover the development environment setup. Where do I get the pieces to get started? I'm assuming I need JDeveloper R1, is that correct? Where do I download the SDK? Thanks.
TD
You need to install WebCenter Support API in JDeveloper. Search for the updates shown in the following image in Help->Check for Updates.
I am in PS6.
You do not need the Oracle WebCenter Portal extensions nor JDeveloper.
You can develop code using the RIDC library with any IDE, all you need is to make sure you have the correct version of the RIDC jar file on your classpath. You can obtain it from your Oracle_ECM1 installation home, in the /ucm/Distribution/RIDC folder.
When i try to run gwt sample project it gives "RPC call failure.An error occurred while attempting to contact the server. Please check your network connection and try again". It was running good before but after i update programs and libraries it gives that error. Which update causes this error or there is other things?
Appengine version:1.7.0
GWT version:2.4.0
Eclipse version:4.2(juno)
JDK version:1.7.0_05
This may not be the problem you are facing but it seems to be the most frequent problem.
Let me predict - you last tried GWT four years ago and you hoarded the sample project hoping to pull it out one day.
And yesterday, you did pull it out. It kinda worked and then you decided to upgrade to the latest 2.4.0. (Actually the latest is 2.5.0-rc1).
Ooops. The web-inf/lib of your project is still faithfully using pre-version 2.2 gwt-servlet jar.
Nope, you can't do that. GWT-RPC data transfer format is version-unstable. Not guaranteed to be compatible from one version to the next.
Simple solution - recreate a new GWT project using the new Google plugin.
Then copy the src and web.xml of your project into the new project.
Or replace the gwt-servlet.jar with the latest. And if you usegwt-servlet-deps.jar, you would need to upgrade that too (but I doubt so, because if you did use gwt-servlet.deps.jar you wouldn't be asking this question).
But why would you keep the gwt sample from an old project?
The samples have remained quite the same over the years. Why not use the samples from the new GWT 2.4.0 download. You don't have to keep the samples. You should try to construct the projects for the samples afresh.
The GWT directory is found under Eclipse's plugins directory, under a long name. Like
plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201205091048-rel-r37/gwt-2.4.0.
In which you will find the samples directory.
anyone has past experience with gradle? i'm thinking of using it for continuous deployment... i'm considering either using my own scripts (python) or gradle.
can anyone tell from experience which way he thinks recommanded to go? note i already use maven and i don't intend to move away for my dependency management and project management.
thanks
We have implemented Gradle-based deployment and environment management in a big governmental project (100+ servers). But we had to develop a custom set of plugins (which is actually rather straight forward process in Gradle) to handle tasks like remote SSH command execution through Groovy DSL, creation of application server domains/clusters (we are using WebLogic), application/configuration deployment.
We also are thinking of integrating Gradle with Puppet for easier Linux administration.
If you are coming from Java world, then using Gradle (which is Groovy-based) would be rather simple for you, because you can reuse your Java/Ant/Maven/Groovy knowledge to write scripts. Also an ability to create DSLs in Groovy may allow you to build interesting abstractions. Gradle also has very clean API which allows building nice dependencies between tasks. It also integrates very well with Maven infrastructure and you can reuse all Ant tasks.
Yes, Gradle-based deployment possible with gradle-ssh-plugin
Here is an article with good usage example.
I've been using SlowCheetah to transform my app.config files and this part is all working fine. The correct transforms are applied to AppName.exe.config when I build the windows client application.
The problem I have is that the S&D Project always looks for app.config which obviously does not contain the updated values.
How can I configure the S&D project to look for AppName.exe.config and package that instead?
After some lengthy research it seems this is not possible when building an MSI using VS 2010 Setup & Deployment.
It may be possible to do with MSBUILD as this is more powerful and flexible but I currently don't have the time to explore that avenue in detail.
So for the time being as a temporary workaround I have entered the values in app.config for the production environment as this is what the MSI will use.
My transforms are still in place for other environments. But seeing as I don't deploy to other environments with MSI it doesn't really matter.
At some stage I will sort this all out with a build server and CI.
Hope this helps someone, someday.
I have a Solution with a Project which uses a MSSQL Database and generated for this a VisualStudio setup projekt. Then i have made another project with an installer class that should deploy my database on the installation.
So I generated the CustomAction Installer class using this Tutorial and also tried this C# Solution which is similar.
When im running now my setup project and want to install my Application i always get an error:
While initializing the installation an
exception occurred:
System.BadImageFormatException: File
or assembly ... \ CustomAction.dll or
one of its dependencies not found. The
assembly is inserted by a term that is
more recent than the currently loaded
term, and can not be loaded.
I hope the error is understandable, i translated it from german to englisch ...
So im grateful for any hints or tips to solve this.
regards
Perhaps this article will help:
http://msdn.microsoft.com/en-us/library/k7137bfe(VS.80).aspx
There seems to be 2 possible causes:
The DLL path is not being resolved correctly so the DLL is not found. You can try checking how the DLL relative path is resolved against the working directory.
There is a problem with the custom action. In this case you can try creating a log and see if you can find out more. You can create logs with msiexec.exe, for example:
msiexec.exe /i package.msi /l*v "C:\package.log"
One of the many reasons to not use InstallUtil ( Installer Class ) custom actions is the are "sticky" when it comes to the hosting process and the version of CLR being jitted. If a 1.1 CA fires then a 2.0 fires it'll fail with a BadImageFormat exception.
I really reccomend doing a good search for WiX Deployment Tools Foundation. It's a much better hosting model for your managed code and solves the problem and many others.