I was following mirth tutorials link : http://www.mirthcorp.com/community/wiki/display/mirth/Creating+a+custom+Web+Service+in+Mirth+Connect+3.0.1
My current mirth version is 3.5.x . Even downloaded donkey-server.jar and donkey-client.jar from mirth library. But when I import it I dont see the AcceptMessage and WebServiceReceiver class being resolved. When I verified in the jars the path com.mirth.connect.connectors.ws is not present.
Please let me which jar to be used to resolve this issue?
Those classes are in extensions/ws/ws-server.jar. You can add that to the classpath (with -cp) when compiling your code. More information here: http://www.mirthcorp.com/community/wiki/display/mirth/How+to+create+and+invoke+custom+Java+code+in+Mirth+Connect
Related
I am quiet familiar with protobuf 2.5. I was trying to use protobuf3.0. It seems that the jar is to be generated form the source code available online. But when i import the source code into eclipse and try to create a jar, i can see many errors in the following files
/protobuf3/src/com/google/protobuf/Descriptors.java,
/protobuf3/src/com/google/protobuf/DynamicMessage.java
/protobuf3/src/com/google/protobuf/ExtensionRegistry.java
/protobuf3/src/com/google/protobuf/MessageReflection.java
/protobuf3/src/com/google/protobuf/TextFormat.java
/protobuf3/src/com/google/protobuf/UnsafeUtil.java
This is one of the errors "the import com.google.protobuf.DescriptorProtos cannot be resolved".
Is this the right way to generate the jar (or) is it available anywhere (or) is the full source code available anywhere.
Any help would be appreciated.
Thanks.
This is where i downloaded the source code protobuf3.0-source code
You can find a compiled (JAR) version of Protobuf to download here:
http://search.maven.org/remotecontent?filepath=com/google/protobuf/protobuf-java/3.0.0/protobuf-java-3.0.0.jar
I recommend you look at a build manager such as https://maven.apache.org/ to automatically handle fetching dependencies (libraries) for you.
I am trying to use this jnr-jffi library. It appears to have a dependency on jffi so I have also built that and included in my libs folder.
My code to load the native code is as follows:
MATH_LIB = LibraryLoader.create(MathLib.class).load("math");
MATH_LIB.Multiply(1, 2);
And I get the following error:
java.lang.UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError: could not locate stub library in jar file. Tried [jni/Darwin/libjffi-1.2.dylib, /jni/Darwin/libjffi-1.2.dylib]
For what it's worth, I did include a folder jni that appears to contain a bunch of native libraries for various platforms.
How I can proceed to load my native code using this library.
Please note that I have tried adding various paths when launching my project and also adding the libraries to various locations on my machine, with no success.
That would mean I need to figure out how to debug further into this? Any advice is welcome.
It would be easiest to use maven when using JNR. Maven will automatically resolve all the needed dependencies.
You can just add this to your pom.xml:
<dependency>
<groupId>com.github.jnr</groupId>
<artifactId>jnr-ffi</artifactId>
<version>2.0.9</version>
</dependency>
Or find a more up-to-date version here.
You need the platform specific version of the file: libjffi-1.2.dylib
Refer to this issue & try to find a relevant jar for your platform version which would contain the above library file.
I want to know API for the following IBM WAS package. Could any one suggest/guide me to website where i can find the API for WAS class/packages/interface.
Class : com.ibm.ws.rsadapter.jdbc.WSJdbcConnection
package : com.ibm.ws.rsadapter
Version : 8.5.5.2
Please search for the following jar file on your machine and confirm if you are able to locate these classes or not in it.
com.ibm.ws.runtime
Refer following link
http://www-01.ibm.com/support/knowledgecenter/SSEQTP_8.5.5/com.ibm.websphere.javadoc.doc/web/apidocs/overview-summary.html?cp=SSEQTP_8.5.5%2F1-17-0-4
WSJdbcConnection class has been deprecated since WAS 7.
http://www-01.ibm.com/support/docview.wss?uid=swg21215817
You may also look for com.ibm.ws.jdbc_1.0.8.jar and generate javadoc
So I'm working on a java-made plugin of the well known Cooja Simulator..when I click on a button, I get the exception you see in the title..
I've already read many posts related to the same issue and I have put the issuing classes in the classpath environment var, in this way (I'm working on Ubuntu):
The classes contained in "com/sun/image/codec/jpeg/JPEGCodec" are located here:
"/home/user/contiki-2.6/jar_files/lib", so that the full path is "/home/user/contiki-2.6/jar_files/lib/com/sun/image/codec/jpeg/JPEGCodec".
I've edited the bashrc file and I've inserted the following line:
export CLASSPATH=.:/path1:/path2:/path3:/home/user/contiki-2.6/jar_files/lib
Where the latter one is the path where my problematic classes are located..in the source code, the classes are imported in this way:
import com.sun.image.codec.jpeg.JPEGImageEncoder;
import com.sun.image.codec.jpeg.JPEGCodec;
import com.sun.image.codec.jpeg.JPEGEncodeParam;
And I make the Cooja Simulator starts using the command:
ant run
I've also tried to force the required jar/classes by issuing:
ant -lib /home/user/contiki-2.6/jar_files/lib/com/sun/image/codec/jpeg run_bigmem
but I got the same error.. Anyone who can help me to solve this issue? thanks a lot..
Cooja has its own classloader. To add additional jars add a lib-folder to your plugin and copy the jars into that folder. Then add
se.sics.cooja.GUI.JARFILES = + file1.jar file2.jar
to the cooja.config.
Look at https://github.com/contiki-os/contiki/tree/master/tools/cooja/apps/mspsim as an example - here the required jars are copied by Ant.
I'm getting an error message when I try to build my project in eclipse:
The type weblogic.utils.expressions.ExpressionMap cannot be resolved. It is indirectly referenced
from required .class files
I've looked online for a solution and cannot find one (except for those sites that make you pay for help). Anyone have any idea of a way to find out how to go about solving this problem? Any help is appreciated, thanks!
How are you adding your Weblogic classes to the classpath in Eclipse? Are you using WTP, and a server runtime? If so, is your server runtime associated with your project?
If you right click on your project and choose build path->configure build path and then choose the libraries tab. You should see the weblogic libraries associated here. If you do not you can click Add Library->Server Runtime. If the library is not there, then you first need to configure it. Windows->Preferences->Server->Installed runtimes
Add spring-tx jar file and it should settle it.
Have you Googled for "weblogic ExpressionMap"? Do you know what it is and what it does?
Looks like you definitely need to be compiling alongside Weblogic and with Weblogic's jars included in your Eclipse classpath, if you're not already.
If you're not already working with Weblogic, then you need to find out what in the world is referencing it. You might need to do some heavy-duty grepping on your jars, classfiles, and/or source files looking for which ones include the string "weblogic".
If I had to include something that was relying on this Weblogic class, but couldn't use Weblogic, I'd be tempted to try to reverse-engineer a compatible class. Create your own weblogic.utils.expressions.ExpressionMap class; see if everything compiles; use any resultant errors or warnings at compile-time or runtime to give you clues as to what methods and other members need to be in this class. Make stub methods that do nothing or return null if possible.
This issue happen because of few jars are getting references from other jar and reference jar is missing .
Example : Spring framework
Description Resource Path Location Type
The project was not built since its build path is incomplete. Cannot find the class file for org.springframework.beans.factory.annotation.Autowire. Fix the build path then try building this project SpringBatch Unknown Java Problem
In this case "org.springframework.beans.factory.annotation.Autowire" is missing.
Spring-bean.jar is missing
Once you add dependency in your class path issue will resolve.
I was getting this error:
The type com.ibm.portal.state.exceptions.StateException cannot be resolved. It is indirectly referenced from required .class files
Doing the following fixed it for me:
Properties -> Java build path -> Libraries -> Server Library[wps.base.v61]unbound -> Websphere Portal v6.1 on WAS 7 -> Finish -> OK