Simple jhipster app builds and runs, but no admin interface generated - java

I built a simple jhipster app to start a new Spring Application project from. I chose:
Java 7
Local Auth
Postgresql both for production and development
No HTTP sessions
No Websocket
Ehcache
Maven
Grunt
I created the relevant Schemas in Postgresql and started the app with mvn spring-boot:run in the terminal and I get a starting page for my application on localhost. Only the navigation is visible and none of the attached javascripts seems to be running or at least working properly. In the javascript log I get "ReferenceError: angular is not defined". None of the links take me anywhere.
Talking about logs, the startup says the app is using org.jboss.logging. I see no log files. Anyone knows where the logs are? I'm trying to read the source code for log settings, but I can't seem to find the proper settings.
There are no created tables in the database either.
I assume there is a setting I missed somewhere, but I don't have a clue yet. Hopefully I can find the logs soon and get one.
Any ideas how to diagnose this problem is most welcome. Thank you.

Related

How to get started on Google App Engine for current GlassFish solution

I'm currently running my Java application on a GlassFish server on AWS-EB.
Since our front-end is already running on the Google Cloud Platform, I would like to migrate my back-end to GCP as well.
I tried the Jelastic interface but I was not happy with the speed results.
Now I'm looking to deploy my application on the App Engine but when I deploy my current .war file, I get the following error:
Error 404 - Not Found.
No context on this server matched or handled this request.
Contexts known to this server are:
/ ---> o.e.j.w.WebAppContext#7e0b0338{/,file:///var/lib/jetty/webapps/root/,UNAVAILABLE}{/root.war} [failed]
I guess I'm missing something, since GCP is using Jetty as a server.
I'm a bit lost and I hope you guys can point me in the right direction to make this migration successful.
It's suggested here that Jetty requires two configuration files (web.xml and applicationContext.xml).
As well as this, the original poster in the issue above stated that they solved their issue in this GitHub post by rebuilding their project before deploying.

When i try to run the project it says cannot publish to the server because its missing is run time environment

I tried to run my project with google cloud platform but it caused a problem and ended up in a dialog box where it says cannot publish to the server because its missing is run time environment. But i already have my jdk(1.8) and web app libraries configured.
I tried to run my project with google cloud platform
That can mean any number of things. If you were using App Engine, it's likely your config files weren't correct. Check the docs here.

Spring project deploy on real server

I have a Spring MVC project running locally on tomcat right now. What I need to do to be able to run it on my linux server? How can I deploy it? Before I used firezilla(running usual jars) to connect to server using ssh. Please help me by writing easy steps on how to run web application on server, thank you.
There are a lot of answers to this just have to google (i found about 10 in first couple pages that were good).
It all varies based on your environment, build setup etc.
Here is example of deploying with maven to tomcat
http://www.mkyong.com/maven/how-to-deploy-maven-based-war-file-to-tomcat/
and another
http://bitbybitblog.com/deploy-to-tomcat/
Some IDEs also have inbuilt functions that take care of this for you as well.

Taking local Jersey REST service to openshift

I have a REST service, that uses Jersey, deployed on my local machine. The service does not use an ORM. Instead, it uses the JDBC driver to populate models from my MYSQL database. Everything is working as expected and now, I would like to deploy my service onto Openshift. I have read up on how Openshift works and I'm a little confused. I do not have any experience with GIT, so I found myself getting lost when the Openshift website told me to push my application to their servers via GIT.
I am looking to have my REST service, as well as MYSQL database moved to the Openshift server without making changes to my existing code. This is my first time deploying a web service on something other than localhost so any leads, regarding what to do research on to get what I want would be very much appreciated.
I've been using OpenShift to host some personal projects, and I can feel your pain when you get a little lost with how to do it. I had been using Git for awhile though so that helped.
This page. is what helped me get the tools set up for git correctly. They require ruby, and node, so you'll have to install those as well. Once you get everything set up though, you'll basically "Clone" the repository that open shift gives you which will create a local instance of the repositories contents in your computer. You can then use the commands "git add", "git commit" and "git push" which will push your changes back up to their server.
Good instructions exist on this page describing what I just told you. From what you said it looks like you've completed steps 1 + 2, but steps 3 and 4 are still left. You have to have your command line tools set up first however. Let me know if it helps!

Google App Engine Project works in Development Environment but not when Deployed

I am in the process of moving my web website over to google app engine and am having a problem with my site when it is deployed. The application was being hosted on tomcat/mysql and predominately consists of jsp pages. I have read the fallowing google documentation:
http://code.google.com/appengine/docs/java/config/webxml.html
I am unable to get any of the jsp pages to work correctly I keep getting a 500 Server Error
Error: Server Error
The server encountered an error and could not complete your request.
The project works great in the google app engine development environment but doesn't work when deployed it seems like the project isn't getting mapped.
Does anyone have any insight.
When your app raises an uncaught exception, App Engine shows the generic 500 page. In order to see the exception, you need to check the logs for your app in your app's admin console.
So after plenty of research I found the problem to be that some classes that are persisted need to also implement Serializable when you use sessions. For some reason I didn't see this in the documentation or come across it in my initial research.
I guess you have already done this, but you should be able to check if everything is fine locally, by first deploying locally using the app engine development server. http://code.google.com/appengine/docs/java/tools/devserver.html
If you're testing locally on tomcat + mysql, then you can't deploy on the app engine. The Google App Engine not does support SQL databases. Besides that, if you want a more detailed response you need to look at the app engine logs and tell us why it is throwing a 500 at you.

Categories