Questions tagged [tomcat]

Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

Unable to start tomcat server with service start

I installed tomcat on ubuntu using the command: sudo apt install tomcat9 But I am unable to run it with any command like sudo service tomcat start sudo service tomcat9 start It gives an error tomcat9:...
user avatar
1 vote
0 answers
25 views

Tomcat does not allow URL with %00, is there a switch to turn off the check?

I am using Servlet and tomcat to build an HTTP Middleware that intercepts HTTP requests, logs them, and probably rewrites them. I notice that when the request URL contains %00 like the following: /...
user avatar
  • 123
0 votes
0 answers
51 views

How to Stop Spring boot applications console logs in var/log/messages file

We're using spring boot applications and log4j2 for logging. We have specified the log path for logging console(application) logs in certain path and it is working. But the same console logs are ...
user avatar
0 votes
1 answer
587 views

Apache Web Server port 443 and Tomcat port 8080, redirect not working

I have a Java web application on CentOS on Google Cloud. I can access my web app with http://mydomain:8080. I wish https://mydomain (without 8080 in URL) to lead to application, but instead, I just ...
user avatar
0 votes
0 answers
20 views

Tomcat looking for the classpath in the wrong place

I have installed tomcat 9 on CentOS 7, location is /opt/tomcat. It works. But when I wanted to shut it down and to start it again when I used shutdown.sh in my /opt/tomcat/bin folder, I got the error: ...
user avatar
0 votes
0 answers
21 views

NGINX fails to rewrite 302 in proxed Tocmat application

I have a strange issue with nginx failing to rewrite 302s in my java application. This is my location block, location = / { rewrite ^ /vcssPanel-0.4.2-SNAPSHOT/ last; } location / { ...
user avatar
0 votes
1 answer
367 views

Tomcat 9 not executing setenv.sh on start up

I've created setenv.sh to my CATALINA_BASE folder which is at /usr/share/tomcat9/ but the setenv.sh is in /usr/share/tomcat9/bin setenv.sh content: echo "HELLO ITS WORKING" export ...
user avatar
0 votes
0 answers
118 views

Can't connect to Tomcat via Apache HTTP Server using mod_jk

Issue: I can't connect to my Apache Tomcat site through the Apache HTTP Server using the mod_jk. I can access the Tomcat website when I define the URL with the port number, example: http://localhost:...
user avatar
  • 101
0 votes
1 answer
48 views

Wants to run two webserver on tomcat at port 8080 and 7070 without opening this port in security group of EC2

I am running two webserver on tomcat version 9 using port 8080 and 7070 on same EC2 . 1st tomcat : <Connector port="7070" protocol="HTTP/1.1" connectionTimeout=&...
user avatar
0 votes
0 answers
11 views

The same war file acts differently on two instances of tomcat. What can be a cause?

I am in the process of deploying a new version of the program into my server. It requires building a maven project which will result in creating a deployable war file. The thing is that I am doing ...
user avatar
  • 1
2 votes
1 answer
216 views

Tomcat doesn't use latest Java version

I have Java 8 v171. Few month ago, I have installed Tomcat 8.5.50. Now, I need to upgrade my Java version. Now, I have Java 8 v171 and Java 8 v301. Output of java -version: java version "1.8....
user avatar
  • 135
0 votes
0 answers
11 views

Unable to open document when going to webapp through load balance

One fileserver Server 1 Tomcat instance on port 8080 Server 2 Tomcat instance on port 9080 Server 1 and Server 2 load balanced on a vip through F5 Problem: When user attempts to retrieve a document ...
user avatar
  • 1
2 votes
2 answers
641 views

Tomcat 400 Bad Request: How to accept < (less than sign) on URI?

When I send this request to Tomcat it is working http://example.org/?foo=%3Cbar/%3E But this one gives "400 Bad Request" http://example.org/?foo=<bar/> I do know that the request is ...
user avatar
  • 130
0 votes
1 answer
160 views

Apache tomcat 9 SSL connector: have to manually write https:// the first attempt on a browser

thanks in advance for any help. I've set up an apache tomcat 9 environment to access my site with an SSL certificate. The issue is that I need it to be able to access to the site by just typing in the ...
user avatar
0 votes
1 answer
2k views

Change default path for VS Code workspace files [workspaceStorage]?

I am desperately trying to debug a Java Tomcat application, run in a local network of an enterprise, using VS Code, and am using a Tomcat extension to do the job: The Tomcat extension saves a ...
user avatar
  • 103
0 votes
1 answer
39 views

What happens when exception occurs in a thread in tomcat

I want to know how Tomcat works. As I know Tomcat assigns a thread when receiving a request from clients. Then what happens when exception occurs in a thread in tomcat? All threads in tomcat die due ...
user avatar
  • 123
0 votes
1 answer
201 views

What do I need to get rid of Permission denied error on Linux?

I have tomcat installed in /opt/tomcat and would like to get access to sub-folders for user 'mck'. mck@hp15-pc:/opt/tomcat$ ls bin ls: cannot open directory 'bin': Permission denied mck@hp15-pc:/opt/...
user avatar
  • 1
0 votes
1 answer
623 views

selinux is preventing from execute access on the file centos

I want to launch the Tomcat service on CentOS with the cmdlet : systemctl start tomcat.service but i get the error Failed to start Apache ExecStart=/opt/tomcat/bin/startup.sh (code=exited, status=...
user avatar
0 votes
1 answer
9k views

I run Tomcat 9 and it keeps saying: GRAVE: A child container failed during start

GRAVE: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]...
user avatar
0 votes
1 answer
1k views

Cannot connect to Tomcat server from outside network

I cannot connect to my Apache Tomcat server from outside network. I can do a localhost:8080 from a browser and it returns a page. I can also use the internal and public ip addresses and it works - ...
user avatar
  • 121
0 votes
1 answer
2k views

How to block a port on localhost?

Here's my scenario: I have an Apache load balancer in front of two Tomcats (this is on Windows). Periodically I'd like to ensure that traffic gets routed to a specific Tomcat. Stopping one Tomcat is ...
user avatar
  • 235
0 votes
1 answer
92 views

tomcat with does start with SSL arguments for JMX

I have Tomcat 8.0.23 (I know, should be upgraded) running on CentOS and I need to set up JMX with authentication and SSL. I am able to connect with SSL and with password through SSL tunnel from my ...
user avatar
1 vote
1 answer
231 views

Keeping the processes running even after exiting SSH to a windows machine

I am connecting to a remote machine through OpenSSH client from Windows 10. It is an Open SSH server installed on Windows server 2016. I usually run tomcat 7 from such ssh session. But, as soon as ...
user avatar
  • 111
0 votes
1 answer
479 views

Windows Service rundll32.exe always listening on port8080, even when stopped

I have a problem when i start my Java application by Spring (using tomcat), the port 8080 is allready listening by a service, which is "rundll32.exe", apparently a legitime file from system32, but ...
user avatar
  • 1
0 votes
0 answers
21 views

Apache-tomcat stops at regular intervals

I need to start tomcat every morning. One thing I suspect is there is a crontab written to clear the Catalina.out at Midnight, does it lead to stopping of tomcat by any means? echo '' > /opt/apache-...
user avatar
  • 1
0 votes
1 answer
2k views

tomcat-service can't start access denied

I am using Tomcat on a Windows server and faced a problem while updating the tomcat version. The problem is that the assgined user doesn't have the rights to start Tomcat. Here my attempts with ...
user avatar
0 votes
0 answers
27 views

Launch tomcat as service

I have a question, currently my webapp are launched as the service. They have added the webapp in the init.d and all app have an entry in init.d. For me this way is bad So for each webapp I have new ...
user avatar
  • 13
1 vote
1 answer
183 views

Difference between httpd and tomcat

What is the generic difference between the two processes on a linux box ? I always thought they are the same thing, basically a web server so the users have some ui where they can make requests.
user avatar
  • 31
1 vote
1 answer
221 views

Restart ea-tomcat85 from crontab

I have written a script to restart tomcat service # timestamp ts=`date +%m-%d-%Y_%H:%M:%S` echo "$ts: Restarting ea-tomcat85..." &>> /home/account_name/restartservice.log ubic restart ea-...
user avatar
  • 111
1 vote
1 answer
62 views

Tomcat 7 starts up my SSL-secured port without erroring, but is still not publicly accessible. How do I debug this?

At my job I have been tasked with securing a website (http -> https) I am new to this, so forgive me if my terminology is wrong. I've spent the past week setting up Tomcat's keystores and configuring ...
user avatar
1 vote
1 answer
4k views

Apache Guacamole Invalid Login

Very new to Guacamole but I do understand how it works. I'm fairly certain I've installed and configured everything correctly but I am getting an invalid login message when I try to log in, even with ...
user avatar
0 votes
0 answers
2k views

Oracle APEX Ords restful services

I've got the errors validate ords.war in a test nodes. I have the exact same config for ords_params.properties in another node but one is working. INFO: Error cannot validate ORDS: Error the ...
user avatar
1 vote
1 answer
1k views

sometimes nginx return 501 error

I have a problem that nginx returns 501 error or 200 OK for same requests. I don't know why. I guess nginx doesn't have enough connections for upstream.(I connect nginx and tomcat by reverse proxy. ...
user avatar
  • 11
0 votes
1 answer
860 views

How to configure Tomcat to use SSL encryption with the private key stored on a remote server?

I want to know if there is a way to configure Tomcat server.xml to use the SSL encryption with a private key stored remotely on a server I can imagine the server configuration would be something like ...
user avatar
2 votes
3 answers
6k views

Add TomCat to XAMPP installation

Months ago I've instelled XAMPP to my windows 10 computer with only: Apache MySQL but now, I need install TOMCAT. Actually I have 3 projects on my htdocs froder, what would be the best way to add ...
user avatar
  • 145
1 vote
1 answer
382 views

Can't find X-Frame-Options in Tomcat 8.0.12

I have Tomcat 8.0.12 installed on a Centos 7 server and I am trying to set the "X-Frame-Options" to tighten security. I do not see it in web.xml or server.xml. Is there somewhere else to set it? Does ...
user avatar
0 votes
1 answer
7k views

Tomcat failed to start on Netbeans

I have a problem with starting Apache Tomcat 9 from Netbeans 11 (on 8.2 version I had the same troubles. Where I used Apache Tomcat 8). What I have tried: Removed quotation marks in catalina.bat. ...
user avatar
0 votes
1 answer
41 views

How to install TLS certificate on tomcat that way so it is able to connect to two-way-ssl application

I'm trying to integrate with webservice that uses two-way ssl. And I need to install the TLS certificate on my tomcat. Tomcat version is 8.5. TLS certificate is in .p12 format.
user avatar
0 votes
0 answers
97 views

trouble in eclipce with tomcat

i want to start tomcat server in eclipse and I got this message: I got this error message in the console sept. 22, 2019 7:55:32 PM org.apache.catalina.startup.VersionLoggerListener log INFOS: ...
user avatar
0 votes
0 answers
106 views

Tomcat 8.5 does not start as a service in a Windows environment within VMWare

I have installed tomcat 8.5 on a windows machine inside a VMWare with OpenJDK11 from AdoptOpenJDK. When I start tomcat from command prompt the server starts up without any issues. However, when I ...
user avatar
  • 119
0 votes
1 answer
78 views

Tomcat server is not detecting JARs

I am running a Tomcat server for my project. I kept my required JARs in ROOT/WEB-INF/classes. But when I start my server and send some requests, I am getting classNotFoundExceptions. Although, when I ...
user avatar
0 votes
1 answer
426 views

Tomcat 9 change port number

Could anyone help me to solve this issue? Recently setting up the geo-server for storing the data, did couple research and was told need to change the port number from 8080 to 80 in tomcat because of ...
user avatar
0 votes
1 answer
543 views

Tomcat crashed with unexpected error

Tomcat server crashed with the unexpected error detected by the java virtual machine. And hs_err_pid.log file was also generated during the crash. hs_err_pid log file captured 'V [libjvm.so+...
user avatar
  • 13
2 votes
1 answer
26 views

How to reset JDPA environmental variable on UBUNTU 18.04?

I set Tomcat debug mode port in Intellij. However, because could not see it running I set it again from the terminal. Since then I cannot run debug at all. I tried to solve by deleting my settings ...
user avatar
  • 21
0 votes
1 answer
5k views

How to get access to the WEB-INF/views/some.jsp? spring mvc

I successfully deployed my webapp to the Tomcat localhost. My app has 2 pages: localhost:8080/spring-mvc and localhost:8080/home. The first page has a link to the second. When I start my app, it ...
user avatar
0 votes
0 answers
50 views

Intellij tomcat Input Console

I have a project in Intellij with tomcat server. In this project I have a thread with a localshell who read console input (System.in). In Eclipse I can typing in my console and localshell read system....
user avatar
1 vote
2 answers
1k views

403 issue in Chrome only

I've been banging my head trying to figure out a 403 issue only with Chrome. I have a application running in tomcat8 and I front it with Nginx. The machine are hosted with a client and I suspect maybe ...
user avatar
0 votes
1 answer
836 views

MariaDB, tomcat connection pool access denied Error

First of all, I am sorry, I am not good at English. Hi! I have some problems about connecting mariaDB from Java web project using tomcat connection pool and JNDI. Here are Exception logs from ...
user avatar
0 votes
1 answer
68 views

Serving three tomcat instances on the same linux machine by one apache-http-server

I am trying to serve three tomcat instances on the same linux machine by one apache-http-server. App1 on tomcat listening to 8080, App2 listening to 8081 and App3 on 8082. There should be three ...
user avatar
1 vote
0 answers
95 views

Access Adminer on CentOS with Apache web server and Tomcat installed

I have a VPS running CentOS 7. I got it a month ago to run a website for a local club. I have had quite some issues with getting it running, but after a few days finally everything worked. What I did: ...
user avatar
  • 11

1
2 3 4 5 6