Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tomcat]

Apache Tomcat is one of the most popular open source servlet containers developed by the Apache Software Foundation (ASF).

-1
votes
1answer
1k views

Does Web Socket block thread while keeping connection as regular http connection does?

Let's take Spring web socket (with tomcat) for example. Does Web Socket blocks thread while keeping the connection between server and client? (For example, connection can last 2-3 hours). ( Does web ...
1
vote
6answers
386 views

Tackling malformed requests

We have a Java Application running on Tomcat as the AppServer & Apache as the Webserver. Currently, we are handling Malformed requests in the Application itself. However, I was wondering if it's ...
1
vote
0answers
108 views

Classiest file system locations for my Linux app to write its files?

I have an application I am writing on Linux. It is a Java webapp intended to be run on Tomcat. When it initializes, my application will copy some standalone java utility programs to the host ...
1
vote
2answers
722 views

What risks are there to using Node.js with Java EE?

We are developing a B2B web application in which we are using(suggested by seniors) two servers. One is Node.js (to serve all the request related html & static content) and the other is Tomcat to ...
3
votes
1answer
281 views

IPC design considerations

In our internal architecture, we have several Tomcat servers which distribute the workload and isolate the different processes of our business. We are planning to move into an approach where several ...
1
vote
1answer
1k views

How to deploy a war file in production?

I have a war file of a web application which I want to deploy in production mode. I am confused as to how I should go about it. I was currently working Apache Tomcat to develop and debug the ...
-6
votes
2answers
512 views

How does the web application support 150 max threads when the cpu only supports 2? [duplicate]

doing an lscpu cmd this is what i get $ lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 2 On-line CPU(s) list: ...
5
votes
1answer
185 views

Can you use annotations for any use-case of Web.xml in Java EE?

Nowadays I have been practising Java EE. There are may annotations which simplify configuration of servlet container. Such as: @WebServlet @WebInitParam @ServletSecurity etc. You can do the ...
7
votes
1answer
2k views

Why use IIS or apache tomcat instead of self-hosting?

I am a .NET developer. I see ASP.NET MVC framework now started providing a self-hosting feature. It makes a lot of sense (to me). A self-hosted application feels complete with no external dependency. ...
2
votes
1answer
1k views

How can I find out network latency in rest service

I have two Java applications deployed on tomcat. For inter application communication I provide jar file of application (Java API) to other application and it becomes a method call which is fast. Now ...
1
vote
1answer
3k views

Can I install Apache HTTP server and Apache Tomcat server on the same host?

I want to practice web programming on my Ubuntu virtual machine. I want to learn both server side web development using Java/J2EE and client side coding (HTML/CSS/JavaScript) . I heard that we need ...
1
vote
0answers
1k views

Threading strategies for a webservice implementation

If I am building a webservice/Web API for servicing requests, there are 2 threading strategies I can think of. I will explain this in terms of Java (though the question may be relevant for any other ...
1
vote
2answers
2k views

What is a good way for Tomcat to interact with another Java application running on the local machine

I'm new to using Java within a web environment. At the moment I have a Java application that we run on a local machine, we'll call it the server app. We want to add the ability to communicate with ...
2
votes
0answers
175 views

Embedded tomcat cold deployment without service disruption

I have the following scenario. For various reasons I chose to use embedded tomcat for my rest backend that will form a cluster of AWS machines. I will want to deploy fairly frequently updates ...
1
vote
2answers
4k views

Working with two different database types for one application [duplicate]

Software: Java J2EE Application hosted on Tomcat Server. UPDATE The current software is JAVA Web application containing just JSP and Servlets no frameworks or anything. Simple JSP and ...
1
vote
2answers
1k views

Improve the speed of a Tomcat Server with MySQL

I'm developing an application with 3 sides, desktop (JavaFX), server (Tomcat) and Android. And a MySQL Database Server. The app receive mails and convert them into tasks. The tasks are sent to the ...
0
votes
0answers
632 views

Embedded Tomcat Cluster

Can someone please explain with an example how an Embedded Tomcat Cluster works. Would a load balancer be necessary? Since we're using embedded tomcat, how would two separate jar files (each a ...
2
votes
1answer
3k views

Session serialization in JavaEE environment

Please consider the following scenario: We are working on a JavaEE project for which the scalability starts to become an issue. Up until now, we were able to scale up but this is no longer an option. ...
2
votes
0answers
930 views

Explanation java/web (tomcat/coyote/JSP/Servlet etc..) in 'Perl-world' terms

Analyzed one web-server. for the http request I got: apache 2.2... what redirects to https, and for https got apache-coyote 1.1. and the server runs XWiki java app. Trying to understand how it is ...
7
votes
1answer
10k views

Separating front end from back end - Tomcat

I'm currently working with a company that uses Java / Tomcat / Spring for the back end of our web applications. As a front-end developer, I'm feeling more and more strongly that the back end should be ...
6
votes
1answer
60k views

What is the difference between apache and tomcat in the xampp control panel? [duplicate]

I installed xampp in my machine. I wonder what is the difference between apache and tomcat in the xampp control panel. p/s: I started apache only and test with "localhost/index.html", it works. I ...
5
votes
1answer
1k views

Shall I separate the admin part from the rest of the war

I built a web-applicationg using struts2. Then I built a small admin interface in the same war. With time the webapp grew and so the admin-interface. Now, I'm thinking to separate the admin interface ...
2
votes
1answer
2k views

Refactoring Tomcat webapp deployments

Background We have several webapps running on Tomcat 7.0.x (on Linux). For historical reasons, we have populated the "Common" lib (i.e. $CATALINA_HOME/lib) with many application jars. These jars ...
4
votes
4answers
4k views

Why does Java require a servlet container for simple RPC service?

I have a big database controller which is written in Java. The controller reads information from the database, and interprets it into data structures which are then displayed in a CLI. Java was ...
5
votes
2answers
364 views

JavaEE server experience matters for a developer?

Lately I am seeing quite a few application development job ads asking for experience with this or that Java EE server. I can understand this if it is for a server administrator, however I find it ...
1
vote
1answer
1k views

Tomcat 7 vs. ehCache Standalone Server (Glassfish) Configuration with RESTful Web Services

My requirements consist of using ehCache to send and store data via RESTful web service calls. The data can be stored in-memory or via the filesystem... Never used ehCache before so I am having some ...
5
votes
1answer
2k views

Java solution for mutual authentication with smart card

I need to develop a Java solution for mutual authentication between Tomcat 6 (server) and SmartCard "IDGo 300" (client). In order to do this I thought of the following scheme: 1.Tomcat (server) send ...
5
votes
4answers
3k views

How to incrementally update a database when deploying a website?

We use JSF over Tomcat along with a backing proprietary DB. I want to know how the addition of new database fields or/and stored procedures should be handled when we deploy a new version of the ...
5
votes
1answer
409 views

Is hiring a junior developer as a technical trainer a good idea?

So my friend's boss brought in four junior candidates with some work experience, she is one of them. Her manager wants them to be experts on the subject matter of tomcat in a matter of two months in ...
2
votes
3answers
821 views

Using Jython and Tomcat in bundle - should we even try to?

Have you ever used Jython in bundle with tomcat in any serious, production-ready service? What pros and cons can you name? Is it worth trying if all guys in team has no problems with coding on Java, ...
3
votes
1answer
2k views

How can we design mobile chatting XMPP server

I have a xmpp server design problem, I have been thinking and searching about this for a while, but cannot reach a decision, I hope experts here can give me a hint, really appreciate. <Requirement&...
3
votes
2answers
2k views

Need to make a stock inventory application

I need to make an application for my dad to keep track of stock trading inventory. He trades shares for himself and for his clients and would like to keep the records, things like buy/sell price of ...
6
votes
4answers
2k views

Starting a game website. Sanity check (Jetty, WebSockets, Java, etc) [closed]

I'm starting a new game website. This is a project to help me learn additional technologies. My background is very much Microsoft and Apple technologies / languages / IDEs. This project I would ...
1
vote
1answer
300 views

Questions and Concerns About Using Java/Tomcat and Apache

I am having to use Java due to needing one backend library. Is it still considered good practice to set up Apache as the front-facing server and have Tomcat behind it? I am spending a lot of time ...
5
votes
3answers
409 views

What reading is recommended for an experienced Java/SQL Developer moving to Apache/Tomcat, Postgres, Hibernate [closed]

I am taking over management and development of a website developed in Java using Hibernate and Postgres, running on Apache/Tomcat. I am an experienced Java developer, and have experience in Ruby on ...