I do not find a good tutorial on integrating gilead for GWT with hibernate. I miss the step what jar files to include in my application.
Background:
There is some example source code at:
http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html to be found here, but I do not see that the same jars are used in the downloadable files from the gilead download location.
A little trial and error resembles that I need the following jars:
From gilead:
gilead-core-1.3.2.1839.jar
gilead4gwt-1.3.2.1839.jar
gilead-hibernate-1.3.2.1839.jar
beanlib-hibernate-5.0.2beta.jar
beanlib-5.0.2beta.jar
From Hibernate:
cgib-full-2.0.2.jar
log4j-1.2.9.jar
(or similar with a different version number).
Related
I'm new using the library twitter4j and I've some doubts about it. First of all I have some doubts importing the jar from twitter4j, I've reading many websites and I think that in order to make a java application that just shows the timeline of an user on twitter, I just need to import to netbeans the jar twitter4j-core-4.0.3.jar or do I need the other lib's? If that was the case is there any way to import the full .zip that I downlaoded from twitter4j just to use all the libraries?
Secondly I've trying to configure appropriately the file twitter4j.properties with oAuth identification as I says here http://twitter4j.org/en/configuration.html
but I don't understand where I should place the file that I've created (using a .txt and renaming it as twitter4j.properties, where does means root of the classpath directory? I mean in the case of netbeans would it be name project >source packeges > application > twitter4j.properties ? . Moreover will these information will be available to read for other users?
Excuse me for my ignorance, but I'm really noob building app's.
Thank you in advance.
The twitter4j-core jar should be all you need for retrieving a timeline and interacting with most of the API.
I am not familiar with Netbeans but if you can place twitter4j.properties under the 'default package' then that may work. Twitter4j is using getResouceAsStream to load the file:
Configuration.class.getResourceAsStream("/" + "twitter4j.properties")
(See here for the full source).
Finally, if you haven't already seen them, take a look at the timeline examples provided by Twitter4J. (All the examples are executable, check out the bin directory.)
I hope that helps.
I am trying to compare two XML files in Java. I also found the code here
https://docs.oracle.com/database/121/ADXDK/adx_j_diff.htm#ADXDK198
But I could not find the jar file for oracle.xml.diff.DiffOp and oracle.xml.diff.DiffOpReceiver.
Oracle XML Developer's Kit for Java is included with Oracle database. These is no external link for these libraries to download. Look at this Installing XDK. This link will show you where is the jar for XDK located in Oracle Database see Installing Oracle XDK for Java Components.
I found Maven Dependency for Oracle-xdb& Oracle-xsql. Also these is one link which contains oracle.xml.differ.Diff - Jars. I am not sure about the jar given in oracle.xml.differ.Diff - Jars are from which version of Oracle. But, you can checkout them too.
I hope this helps you.
Maybe this is a tricky work around but if this is useful to someone, well just my two cents.
Search for oracle.xml.differ.Diff in findjar.com, then you get the
jar name: xml.jar and xmlcomp.jar
Search for "xmlcomp.jar index of" in google,
then you will get a public route in somepage with the publicated non
restricted jar ready to download.
I got this xml.jar and this xmlcomp.jar, and even this xmlcomp2.jar under oracle/product/11.2 folder. Maybe the link will die over the time, but you can always get the jar doing step 2.
Info for people like me, who are only checking for the Jar:
First of all, please tell that, this is a commercial licence product. That's the reason, we are unable to found the XML.jar in internet. Even in documentation also, they are always mentioning it is under the lib folder. But, you can't get the lib folder directly accessible on internet.
I am trying to use messagepack to send data back and forth between an Arduino and a Java application, and I am having trouble setting up the java implementation of messagepack: msgpack-java (https://github.com/msgpack/msgpack-java/wiki/QuickStart).
I wanted to avoid building the entire library myself, so I used v0.6.8 from here.
The sample code compiles successfully but at runtime I get
java.lang.NoClassDefFoundError: javassist/ClassPath
specifically at the line
MessagePack msgpack = new MessagePack();
I tried just building the msgpack jar myself, but I got compile errors on the source code because it is missing javassist packages. I do not know where to get the correct packages, and unfortunately the developers don't mention that in the documentation. I couldn't find a comments section on their page so I was hoping that someone on here could help me get msgpack working.
I also looked at this question (Using MessagePack with Android) but it was not really clear about where I can get the libraries I need.
I guess this was a fairly obvious question but I'll answer it here in case anybody else is having troubles like me. I ended up learning about the dependencies I needed by looking at the Maven POM file. This file told me that I needed the json-simple library and the javassist library. I just downloaded the .jar files for these two libraries and added them to the eclipse build path and everything ran just fine.
As an alternative, consider sirbrialliance's stripped-down static implementation: https://bitbucket.org/sirbrialliance/msgpack-java-lite
This is a bit better documented and easier to set-up initially.
EDIT This question is not about how to solve dependencies using Ant / Maven / Gradle or whatnots.
I'm trying to use Neo4j and I'm a bit confused by the docs as to what I need to embed a very simple "Hello, world!" Neo4j example in an app.
I've read in several places that Neo4j was lightweight and that only one (and now two) jars where needed.
For example here: http://highscalability.com/neo4j-graph-database-kicks-buttox
we can read: "Small footprint. Neo4j is a single <500k jar with one dependency (the Java Transaction API)."
This is precisely one of the reason I'm interested in Neo4j to embed it...
So I downloaded the community edition (GPL) of Neo4j and read the explanation here:
http://docs.neo4j.org/chunked/stable/tutorials-java-embedded-setup.html
which says: "Extract a Neo4j download zip/tarball, and use the jar files found in the lib/ directory."
Now that's more than concise and I've found old messages saying that the "wording was changed". At one point all that Neo4j needed was one jar apparently (which is one of the reason I was interested in embedding Neo4j btw). But now apparently it's two, because there's a dependency on some Java Transaction API (which one? a .jar shipped with neo4j?)
The problem is that if I look in that lib/ dir I've got quite some things:
1115454 lib/neo4j-kernel-1.6.1.jar
153707 lib/neo4j-graph-algo-1.6.1.jar
222791 lib/neo4j-shell-1.6.1.jar
8865464 lib/scala-library-2.9.0-1.jar
43530 lib/neo4j-jmx-1.6.1.jar
590503 lib/neo4j-kernel-1.6.1-tests.jar
23954 lib/neo4j-community-1.6.1.jar
28023 lib/neo4j-udc-1.6.1.jar
1517975 lib/neo4j-cypher-1.6.1.jar
51662 lib/neo4j-graph-matching-1.6.1.jar
16030 lib/geronimo-jta_1.1_spec-1.1.1.jar
143177 lib/neo4j-lucene-index-1.6.1.jar
1466301 lib/lucene-core-3.5.0.jar
118875 lib/server-api-1.6.1.jar
92850 lib/org.apache.servicemix.bundles.jline-0.9.94_1.jar
And in system/lib:
27461 system/lib/blueprints-neo4j-graph-1.1.jar
72650 system/lib/jettison-1.3.jar
628626 system/lib/rrd4j-2.0.7.jar
17985 system/lib/asm-analysis-3.2.jar
177174 system/lib/jetty-util-6.1.25.jar
109043 system/lib/commons-io-1.4.jar
755981 system/lib/neo4j-server-1.6.1.jar
35910 system/lib/gremlin-java-1.4.jar
46367 system/lib/jsr311-api-1.1.1.jar
36551 system/lib/asm-util-3.2.jar
206035 system/lib/commons-beanutils-core-1.8.0.jar
227122 system/lib/jackson-core-asl-1.8.3.jar
33094 system/lib/asm-commons-3.2.jar
17308 system/lib/jcl-over-slf4j-1.6.1.jar
21878 system/lib/asm-tree-3.2.jar
12359 system/lib/log4j-over-slf4j-1.6.1.jar
.
. (skipped a few jars from system/lib here)
.
If my Emacs-fu is strong enough the jars above weight at nearly 17 MB (not that "embeddable")... And I didn't even paste all the jars from system/lib/.
So what is the minimum number of .jar (and which are they) do I need so that I can embed Neo4j and run a simple "Hello, world!" example?
I'm confused by the official doc saying: "... use the jar files found in the lib/ directory".
Surely I don't need all of them right?
Basically, you need only neo4j-kernel-1.6.1.jar (and the mentioned transaction API geronimo-jta_1.1_spec).
However, this will give you only the basic functionality. If you want to use other parts, like indexing, querying, management tools, etc., you would need other jars.
The absolute minimum to run the kernel is
neo4j-kernel.jar
jta.jar
The rest is Cypher, Lucene indexing and other stuff.
I'm trying to generate some stubs for a WSDL (using xmlbeans) and keep running into some issues. I'm using the following page:
http://axis.apache.org/axis2/java/core/docs/userguide-creatingclients-xmlbeans.html
The only part of these steps that I'm skipping is the "client.java" part because I already have another project ready I want to plug the resulting jars into. A quick run down of my steps are as follows:
My WSDL is a crmonline instance, so I run something like this:
C:\Work\aaa2>WSDL2Java -uri
https://mycrmorgname.crm.dynamics.com/XRMServices/2011/Organization.svc?wsdl
-p crmsdk -d xmlbeans -s -o c:\mystubfolder
I build the project using "ant"
In my "client" project I reference the 2 jars created in .\build\lib
My project builds fine once I add all my axis2 / apache references etc, but when I launch it through playframework I get errors when I hit the first page. The first error seems to be:
17:48:45,289 ERROR ~ Error in ControllersEnhancer.
controllers.ProfileController.editProfile has not been properly enhanced
(fieldAccess javassist.expr.FieldAccess#212ca458).
or something similar to that. Scrolling down through the error I can see that I'm getting this:
The file /app/models/MyDynamicsClient.java could not be compiled.
Error raised is : org.apache.axiom.om.util.AXIOMUtil cannot be resolved
Now, I haven't even hit any of my web services yet, or even instantiated any of my classes ... I'm at a loss as to why this is happening. Or to be more accurate, what exactly am I messing up! Am I missing a reference to something? Doing a search on AXIOMUtil tells me this should be in Axiom-api (version I have is Axiom-api-1.2.10.jar). I have this referenced and doesn't seem to help. Or maybe I'm doing something else wrong someplace?
Some details on versions:
Axis2 1.5.4
Apache-ant 1.8.3
Any help would be very much appreciated!!
Ok, after trying a lot of different things and rereading the sites/instructions I realised what I was doing wrong. Or at least I figured out a couple of things that I started to do differently that fixed the problem.
Firstly, I was using jar files from another sample project for the apache http components. I don't know if this had an impact, but I downloaded a fresh version of this anyway and referenced those JARS instead.
Also, instead of creating jars in my "stub" project and referencing those I copied all the generated stubs/classes directly into the existing client project. I have a feeling this might have been what fixed my problem. Or maybe a mix of this and the previous step I did!
So my new steps are as follows:
Ensure you have all the correct versions downloaded for required components. In my case I have the following:
Apache Axis 2 v 1.5.4
Apache HTTP components client 4.1.3
Apache-ant 1.8.3
Copy all the JARS from the Axis2 and HTTP Components libs into your client project and reference them.
Use WSDL2Java to create your stubs and classes within it's own project.
Ensure the project builds using Ant
Copy all the generated class files within the src folder into the source folder of your client.
Fix any other reference isssues and Build
Thankfully this got me going.