aspose file tools
The moose likes Servlets and the fly likes Please help,  need an expert in java.policy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Please help,  need an expert in java.policy " Watch "Please help,  need an expert in java.policy " New topic

Please help, need an expert in java.policy

Gopi Krishna

Joined: Jan 25, 2001
Posts: 10
I am trying to access a Webmethod B2B service from a jsp page.
and getting an error HttpURLConnection. Unable to connect to server.
I have a Webmethods B2B server classes which basically will create a context and will help you to connect to server. If I write that code in a stand alone java class and run it from my PC it is able to invoke the Webmethod service. But was failing if I include the same code inside a jsp page and access that page from browser. I am using Weblogic 5.1 to run my jsp page.
I am wondering whether permissions in weblogic.policy is not allowing me to make a socket connection to webmethod server.
weblogic server is running on my pc. and webmethod server is running on different machine over network.
Here is code written in jsp
<% ctx = new;
try {
ctx.connect("macinename ort#", "Administrator", "password");
} catch (Exception e) {
alues out1 = ctx.invoke("Sandbox.Gopi", "Hello", in);

thnaks in advance
It is sorta covered in the JavaRanch Style Guide.
subject: Please help, need an expert in java.policy
It's not a secret anymore!