This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Getting java.netSocketException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Getting java.netSocketException " Watch "Getting java.netSocketException " New topic
Author

Getting java.netSocketException

Mohit G Gupta
Ranch Hand

Joined: May 18, 2010
Posts: 634


The Flow of project is :
user submits a sparql query to a sparql endpoint:

i am using eclipse Helios Service Release 1 and server tomcat v5.5
i am using a campus public wifi network and even the firewall on my pc is not showing any notification that if it is blocking it.
i am getting the following exception while running a project on eclipse.



i tried to run the code on server and got the following exception
: HttpException: java.net.SocketException: Permission denied: connect: java.net.SocketException: Permission denied: connect

OCPJP 6.0 93%
OCPJWCD 5.0 98%
Pete Nelson
Ranch Hand

Joined: Aug 30, 2010
Posts: 147

Is this coming from your servlet, or from Eclipse itself?

If Eclipse is unable to launch Tomcat, and there's nothing listening on the port Eclipse is trying to connect to, you're likely to get this message. Try opening up the Tomcat server in a browser, I think you'll find it cannot connect.


OCPJP
In preparing for battle I have always found that plans are useless, but planning is indispensable. -- Dwight D. Eisenhower
Mohit G Gupta
Ranch Hand

Joined: May 18, 2010
Posts: 634

i am able to run the tomcat server and even the input page opens but when i submit ,it waits for a while and then the exception comes

Mohit G Gupta
Ranch Hand

Joined: May 18, 2010
Posts: 634

please HELP
 
Consider Paul's rocket mass heater.
 
subject: Getting java.netSocketException
 
Similar Threads
JBOSS SocketException PermissionDenied
java.policy setting not reflecting
please I urgently need help
JBoss initialcontext problem
Security Policy with WAS