Skip to content
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

Running the legacy app in Tomcat or Glassfish #1

Open
LaughingLemon opened this issue Oct 13, 2016 · 3 comments
Open

Running the legacy app in Tomcat or Glassfish #1

LaughingLemon opened this issue Oct 13, 2016 · 3 comments

Comments

@LaughingLemon
Copy link

When I try to run the initial application in a server, either Tomcat or Glassfish, I get a 404 error, resource not found. It's looking for http://localhost:7865/app/index.html. Is this intentional?

@mdeinum
Copy link
Owner

mdeinum commented Oct 13, 2016

What is looking for that URL? It should deploy and I suspect it should be port 8080 instead of what you have now. But if I recall correctly (it has been a while I looked at this) there is nothing setting the port to 7865.

There is only a redirect in the index.jsp which redirects to /app/index.html. Which could be problematic as it redirects to the ROOT / and not the current context.

Could you try changing the content of index.jsp to

<% response.sendRedirect(request.getContextPath() + "/app/index.html"); %>

When doing this webinar I deployed the app as the root application and not a specific URL. This should fix that.

@LaughingLemon
Copy link
Author

Cheers for that. I got to roughly the same place by a different path. Simply:

<% response.sendRedirect("app/index.html"); %>

But yours is more elegant and robst

@mdeinum
Copy link
Owner

mdeinum commented Oct 14, 2016

While doing the demo I was running the app as / so it didn't matter. You might also want to check the different .jsp files as those don't use a full path either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants