Free Server on the net for my servlets
Anyone knows any free server on the net to post my servlets? I don' t run a servlet myself. I need home for my servlets.
Thanks,
Chris.
it' s the funniest thing to be called mycgi and support servlets.
Most, or all free/ paid servers on the net support CGI but not servlets
Chris.
Similar Messages
-
Dear Community members,
I am unable to synch photo albums from iPad 3 to iTunes on my Windows 7 pc.
In addition to Camera roll and iPod cache default albums, I have 6 other albums made from pix derived from the camera roll. Eg - Family pix in a folder, Office pix in another, Plant pixs in another, House architecture pix in another.......all also exist in the camera roll.
I have trawled the net for the last 8 hrs in vain!
I have ios5 on Ipad 3 and the latest Itunes on Windows PC.
As a precaution, I have used the windows "add pictures from...." to keep a copy in a separate folder in the windows desktop, but again it has all the pics mixed up together and not sorted as per the various albums in the ipad!
How to replicate the albums in the windows PC???
Regards
Sohal NSSync the photos back to the iPad using iTunes. You have to place the photos into a folder from which you sync photos. All photos that you want to sync to the device must be included in the main photos folder and selected to sync each time that you sync.
Connect the iPad to the PC and launch iTunes.
Click on the iPad name on the left side under devices.
Click on the Photos Tab on the right.
Click on the Sync Photos From heading in order to select it.
Select the photos folder that you want to sync from.
Select all of the albums or photos within the folder that you want to sync.
Click on Apply in the lower right corner of iTunes
You can read more here.
http://support.apple.com/kb/HT4236 -
NPS: Event 6274 - Network Policy Server discarded the request for a user
Intermittently I will get desktop (wired) and laptop (wireless) computers experiencing issues with NPS (they drop off the network).
Some computers are affected more than others, although they are identical hardware and based on a standard image.
In the event log of the NPS servers I can see the following messages:
Log Name: Security
Source: Microsoft-Windows-Security-Auditing
Date: 2/05/2014 8:47:58 a.m.
Event ID: 6274
Task Category: Network Policy Server
Level: Information
Keywords: Audit Failure
User: N/A
Computer: NT147.domain.local
Description:
Network Policy Server discarded the request for a user.Contact the Network Policy Server administrator for more information.User:
Security ID: NULL SID
Account Name: host/DPC0387.domain.local
Account Domain: DOMAIN
Fully Qualified Account Name: DOMAIN\DPC0387$Client Machine:
Security ID: NULL SID
Account Name: -
Fully Qualified Account Name: -
OS-Version: -
Called Station Identifier: 3c-xx-xx-xx-xx-xx
Calling Station Identifier: 00-xx-xx-xx-xx-xxNAS:
NAS IPv4 Address: 10.nnn.nnn.nnn
NAS IPv6 Address: -
NAS Identifier: ND246
NAS Port-Type: Ethernet
NAS Port: 71RADIUS Client:
Client Friendly Name: Network Device Management Subnet
Client IP Address: 10.nnn.nnn.nnnAuthentication Details:
Connection Request Policy Name: NAP 802.1X (Wired)
Network Policy Name: -
Authentication Provider: Windows
Authentication Server: NT147.domain.local
Authentication Type: -
EAP Type: -
Account Session Identifier: 384F322E317838316564303034313030306230666632
Reason Code: 1
Reason: An internal error occurred. Check the system event log for additional information.
How do I debug when an internal error occurs but there is nothing in the system event log? Where else can I look?
Here's the packet trace that matches the event log entry above:
No. Time Source Destination Protocol Length Time from request Info
1 0.000000 JuniperN_xx:xx:xx Universa_xx:xx:xx EAP 60 Request, Identity
2 2.470423 Universa_xx:xx:xx Nearest EAPOL 60 Start
3 2.472870 JuniperN_xx:xx:xx Universa_xx:xx:xx EAP 60 Request, Identity
4 2.539416 Universa_xx:xx:xx Nearest EAP 60 Response, Identity
5 2.544206 Universa_xx:xx:xx Nearest EAPOL 60 Start
6 2.548804 JuniperN_xx:xx:xx Universa_xx:xx:xx EAP 60 Request, Identity
7 2.550050 Universa_xx:xx:xx Nearest EAP 60 Response, Identity
8 2.552597 10.switch 10.NPS_Server RADIUS 254 Access-Request(1) (id=249, l=208)
9 2.556043 10.NPS_Server 10.switch RADIUS 136 0.003446000 Access-Challenge(11) (id=249, l=90)
10 2.565876 JuniperN_xx:xx:xx Universa_xx:xx:xx EAP 60 Request, Protected EAP (EAP-PEAP)
11 2.569472 10.switch 10.NPS_Server RADIUS 254 Access-Request(1) (id=250, l=208)
12 2.572566 10.NPS_Server 10.switch RADIUS 136 0.003094000 Access-Challenge(11) (id=250, l=90)
13 2.580254 Universa_xx:xx:xx Nearest TLSv1 123 Client Hello
14 2.586544 10.switch 10.NPS_Server RADIUS 361 Access-Request(1) (id=251, l=315)
15 4.564841 Universa_xx:xx:xx Nearest EAPOL 60 Start
16 4.568530 JuniperN_xx:xx:xx Universa_xx:xx:xx EAP 60 Request, Identity
17 4.569876 Universa_xx:xx:xx Nearest EAP 60 Response, Identity
18 4.582263 10.switch 10.NPS_Server RADIUS 254 Access-Request(1) (id=252, l=208)
19 4.586006 10.NPS_Server 10.switch RADIUS 136 0.003743000 Access-Challenge(11) (id=252, l=90)
20 4.591896 JuniperN_xx:xx:xx Universa_xx:xx:xx EAP 60 Request, Protected EAP (EAP-PEAP)
21 4.592692 Universa_xx:xx:xx Nearest TLSv1 123 Client Hello
22 4.599634 10.switch 10.NPS_Server RADIUS 361 Access-Request(1) (id=253, l=315)
23 4.600887 10.NPS_Server 10.switch IPv4 1518 Fragmented IP protocol (proto=UDP 17, off=0, ID=07db)
24 4.609920 JuniperN_xx:xx:xx Universa_xx:xx:xx TLSv1 1514 Server Hello, Certificate, Certificate Request, Server Hello Done
25 4.610516 Universa_xx:xx:xx Nearest EAP 60 Response, Protected EAP (EAP-PEAP)
26 4.617407 10.switch 10.NPS_Server RADIUS 262 Access-Request(1) (id=254, l=216)
27 4.618352 10.NPS_Server 10.switch RADIUS 288 0.000945000 Access-Challenge(11) (id=254, l=242)
28 4.623650 JuniperN_xx:xx:xx Universa_xx:xx:xx TLSv1 176 Server Hello, Certificate, Certificate Request, Server Hello Done
29 4.643316 Universa_xx:xx:xx Nearest TLSv1 361 Certificate, Client Key Exchange, Change Cipher Spec, Encrypted Handshake Message
30 4.649607 10.switch 10.NPS_Server RADIUS 601 Access-Request(1) (id=255, l=555)
31 4.656950 10.NPS_Server 10.switch RADIUS 199 0.007343000 Access-Challenge(11) (id=255, l=153)
32 4.662734 JuniperN_xx:xx:xx Universa_xx:xx:xx TLSv1 87 Change Cipher Spec, Encrypted Handshake Message
33 4.681106 Universa_xx:xx:xx Nearest EAP 60 Response, Protected EAP (EAP-PEAP)
34 4.788536 10.switch 10.NPS_Server RADIUS 262 Access-Request(1) (id=2, l=216)
35 4.789735 10.NPS_Server 10.switch RADIUS 173 0.001199000 Access-Challenge(11) (id=2, l=127)
36 4.795723 JuniperN_xx:xx:xx Universa_xx:xx:xx TLSv1 61 Application Data
37 4.796372 Universa_xx:xx:xx Nearest TLSv1 93 Application Data
38 4.802368 10.switch 10.NPS_Server RADIUS 331 Access-Request(1) (id=3, l=285)
39 4.803363 10.NPS_Server 10.switch RADIUS 189 0.000995000 Access-Challenge(11) (id=3, l=143)
40 4.808905 JuniperN_xx:xx:xx Universa_xx:xx:xx TLSv1 77 Application Data
41 4.809501 Universa_xx:xx:xx Nearest TLSv1 77 Application Data
42 4.817342 10.switch 10.NPS_Server RADIUS 315 Access-Request(1) (id=4, l=269)
43 4.822986 10.NPS_Server 10.switch RADIUS 189 0.005644000 Access-Challenge(11) (id=4, l=143)
44 4.828973 JuniperN_xx:xx:xx Universa_xx:xx:xx TLSv1 77 Application Data
45 4.833318 Universa_xx:xx:xx Nearest TLSv1 829 Application Data
46 4.840610 10.switch 10.NPS_Server RADIUS 1073 Access-Request(1) (id=5, l=1027)
47 4.845946 10.NPS_Server 10.switch RADIUS 189 0.005336000 Access-Challenge(11) (id=5, l=143)
48 4.850938 JuniperN_xx:xx:xx Universa_xx:xx:xx TLSv1 77 Application Data
49 4.907924 Universa_xx:xx:xx Nearest TLSv1 141 Application Data
50 4.913390 10.switch 10.NPS_Server RADIUS 379 Access-Request(1) (id=6, l=333)
51 4.917535 10.NPS_Server 10.switch RADIUS 221 0.004145000 Access-Challenge(11) (id=6, l=175)
52 4.922877 JuniperN_xx:xx:xx Universa_xx:xx:xx TLSv1 109 Application Data
53 4.923472 Universa_xx:xx:xx Nearest TLSv1 61 Application Data
54 4.930319 10.switch 10.NPS_Server RADIUS 299 Access-Request(1) (id=7, l=253)
55 4.937348 10.NPS_Server 10.switch RADIUS 381 0.007029000 Access-Challenge(11) (id=7, l=335)
56 4.942543 JuniperN_xx:xx:xx Universa_xx:xx:xx TLSv1 269 Application Data
57 4.944791 Universa_xx:xx:xx Nearest TLSv1 125 Application Data
58 4.951408 10.switch 10.NPS_Server RADIUS 363 Access-Request(1) (id=8, l=317)
59 4.954022 10.NPS_Server 10.switch RADIUS 355 0.002614000 Access-Accept(2) (id=8, l=309)
60 4.981482 JuniperN_xx:xx:xx Universa_xx:xx:xx EAP 60 Success
61 32.590347 10.switch 10.NPS_Server RADIUS 361 Access-Request(1) (id=251, l=315)
62 62.592420 10.switch 10.NPS_Server RADIUS 361 Access-Request(1) (id=251, l=315)
63 92.595043 10.switch 10.NPS_Backup_Server RADIUS 361 Access-Request(1) (id=9, l=315)
64 122.597856 10.switch 10.NPS_Backup_Server RADIUS 361 Access-Request(1) (id=9, l=315)
65 152.600618 10.switch 10.NPS_Backup_Server RADIUS 361 Access-Request(1) (id=9, l=315)A belated thanks for your reply.
Our environment doesn't have NPS accounting configured so that was easy to rule out.
The mid-day drop outs have stopped after I added "set protocols dot1x authenticator no-mac-table-binding" to our Juniper switches (which prevents mac address aging from clearing the active dot1x client session).
I believe the above error message occurs because the RADIUS session ID is rejected / ignored because of some quirks in the RADIUS standard. At the start of a dot1x authentication request a RADIUS session ID is created. For whatever reason the
RADIUS/NAP server stops responding and the Juniper switch fails over to the backup RADIUS/NAP server configured. The session ID is kept (per RADIUS standard) but the backup RADIUS/NAP server doesn't know about the session, so this event: "Network
Policy Server discarded the request for a user." occurs.
It would be nice to see a clearer error message "Invalid RADIUS session" or similar.
There is a Microsoft guide on how to set up RADIUS/NAP servers in a highly available configuration - something to do with RADIUS proxy servers.
It would be even nicer to see some kind of RADIUS session synchronisation between NAP servers... if it doesn't already exist?
I am having the same exact issue you posted on here except I have Extreme Network switches. Some of my computers, various hardware, will randomly not authenticate during re-authentication. The switch says that it failed to contact the NPS server so then it
switches to my backup server. The client has a random time on how long it waits to authenticate so sometimes I end up having the disable/re-enable the port they are connected to so that the session is started again. I see that you basically removed the option
to force clients to re-authenticate Any downfall disabling that?. Any idea why the NPS server is no longer responding? Are you using Windows Server 2012? -
POP server reject the password for....
Dear All,
I am trying to set-up the mail client of my macmini runing Lion Server (on the same machine), but I get the message
"POP server reject the password for user "John".
As I am not an expert on Lion Server, can anyone please tell me what I am doing wrong.
The loggin account name on the server is "John", PW is "1", domain is "exemple.jp"
The mail address is concequently [email protected]
1st: is the POP server PW different from user loggin password?
2nd :is there a place on the mail pop server for user password.
3rd: how does this work??
Thanks for any help.
BrunoSorry I can't be of help, I know of others with this problem. In my case I have two accounts that don't work in Mail whilst the other accounts do. I suspect it may be a bug as I've been looking for a solution for sometime. My current solution is to collect the mail on those accounts with an XP netbook which is probably not very helpful!
I have also tried the Keychain repair and at least for a short while it looked as if it had fixed it.
Any ideas anybody before I go through the hassle of reinstalling everything?
D -
6274: Network Policy Server discarded the request for a user
How to reproduce this event:
6274: Network Policy Server discarded the request for a userHello,
according to the following just use an older RADIUS client version:
Warning: NPS discarded the request for a user
This monitor returns the number of events when the Network Policy Server discarded the request for a user.
Type of event: Warning. Event ID: 6274.
This condition occurs when the NPS discards accounting requests because the structure of the accounting request message that was sent by a RADIUS client does not comply with the RADIUS protocol. You should reconfigure, upgrade, or replace the RADIUS
client.
Best regards
Meinolf Weber
MVP, MCP, MCTS
Microsoft MVP - Directory Services
My Blog: http://msmvps.com/blogs/mweber/
Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights. -
Looking for free resources on the web for Primaver
I am looking for free sources on the web for Primavera. I
want to study the program.Primavera Support can give you access to a free one
day web based training class if you have a current
license. -
Mail: The POP server rejected the password for user
I am completely unable to use Mail.
I keep getting the "The POP server rejected the password for user" on two of my accounts.
The password has not changed and I have entered it correctly.
The accounts just will not go online.
This started yesterday when an old machine accidentally fired up mail and tried to connect using the same user details. Since then, my MacBook Pro is not able to connect to my mail.
My iPad and my iPhone can. There is no problem at the server or the ISP. I have also run the Keychain repair utility.
Please can you advise how I should fix it? Plist? Define the accounts again?
Any ideas welcome.
ThanksSorry I can't be of help, I know of others with this problem. In my case I have two accounts that don't work in Mail whilst the other accounts do. I suspect it may be a bug as I've been looking for a solution for sometime. My current solution is to collect the mail on those accounts with an XP netbook which is probably not very helpful!
I have also tried the Keychain repair and at least for a short while it looked as if it had fixed it.
Any ideas anybody before I go through the hassle of reinstalling everything?
D -
The POP server rejected the password for user
Hi Im new to this forum but need help! I can usually fix most things on my mac but the last 2 weeks mail will not recieve any incoming messages as is just says "The POP server “mailin.macmail.com” rejected the password for user “****”
I have looked at other postings and tried keychain etc but nothing will work. This happens with 2 accounts one from macmail and one from NTL (my ISP) I can send mail fine (no password) and can go on to webmail and get my messeages fine on both accounts.
Does anyone have an answer for this?
Many thanksSorry I can't be of help, I know of others with this problem. In my case I have two accounts that don't work in Mail whilst the other accounts do. I suspect it may be a bug as I've been looking for a solution for sometime. My current solution is to collect the mail on those accounts with an XP netbook which is probably not very helpful!
I have also tried the Keychain repair and at least for a short while it looked as if it had fixed it.
Any ideas anybody before I go through the hassle of reinstalling everything?
D -
Why cant i search the net for VIDEOS only
In Elements 9 it was possible to search the net specifically for VIDEOS. This facility doesn't seem to be available in elements 10.
Is there anyway around this problem or am I missing something???
MikeBy "searching the net" do you mean looking for tutorials in the inspiration browser? If so, the video tutorials can now be found at tv.adobe.com.
-
can anyone shed some light on how to do this i am currently using the server as a file storage system but feel it can deliver far more; ideally i would like the following;
email to push to all devices once sent form one device all devices have a copy of the sent item
accounting software that is shared on the server
access the files and directories securely form anywhere
create and host an intranet site
any ideas of how to setup easily or step by step guides
help would be greatly appreciated
regards
rdStart by getting DNS properly configured. If DNS isn't properly configured, most other services won't work right.
http://labs.hoffmanlabs.com/node/1436
http://labs.hoffmanlabs.com/node/1594
Then, the OS X server documentation will provide a wealth of knowledge on configuring services.
http://www.apple.com/server/macosx/resources/documentation.html -
How to find out the used space and free space in the DB for attachments
Hi,
In CRM 5.2 web UI, we can save a transaction by saving attachments like work documents or text files.
Could someone help me find out the used space, free space, maximum capacity on the CRM DB for these attachments.
Thanks & Best Regards,
Ramesh.Hi,
check with below table
TNAPR --- Processing programs for output
and NACE Transaction code
NACE -- out types
Regards,
Madhu -
What is the best MEDIA STORAGE in the net for my iMac?
I'm using mediafire and it just takes forever to upload. 300mb equivalent to about 200 mp3's takes 2 hours. I'd like to just simply free up my 1TB lacie External HD so i don't keep buying Hard Drives. I also want to dump my HiDef movies to free up my other 1TB Lacie hard drive. Thanks in advance for your help =)
dishaster wrote:
I'm using mediafire and it just takes forever to upload. 300mb equivalent to about 200 mp3's takes 2 hours.
Sounds about right to me. My cable modem claims 7 mbits/sec download, 500 kbits/sec upload, and I get roughly the same speed you do.
Unless you're supposed to have much higher upload speeds, you're not going to improve on that a whole lot. -
Is RoboHelp Server the solution for us?
Hi all,
I'm trying to figure out whether RH Server is the solution for us. I've seen a few similar posts in the forums, but none that really answer my specific questions. I'm hoping for feedback from someone with experience in RH Server, who is perhaps in a similar situation to us.
We are a software development company, creating desktop software for PCs. We have three main applications, and approximately 20,000 users. I am the company's (only) Tech Writer.
Currently I provide documentation (user guides) to our clients in the form of the good ol' CHM file. I develop these in RH8. Each of our applications is bundled with an installed CHM file which users access by pressing F1. I'm sure you're all familiar with this process. Our users run our software on their own systems, completely independent of us - there's no connection to us whatsoever. However, they all have Internet access, as it's a requirement for them to be able to use certain functionality within our applications. Hold that thought.
I also write Knowledge Base Articles in MS Word, as PDFs, which users access via our web site. Internal to our organisation, I provide KBAs and other such material for our Technical Support staff. These aren't available/accessible to the public. I write these in Word because they need to be sent around to a team of reviewers from time-to-time, and whilstI'm the only person with RH installed, everyone has Word.
What I'm hoping to achieve with RH Server is this:
Do away with the old CHM files that our users have. They're just awful. I'm hoping that in future, when our users press F1 from within our applications, they will be taken to a corresponding page on a web site or AIR page similar to what the Adobe Help looks like when we access it from RoboHelp. Forgive my ignorance if I've used incorrect terminology. That way they'll always be reading the latest Help content, live, online, instead of what I wrote last time we sent a product update out. I imagine our programmers will have to edit the functionality behind the action of our users pressing F1 in our applications. Has anyone done this? Are there any issues we should be aware of? What happens if our users don't currently have Internet access, for example - is it possible to call a local version of the Help instead, if this is detected? Has anyone done this with a similar number of users to us? We could well have 100s of users trying to access the system simultaneously.
Gather feedback from users. From what I understand, we'll be able to use RH Server to see which Help topic/content is being viewed, and also receive feedback from users. Can anyone give me feedback on their experiences with this? Any tips/hints/issues I need to be aware of? Is it possible for us to determine which users accessed which content? Remember, the idea is that users should be able to access this content by pressing F1 - I don't want them to have to sign in every time they need to access our Help system - it should be seamless to them. So, I'm wondering how it would be possible to track user usage without making them sign in. This is important to us because some of our content is region-specific, and it would be handy to know if users from those regions are actually accessing the Help content that relates to them.
Host our internal documentation on the same server as our public documentation. Is it possible to host all of our internal, private documentation on the same RH Server, making it available to our Tech Support team (and other internal teams) only? I imagine we could do this by password-protecting it, but I want to ensure that the public don't even know it exists. ...and our Tech Support people would not be impressed with having to sign in every time they wanted to access their Knowledge Base. Any tips here regarding locking down / restricting access to content?
A quick note about collaboration:
Currently, although the Help menus are developed in RH, the KBAs and other PDF documents are written in MS Word. I send them around to a team of reviewers who add their comments/edits and send them back to me. From what I understand, this is something I can do with RH10 - export PDFs and send them around for review, combining the results later, at which time I give them a final review before publishing. Have I understood this correctly? Does RH Server play a part in this process? Can I use RH Server's feedback capabilities as a mechanism for my review team to make edits/comments? I guess I'm trying to get an understanding of how sophisticated the RH Server feedback system is. If I can use RH Server to have the team read/review documents, it'll save me having to manage a bunch of Word documents that I email them. It'll also minimise the chance that a redundant document gets distributed by mistake - something that can occur because people use their locally-saved documents I emailed them earlier, instead of the finals.
Thank you.Hi, symmetricalMan
Let's see if I can tackle some of these "inline". There are a lot of moving parts to your system (you're a busy guy!)
I only have time for a few of these. Perhaps Colum McAndrew and others will chime it with their experiences.
>>they will be taken to a corresponding page on a web site or AIR page similar to what the Adobe Help looks like when we access it from RoboHelp.
It would be WebHelp Pro in the scenario you mention (not AIR Help).
By "taken to a corresponding page" you are referring to Context Sensitive Help which RoboHelp Server does support (including your F1 scenario).
>>What happens if our users don't currently have Internet access, for example - is it possible to call a local version of the Help instead, if this is detected?
Hmm. You could either package a plain WebHelp (not Pro) output and distribute for access on a share drive. The detection thing would be up to your developers. Come to think of it, AIR Help does have a potential alternative here which might be worth looking into. Obviously, there would be two systems to maintain. I'm not up to date on it, but you'll find info here in the online help: http://help.adobe.com/en_US/robohelp/robohtml/WS81F63111-6ACF-4a02-B2B2-461FEBFA8093.html
>>.we'll be able to use RH Server to see which Help topic/content is being viewed, and also receive feedback from users.
Actually, the "feedback" is anonymous (no names are collected.) You can however, create "Areas" and analyze the traffic on topics according to sub-sets of your users.
The feedback is not direct from the users. In other words, RoboHelp Server (at least for now) does not support Commenting (as AIR Help does). So Feedback Reports are derived from the end-users "surfing" your site and collecting their search terms verbatim to get an idea of what they are searching for in order to improve your content.
>>So, I'm wondering how it would be possible to track user usage without making them sign in.
RH Server Sites do not have to be "Protected" by authentication. It is your choice. You can have some sites (called Areas) that are authenticated and some sites that are not authenticated, all on the same RH Server. RoboHelp Server uses a database and can authenticate users (by setting up protected "Areas".) However, my networking knowledge is limited and you would have to ask someone else about "persistent logins" etc.
>>content is region-specific, and it would be handy to know if users from those regions are actually accessing the Help content that relates to them.
Yes, you can do this. This is where RoboHelp Server can be used to create "Areas" for different content to be delivered to different audiences.
>>Is it possible to host all of our internal, private documentation on the same RH Server,
Yes you can. However the Tech Support sign in scenario question would have to be answered by someone else. It's hard to know from where I sit.
>>RH10 - export PDFs and send them around for review, combining the results later, at which time I give them a final review before publishing
Yes, this workflow would seem to work for you. However, RoboHelp Server plays no role in this review one way or the other. There are many alternatives for sharing the PDF which is described in the documentation.
See #6 on this page:
http://help.adobe.com/en_US/robohelp/robohtml/WS1b49059a33f77726-2db1c75912bc47baaf8-7ffb. html
You should also download the Adobe RoboHelp Server Reviewer's Guide which also has videos embedded.
http://www.adobe.com/support/documentation/en/robohelp/9/AdobeRoboHelpServer9_ReviewersGui de.pdf
Hope this helps
John Daigle
Adobe Certified RoboHelp and Captivate Instructor
Evergreen, Colorado
www.showmethedemo.com
Twitter: @hypertexas -
How to make the client connect to the server at the command prompt?
I found this code on IBM's website, it was a training session on servers and clients using java.
The code compiles fine and the server seems to start up properly when I use java Server 5000. I think whats happening is the server is running and listening for a connection on port 5000.
When I try to run the client I get the following error.
Exception in thread "main" java.lang.NoSuchMethodError: main
I see a start() method but no main. As far as I know, applications should all have main, it seems as if the person who wrote this kinda confused applets with application. Not that I would really know what happened.
If you have time, could you tell me if there's an easy fix for this? I would love to have this client/server working if it isn't too much trouble. As I have looked all over the net for a free client/server applet that will actually let me see the java code and none of the free ones do allow getting to their source.
Most of them allow you to customize them somewhat but also have built in advertising that can't be removed.
This is the closest I have come to finding one that lets me look under the hood. But alas it doesn't work out of the box and I don't know what to do to fix it.
Heres the code: Server:
import java.io.*;
import java.net.*;
import java.util.*;
public class Server
// The ServerSocket we'll use for accepting new connections
private ServerSocket ss;
// A mapping from sockets to DataOutputStreams. This will
// help us avoid having to create a DataOutputStream each time
// we want to write to a stream.
private Hashtable outputStreams = new Hashtable();
// Constructor and while-accept loop all in one.
public Server( int port ) throws IOException {
// All we have to do is listen
listen( port );
private void listen( int port ) throws IOException {
// Create the ServerSocket
ss = new ServerSocket( port );
// Tell the world we're ready to go
System.out.println( "Listening on "+ss );
// Keep accepting connections forever
while (true) {
// Grab the next incoming connection
Socket s = ss.accept();
// Tell the world we've got it
System.out.println( "Connection from "+s );
// Create a DataOutputStream for writing data to the
// other side
DataOutputStream dout = new DataOutputStream( s.getOutputStream() );
// Save this stream so we don't need to make it again
outputStreams.put( s, dout );
// Create a new thread for this connection, and then forget
// about it
new ServerThread( this, s );
// Get an enumeration of all the OutputStreams, one for each client
// connected to us
Enumeration getOutputStreams() {
return outputStreams.elements();
// Send a message to all clients (utility routine)
void sendToAll( String message ) {
// We synchronize on this because another thread might be
// calling removeConnection() and this would screw us up
// as we tried to walk through the list
synchronized( outputStreams ) {
// For each client ...
for (Enumeration e = getOutputStreams(); e.hasMoreElements(); ) {
// ... get the output stream ...
DataOutputStream dout = (DataOutputStream)e.nextElement();
// ... and send the message
try {
dout.writeUTF( message );
} catch( IOException ie ) { System.out.println( ie ); }
// Remove a socket, and it's corresponding output stream, from our
// list. This is usually called by a connection thread that has
// discovered that the connectin to the client is dead.
void removeConnection( Socket s ) {
// Synchronize so we don't mess up sendToAll() while it walks
// down the list of all output streamsa
synchronized( outputStreams ) {
// Tell the world
System.out.println( "Removing connection to "+s );
// Remove it from our hashtable/list
outputStreams.remove( s );
// Make sure it's closed
try {
s.close();
} catch( IOException ie ) {
System.out.println( "Error closing "+s );
ie.printStackTrace();
// Main routine
// Usage: java Server <port>
static public void main( String args[] ) throws Exception {
// Get the port # from the command line
int port = Integer.parseInt( args[0] );
// Create a Server object, which will automatically begin
// accepting connections.
new Server( port );
}CLIENT:
import java.io.*;
import java.net.*;
public class ServerThread extends Thread
// The Server that spawned us
private Server server;
// The Socket connected to our client
private Socket socket;
// Constructor.
public ServerThread( Server server, Socket socket ) {
// Save the parameters
this.server = server;
this.socket = socket;
// Start up the thread
start();
// This runs in a separate thread when start() is called in the
// constructor.
public void run() {
try {
// Create a DataInputStream for communication; the client
// is using a DataOutputStream to write to us
DataInputStream din = new DataInputStream( socket.getInputStream() );
// Over and over, forever ...
while (true) {
// ... read the next message ...
String message = din.readUTF();
// ... tell the world ...
System.out.println( "Sending "+message );
// ... and have the server send it to all clients
server.sendToAll( message );
} catch( EOFException ie ) {
// This doesn't need an error message
} catch( IOException ie ) {
// This does; tell the world!
ie.printStackTrace();
} finally {
// The connection is closed for one reason or another,
// so have the server dealing with it
server.removeConnection( socket );
}Thanks for your time.CLIENT:
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.*;
public class Client extends Panel implements Runnable
// Components for the visual display of the chat windows
private TextField tf = new TextField();
private TextArea ta = new TextArea();
// The socket connecting us to the server
private Socket socket;
// The streams we communicate to the server; these come
// from the socket
private DataOutputStream dout;
private DataInputStream din;
// Constructor
public Client( String host, int port ) {
// Set up the screen
setLayout( new BorderLayout() );
add( "North", tf );
add( "Center", ta );
// We want to receive messages when someone types a line
// and hits return, using an anonymous class as
// a callback
tf.addActionListener( new ActionListener() {
public void actionPerformed( ActionEvent e ) {
processMessage( e.getActionCommand() );
// Connect to the server
try {
// Initiate the connection
socket = new Socket( host, port );
// We got a connection! Tell the world
System.out.println( "connected to "+socket );
// Let's grab the streams and create DataInput/Output streams
// from them
din = new DataInputStream( socket.getInputStream() );
dout = new DataOutputStream( socket.getOutputStream() );
// Start a background thread for receiving messages
new Thread( this ).start();
} catch( IOException ie ) { System.out.println( ie ); }
// Gets called when the user types something
private void processMessage( String message ) {
try {
// Send it to the server
dout.writeUTF( message );
// Clear out text input field
tf.setText( "" );
} catch( IOException ie ) { System.out.println( ie ); }
// Background thread runs this: show messages from other window
public void run() {
try {
// Receive messages one-by-one, forever
while (true) {
// Get the next message
String message = din.readUTF();
// Print it to our text window
ta.append( message+"\n" );
} catch( IOException ie ) { System.out.println( ie ); }
import java.applet.*;
import java.awt.*;
import java.io.*;
import java.net.*;
public class ClientApplet extends Applet
public void init() {
String host = getParameter( "192.168.1.47" );
int port = Integer.parseInt( getParameter( "5000" ) );
setLayout( new BorderLayout() );
add( "Center", new Client( host, port ) );
}Sorry about that. Now when I run an html file with this applet I just get the x in the corner.
Thanks for looking. -
Lion server - is it right for me?
We are currently using a Mac Mini in our small office for file serviing. It is running 10.6 (NOT server). I have some software running on it that allows me to set up "mount points" for different user groups. I run the mini headless, and am able to "screen share" via the local network or through my MobileMe account using "back to my mac."
The setup works fairly well, but can be difficult to administrate.
I am considering the jump to Lion server. Looking past the marketing department descriptions I want to make sure it is the right choice for me. Here are some of the things I am doing and would like to do:
- I would like to continue sharing files. We have about 5 users. I would like to be able to set varying levels of access for each person. I can do this on an individual basis but would also like "workgroup" permissions/access.
- Right now we only have local access (except for my admin login). Ideally I would like to have the same file access (with restrictions and permissions) extended to sharing files via internet. Even better if I could limit which files or folders are available over the net for all except me.
-Looking beyond file sharing, I am interested in the WebDAV features discussed on the promo page. The short description of these features seems like I can basically run an iDisk on my mini. I can then let workers upload and download pages/keynote/number documents. We can also use this to coordinate calendars locally and across the internet. Plus it will sync with our iPads and iPhones. Am I understanding this correctly?
-Along the same lines, there is also iCal Server 3. The way I understand it, this can basically act as a replacement for the old MobileMe calendar, right? I see how calendars can be shared and understand how that works. But can these calendars also be administered, with permissions, from the server? In other words, can I (as admin) create calendars for Bob, Tom and Doris - let's say a personal and business calendar for each. Then set it up so that Doris can see Tom's business and personal calendars but only Bob's business calendar?
-Web server: I have played with the Apache server on previous non-server OS X versions. Can Lion server be easily set up to run as an INTERNAL web server? (Web pages viewable on the local network). If we wanted to make those web pages viewable outside the local network, is the process very difficult? We have a company to host our regular web and email services. I am only looking for some simple "company news" type information and maybe a small Filemaker database for a handful of employees.
We don't currently have a static IP, which I guess would be necessary for making some of these features accessible from outside the office. Do I need to get a static IP from my ISP, are there features in Lion Server that eliminate the need for that (e.g. back to my mac) or are there other options that provide a workaround for this?
Based on the above, is Lion Server what I need? Is there another product/application better suited for the above tasks?
Thanks in advance for any ideas, help or suggestions.Do you think the monitor on the new Imac is good?
Yes, I use mine for both digital photography and working with video. The extra screen real estate is extremely handy.
If you need portability, I would keep the iBook also.
Maybe you are looking for
-
Photoshop CC Crashes Regularly on OSX 10.9.2 (Only 14.1+)
Hello, I have a problem that's been going on since 14.1+ came out. It doesn't seem to be triggered by anything specific and happens randomly although regularly; about every 10 minutes. I haven't had the time to troubleshoot this as I have to get work
-
ITunes bumps list to top when tags are changed
I'm using the latest iTunes and trying to tidy some tags. If I change a tag, iTunes insists on bumping me up to the top of my song list even if the song itself did not change positions in the list. Sometimes it doesn't bump to the top but to a seem
-
How do I get past the "connection untrusted" pop-up for Facebook?
For Facebook, as well as FB apps like Words with Friends and Trivia Crack, I keep getting the "Connection is Untrusted" pop-up. I have to keep going out and coming back in, many times as often as a dozen tries, before the game app or the FB home page
-
HOW DO I STOP IMESSAGING ON MY PHONE? I HAVE A NEW SAMSUNG PHONE AND CANT GET TEXT MESSAGES
HOW DO I STOP IMESSAGING ON MY IPHONE 4? I BOUGHT A NEW SAMSUNG PHONE AND AM NOT GETTING ALL MY TEXT MESSAGES?
-
Oracle 11g R1(11.1) Database Upgrade Guide.
Where can I find the SAP documentation for: Database Upgrade guide > Upgrade to Oracle Database 11g Release 1(11.1):UNIX. I am able to find Upgrade to Oracle Database 11g Release 2(11.2). We are planning to upgrade to 11g Release 1(11.1) and I am no