-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jetty doesn't recognize Oskari /webapps/ or war #320
Comments
You can use Tomcat if you are more familiar with it (Just copy the oskari-ext.properties under tomcat-instance/lib and if you name oskari-map.war as ROOT.war under webapps, it runs as the root webapp). In fact we might change our packaging on the next version and replace Jetty with Tomcat. The line where you get the JDBC driver looks a bit funky with md-link formatting involved somehow? You probably have it, but just making sure that you have your sample-application/package.json referencing "oskari-frontend" with "../oskari-frontend" because it would fail with Both the oskari-front.xml and oskari-map.xml should provide something to run for the Jetty so I'm not sure what could be the issue. Maybe check that they link to the proper file under $JETTY_BASE/sample-application for the frontend (https://github.com/oskariorg/sample-configs/blob/master/jetty-9/oskari-server/webapps/oskari-front.xml#L13) and oskari-map.war on the webapps (https://github.com/oskariorg/sample-configs/blob/master/jetty-9/oskari-server/webapps/oskari-map.xml#L22). I have a very brief Docker experiment here https://github.com/zakarfin/oskari-docker/ that apparently still works. I haven't tested it out recently. But maybe you can use it as base and expand step by step. Looks like you are on the right tracks as you basically just set a container for Jetty and shovel in the Oskari-based application to run as a regular Java webapp. What you might be missing is a database that the webapp connects to. You can try setting this setting to true |
Another link that might help, this is the template for our downloadable zip: https://github.com/oskariorg/sample-configs/tree/master/jetty-9 so you can see what is where and with the same content that you get on our zip-file. Just the code is compiled and shoveled on top of that to make the zip complete. |
Hey... I can't figure out this issue... I am new to java, and I am trying to containerize oskari.
I have all the source code in my local repo. I want all the src to be local, and not pull from github. I changed the package.json accordingly. Here is my dockerfile:
From what I understand, I am installing all the dependencies, then building a war file. I place the war file in the root of the webapps directory for jetty, (which I assume is what makes http 8080 reachable with app code), and this is what I get when I run the container on ecs fargate:
I was using tomcat before, but the documentation includes the jetty zip. What am I missing here? Why would jetty say that there is nothing to start, if the npm install & war files when in the right directories should start hosting the app on port 8080?
The text was updated successfully, but these errors were encountered: