All Questions

Tagged with
Filter by
Sorted by
Tagged with
1069 votes
64 answers
1.1m views

How to configure port for a Spring Boot application

How do I configure the TCP/IP port listened on by a Spring Boot application, so it does not use the default port of 8080.
Paul Verest's user avatar
80 votes
2 answers
60k views

What is the difference between Tomcat and TomEE, TomEE and TomEE Plus

I want to deploy EJB ear in a server but I am really confused about choosing a server among tomcat, TomEE and TomEE Plus. What are the differences between Tomcat and TomEE? What are the new features ...
Sasikumar Murugesan's user avatar
39 votes
4 answers
159k views

How to fix "JARs that were scanned but no TLDs were found in them " in Tomcat 9.0.0M10

I'm new to Java EE and trying to work on ServletContextListener and listener job is connection to database bla bla .When I am trying to start the server (Tomcat 9) it is stuck on : "INFO: At least ...
Coder ACJHP's user avatar
  • 2,076
34 votes
13 answers
37k views

java.lang.IllegalArgumentException: No suitable parent found from the given view. Please provide a valid view

my app crashes when trying to display server message and I think the problem could be with my getView(). below is the registerActivity were the crash occurs and my activity_register.xml import ...
Mani's user avatar
  • 445
32 votes
4 answers
42k views

Server side Java - where to start [closed]

I'm really starting to get a hang of the client-side Java programming, and from what I understand Java is great for developing stable server sides for large amounts of traffic. The problem is that I'...
joseph's user avatar
  • 917
27 votes
6 answers
119k views

how to run a selenium-server-standalone?

I'm trying to run selenium server, and get errors: rond-macpro:selenium eladb$ java -Dwebdriver.chrome.driver=./chromedriver -r selenium-server-standalone-2.44.0.jar Unrecognized option: -r Error: ...
Elad Benda's user avatar
  • 35.9k
25 votes
2 answers
34k views

Can i deploy my .war on an nginx server

I really love nginx for the stability and way requests are handled. And i really love tomcat for the java and the user friendliness Is there a way to deploy my .war on a nginx server ?
user3046636's user avatar
24 votes
10 answers
82k views

Firebase Java Server to send push notification to all devices

I am trying to send a Push notification to my android device with the new Firebase service. I registered and setup an app, also I put all the code needed to receive notification in the android app. ...
user3907491's user avatar
22 votes
7 answers
130k views

How to add JBoss Server in Eclipse?

I am new to JBoss and have just installed Eclipse. I have added a project to the workspace and now I want to deploy it to a Jboss server. However, in the New Server Runtime Environment list, JBoss is ...
Subodh Joshi's user avatar
  • 13.1k
21 votes
1 answer
52k views

Unpacking index for Central Repository on Netbeans

I'm having a problem using Netbeans 8.2 on my High Sierra Macbook Air. When it opens it does a few startup things that seem to proceed normally, then it pauses for a minute or so, then it says "...
apex2022's user avatar
  • 807
17 votes
6 answers
38k views

Application property "server.servlet.session.timeout" is not working in Spring Boot project

According to the documentation of Spring Boot, session timeout can be configured by setting server.servlet.session.timeout= 300s in application.properties file. In this post and in Spring Boot ...
Avijit Barua's user avatar
  • 3,040
17 votes
4 answers
10k views

Standalone WebSocket server without JEE/application server

I need to implement a fairly simple WebSocket server in Java SE. All it needs to do is accept connections and store the respective sessions, then send a message to all connected client whenever a ...
Derek's user avatar
  • 799
17 votes
3 answers
21k views

Shutdown netty programmatically

I'm using netty 4.0.24.Final. I need to start/stop netty server programmatically. On starting the server, the thread gets blocked at f.channel().closeFuture().sync() Please help with some hints ...
fh76's user avatar
  • 283
13 votes
4 answers
26k views

Intercepting/Logging requests and Responses in GRPC

I'm developing a chat app using GRPC in which the server receives information from the client and sends it back out to all the clients connected to it. For this, I've used Saturnism's chat-example as ...
Umer Farooq's user avatar
  • 7,446
13 votes
2 answers
5k views

Do I need my own server to use the Stripe API?

I want to implement payments in my app via Stripe. I'm reading their documentation and it keeps mentioning that i wll use my own server to charge someone after i retrieve a token from Stripe. (stripe ...
Izak's user avatar
  • 939
13 votes
1 answer
11k views

Run custom TextSecure (Signal) server

I am trying to start my custom TextSecure (Signal) server. I want to use it for all functions that Signal has (both SMS and telephony). I believe that I also need redphone server to run telephony. I'...
horin's user avatar
  • 1,664
13 votes
4 answers
52k views

Cannot connect to Wildfly

I have just installed Wildfly and I tried to connect it : \wildfly-11.0.0.Final\bin>jboss-cli.bat -c But gives me follow error : Failed to connect to the controller: The controller is not ...
Mihai Alexandru-Ionut's user avatar
12 votes
1 answer
4k views

HazelcastInstance vs HazelcastClient

I am novice in hazelcast and I have a few questions. As I understand hazelcast comes with two entities HazelcastInstance(as I understand it is server) and HazelcastClient. These entities even packed ...
gstackoverflow's user avatar
11 votes
2 answers
5k views

Android Push Notifications Without using Firebase Cloud Messaging or any other similar service

I am developing an android chat application for learning purposes that uses a server- client architecture. I wrote the server side myself in Java (because I am trying to learn) and the client side is ...
Evyatar Saias's user avatar
10 votes
3 answers
17k views

Java Enterprise doesn't appear in IntelliJ

I have problem about importing Java EE glassfish server to my IntelliJ. I have searched nothing on the web. When I want to create a new glassfish project, I don't have option for it. I can't add ...
Július Marko's user avatar
10 votes
3 answers
6k views

What's the fastest way to get a private Maven Repository up and running?

I'm working with a few developers and we would like to share some jars as we're working through the early iteration of a projects code. We would like to just pop up a quick private maven repository ...
robdbirch's user avatar
  • 508
10 votes
2 answers
4k views

Java SSL Server disable weak elliptic curves

So this is the code of my Java ssl Server. ctx is an SSLContext initialised with the server keystore. public SSLEngine createSSLEngine() { SSLEngine sslEngine = ctx.createSSLEngine(); ...
Konrad Pozniak's user avatar
10 votes
3 answers
4k views

Why a pool of stateless EJB is needed

I know that: For stateless session beans the server can maintain a variable amount of instances in a pool. Each time a client requests such a stateless bean (e.g. through a method) a random ...
GionJh's user avatar
  • 2,834
9 votes
2 answers
33k views

Conversion of UTC to IST time in java is working in LOCAL but not in CLOUD SERVER

I am working in date conversion in java in that i am using following code snippet to convert the UTC time to IST format.It is working properly in the local when i run it but when i deploy it in server ...
Vicky's user avatar
  • 1,442
8 votes
2 answers
38k views

How to implement a WebSocket Server in java?

I'm working on setting up my first websocket server for a communications app. I can't seem to figure out how websockets are implemented in Java. I've tried, unsuccessfully, creating an annotation ...
Kyler's user avatar
  • 91
8 votes
3 answers
22k views

Java video streaming project

I must make a video streaming java program as a project in the university, however I don't know how to start! I must do both, main-server side and subserver side, the client side is going to be VLC. ...
Mayiaz Abuarabi's user avatar
8 votes
2 answers
6k views

Java HTTP/2 Server Socket

I want to get server sockets working for HTTP/2 in Java, preferably TLS/https. I've got a TLS server socket working fine, but browsers will only talk HTTP/1.1 to it. If I understand correctly, you ...
Jonas N's user avatar
  • 1,757
8 votes
2 answers
393 views

Performance of mutlitheading in RX vs Theads vs Executors

I'm writing a backend application in Kotlin. To speed things up, I'm currently relying on RxKotlin on the server to do parallel execution of IO tasks such as database calls & API calls. The code ...
Richard's user avatar
  • 14.6k
8 votes
2 answers
10k views

How to connect to remote server using Elasticsearch Node Client Java

I am trying to connect to my server using Elasticsearch Java NodeBuilder Client. However I do not see any option to specify my server address and port (like we can do in Transport Client, using ...
Arnav Sengupta's user avatar
8 votes
4 answers
8k views

change in configuration/setting without restarting Tomcat

Ideally what I want to be able to do is load in a fresh copy of the config if a change is detected so that if it is updated in the DB, it gets fetched and updated in the application without a restart. ...
Lilac's user avatar
  • 590
8 votes
2 answers
9k views

JBoss EAP 6.1 Error : This runtime type requires a JDK. The current default VM for this server's execution environment is not recognized as a JDK

You can check this warning here when I'm adding the server I'm getting like this. Please help me out. Thanks
VBR's user avatar
  • 93
7 votes
3 answers
9k views

Samples for the AndroidPublisher (V3) Google API Client Library for Java

I am upgrading AndroidPublisher library from v1 to v3 for my secure backend server. AndroidPublisher library (v3) will allows me to do server side purchase validation and acknowledgement for in-app ...
Roy's user avatar
  • 713
7 votes
1 answer
4k views

Rabbitmq server start failed with file locked

Rabbitmq 3.6.5 start failed with this. How to fix it? BOOT FAILED =========== Error description: "Found lock file at ~s.\n Either previous upgrade is in progress or has failed.\...
Liang's user avatar
  • 81
7 votes
2 answers
6k views

Can't find Issuer ID when use App Store Server API of Apple

I want to use the App Store Server API. so need to generate the JWT. the document is: https://developer.apple.com/documentation/appstoreserverapi/generating_tokens_for_api_requests To get your issuer ...
user501836's user avatar
  • 1,126
7 votes
1 answer
4k views

Socket best practices in Java

Writing any kind of web server in Java (be it a webserver, RESTful webapp or a microservice) you get to use Sockets for dual channel communication between client and server. Using the common Socket ...
Miguel El Merendero's user avatar
7 votes
2 answers
5k views

Java Socket connecting to a public ip-address

I need to make a server and client that connects to the server. Problem: "the server works. the client can only connect to localhost, it cannot connect to a server on the internet. I want the client ...
GabeTheApe's user avatar
7 votes
0 answers
2k views

Can Kotlin coroutines be an alternative for Java's ScheduledThreadPoolExecutor for scheduling long running background jobs?

The traditional java approach involves getting a ScheduledThreadPoolExecutor by Executors.newScheduledThreadPool(1) And then running a bunch of Runnables inside it using methods such as ...
Aditya Anand's user avatar
7 votes
1 answer
1k views

how to configure tomcat so that classes from previous runs don't remain in memory

On tomcat/manager when I click on find leaks button I get the following message: The following web applications were stopped (reloaded, undeployed), but their classes from previous runs are still ...
sticky_elbows's user avatar
6 votes
4 answers
6k views

Can't find Tomcat Runtime in Eclipse Mars [duplicate]

I am new to web programming in Java and I am struggling with some problems. I want to create a new runtime server using Tomcat, but the only things that I can select from Apache folder are Geronimo ...
user3662714's user avatar
6 votes
4 answers
8k views

Error setting up WebLogic Server 11g (10.3.6): Native Library to read the password securely from commandline is not found

Im trying to configure my Weblogic Server in Windows for developers 10.3.6 (11g). From the read me file, I get an error in the following step: Create a new WLS domain and start WLS. (It is ...
user1084509's user avatar
  • 1,862
6 votes
2 answers
2k views

Refresh static files served by SparkJava

I'm doing a project using Spark Java. On the server side, some images are created and I want them to be available in the client. Since I have a static content directory, after creating the image on ...
jevora's user avatar
  • 469
6 votes
1 answer
8k views

How tomcat handle multiple concurrent request at the same time?

How tomcat handle multiple concurrent request at the same time ? Does it queues up the requests or processes some of the requests in parallel ? If it processes requests in parallel , how does it ...
sourabh1024's user avatar
6 votes
2 answers
18k views

Could not publish to the server. java.lang.NullPointerException in Jboss7.1 Server

i am getting Could not publish to the server. java.lang.NullPointerException when i try to run my Jboss7.1 server on my machine. any idea about that??
Piyush Mittal's user avatar
6 votes
1 answer
824 views

Server Architecture - Redis vs Socket server

I have a game server which is going to run on a few instances. World 1, World 2, World 3 Each world is a server that runs on a different IP Address. There is a list of what the game should have: ...
Ben Beri's user avatar
  • 1,141
6 votes
1 answer
4k views

How do I set up a Stanford CoreNLP Server on Windows to return sentiment for text

I am attempting to set up a local server on Windows with Stanford CoreNLP to calculate sentiment scores for over 1M article and video texts. I don't know Java, so I will need some help. I ...
Eric's user avatar
  • 1,235
6 votes
2 answers
5k views

Connection pool expires silently in Tomcat 7 but autoReconnect=true doesn't fix it

I have been getting these exceptions for a number of weeks with no solution... com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was ...
Jason Barraclough's user avatar
6 votes
4 answers
13k views

Client - client communication without server?

I am new to socket programming and I need to clarify some things. Do you need a server between two client communication? Let me explain what I mean: Example 1: Client1: Server, I want to talk with ...
rootpanthera's user avatar
  • 2,741
6 votes
3 answers
23k views

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()'

I am Trying To upload image to server from gallery and camera.When i Choose image from gallery to upload to server its Work Perfactly.But when i Select camera captured Image for upload to server Its ...
RushDroid's user avatar
  • 1,580
6 votes
0 answers
655 views

MacOs: increase maximum of opened files doesn't work for java program

My OS is MacOs sierra, and I increase the maximum of opened files for each process using following commands and make them permanently affected: $ sysctl kern.maxfiles kern.maxfiles: 12288 $ sysctl ...
pyb1993's user avatar
  • 125
6 votes
0 answers
105 views

recording flv broken red5

I am using red5 server 1.0.6 Some of my recorded files are broken, I have read in some articles that if a stream is closed before the bufferLength of the stream is greater than 0, the recorded file ...
Vishnu's user avatar
  • 12k

1
2 3 4 5
58