tomcat8

Raven DB 4.1.2 hangs on streaming query in Java

眉间皱痕 提交于 2019-12-14 03:06:05
问题 I have a jax-rs-based REST service that I run on Tomcat 8.5 on 64bit Linux, using Java 11; this service connects to a RavenDB 4.1.2 instance, also on the same Linux machine. I make use of the streaming query to return the request result. I use Postman to submit the same request, and everything works well: the results are returned, and rather quickly. However - it only works 10 times. When I submit the same request as previously an 11th time, the results = currentSession.advanced().stream

how to set java -Djava.library.path=“\home\path.SomeFile.so” in linux environment for Tomcat instance?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 22:22:27
问题 How do i set it in the Linux environment? I keep getting the below error. I am assuming its because i have to set the -Djava path . in eclipse i set in the arguments in the run configuration. java.lang.UnsatisfiedLinkError: /opt/apache-tomcat-8.0.33/temp/librocksdbjni1678787310187961141..so: libgflags.so.2: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941) at java

Cannot create JDBC driver of class '' for connect URL 'null" - HikariCP, Tomcat8, PostgreSQL

一世执手 提交于 2019-12-13 20:52:53
问题 Firstly I have never setup a JDBC Pool before (So i am sorry if this seems mundane). I have been trying for some time to solve the problem but to no avail. I have explored the suggested options from various other stackoverflow posts but none have been successful. I have tried: Including the 'pgjdbc-ng' driver only in the /lib of tomcat and moving the context to the catalina home conf/ Swapping to using the example given by Hikari (but received same error) https://github.com/brettwooldridge

Tomcat versions conflicts and problems of compatibility between apache 7.35 and windows 10

爱⌒轻易说出口 提交于 2019-12-13 20:38:51
问题 Introduction This post is related to this one here. I was desperately trying to migrate an app from my organization server to my local machine just to explore the code and get my hands on. This is my first time getting familiar with Tomcat and java servlets things, hence it is a newbie talking to you here. My tries was with tomcat version 7.0.93. and tomcat 8.0.35. With tomcat 8.0.35, the app opens but crashes in the login screen, I guess. With tomcat 7.0.93, the app did not start at all, the

apache tomcat 8 websocket origin and client address

有些话、适合烂在心里 提交于 2019-12-13 18:15:42
问题 H.e.l.l.o community, i hope someone can help me ... i am using apache tomcat 8.0.0-RC5 and JSR-356 web socket API ... I have 2 questions: 1) Is it possible to get the client ip on @OnOpen method ?? 2) Is it possible to get the origin of the connection ??? I followed the websocket example which comes with the distribution of tomcat and i was not able to find the answers .... My java class is basically as follow @ServerEndpoint(value = "/data.socket") public class MyWebSocket { @OnOpen public

Unsafe.defineClass hangs - slow reflection calls

。_饼干妹妹 提交于 2019-12-13 16:42:31
问题 I'm oberserving extreme long running requests (>30s) in a Java 8 / Spring 5 / Tomcat 8.5 web application. The majority of requests responds normally. It's remarkable that the frequency of long runners increases after some days of uptime. Threaddumps show that Unsafe.defineClass is hanging: at sun.misc.Unsafe.defineClass(Native Method) at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:63) at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:399) at sun.reflect

getting Invalid byte tag in constant pool : 19

▼魔方 西西 提交于 2019-12-13 12:34:33
问题 i am creating one webservice and getting error like org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19. i am using tomcat 8.0 and java versoin is 1.8.0.152. 回答1: A constant pool entry with tag type 19 is a module descriptor; see JVM spec table 4.4-A. I think you have attempted to use BCEL on a class compiled with a Java 9 (or later) compiler: The BCEL version you are using doesn't understand the tag. The class wouldn't load in a Java 8 JVM anyway

Apache Tomcat/8.5.3 Manager App 403 error

北慕城南 提交于 2019-12-13 11:37:58
问题 I have tomcat running on an ubuntu instance on aws and I can successfully get to the If you're seeing this, you've successfully installed Tomcat. Congratulations! page but when I click on Manager App I immediately get navigated to the 403 Access Denied page. I've edited the tomcat-users.xml file to have a manager-gui role and even made the user have manager-status, manager-script, as well. Then I shut down the server using bin/shutdown.sh , navigated to the page to check that it was actually

Tomcat8 use the app as ROOT.war

烂漫一生 提交于 2019-12-13 09:36:35
问题 I was working with Tomcat7 on GoDaddy server, and in order to use my app as the ROOT context, I deleted the ROOT folder that was there and moved my app which I called it ROOT.war and was deployed to ROOT folder. I tried the same approach, now with tomcat8 on Amazon ubuntu server, but it doesn't work. When I navigate to myip:8080/ I get error in the javascript console that it's not found and navigating to myip:8080/index.html gives me an empty page. What is the difference between tomcat8 and

Tomcat8 Spring MVC4 maven jsp source code displayed instead of content

独自空忆成欢 提交于 2019-12-13 08:08:03
问题 I am trying to build and deploy the Spring MVC web application from My MacBook Air. Created the maven project and added all the necessary files for the project. Able to build the project and deploy to Tomcat 8 via maven pom.xml. When I access the page it just shows me the jsp code as it is instead of content. I could not able to see the generated servlet file out tomcat work folder. Since am deploying the files via maven I don't think it can hide in my eclipse workspace. I went through