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

Unable to run project war in tomcat #220

Open
ssrrandj opened this issue Jul 30, 2024 · 9 comments
Open

Unable to run project war in tomcat #220

ssrrandj opened this issue Jul 30, 2024 · 9 comments

Comments

@ssrrandj
Copy link

Hi All,

Any body is having issues while running project.war file in tomcat. My problem is unable to run project in tomcat. Please respond on this

@YagneshTrainer
Copy link

YagneshTrainer commented Jul 30, 2024 via email

@ssrrandj
Copy link
Author

Iam trying with tomcat 9 and 10 to host vprofile(aws-LiftAndShift) project but it seems like tomcat is getting some error while parsing project the result is its not displaying in browser. When check logs found this error.

SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class [org.springframework.web.context.ContextLoaderListener]
java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener

@YagneshTrainer
Copy link

YagneshTrainer commented Jul 30, 2024 via email

@ssrrandj
Copy link
Author

Were you able to build the artifact successfully? The error is pointing to a missing or mismatch of java.servlet library. I would be checking Pom.xml for further investigation.

On Tue, 30 Jul 2024 at 7:03 PM, ssrrandj @.> wrote: Iam trying with tomcat 9 and 10 to host vprofile(aws-LiftAndShift) project but it seems like tomcat is getting some error while parsing project the result is its not displaying in browser. When check logs found this error. SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Error configuring application listener of class [org.springframework.web.context.ContextLoaderListener] java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener — Reply to this email directly, view it on GitHub <#220 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7XBBXMNNH6CDIEIRPIGIGDZO6IY7AVCNFSM6AAAAABLWIEH22VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJYGM3DGOBVGI . You are receiving this because you commented.Message ID: @.>

Yes iam able to build artifact. Thanks

@YagneshTrainer
Copy link

YagneshTrainer commented Jul 30, 2024 via email

@ssrrandj
Copy link
Author

I can share the logs. I tried my best but unable to find the cause. Also please check web.xml file once and project directory structure.

@ssrrandj
Copy link
Author

tomcat localhost.log

Error creating bean with name 'userRepository': Invocation of init method failed; nested exception is java.lang.IllegalStateException: java.lang.reflect.InaccessibleObjectException: Unable to make java.lang.invoke.MethodHandles$Lookup(java.lang.Class) accessible: module java.base does not "opens java.lang.invoke" to unnamed module @2588edc.

localhost_access_log.2024-07-30.txt
49.204.13.112 - - [30/Jul/2024:13:49:53 +0000] "GET / HTTP/1.1" 200 11230
49.204.13.112 - - [30/Jul/2024:13:49:54 +0000] "GET /tomcat.css HTTP/1.1" 200 5584
49.204.13.112 - - [30/Jul/2024:13:49:54 +0000] "GET /tomcat.svg HTTP/1.1" 200 67795
49.204.13.112 - - [30/Jul/2024:13:49:54 +0000] "GET /bg-nav.png HTTP/1.1" 200 1401
49.204.13.112 - - [30/Jul/2024:13:49:54 +0000] "GET /bg-upper.png HTTP/1.1" 200 3103
49.204.13.112 - - [30/Jul/2024:13:49:54 +0000] "GET /bg-middle.png HTTP/1.1" 200 1918
49.204.13.112 - - [30/Jul/2024:13:49:54 +0000] "GET /bg-button.png HTTP/1.1" 200 713
49.204.13.112 - - [30/Jul/2024:13:49:54 +0000] "GET /asf-logo-wide.svg HTTP/1.1" 200 27235
49.204.13.112 - - [30/Jul/2024:13:50:45 +0000] "GET / HTTP/1.1" 200 11230
49.204.13.112 - - [30/Jul/2024:13:56:18 +0000] "GET / HTTP/1.1" 404 682
45.165.225.247 - - [30/Jul/2024:13:57:35 +0000] "GET / HTTP/1.1" 404 682

@ssrrandj
Copy link
Author

Iam able to build war file but with most errors.

Caused by: java.io.IOException: Error while instrumenting sun/nio/cs/ext/IBM1097.
at org.jacoco.agent.rt.internal_035b120.core.instr.Instrumenter.instrumentError(Instrumenter.java:158)
at org.jacoco.agent.rt.internal_035b120.core.instr.Instrumenter.instrument(Instrumenter.java:108)
at org.jacoco.agent.rt.internal_035b120.CoverageTransformer.transform(CoverageTransformer.java:91)
... 58 more
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 61
at org.jacoco.agent.rt.internal_035b120.asm.ClassReader.(ClassReader.java:195)
at org.jacoco.agent.rt.internal_035b120.asm.ClassReader.(ClassReader.java:176)
at org.jacoco.agent.rt.internal_035b120.asm.ClassReader.(ClassReader.java:162)
at org.jacoco.agent.rt.internal_035b120.core.internal.instr.InstrSupport.classReaderFor(InstrSupport.java:279)
at org.jacoco.agent.rt.internal_035b120.core.instr.Instrumenter.instrument(Instrumenter.java:74)
at org.jacoco.agent.rt.internal_035b120.core.instr.Instrumenter.instrument(Instrumenter.java:106)

This is just some part of error log while building war out of vproject

@ssrrandj
Copy link
Author

build.log
Attaching log. Please check and see if that can help to trace out the issue.

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