Most voted "tomcat" questions
Tomcat is a Java Web application container server. As a container, it simplifies the application code by managing: communication, contexts and tasks. It also has management tools and development support.
Learn more…278 questions
Sort by count of
-
30
votes2
answers45293
viewsWhat is a deploy?
Each module of the project has a .war and a .war exploded, What are the functions of this artifacts in this "deploy" process? And what is Jenkins' function in that context? I understand that deploy…
-
15
votes4
answers5515
viewsDockerize Java Web App: Maven + Tomcat + Docker
I have often seen several tutorials from Docker stop up "ready" services, but I see few related instructions on how to use it within the development flow. Mainly on compiled languages as an example…
-
14
votes3
answers20505
viewsHow to resolve the error - The superclass "javax.servlet.http.Httpservlet" was not found on the Java Build Path
I’m using Eclipse Mars.1 for web development, I received this error when including a file JSP, The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path. I also have…
-
12
votes1
answer2480
viewsDifferences between Java application servers
I would like to know the main differences between Glassfish, Jboss and Apache Tomcat application servers. Is there any specific aspect I should check before choosing one to start development? Are…
-
9
votes2
answers3664
viewsConnection to the Bank drops after a certain time
I have a server where I have several web applications connected to the database(Mysql). The problem is that if any system gets idle it loses the connection to the bank and I have to refresh the…
-
8
votes1
answer6420
viewsApache Tomcat (Production Setup)
Good morning, I’m doing a project and using Tomcat 8 as my server. The point is, I have a Linux server to host my application, but I would like to know if I need to do any different configuration…
-
7
votes1
answer279
viewsCluster of servers on different networks
I am configuring a cluster of Tomcat8 servers. The servers are already doing load balancing (mod_jk), but I need to implement high availability (session replication). In the documentation I have,…
-
7
votes1
answer2924
views -
7
votes1
answer138
viewsTomcat on Windows and Linux
I currently have a server Tomcat running on a machine with Windows Server 2012. But I got some tips from some friends from Infra where they say the Tomcat in the Linux has better performance. So I…
-
6
votes1
answer12542
viewsTomcat startup problem
As a stopgap measure for this mistake, I installed XAMPP and placed it (Tomcat) as a container for Netbeans. But when I run a project in Netbeans, the following error appears in the Tomcat console…
-
6
votes1
answer801
viewsAccess database in Openshift
I deployed a project on OpenShift, I used a Cartridge to create a bank Mysql soon after the creation of the bank appear this information: Mysql 5.5 database Added. Please make note of These…
-
6
votes0
answers1020
viewsDigital Certificate Login ( E-CPF, E-CNPJ ) with Servlet / JSP
Hello. I’m looking to develop a login system similar to what government portals use ( E-CAC, NFE and the like ), where E-CNPJ is used to log in. I did the following: 1) I created and signed an RSA…
-
6
votes0
answers75
viewsThread in WAIT state
I am monitoring a system that was made in Java and at certain times during the day the vast majority of Threads, about 95%, enter the WAIT state and are waiting for about 50 seconds on average, and…
-
6
votes3
answers720
viewsNullpointerexception Java JPA CDI Tomcat
Good afternoon guys. I am developing a Java test application with JPA, CDI and Tomcat. I created a basic test class and am getting the following error. Erro: Exception in thread "main"…
-
5
votes2
answers1264
viewsAccentuation of request parameter in JSF page
I have a JSF page that receives as a parameter, in the URL, the error message to be displayed. Ex.: http://example.com/application_error.jsf?exception=Não+permitido On the page, the parameter is…
-
5
votes1
answer3767
viewsdynamic path out of context in Servlet
To get the dynamic path within the project is easy, just run the code : String path = this.getServletContext().getRealPath(""); Here is returned:…
-
5
votes3
answers22495
viewsHow do I start Tomcat as a service on Linux?
I need to put a WEB system into production using the Tomcat 7. I know I can start with the shell catalina.sh start but I would like something to work after the reboot and Tomcat to come in normally.…
-
5
votes1
answer197
viewsWhat is the difference between Hotdeploy and Publish, Start and with
When I add Tomcat to the eclipse some options appear to me : Start be Publish. How these relate to the hotdeploy?…
-
5
votes1
answer1582
viewsHow does authentication work in a stateless Restful environment?
My question is this:: Imagine 3 Tomcat servers (S1,s2,S3) and all 3 servers connect to a single sgbd server (s_bd1). The three Tomcat servers run an application that is of Restful and stateless…
-
5
votes2
answers458
viewsHow do I move the A context session to B context within Tomcat 05
Try two applications made in Java using Tomcat 6 and are in different contexts but one interacts with the other, by being integrated, I need one to be able to pass their session to the other…
-
5
votes1
answer5094
viewsSetting up Tomcat 7 in Eclipse results in HTTP Status 404
I downloaded the version tar-gz Tomcat 7 and linux manually set the variable CATALINA_HOME entered the command $CATALINA_HOME/bin/startup.sh and I stopped http://localhost:8080/, worked normally…
-
4
votes2
answers379
viewsTomcat only reads Log4j.properties when restarted
Until recently I made file changes log4j.properties (ex: change the level of the Testemb class) and simply redeploy the application. Now, the changes only take effect when I restart Tomcat. I wonder…
-
4
votes1
answer121
viewsPossible causes for a Session Leak
Through a monitoring tool, I am noting that my application has a considerable user session Leak. Every day, about a thousand user sessions are created, without any being destroyed. To take sessions…
-
4
votes1
answer554
viewsInjection of Beans Spring into JAX-WS / Tomcat 7 (@Webservices) - Does not work, returns Nullpointerexception (NPE)
I’d like to inject (@Autowired or @Resource) Beans created by Spring (3.x or 4.x) in a class that implements a JAX-WS interface (reference implementation). I tested on Tomcat 6 and it works, but on…
-
4
votes1
answer1964
viewsImage upload with Primefaces on Tomcat server, only the image path being saved in the database
Fala galera. I’m a beginner in Java and am doing a small Dynamic Web project using Primefaces, JSP, Hibernate and Tomcat. Basically it is several forms of registration and one of them is the…
-
4
votes1
answer311
viewsI cannot boot Tomcat in Netbeans
When I started Tomcat in Netbeans IDE it gave the following error: Using CATALINA_BASE: "C:\Users\chrissian\Desktop\Todo sobre o JAVA\Tomcat\apache-tomcat-7.0.63" Using CATALINA_HOME:…
-
4
votes2
answers1494
viewsAccess and permission control
I have a CRUD project to manage faculty and college courses using jsf+primefaces+jpa. My problem is this: There are the users who are the coordinators of the courses and the users who are…
-
4
votes0
answers1609
viewsWeld CDI problem with Tomcat server
Greeting to everyone, I’m having trouble using the CDI implementation, Weld on Tomcat 7. I’ve been doing some research and tried several proposed solutions, but all these solutions are old, with…
-
4
votes1
answer243
viewsRemote debugging in isolated environments
I work at a company doing bug fixes. Some clients deploy the system to computers on their internal network, so it is not possible to debug it remotely. Customers' computers usually have Internet…
-
4
votes1
answer1187
viewsTomcat 8 + Mysql + Hibernate > Name [jdbc/toca_data] is not bound in this Context. Unable to find [jdbc]
I’m having serious problems with an application, I’m trying to set up and nothing. As I am beginner in the web part, I will say first what I understood: Tomcat needs settings (xml) to work with…
-
4
votes1
answer5435
viewsHow to fix the error: HTTP Status 500 - Servlet Execution threw an Exception?
Language: Java Server: Apache Tomcat. Ambient: Eclipse. I am following the Caelum Workbook of the course FJ21 - Web Development with Java. I created a form but at the time of recording it presents…
-
4
votes2
answers224
viewsDeployer of a Spring Boot Project
I’m deploying my first project in Spring Boot + Angular. I have a linux server (centos) where I took a tutorial to install Tomcat: tutorial The Tomcat is configured according to the tutorial, I’ve…
-
3
votes1
answer124
viewsWhat is the difference between Start and Publish on an Eclipse server?
When I add Tomcat as a server in Eclipse, it appears Start and Publish. What’s the difference between them?…
-
3
votes1
answer366
viewsError in final bar with mod_rewrite and mod_jk
I have the following structure on my server. Apache HTTPD (port 80) Tomcat (gate 8080) I used the mod_jk to make the connection between apache and Tomcat and this is working perfectly. I created a…
-
3
votes1
answer377
viewsHow to ensure that a Servlet is Deployed in Tomcat 7 using Servlet Container 3.0?
I am developing an application that uses the Servlet API 3.0 via Annotations and porting does not need WEB-INF/web.xml file The problem that sometimes when I deploy in Tomcat 7 the Servlet is not…
-
3
votes2
answers383
viewsGetting around the problem with hot Java development?
Problem situation: You are developing a website and debugging on it. For example a CRUD of users. For this you are using Javaee 1.7, Eclipse Kepler and Apache Tomcat 7. However, at the development…
-
3
votes1
answer1279
viewsProblems with Tomcat 7
I have a Java web application installed on a Windows Server. When Startar Tomcat, it works normally, and addresses like: http://localhost:8085 and http://localhost:8085/examples (examples that…
-
3
votes1
answer1036
viewsWhat is the simple way to create a Webservice Rest from an existing Dynanic Java Web project?
Fala galera I’m a beginner in the world of java and created a Dynamic web project where I use Hibernate, Primefaces and Tomcat. Everything is working, screens, records (CRUD) and stuff. Only now I…
-
3
votes1
answer1696
viewsHow to configure Tomcat in windows 7?
How to set up Tomcat 7 in windows 7? You need to configure java environment variables?
-
3
votes1
answer2310
viewsREST with Could not find error
I am trying to create a REST application, in Java web, very simple, using Tomcat 8 as a server. However, when trying to access the application: http://localhost:8080/aplicacao/rest/teste She brings…
-
3
votes2
answers526
viewsI cannot install Tomcat and do not receive message when accessing localhost:8080
I’m starting with Java. I downloaded the e-book and started reading. I’m paralyzed, I can’t complete the installation of Tomcat. I downloaded into http://tomcat.apache.org. On the "Tomcat 8.0.20…
-
3
votes1
answer471
viewsIs it possible to run class unit test with inheritance?
I need to do a unit test of PlanilhaReader but this extension ArrayList<String> and override the method contains. Is there any way to execute it? @Component public class PlanilhaReader extends…
-
3
votes1
answer1128
viewsHow to automatically create specific files via Maven to deploy from each container?
I am working on a rather complex JEE project, which involves the possibility of deploying the application to each client in a different container. In my development environment I use Jboss, but the…
-
3
votes1
answer91
viewsAndroid app after several changes receives Sockettimeoutexception
I developed a menu app for Android, the waiter by the app sees all the tables, the app opens the table, makes the order coming out in the kitchen and so on. The web service returns a JSON for each…
-
3
votes1
answer1232
viewsVery heavy Tomcat log
I have noticed that some files that get inside the folder Log of Tomcat are getting too heavy. Yesterday I deleted a file with 40GB and today already has another with 2GB. I can’t read the contents…
-
3
votes1
answer138
viewsChange Tomcat Settings in Amazon Elasticbeanstalk
I’m having trouble assigning the Jdbchealm properties to the Tomcat server. How to include new properties in the server.xml file or in the Tomcat-users.xml file when the app is on the Amazon server…
-
3
votes2
answers1783
viewsError starting Tomcat 9 as a service
I am having a problem starting Tomcat service. When I try to start the service, some problem happens and it is not initialized. The log in the C:\Program Files\Apache Software Foundation\Tomcat…
-
3
votes1
answer641
viewsTomcat 8, Ajax (jQuery), Jersey, REST API does not work, enable CORS
I have been trying for a while to configure CORS to work with my Tomcat 8. But whenever I have to submit the POST request, I get the error message: "Response to preflight request doesn’t pass access…
-
3
votes0
answers137
viewsUpload excel (.xlsx) with jsp
I am developing an application to submit Excel files to an application. However if I try to submit a file .txt,works properly if I send a file .xlsx the file copied to the server directory appears…
-
3
votes1
answer115
viewsProblems with Opensessioninviewer + JPA + Tomcat standard
Hello, I am using Tomcat + JPA + Vraptor 4 and I am using cdi to inject Entitymanager as follows. Entitymanagerfactorycreator: public class EntityManagerFactoryCreator { @ApplicationScoped @Produces…