Venky's Blog

Just another weblog

Using in weblogic server


When you deploy a Java Code using object in weblogic server, on opening a connection using URL object, instead of getting the standard it will return

Even if you try to type cast it, you will get class cast exception as these 2 classes are not compatible. You may not like to use the class also as the method signature is different

To overcome the issue, a simple replacement of the code below would work

Instead of creating a URL object using standard constructor like

URL wsURL = new URL(wsLoc + “?command=login”);

Use wsURL = new URL(null, wsLoc + “?command=login”,new;

About these ads

20 comments on “Using in weblogic server

  1. Dev
    October 8, 2010

    The above code does solve the ClassCastException problem in WebLogic. It helped me in a situation where I needed to make a thin web service client to connect to a Client cert authenticated SSL web service interface on WebLogic 9.2. The bad side is that if the System-wide SSL provider changes, the code will most likely break, since it is dependent on the SUN’s implementation.

  2. Chris Love
    November 11, 2010

    Thanks a ton. This helped!!

  3. Pingback: web proxy|glype proxy|anonymous proxy|firewall proxy

  4. Pingback: host plus

  5. Steve
    March 12, 2012

    Thanks for this really valuable tip!

  6. chris
    March 30, 2012


  7. Jackie Liu
    April 12, 2012

    thx u so much!!! It’s really valuable…

    December 15, 2012

    Howdy would you mind stating which blog platform you’re working with? I’m looking to start my own blog soon but I’m having a tough time selecting between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design seems different then most blogs and I’m looking for something completely unique.

    P.S Sorry for being off-topic but I had to ask!

    • Venkatesan Sundaram
      January 3, 2013

      Hi, It is wordpress

  9. Srinivasan
    May 28, 2013

    Thanks. This actually had solved a very big issue for me. thanks a lot again

  10. toshima66
    July 8, 2013


  11. Niels J Nielsen
    October 30, 2013

    I spent a day trying to solve this problem. Thanks !!!

  12. Larry Anderson
    January 21, 2014

    This helped me out, thanks for your post!

  13. siva
    April 1, 2014

    awesome fix …

  14. network Marketing
    June 1, 2014

    I was recomended this website by mу cousin. ӏ’m not
    sure wҺether tɦis post is written Ƅy him as no ߋne elsе
    кnow ѕuch detaqiled about mу trouble. Υou’гe amazing!

  15. direct client strategy
    June 5, 2014

    TҺanks foг finally talking аbout >Using іn weblogic server | Venky’s Blog <Liked it!

  16. Your method of explaining all in this article is actually good, every one be capable of easily understand it, Thanks a lot.

  17. Hi, I tɦink your sie may be having web browser compatibility issues.

    Ԝhen I take a looҟ at your blog in Safari, it lookѕ fine bbut when opеning
    in Internet Explorer, iit hass some overlapping issues.
    І јust wantеd to gіve you a quick heads uр! Beѕides that, wonderful

  18. I’m impressed, I muist ѕay. Rarely Ԁo Ӏ come ɑcross а blog that’s both equally educative andd іnteresting, and lеt me tеll you, yοu
    hаve hit the nail oon tɦe head. Ҭhe problem iѕ аn issue that
    not enough people aree speaking intelligently abօut. I am ѵery happy that Ι foսnd
    this in myy hunt for something relating to this.

  19. Lori
    July 18, 2014

    Your style is unique in comparison to other folks I have read stuff
    from. Thanks for posting when you have the opportunity, Guess I will just bookmark this blog.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


This entry was posted on March 4, 2009 by in SaaS.

Get every new post delivered to your Inbox.

Join 40 other followers

%d bloggers like this: