Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6590771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:20:31+00:00 2026-05-25T17:20:31+00:00

We used the class JAXWSProperties from the com.sun.* package in the code in order

  • 0

We used the class JAXWSProperties from the com.sun.* package in the code in order to set timeout properties like this:

import com.sun.xml.internal.ws.developer.JAXWSProperties;
...
Map<String, Object> ctxt = ((BindingProvider) port).getRequestContext();
ctxt.put(JAXWSProperties.CONNECT_TIMEOUT, 10000);

It compiles fine in the local Eclipse, but not on a continuous integration system (both using JDK 1.6). From researching this problem, I learned that the com.sun.* package should be avoided.

So my questions are:

  • What causes the failed import at compile time?
  • What should be used instead of JAXWSProperties?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:20:32+00:00Added an answer on May 25, 2026 at 5:20 pm

    I’ve just had pretty much the same problem while converting one of our projects to run under Maven.

    The solution I found, isn’t really an ideal solution, in fact it’s more of a “cludge” than a “fix,” although it does run through the compiler OK. Like you I did a bit of research on this issue, and found a comment from Sun saying that these packages are hidden from the compiler, but are available to the JVM.

    So, the solution I found was to simply find the string to which the constant was pointing, and use that locally.

    In your case it would be:

    final static String CONNECT_TIMEOUT = "com.sun.xml.internal.ws.connect.timeout";
    ....
    Map<String, Object> ctxt = ((BindingProvider) port).getRequestContext();
    ctxt.put(CONNECT_TIMEOUT, 10000);
    

    As I mentioned, this isn’t ideal, and can not be guaranteed to work in future compiler releases, so use with care.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Recently I used a class that inherits from a collection instead of having the
I have used the smtp class to send emails through code. Can I use
When should the keyword 'this' be used within C# class definitions? Is it standard
I have this class used in MVC3... The Validation Attributes for each property are
I have used a class in which i have this update query for Payment
Can the volatile be used for class objects? Like: volatile Myclass className; The problem
<context:annotation-config/> <context:component-scan... this is used for class that i need to annotated with @Repository
I create one application used form class now its very simple,I want set background
I'm using this tutorial , but when I compile the code from it: D3DXMatrixLookAtLH(
For previous projects I have used /** * HTTP Class * * This is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.