Score:0

Java App Only Displays Directory List - server misconfiguration?

cn flag

The library where I work is seeking to implement a lightweight Java app. It's an open source project, available here . Our IT department gave us a basic Linux server running Jetty 10 (I then installed Apache Maven). According to the app's ReadMe file all one should need to do is clone the repo, start the server, and go to /import. In the developer's words "it should just work".

It does not, as you can guess, work at all. My strategy has been to use "mvn package" to build a .war file and then drop it in the /webapps directory. The build process works and I can navigate to the context just fine (it shows up as /order since that is what we called the directory on the server where the app source code lives). However all we can see is a list of three directories and no app. When I follow the directions strictly and use "mvn jetty:run" from the app's source code directory, the build succeeds, but receive a failure to connect error if I try to navigate to /import (this also happens if I put the app source code in the webapps directory and then use "mvn jetty:run".

According to the developers they have the app running behind a reverse proxy. I'm aware the readme file mentions this, but we have only a single instance of the app so this doesn't seem to apply for us. We don't use Docker on campus so the instructions for creating a Docker image don't help. The Jetty documentation and several tutorials I have read, as well as my own communication with the developers, indicate the deployment process should be simple.

So either:

  1. We did not configure the server correctly. Our configuration is very basic, though, and I wonder if there is something we didn't do right. We have the deploy, http, jsp, and server modules installed which seems to be enough.
  2. I'm missing something. The documentation for Apache Maven, Jetty, and the Readme for the Order Import Tool itself indicate the basic deployment process is to build the .war file and drop it in the /webapps directory (or for Maven use the install and deploy commands, but the latter results in an error when I run it). However I am also unfamiliar with Java in general and Jetty in particular. So I wonder if I'm not seeing something obvious.
  3. The app is weird.

Any help would be much appreciated. I managed to get the app partially working last summer, but can't quite recall exactly what I did right.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.