Questions tagged [java-server]

DO NOT USE THIS TAG! "Java Server" is an incomplete term and makes therefore no sense as a tag and should be banned. Click "info" for alternate tags you're probably looking for.

If you mean Java Server Faces, use .

If you mean Java Server Pages, use .

If you mean a certain Java (EE) server, use the tag resembling the server name such as , , , , etc.

If you mean Java EE in general, use .

If you mean to write a homegrown "server" in plain Java SE, use , perhaps along with the desired communication protocol, such as .

192 questions
0
votes
2 answers

Changing standard servlet constructor in Java

I have the following code: public BalleServlet() throws SAXException, IOException, ParserConfigurationException, ServletException { super(); ServletContext context = getServletContext(); InputSource xmlFile = new…
masb
  • 2,813
  • 3
  • 20
  • 20
0
votes
3 answers

Worklight Development server not starting up

I am currently working with IBM Worklight and came up with this trouble. Everything worked perfectly and suddenly I was updating my Android ADT and then out of nowhere, my worklight server got turned off and It doesn't start up. I searched through…
vivek1794
  • 111
  • 2
  • 13
0
votes
1 answer

Flushing cache and security on java server

I'm still pretty new to this stuff, but when I learned about sending data from my server app, I was told it's "Good house keeping" to flush my cache to the client to clear things that shouldn't be there with something like output.flush(); My…
Tomer Amir
  • 1,515
  • 4
  • 27
  • 54
0
votes
1 answer

MultiThreaded Server, which is a client to another server

I'm using a server socket to accept clients on the main thread, when a thread is accepted,the clients socket is given to a handler which is started in a new thread to process communications. However, before I start running my server to access…
Peter
  • 113
  • 3
  • 10
0
votes
1 answer

Tomca/Servlets vs java socket

being lost with all the technologies, I am lost with the differences. I want to have a client (Android) that connects to my server (Java language and windows machine) and be able to send data to it, process it on the server and receive answer…
Snake
  • 14,228
  • 27
  • 117
  • 250
0
votes
1 answer

Return content-type in java server

NOTE : just to be clear , i know how to do the if statements. I need a way of getting the actual content type and storing that in a variable as a string. I have written a simple java server . I haven't figured out how to return the content type of…
Lazis002
  • 23
  • 7
0
votes
0 answers

Streaming file to firefox browser occasionally fails to open application dialogue box

I have a java servlet that uses ServletOutputStream to stream binary files from the application server to a browser. The code that does this has been in prod for a rather long time, and works really well the vast majority of the time. My users are…
Jay
  • 4,994
  • 4
  • 28
  • 41
0
votes
1 answer

How To Use A War Archive To Run A Java File

I am having a war archive in that i have got five java class files. What i should do to run a java file from that archive . As far as i understood we cant simply call the java file from the html page. The file i am supposed to call is a java socket…
Jijo
  • 57
  • 10
0
votes
0 answers

Java server - Broadcast an audio file through the tcp/ip socket

I have a Java server and an audio file. With my class, below. I can playback my audio file. Now, I would like to broadcast it through the TCP/IP. I would like to send this audio flow to my Client (which is an Android device). My Sample Code public…
Tofuw
  • 908
  • 5
  • 16
  • 35
0
votes
1 answer

Upload java chat server

recently I have build a chat application with a client and a server it works fine on a virtual machine. But now I am stuck what I need to do with the server application? Where can I upload it? I had found that I can upload apps to Google(app engine)…
misha312
  • 1,443
  • 4
  • 18
  • 27
0
votes
1 answer

Java server for mobile application

I want to build mobile app. This app will connect to server, upload some data and files, server will perform some manipulation with data and files, and will send results back to app or to email. All server logic writen on java, there are several…
user1058043
  • 71
  • 1
  • 1
  • 7
0
votes
2 answers

What are the proper steps to create an encrypted java chat server/client?

I have been searching the web and here on how to create an encrypted chat server/client. And I think I got pretty confused now. Firstly, I created a chat server/client from the free example Knock Knock Server from the Java Examples. So far,…
Melvin Lai
  • 861
  • 3
  • 17
  • 35
0
votes
1 answer

portable local server in java

I am about to embark on a project to create a platform-independent local server for coordinating file editing. The server is local to any given machine but will be used by many people on many different machines. My first instinct was to use Java…
wrongu
  • 560
  • 3
  • 13
0
votes
1 answer

I need help on why do i get NPE and how to stop the clip when it is playing

Hi Im desperately looking for a solution on how will I stop my clip when it is already running I've been looking for solutions for how many days now but still I cant find one. Please anyone who knows how help me. Here is my code import…
Tim
  • 5
  • 5
0
votes
1 answer

Does EJB server supports error tracking after Deployment?

I'm new in EJB. Recently I'm researching about software reliability,especially in Enterprise application. I'm wondering if EJB application server supports error tracking after the deployment. For example, When you deploy your EJB application in…