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

http://localhost:8080/pvws 404NotFound #16

Closed
zhuzzzzzz opened this issue Apr 19, 2023 · 4 comments
Closed

http://localhost:8080/pvws 404NotFound #16

zhuzzzzzz opened this issue Apr 19, 2023 · 4 comments

Comments

@zhuzzzzzz
Copy link

After I deployed the pvws.war package in /webapps/ , it creates a /pvws/ dirctory
But I still cannot access http://localhost:8080/pvws, it suggests 404NotFound.

I tried to look at the log and found this, so what happened and what should I do?

19-Apr-2023 15:27:34.524 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/home/zhu/apache-tomcat/webapps/pvws.war]

19-Apr-2023 15:27:35.186 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file

19-Apr-2023 15:27:35.189 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/pvws] startup failed due to previous errors

19-Apr-2023 15:27:35.200 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/home/zhu/apache-tomcat/webapps/pvws.war] has finished in [675] ms

@kasemir
Copy link
Collaborator

kasemir commented Apr 19, 2023

What's your tomcat version? If it's 10 or higher, see #13

@zhuzzzzzz
Copy link
Author

it is 8.5.87

@kasemir
Copy link
Collaborator

kasemir commented Apr 20, 2023

Tomcat 7 and 9 work fine, so I assume 8 is good as well.

Are you compiling from sources as described in https://github.com/ornl-epics/pvws#building, and then running Tomcat with the same JDK that was used to compile?
Or are you using some binary?
If you're using the "nightly" binary, that's currently built with JDK 15. So if you then try to use that with Tomcat running JDK 11..14, you'll get class file version errors, should see that in the more detailed log.

==> Use at least JDK 15 with the binary, or (preferably) built it yourself.

@zhuzzzzzz
Copy link
Author

It works, Thanks very much
I think it is just the matter of jdk version. I can not successfully bulid the project or run the binary file in tomcat under jdk11 but in jdk17 both of them works.

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