Problems with DefaultCacheServer when deploying Coherence REST - java

First of all, im a newbie in Java programming, since i'm actually a PHP Programmer not a Java Programmer. And my team want to build a system using PHP, and Coherence REST.
The first time, i tried to deploy it using using Glassfish, according the article from this url http://docs.oracle.com/cd/E24290_01/coh.371/e22839/rest_deploy.htm#BABBIIEE and i get this error "Trying to upload an illegal war archive. Make sure the archive file contains the descriptor file web.xml."
After that, i try to deploy manually according the article from this url http://docs.oracle.com/cd/E24290_01/coh.371/e22839/rest_example.htm#CHDBDGHG
And i got this error:
Exception in thread "main" java.lang.NoClassDefFoundError: com/tangosol/net/DefaultCacheServer. Could not find the main class: com.tangosol.net.DefaultCacheServer. Program will exit.
Is there anyone who can help me to solve my problem?
Any information will be appreciated. Thanks

My bad, i already found out the solution. I have the wrong environment variables. Newbie mistake. thanks guys

Related

Using ops from Tensorflow.contrb on Windows via Java API

I would like to load an op from tf.contrib, specifically "_beam_search_ops". I use Tensorflow 1.6 from Maven.
Following the answer at Issue while loading/serving tensorflow model in java using estimators , I'm able to do so on Ubuntu 17.10.
The code looks like so:
TensorFlow.loadLibrary("_beam_search_ops.so");
Then I try to do the same in Windows 10 with code
TensorFlow.loadLibrary("_beam_search_ops.dll");
And it fails with
java.lang.UnsatisfiedLinkError: D:\Users\ALEXAN~1\AppData\Local\Temp\deep_api_plugin\_beam_search_ops.dll not found
at org.tensorflow.TensorFlow.loadLibrary(TensorFlow.java:47)
So what is the reason for this?
While I was writing and researching the question, I've stumbled on the solution.
In order to resolve the problem, a _pywrap_tensorflow_internal.pyd file should be copied to the folder where _beam_search_ops.dll resides. I understand that this is also some kind of dll, but do not understand why it is necessary for Windows and not for Ubuntu. If anyone happens to know, please enlighten me.
Also I understand that this sort of additional information should be provided in a comment to the original answer, but unfortunately I do not have enough reputation to comment and thought this answer could help someone.
Edit: I was too quick to celebrate. With this answer a library is loaded without exception, but the model cannot seem to use it, failing with
Exception in thread "main" org.tensorflow.TensorFlowException: Op type not registered 'GatherTree' in binary running on DESKTOP-EB6GIDR. Make sure the Op and Kernel are registered in the binary running in this process.
at org.tensorflow.SavedModelBundle.load(Native Method)
at org.tensorflow.SavedModelBundle.load(SavedModelBundle.java:39)
Search for answer should continue.

issue when run deeplearning4J example

I am learning deep learning, and use deeplearning4J tuts.
But when i run example code, some issue there :
Caused by: java.lang.UnsatisfiedLinkError: no jnind4j in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:727)
at org.bytedeco.javacpp.Loader.load(Loader.java:502)
at org.nd4j.nativeblas.NativeOps.<clinit>(NativeOps.java:37)
... 18 more
i have tried some solutions on web but it doesnot work.
So, if you know how to fix it, help me.
You need to unzip cuda-9.1-7.1-1.4.1-windows-x86_64.jar and nd4j-cuda-9.1-1.0.0-beta-windows-x86_64.jar somewhere, and add the paths to the native dlls to the java.library.path property when launching your app.
For example:
-Djava.library.path=C:\<path where you unzipped>\cuda-9.1-7.1-1.4.1-windows-x86_64\org\bytedeco\javacpp\windows-x86_64;C:\<path where you unzipped>\nd4j-cuda-9.1-1.0.0-beta-windows-x86_64\org\nd4j\nativeblas\windows-x86_64
I had the same problem. But the issue was I was using the wrong import , nd4j-native. Instead of that I used nd4j-native-platform import and it fixed the problem.
Hope it helps.
I will try to answer this here, but usually this is where the chat comes in handy (a lot of asking about your environment and back and forth here..)
I'd try to answer this here, but the native code (especially with the examples) should run fine.
You could also try filing an issue: https://github.com/deeplearning4j/dl4j-examples/issues
In the mean time, read up on what an nd4j backend is:
http://nd4j.org/backend.html
This SHOULD be the only dependency you need to run:
http://search.maven.org/#artifactdetails%7Corg.nd4j%7Cnd4j-native-platform%7C0.6.0%7Cjar
The examples run out of the box for everyone we've talked to.
You don't seem to be doing anything out of the ordinary.
An alternative might just be using the nd4j-native artifact id with the appropriate classifier.
This is where you modify the nd4j backend:
https://github.com/deeplearning4j/dl4j-examples/blob/master/dl4j-examples/pom.xml#L64
You can try just getting rid of this and replacing it with 1 of the artifact ids I told you about. If that doesn't fix it, I would recommend coming in to gitter.
Please come in to gitter: https://gitter.im/deeplearning4j/deeplearning4j
for real time help.

An error occurred uploading to the iTunes Store from Application Loader

I'm over 12 hours in a row trying to figure the problem I have been trying to upload my IOS binary to itunes connect using Application Loader:
I have searched a lot, I found that seems it is helping most of people with the same issue:
StackOverlow Link
But that just doesn't work! I run java -version on console and it still says 1.7
I just can't find Java Preferences in order to switch the Java JMs, I am in panic and I just don't know what else to do.
I finally solved it, this linked helped me out:
Link
I hope it can save some time from someone with the same issue...

Compiling/Building Google App Engine Java Project

Good day everyone!
I am a graduating student doing Google App Engine-Java Web Application.
My problem is I need to compile/build it so it will run upon click. I've been trying exporting it to a jar file however it outputs no main class.... problem.
I've been looking for other method but internet fails me or maybe i'm not pointing on the right track.
Here's my output whenever I'm using the command line:
its working fine when i'm using eclipse.
Any leads? Sorry if my question is quite silly.
Thanks in advance :))
Firstly you should definitely consider updating your GAE SDK as it seems the defaultZoneTL field was removed from JDK 1.6 U31. Updating the GAE SDK should avoid that problem.
If you can't do that then check http://code.google.com/p/googleappengine/issues/detail?id=6928 and try to implement one of the workarounds suggested. (Essentially launching with -Dappengine.user.timezone.impl=UTC OR -Dappengine.user.timezone=UTC)

How to create an installer file for an application created in Netbeans(java)?

I have started creating small applications in Java using Net-beans, i was trying to make installer file for the application as we do in .Net. I tried many thing and not succeeded. Somebody please help me.
There are no of software out to do it, Check them out

Categories