This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Please help, need an expert in java.policy
It's not a secret anymore!