tomcat8

How deploy geoserver web archive with apache tomcat 8?

白昼怎懂夜的黑 提交于 2019-12-07 05:41:01
问题 I want to run geoserver web archive in my tomcat web server. I'm using tomcat 8. I download GeoServer 2.7.1.1 web archive from geoserver. When I want to deploy the war file, Error occurs as follow: But when I deploy another war application, it deployed correctly. Where is problem? 回答1: The reason for this is because, Tomcat WebServer has a size limit of 50 mb max which is smaller than Geoserver war file. All you need to do is to modify DIR\webapps\manager\WEB-INF\web.xml and modify the

Parallel stream doesn't set Thread.contextClassLoader after tomcat upgrade

不问归期 提交于 2019-12-07 03:59:25
问题 After tomcat upgrade from 8.5.6 to 8.5.28 parallel stream stopped supplying Threads with contextClassLoader: Because of it Warmer::run can't load classes in it. warmers.parallelStream().forEach(Warmer::run); Do you have any ideas what Tomcat was supplying for contextClassLoaders for new Threads? ParallelStream uses ForkJoinPool in newest Tomcat. 回答1: Common ForkJoin pool is problematic and could be responsible for memory leaks and for applications being able to load classes and resources from

Webapp won't run uder Tomcat 8.0.23

旧城冷巷雨未停 提交于 2019-12-07 01:59:29
I have a web App running in tomcat 7 and tomcat 6. But when I try to migrate to tomcat 8 it won't let me, there are some exceptions like this one: javax.servlet.ServletException: La ejecución del Servlet lanzó una excepción at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:314) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org

Tomcat 8 Examples: Missing Configuration Step

被刻印的时光 ゝ 提交于 2019-12-06 10:05:41
I'm trying to set up the "Echo" websocket example on Tomcat 8. I believe I am missing the step where you tell tomcat about the websocket classes. Here's what I have done: Created a new dynamic web project in Eclipse, added maven, and linked tomcat 8 runtimes Copied EchoAnotation.java, EchoEndpoint.java, ExamplesConfig.java, and echo.xhtml into the project. Started the app. When I start the app, I can navigate to the echo.xhtml file, but no matter what url I enter, I can't seem to figure out how to get to web sockets--I always get 404. Putting breakpoints in the constructors, it looks like the

How to increase JVM memory on Tomcat 8

我只是一个虾纸丫 提交于 2019-12-06 08:33:55
问题 does someone knows how to increase the JVM on Tomcat 8? cause it changed from the previously version, I use to change it into the Tomcat/bin/catalina file in the following parameter: set LOGGING_CONFIG=-Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties" -Xms1024M -Xmx2048M but for Tomcat 8 is not working anymore. Thanks in advance 回答1: You need to create file under Tomcat home \ bin directory if windows then setenv.bat and if linux/unix then setenv.sh and write below

Google-Cloud: Jetty ALPN/NPN has not been properly configured

南笙酒味 提交于 2019-12-06 07:21:41
问题 Getting exception whilst using Google Pubsub to list topics, my web application is running on tomcat. public static List<String> listTopics(GcpCredentials gcCredentials, String project) throws GCPException, IOException { List<String> topics = new ArrayList<>(); TopicAdminClient client = getTopicClient(gcCredentials); ProjectName projectName = ProjectName.create(project); ListTopicsPagedResponse response = client.listTopics(projectName); for (Topic topic :response.iterateAll()) { topics.add

getting Invalid byte tag in constant pool : 19

老子叫甜甜 提交于 2019-12-06 04:34:25
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. 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. Modules were only introduced in Java 9, and the class file's major version number should be too recent

Have Tomcat handle websocket calls in parallel, using different threads

懵懂的女人 提交于 2019-12-06 04:30:18
I have a Tomcat 8 websocket application and noticed a certain behavior when handling websocket client calls. Some details: http-nio-8080-exec-3 - 18:50:56 <-- this takes 30 seconds http-nio-8080-exec-3 - 18:50:56 <--+ http-nio-8080-exec-3 - 18:50:56 | http-nio-8080-exec-3 - 18:50:56 | http-nio-8080-exec-3 - 18:50:56 | http-nio-8080-exec-3 - 18:50:56 | http-nio-8080-exec-3 - 18:50:56 | http-nio-8080-exec-3 - 18:50:56 | http-nio-8080-exec-3 - 18:50:56 | http-nio-8080-exec-3 - 18:50:56 | http-nio-8080-exec-3 - 18:50:56 |- these take less than a http-nio-8080-exec-3 - 18:50:56 | second but get

Apache Tomcat 8.5 . Error: Service terminated with service specific error incorrect function

五迷三道 提交于 2019-12-06 03:44:18
问题 i have installed apache tomcat 8.5 one month ago with java 1.8 on Windows Server 2008 and it works ok. now the service is stopped and i'm not able to restart it from apache configuration or Windows Services . It is always stopped. i got the following error: "service terminated with service specific error incorrect function". ther error in Windows Event viewer does not saying nothing more: even its details tab: What can i do? 回答1: I was trying to install Apache Tomcat/8.5.31 as Windows service

Severe security constraints while tomcat 8 startup with liferay

混江龙づ霸主 提交于 2019-12-05 22:35:30
问题 I am getting the below severe message while the tomcat 8 comes up with liferay. SEVERE [localhost-startStop-1] org.apache.tomcat.util.descriptor.web.SecurityConstraint.findUncoveredHttpMethods For security constraints with URL pattern [/bg/c/portal/protected] only the HTTP methods [POST GET] are covered. All other methods are uncovered. 03-Sep-2015 07:06:00.733 SEVERE [localhost-startStop-1] org.apache.tomcat.util.descriptor.web.SecurityConstraint.findUncoveredHttpMethods For security