Questions tagged [tomcat]
14439 questions
0
votes
0
answer
3
Views
Redirect loop while logged in to jaspersoft
I have installed jasperserver on tomcat 8 on Windows. I want to let user access this via NGinx as reverse proxy. I have installed nginx and created a serverfile for jaspersoft. Everything looks fine when I access the URL of jaspersoft. But as soon as I am logged in I am being redirected from 'https:...
0
votes
0
answer
2
Views
web application in linux environment throws javax.ejb.ConcurrentAccessTimeoutException Unable to get read lock on singleton ejb method
I have deployed EJB web application in tomcat,linux machine. This application connects to AWS RDS through JNDI lookup that presents in @singleton ejb class. Every minute my application prints the DB content in console. In initial startup of application, DB connection is achieved once using @PostCons...
1
votes
2
answer
2k
Views
How to increase Maximum Memory Pool Size? Apache Tomcat 9
I am trying to increase my Maximum memory pool in Apache tomcat config.
I am using Geo-server services with the help of Apache, however my memory in Geo-server is filling very fast. All the time I have to free memory from Geo-server Server Status.
I have to increase my memory to 2048 maximum by sto...
0
votes
0
answer
6
Views
Exception in thread “main” java.lang.IllegalArgumentException: PWC6309: Illegal compilerSourceVM: 12
I tried to run this below code:
JSP Page
Hello World!
But the IDE show me an error:
Exception in thread 'main' java.lang.IllegalArgumentException: PWC6309: Illegal compilerSourceVM: 12
at org.apache.jasper.JspC.setCompilerSourceVM(JspC.java:724)
at org.netbeans.modules.web.project.ant.JspC.main(JspC...
1
votes
0
answer
6
Views
A fatal error has been detected by the Java Runtime Environment: SIGSEGV (0xb) at pc=0x00007f2d738e4137, pid=15464, tid=0x00007f2df6df9700
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fe8384b42be, pid=27917, tid=0x00007fe83b3fb700**strong text**
# JRE version: OpenJDK Runtime Environment (8.0_191-b12) (build 1.8.0_191-b12)
# Java VM: OpenJDK 64-Bit Server VM (25.191-b12 mixed mode l...
1
votes
0
answer
7
Views
Configuring Tomcat to use kerberos enabled proxy
I am running a Tomcat web app that needs access to an external website through a proxy but I'm having difficulties finding instructions for this circumstance. Do I need to create the krb5.ini file and make tomcat aware of the kerberos environment or should the windows Tomcat service authenticate?
1
votes
0
answer
8
Views
Tomcat virtual host with websocket “http_upgrade” configuration
I have a java application with web socket running on 8080 port on my server through tomcat like http://localhost:8080/application. But i am facing problem connecting to web socket i had it working fine with nginx with below code and want similar configuration for tomcat. Please keep in mind there is...
1
votes
1
answer
7.4k
Views
The specified service does not exist as an installed service
I am getting this error from tomcat:
The specified service does not exist as an installed service.
Unable to open the service “tomcat8”
Then application will not start at all,
So I opened command line and installed the service:
tomcat8.exe //IS//tomcat_8_ServiceName
But still facing the sa...
1
votes
2
answer
1.5k
Views
Remote Debugging with JPDA won't connect to Tomcat through eclipse when using Docker-Compose
I'm very new to Docker so this could be something simple I'm doing wrong.
With all the solutions out there I've been able to get remote debugging working with eclipse when using 'Docker run' to launch the Tomcat container.
docker run -it --rm -e JPDA_ADDRESS=8000 -e JPDA_TRANSPORT=dt_socket -p 8888:...
1
votes
2
answer
2.8k
Views
Invalid byte tag in constant pool: 19 error message
This error message shows that the Tomcat is 8.0.30, and I am using JDK 8. I am creating a Spring-boot project. Some suggested that JDK 8 should be used but I indeed am using JDK 8. What's the problem here?
信息: Starting Servlet Engine: Apache Tomcat/8.0.30
十月 18, 2018 12:26:19 下午 org.apac...
1
votes
2
answer
302
Views
Springboot shutdown automatically and restart automatically .
I encounter a problem that my springboot project will shutdown and restart automatically.
Before that problem, the program finish schedule job, this scheduling job will read data from redis and then compare with local backup file, if any new data coming up, the program will write to local backup f...
1
votes
1
answer
2.4k
Views
upgrade Spring Boot parent starter from 1.5 into 2.1.1.Release
Getting this below exception as i am trying to upgrade by Spring Boot parent starter from 1.5 into 2.1.1.Release, but not getting any compilation or any Exception in my Project. Is that i am missing anything here.
Exception in thread 'main' java.lang.AbstractMethodError: org.springframework.boot.con...
1
votes
2
answer
104
Views
Singleton Database Class for JDBC Pool using Apache Tomcat JDBC
I am trying to configure a singleton database class to allow connection pooling against Oracle XE 18c database using JDK8 and Tomcat7.
I can not compile the source because of the following error:
unreported exception SQLException; must be caught or declared to be
thrown
Class source code:
package co...
1
votes
1
answer
30
Views
Tomcat throws java.lang.IndexOutOfBoundsException
I am running a simple web project.In one of my servlet i get the user's parameters from the form and run getIf method of my UserDao class which returns all the users from the database that match some kind of a condition.
Here is the code of the getIf code:
@Override
public synchronized List getIf(Us...
1
votes
0
answer
1.2k
Views
X-Frame-Options Header Not Set in Apache Tomcat 8.5.9
I am using Apache Tomcat 8.5.9 server for Java Web application with struts2, spring and spring-security. While doing security testing using 'Zap 2.7.0 security scanning Tool' I got following errors in a scanning report of my web application.
X-Frame-Options Header Not Set
Web Browser XSS Protection...
1
votes
0
answer
441
Views
Running a Tomcat embedded Java app
I'm trying to build and run a minimal Java app with embedded Tomcat but I'm having some difficulties (as outlined at the bottom).
I'm trying to keep the configuration to a minimum, so if a value doesn't need to be set because the default value is already the required value, or a dependency already i...
1
votes
0
answer
121
Views
Is there any way to view the “Request Body ” received by the server in the server logs
I am having trouble in logging the 'Request body ' sent to an engine that i created .
The engine is present as a war file (in webapps) and I want to access what request body was posted to the engine .
I get only this response in the ' localhost_access_log.2017-12-28.txt ' :
192.168.3.206 - - [28/Dec...
1
votes
1
answer
101
Views
How mod_jk handling node failure
We have configured mod_jk with two tomcat servers with 2 apache web servers. We wanted to know how mod_jk handling node failure or how it will do a health check.?
1
votes
0
answer
233
Views
Tomcat 8 first request processing is slow for first request
I'm working on a high performance java application. I deployed in Tomcat 8. First request processing is slow i.e. it is taking 800 milli seconds to process. After that every request is processing very fast within 50 milli seconds. I think for initial request class loading takes time. My requirement...
1
votes
0
answer
159
Views
Spring integration application failing on weblogic-properties file doesnt exist
2018-01-02 15:55:27 DEBUG ClasspathLoggingApplicationListener:55 - Application failed to start with classpath: unknown
2018-01-02 15:55:27 ERROR SpringApplication:771 - Application startup failed
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [co...
1
votes
0
answer
395
Views
“HTTP Error 404, The requested resource is not found” but Tomcat has started successfully
I am able to run tomcat 7.0.41 and getting below message in the console :
'INFO: Server startup in 9393 ms'
Tomcat Console Picture
When I am trying to open http://localhost:8080/,
I am getting the following error message :
Not Found
HTTP Error 404. The requested resource is not found.
I have alread...
1
votes
0
answer
29
Views
issue while changing network mode from static to dhcp using java MulticastSocket in tomcat
we have requirement to convert a device network ip mode from static to dhcp vice-versa. We are using following code to do the need.
MulticastSocket multicastSocket = new MulticastSocket(5353);
InetAddress address = InetAddress.getByName(224.0.0.251);
multicastSocket.joinGroup(address);
multicastSock...
1
votes
0
answer
124
Views
How to redeploy remaining attachment files in Jenkins(using SVN, Tomcat)?
I'm trying to use Jenkins to my web project. I use Spring, Maven, Subversion, and Tomcat. I succeed to build and deploy it. I could see it on localhost:8080. But there's a problem. The attachment files disappears after rebuilding(including redeployment) by Jenkins. (folder name of attachment files i...
1
votes
0
answer
78
Views
Can Spring Cloud Task application can run on embedded tomcat
I have a simple webapp with @EnableTask annotation at main class. My Application is running on embedded tomcat. Is it is possible to run SpringBoot WebApp wrapped with @EnableTask annotation in embedded tomcat. Is yes can i have a simple example for that? Thanks
1
votes
0
answer
143
Views
Tomcat hang after memory error until re-start
Our web application runs on Apache-Tomcat-8.5.5 and java 1.8 (linux-amd64). Application uses hikari db connection pool with oracle database.
After a random period of time (3-4 weeks), we get 'java.lang.OutOfMemoryError: Compressed class space' exception and then server hangs and becomes un-responsiv...
1
votes
0
answer
39
Views
automatic launching of tomcat script in ec2
i am trying to launch apahe tomcat automatically when the system boots in suse enterprise linux
i have installed apache tomcat8 in suse enterprise linux
i have attached the script in bash file
i have edited the path in catalina also
my 8080 port is working fine
when i launch manually using sh startu...
1
votes
1
answer
189
Views
Arquillian Cube Basic Example/Tutorial JMX Remote Access times out
I have tried to reproduce the Arquillian Cube Basic Example/Tutorial (on http://arquillian.org/arquillian-cube/#_basic_example), which starts a Tomcat 7 Docker Container and tries to deploy a war File in this Tomcat container.
Even though I have specified environment variables as in the tutorial
JAV...
1
votes
0
answer
60
Views
Spring boot on embedded tomcat on Apache2 with multiple addresses
I have a Spring Boot application which runs via its embedded Tomcat on port 8080.
This application must be reached by two different urls, let's say
www.aaa.com and www.bbb.com.
I have apache2 with 2 sites enabled.
This is www.aaa.com.conf
ServerName www.aaa.com
ServerAdmin [email protected]
ErrorL...
1
votes
0
answer
139
Views
Tomcat throwing error
Working on a JSP project. And the tomcat log has been throwing this error. I've no idea where the issue is. Hopefully someone can point me in the right direction.
It seem to be something to do with a filter CorsFilter i created. However, when i deleted the servlet, the record disappeared along with...
1
votes
1
answer
507
Views
NGINX vs. Apache? What to choose when deploying react
I am new to reactjs. I created a basic react app using create-react-app boilerplate. I prepared the build by running the command npm run build.
Now I want to host the build folder. Which is better and why.
Please let me know if any better and easy option available as I am new to this.
1
votes
0
answer
22
Views
Override group policy to render page in document mode 9
Application is using tomcat. Ive added this tag
to one of the jsp files. After going to the page in IE11 and viewing source, i can see the tag shows up right under the title
Create Traveler
however the page is still rendering in document mode 7 because of the group policy. Is there a way to overri...
1
votes
1
answer
3.1k
Views
How to add apache tomcat v9 in eclipse
I downloded and installed tomcat v9 but when I go in eclipse window-preferences-server-runtime environments-add there is no apache tomcat v9 , the highest version is v8 , and also the official apache website doesn't provide the download link for tomcat v8 anymore .
1
votes
0
answer
476
Views
Spring Boot with Embedded Tomcat: Session not persisting through restart
The research I've done on this seems to indicate that this should happen automatically. Some writings suggest that it is required to place server.session.persistent=true inside src/main/resources/application.properties. I have done this and I believe sessions are still not persisting.
Some backgro...
1
votes
0
answer
359
Views
WebSocket Request (xhr_send) getting stalled (Tomcat and Apache HTTP)
My application used sockjs & Application is running on Tomcat 8 and APACHE HTTP as front end web server. I have observed that xhr_send request getting stalled and so hangs the application. On Chrome developer console, received following error
when xhr_send request stalled I never received CONNECTED...
1
votes
2
answer
134
Views
Apache HttpClient working intermittently
I'm not very experienced with web development, so this is probably beginner problem. I have a small project with two Java web applications on two separate machines on Tomcats, one facing the user (frontend, FE app) and communicating to the other (backend, BE app). BE communicates with the DB through...
1
votes
0
answer
787
Views
Configuring JNDI URL resources in embedded Tomcat Spring Boot application
I am having a Spring Boot application with embedded Tomcat server. My application does JNDI look up of datasource and config file URL.
I am able to configure JNDI datasource but i am unable to configure JNDI URL in embedded Tomcat. Same application when deployed as WAR to standalone Liberty server i...
1
votes
1
answer
70
Views
Document base /home/ec2-user/myproject/web does not exist or is not a readable directory
I am deploying my project to AWS with Apache Tomcat 7. I added the ROOT.xml into Catalina/localhost/ like this
Starting Tomcat gives me the famous exception of Tomcat, but sadly, I cannot resolve it
java.lang.IllegalArgumentException: Document base /home/ec2-user/myproject/web does not exist or is...
1
votes
1
answer
350
Views
How to insert the values of a radio button and checkbox to my database with jsp? [duplicate]
This question already has an answer here:
How to transfer data from JSP to servlet when submitting HTML form
4 answers
i'm having some troubles with my code and i don't know how to continue.
What i have is a web page that shows a list of tweet previously searched by the user.
Now what i want is to...
1
votes
1
answer
369
Views
Code status 406 when running a Spring WebApp
I have these files in my project folder
build.xml
version='1.0'?>
tests.failed=${tests.failed}
***********************************************************
***********************************************************
**** One or more tests failed! Check the output ... ****
*************************...
1
votes
0
answer
62
Views
User defined Webapp class loader in Apache Tomcat server
I have a requirement where I need to load my web application using a custom classloader. From the documentation, I could make out that Webapp class loader handles the loading of class from /WEB-INF/lib and /WEB-INF/classes. Is there a way to override this class loader with a user-defined?