Tamás,
On 11/10/20 13:18, Tamás Barta wrote:
Hi,
I tried to configure Sentry with Tomcat but I failed. I would like to use
the Java Logging appender. I guess I have to add sentry jars to bootstrap
jars, so I created setenv.sh with this content:
jackson-core-2.8.10.jar
sentry-1.7.29.jar
slf4j-api-1.7.24.jar
That's not a valid .sh script. Can you be more specific about what you
did with setenv.sh?
Of course I set logging.properties and sentry system properties too. It
works (I see Sentry entries in server database), but the web application
won't work anymore. Deploying fails with this error message:
10-Nov-2020 19:05:06.846 INFO [localhost-startStop-1]
org.apache.catalina.startup.HostConfig.deployWAR Deploying web application
archive
[/opt/tomcat/apache-tomcat-8.5.23/webapps/ReplicationService-0.0.1-SNAPSHOT.war]
10-Nov-2020 19:05:07.096 SEVERE [localhost-startStop-1]
org.apache.catalina.core.ContainerBase.addChildInternal
ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ReplicationService-0.0.1-SNAPSHOT]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:988)
at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1860)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoClassDefFoundError:
javax/servlet/ServletContainerInitializer
Did you use MAven to build your project? Did it pull-in any dependencies
such as the servlet-api into your application? That shouldn't happen
(Tomcat prevents other JAR files from replacing certain classes,
including anything in javax.servlet.*) but it might cause some errors.
If I remove setenv.sh then the application itself works, but Sentry
doesn't. Do you have any idea why configuring Sentry jars cause this
problem? Why Servlet API won't be found for the app?
I think we're going to need to see what's in your setenv.sh.
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org