The Artima Developer Community
Sponsored Link

Java Answers Forum
java.net.SocketException

1 reply on 1 page. Most recent reply: Jun 5, 2003 1:42 AM by Naveen Lade

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Stuart Rivenbark

Posts: 1
Nickname: stu
Registered: May, 2003

java.net.SocketException Posted: May 20, 2003 3:13 PM
Reply to this message Reply
Advertisement
I am running XP Professional and Blazix EJB server against an MS Access database. I have my Java bean working fine on one machine, but on the other I get:

java.net.SocketException: Unrecognized Windows Sockets error: 10106: create

whenever my client codes executes the "lookup" to the bean to retrieve data.

Anybody get any ideas?


Naveen Lade

Posts: 2
Nickname: naveenlade
Registered: Jun, 2003

Re: java.net.SocketException Posted: Jun 5, 2003 1:42 AM
Reply to this message Reply
Stuart,

I had the same problem some days back but the simulted while I was trying to doing something else in RMI.

I could solve it in the following way.

Create a file policy.txt with the following content :

****************************************************
grant {
permission java.security.AllPermission "", "";
};

grant CodeBase "file:./Login.jar" {
permission java.security.AllPermission;
};

********************************************** ******
instead of Login.jar, give the absolute path of ur source code jar.

execute the code with the following options :

java -Djava.security.policy=policy.txt <classname>

If that does not work, try removing the 'grant CodeBase..' part in the policy.txt file.

If you still have any problem, please let me know and I will let you know If I could help you.

Give me a mail at naveen.lade@polaris.co.in

-Naveen.

Flat View: This topic has 1 reply on 1 page
Topic: please help me.... Previous Topic   Next Topic Topic: what is the use of apache server

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use