Current approach:
As suggested there https://devcenter.heroku.com/articles/java-support, I've created a system.properties file in a root folder, with java.runtime.version=11
Still jdk 8 is installed as seen in the picture
JAVA_HOME
Not sure what am I missing here?
For any one who is still facing this issue. My problem was i was on a different branch so i had to run git push heroku yourbranch:master.
I would suggest using Docker. It will easier to configure and you will be able to run it locally and it should behave the same as in Heroku. Moreover Heroku has good support for deploying using Docker.
You can check out deploying process here: https://devcenter.heroku.com/categories/deploying-with-docker
Process of building docker image will be different depending on what build system you use.
Related
I'm really new to Docker and wanted to setup a Wildfly-Container (v26) and deploying a .war-File to it.
The problem I've encountered is, that Wildfly is using JDK11 as base image.
My program was written in JDK17. I've found this to change the JDK and the wildfly is running, but I have no idea if it worked. Is there any command or way to read out the used java version the docker image of wildfly is now using?
Sure I could 'just deploy' the war, but I have no access to the admin console. It looks like there is another problem I have to fix before.
I am trying to make my development process as automatic as I can.
I am using maven and got the deploy to work by simply putting the jar in my server folder when building the project (like this).
This works fine, but I still have to restart my server manually. I found this solution to run a command after install.
I can run neo4j to start the server, but can not find out how I can restart (or stop and then start). I tried neo4j restart and got the following output:
This command is not supported by the Neo4j utility. Please try "Neo4j.bat help" for more info.
When running Neo4j.bat help I get the following output:
Proper arguments for this command are: help console
Something does not seem right... I am using Neo4j version 2.2.0.
This could be a bad approach, if so let me know. How do you setup your environment when developing unmanaged extensions?
You can use chaining of commands
neo4j stop & neo4j start
If you run on windows I recommend you to upgrade to latest version of Neo4j, because it supports PowerShell instead of old batch files.
http://neo4j.com/docs/stable/powershell.html
In Neo4j 2.3.0 you have powershell modules that should allow you this kind of functionality.
http://neo4j.com/docs/stable/powershell.html
I've been developing on and off with Appengine for a while now. I use Intellij for my IDE and I have a Java instance of Appengine.
When running the dev server locally, the database is lost between each restart of the server. This is because Intellij rebuilds the WAR each time and the datastore which is located in the WAR is lost. I know in the documentation that it says the datastore will be persisted; but the documentation implies that you are using the Eclipse plugin.
It used to be that I didn't have this problem because there was a startup param that would specify a different location for the datastore which I setup outside the WAR. I've lost this param and can't find any documentation on it.
Please help
The following VM param allowed me to change the datastore directory.
-Ddatastore.backing_store=PATH_TO_DATASTORE/local_db.bin
The plugins are just calling the local development server. For Java, the command line equivalent is calling dev_appserver.sh (or .cmd for Windows folks). If you call:
./dev_appserver.sh --help
you can see an option --generated_dir=DIR that should work for you. Just include this in your IntelliJ run configuration (borrowing Eclipse terminology) and you should be good to go.
I have no experience setting up java applications and no experience with Heroku but I have this java application I would like to know if I can easily run on Heroku.
https://github.com/difi/oxalis is the github repo and here is some install instructions for a standalone server:
make sure that Maven is installed.
make sure that Tomcat 7 and Metro 2.1.1 are installed
make sure that the Tomcat manager is available on port 8080 with user manager/manager
make sure that Tomcat is also up
and running on SSL at localhost:8443
make sure that keystore.jks is
installed in a known directory (separate instructions for
constructing the keystore)
change
oxalis-commons/src/main/filters/soc.properties to reflect your local
preferences
Is this possible to set up on Heroku?
It seems like it should run on Heroku but a few changes might be necessary. You will not need to run Tomcat with SSL since Heroku provides the HTTPS in front of the Tomcat app. You will probably have to update the Maven build to pull in Tomcat via webapp-runner. The properties file should probably be replaced with Config Vars. The only part that seems like it might be tricky is the Metro piece. It's not clear how Metro is being pulled into the system and used.
I've been assigned the task of tracking down why a webpage is breaking under dotCMS. The page shows an error stack trace with a description that suggests it relates to SQL. I got access to the remote file system and was able to pull up the java file. The sql it is generating is failing when passed to a getResults method. I was wanting to see the value of that string of sql.
Maybe I could create a text file with that value through java. The previous programmer (that left the business) told me that I would need to shut down the server, clean plugins, deploy plugins and re-start the server so the source could be recompiled into jar files. I don't know how to do any of that at this point...and I wonder if those measures should only be taken when I'm deploying the fix.
I know Eclipse has logging abilities because I've dabbled with Android. I didn't know if there is a way that I could somehow remotely connect to the file. I found a tutorial for setting up eclipse with dotcms. It however wants me to check out the official dotcms source to my machine. I guess I don't understand how remote connections work with eclipse and if eclipse could even help with this issue. Noob question for sure!
When you want to run dotCMS from within eclipse it is not that hard. Remember that dotCMS is just tomcat with a default host deployed in it (the dotCMS application). You can download the dotCMS source here: http://dotcms.com/downloads/index.dot. Startup eclipse and add a tomcat server ( It is tomcat 6.0.26 at this moment), pointing the tomcat folder to the tomcat directory in the dotCMS install folder. You can start tomcat from eclipse this way.
You will have to deploy the plugins if you need to debug those. Below I describe it in detail, but dotCMS has a page on this on their official site as well: http://dotcms.com/plugins/plugin-faq.dot#HowInstall
Make sure you have access to the server that dotCMS is deployed on. On windows that would mean a remote desktop, and on linux you'll need ssh. If you have it running in eclipse on your local system then of course you're set already.
After logging in on the server make sure you have apache ant installed on your system. You can check if you have it by typing "ant -version" on the command line (in a dos box on windows). If you have it installed you'll see something like this:
Apache Ant version 1.8.0 compiled on March 11 2010
if you don't have it installed you can download it here: http://ant.apache.org/bindownload.cgi
install ant and make sure you put the /bin folder on the PATH, so you will be able to call ant from all directories
Now check if you have a JAVA jdk installed. You will need a jdk and not only a jre, because building the plugins includes compiling java files into classes. You can check if you have the jdk installed by typing "javac" on the command line. If you don't have it, install the latest java jdk from here : http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u3-download-1501626.html
install the jdk and make sure the /bin folder os on the PATH
Now stop dotCMS
Go to the root of the dotCMS folder and undeploy the plugins using this command:
ant undeploy-plugins
Now build the plugins
ant build-plugins.
And finally deploy them
ant deploy-plugins
Your plugins are redeployed now. You can restart dotCMS.