Java 6 HttpURLConnection SPNEGO support

I am trying to access a protected resource from a server that is setup for SPNEGO authentication.
On the client side I am logged on to the same domain and did all the required setup (at least I think so)
for getting the identity and tickets from the Windows cache.
When I access the resource from Internet Explorer everything works fine but when I try to access it
from Java 6 HttpURLConnection I still get HTTP 401 error although Java 6 HttpURLConnection should support SPNEGO.
If I attach by myself the "Negotiate..." header with the token that I build by myself I get the resource and HTTP 200
although I receive also a Negotiate header with a token of type 96 that I cannot pass it to initSecContext as stated
in SPNEGO RFC that I should do.
I have two questions:
1. What should I do in order to use the built in SPNEGO support in Java 6 for HttpURLConnection when working
with tickets from Windows cache ?
2. What could be the reason that I receive on the last authentication leg on HTTP 200 a token that is not of type
context but application (value = 96) and cannot be used for fininshing the security context establishment ?
Thanks.

See Rhino.
This is essentially the scripting engine that's incorporated in Java SE 6.0.
You can ofcourse download it and use it with Java 5.0 or earlier versions.
See also JSR 223.

Similar Messages

  • Java API's supported in the Jdeveloper, IAS, and RDBMS product components

    If there are any technical errors or "mistatement of the facts" in this posting, please let me know about them ..
    This article is being delivered in Draft form and may contain
    errors. Please use the MetaLink "Feedback" button to advise
    Oracle of any issues related to this article.
    PURPOSE
    This article describes the "Enterprise Java Beans" (EJB), "Java Server Pages"
    (JSP) and servlets Application Programming Interfaces (API) supported by the
    Oracle products, Jdeveloper, Internet Application Server (IAS) and the Oracle
    RDBMS release 2 and release 3, also known as Version 8.1.6 and 8.1.7,
    respectively.
    SCOPE & APPLICATION
    All parties interested in the Java API's supported by these products.
    Java API's supported in the Jdeveloper, IAS, and RDBMS product components
    JDEVELOPER
    JDEVELOPER is Oracle's Java development tool designed for coding / development,
    testing / debugging, and deployment of Java Applications to the IAS and
    RDBMS platforms.
    With the java software api's being in a constant state of evolution, each new
    release of Jdeveloper adds support for the "then current" version of the java
    software api's, if it does not already have it implemented.
    JDEVELOPER SERVLET API JSP API EJB API
    VERSION VERSION VERSION VERSION
    3.2.X.X 2.2 1.1 1.1
    3.1.X.X 2.1 1.0 1.0
    NOTE :
    Sun Microsystems and their advisory teams (Oracle is on it) is working on
    "draft" specifications for the next version of all of these API's
    EJB -------> http://java.sun.com/products/ejb/index.html
    JSP -------> http://java.sun.com/products/jsp/index.html
    Servlets --> http://java.sun.com/products/servlet/?frontpage-javaplatform
    It is anticipated that future releases of Jdeveloper will continue to be
    upgraded to include support for the next version of each api.
    To obtain the latest information on Oracle's Internet Development Suite (IDS)
    of tools, please review the "Internet Developer Suite" information located
    on Oracle's technet web site at :
    http://technet.oracle.com/products/index.htm
    IAS
    IAS is Oracle's next evolution of the web server and application server
    product technology superceeding the Web Application Server (WAS) and Oracle
    Application Server (OAS) product lines.
    IAS SERVLET API JSP API EJB API EJE VERSION
    VERSION VERSION VERSION VERSION SUPPORTED
    9I(1.0.2) 2.2 1.1 1.1 817
    8i(1.0.1-NT) 2.0 1.0 1.0 816
    8i(1.0.0-UNIX) 2.0 1.0 1.0 816
    The IAS product contains two Java Virtual Machines (JVM) within it's
    architecture.
    They are called :
    1) APACHE JSERV servlet engine
    2) ORACLE ENTERPRISE JAVA ENGINE (EJE)
    APACHE JSERV servlet engine
    The APACHE JSERV servlet engine is an EXISTING product licensed from the
    apache group which supports the servlet api 2.0.ONLY.
    The APACHE JSERV product does not support ANY JSP's unless the customer
    installs a third party jsp engine.
    The IAS 8i/9i which has the APACHE JSERV product embedded in it, comes with
    Oracle's JSP engine (OJSP) already integrated into it. OJSP supports JSP's up
    to the specific JSP engine version documented in the Oracle Universal
    Installer (OUI) for the 8.1.7 RDBMS or the IAS products. It is also documented
    in the product's release notes.
    Oracle ENTERPRISE JAVA ENGINE (EJE)
    The EJE formerly known as :
    1) Oracle 8i Java Virtual Machine (JVM)
    2) JSERVER component,
    3) Aurora JVM
    was originally releas ed in the RDBMS 8.1.5 database with jdk 1.1.6 based java
    support.
    The currently supported versions of the Oracle 8i RDBMS, versions 2 and 3,
    also known as Version 8.1.6 and 8.1.7, respectively, provides a jdk 1.2.1
    based java virtual machine support.
    "EJE" Version 816
    This EJE, found in rdbms 8.1.6 and IAS 8i, contains support for the ejb
    api 1.0, corba, and java stored procedures.
    "EJE" Version 817
    This EJE, found in rdbms 8.1.7 and IAS 9i, contains support for the ejb,
    corba, and java stored procedures as well as the Oracle Servlet Engine (OSE)
    which provides support for the servlets 2.2 api and JSP 1.1 api.
    Note :
    EJB support in the "EJE" Version 817 has been upgraded to comply with the EJB
    1.1 api specification which includes "entity beans" support.
    What is the bottom line ??
    1) Servlets deployed to the APACHE JSERV must comply with servlet api 2.0.
    2) Servlets 2.1 or higher are only supported in EJE's OSE component found in
    the rdbms 817 or ias 9i products. Servlets api 2.0 can also run in the OSE.
    References
    1) "Oracle9i Application Server Technical White Paper" located at :
    http://technet.oracle.com/products/ias/pdf/9ias_102.pdf
    2) "Whats New? Oracle8i JVM Accelerator, Oracle Servlet Engine, OracleJSP ..."
    located at :
    http://technet.oracle.com/products/oracle8i/pdf/504.pdf
    3) "Oracle8i Release 3 New Features Summary" located at :
    http://technet.oracle.com/products/oracle8i/pdf/8iR3_nfs.pdf
    null

    which jvm is used by jserv ?? EJE or a separate jdk ?
    The Jserv servlet engine is running in a separate jdk JVM external to the EJE jvm which is embedded within the "database" component of ias and the RDBMS.
    See the reference below for more details ...
    if jserv only support old apis, why it is in oracle's products ?
    i would assume that the oracle servlet engine was under development when ias 8i was released and became available in time for the ias 9i and rdbms 817 products.
    looking back in history leads me to believe ias 8i was a migration path to get to ias 9i or rdbms 817.
    Based upon the long history of new releases of every oracle product being upgraded with new features, it's reasonable to assume that these products will continue to evolve.
    when I deploy a jsp how to deploy in the right servlet container ("EJE") ?
    as documented in the reference below, you can deploy JSP's to either the apache jserv jvm or the EJE since the ORACLE JSP engine functionality is in both jvm's.
    there are many posts where you can see that people have deploy in jserv and they have problems because they don't use the right container (servlet 2.0 instead of
    servlet 2.2) http://technet.oracle.com:89/ubb/Forum2/HTML/006349.html
    when ias 8i came out this was clearly an issue since servlet support was at api 2.0, and the current servlet api was probably at 2.1.
    oracle clearly made every effort to get ias 9i released quickly to supply a servlet 2.1 and 2.2 capable engine to resolve this issue.
    since ias 9i and rdbms 8.1.7 are available this is no longer an issue.
    The reference below explains the architecture and understanding it would eliminate a lot of "deploy to the wrong ias 9i component" issues.
    so why jserv is bundled with oracle 8i/9ias since EJE support the right api version ?
    if in ias 9i release , oracle had removed the jserv component without any advance warning, many customers would have been very upset since oracle makes every attempt to give advance notice before removal of functionality.
    References
    1) "Oracle9i Application Server Technical White Paper" located at :
    http://technet.oracle.com/products/ias/pdf/9ias_102.pdf

  • Why is there a java enable function in the settings app if java ia not supported by ipad2?

    Why is there a java enable function in the settings app of the ipad2, ios5, when java is not supported by ios5 on the ipad2?  The adds say that java neo, I think that is what it is supposed to be called, was supposedly introduced into the ios5 format to deal with this?

    If you're looking in the settings for Safari, that's JavaScript, which despite the similarity in names is completely different from Java. Java is not, never has been, and all indications are never will be supported in iOS. I have no idea what "java neo" might be, but I've never seen Java mentioned in any way in any of Apple's iPad ads.
    Regards.

  • Does Java Access Bridge supports Java 6?

    Does Java Access Bridge support Java 6?
    Also where can I find 2.0.4 (Beta), the following link does not work -
    http://java.sun.com/developer/earlyAccess/accessbridge/
    thanks,
    sachin.

    Our company develops an applet that supports Jaws via the Java Access Bridge v.2.01. We've had no problems with JRE 1.6. However, Jaws does not read the accessible names when I tried JRE 1.7. It behaves as if the access bridge is broken. I reverted back to JRE 1.6.0_20 and it works fine again. I reported this to Freedom Scientific but they just said, "you will need to contact the Sun support team to determine the latest version of the JRE recognized by the Accessibility Bridge." They don't seem too concerned that their product may not work for many people in the near future.

  • Why java does not support multiple inheritance ???

    Hai friends ..iam new to java .. i have doubt ..plz help me
    Why java does not support multiple inheritance ???

    The reasons for omitting multiple inheritance from the Java language mostly stem from the "simple, object oriented, and familiar" goal.
    To understand multiple inheritance, the learner needs some level of expertise like virtual derivations etc in c++. Multiple inheritance will allow method duplication, and throws the learner into confusion which method might be called by the compiler in which scenario at run time.
    Even though this answer seems to be funny, this is the actual reason why java omitted multiple inheritance of classes.
    But java support multiple inheritance of interfaces. Multiple interface inheritance allows an object to inherit many different method signatures with the caveat that the inheriting object must implement those inherited methods.

  • I am programmer and I am using dr java on my mac-book pro with retina display but dr java doesn't support retina display, what is the possible way to solve this ?

    I am programmer and I am using dr java on my mac-book pro with retina display but dr java doesn't support retina display, what is the possible way to solve this ?

    I have made some progress.... I can print wirelessly from my printer now, but I can't set the printer itself to be wireless.  I had to move my printer downstairs to where my router is...which is not that convient.   I printed up the page you asked about....and as expected, it says it is off line and there is no IP address.    So now I need to figure out how to make my printer itself wireless.  I did download the HP driver I needed...but I can't access it to do anything else.  It seems l like I am missing a step... or I need to hook up my computer itself to the printer to help get the printer to be wirelss, but I can't hook it up because there is no port for me to do that (no port that looks like a phone jack).  I am guessing I would need a different type of cord, but I am not sure what kind of cord that would be! Ugh!

  • Databases Java enterprise system supports

    hi
    i wanted to know what databases java enterprise system supports?and where can i find information regarding the above

    hi
    i wanted to know what databases java enterprise system supports?and where can i find information regarding the above

  • New way generating of Java Proxy to support parallel processing

    Hi All!!
    To the Java Proxy Server supports the processing of several executions in parallel way, a new way or generation has been released. On the Integration Directory, when you select an Inbound Message Interface and go to Java Proxy Generation, 2 .zip archives are generated, one for the execution in sequential way (XXX.ZIP) and other for the execution in parallel way (XXX_PARARELL.ZIP).
    I have tried to generate the Java Proxy only with XXX_PARARELL.ZIP and I think is not possible, because no EJB Candidate is generated.
    Somebody knows how I can generate the Java Proxy?
    Thanks and regards,
    Manuel Míguez.

    a bit of light reading for you
    http://onesearch.sun.com/search/developers/index.jsp?and=java.lang.ClassFormatError+Bad+magic+number&nh=10&Search.x=26&Search.y=11&phr=&qt=&not=&field=&since=&col=devforums&rf=0

  • Do Java Stored Proc support GUI

    Calling Java stored procedure from database Trigger
    I tried three things individually in Java Stored proc after
    trigger is fired:
    1. Do SQL statement (Insert into ... )
    2. Execute a command to open notepad screen.
    3. Open a new Frame and display it.
    These three are simple testing, Item 1 works fine, however,
    Item 2 and 3 never works.
    IS JAVA STORED PROC CAN ONLY DO SQL TYPES OF WORK (INSERT, DELETE, UPDATE) ?
    The errors I have for Items 2 and 3 are like:
    1. When loading java: Java call terminated by uncaught Java exception:
    oracle.aurora.awt.UnsupportedOperation:GUI not supported.
    2. When triger is fired: class SCOTT.DBTrigger could not be resolved.
    Thanks for help !!

    As far as I know java stored procedures can't use any GUI classes. Only unvisible actions!
    Regards

  • Java and Oracle support for Solaris 10?

    Hi
    Does anybody know when Oracle plans to support Solaris 10?
    We plan to purchase a Opteron server and would like to use Oracle.
    We also plan to use Sun Java AppServer Platform Edition. Any idea when that will support Solaris 10?
    Am I correct in assuming that Solaris x86 will run fine on an Opteron system.
    thanks in advance

    Oracle support Solaris 10 x86 but I doubt it's native 64 bits. The App. server is supported just go to Sun's site. The short answer is that Oracle and the App. server should both work but not necessarily in 64 bit mode.
    As for the Opteron system, you should check the HCL.

  • Java/SDOAPI not supported in 9i

    For someone at Oracle:
    Is it correct that SDOAPI is not going to be supported in 9i?
    What are the alternatives?
    Lack of 9i support for a key API is very, very frustrating!!!
    regards,
    Andrew

    I believe this is supported in 9i.
    SDOAPI (the java api to spatial) will only be supported to help store and access spatial data.
    The current direction is not to include spatial functionality that duplicates spatial "engine"
    features (i.e. no spatial operators and functions will be supported via the API).
    Hope this helps,
    Dan

  • Does Java EE 6 support JMX2.0 ?

    I am planning to use JMX in my future Java EE 6 projects. Still in research for now, I'm afraid I've got a little confused by the versioning issue.
    According to [Java EE 6 Technologies|http://www.oracle.com/technetwork/java/javaee/tech/index.html] page, EE6 includes JMX 2.0 (JSR 255), but wouldn't that be wrong or obsolete information ?
    The EE6 Spec (JSR 316) says it requires at least SE6 but it does not mention the version of JMX any further. Now, the version of JMX bundled with SE6 is JMX1.4. Therefore, to my understanding, EE6 must support JMX1.4, but not JMX2.0.
    * JMX2.0 support has been dropped from JDK7 by the way.
    Any suggestions are welcome.

    Supplementary info:
    Glassfish v3.1 and Java EE 6 SDK (yet not confirmed) seemingly do not have JMX2.0-specific packages. They use the JDK6's bundled JMX implementation (i.e.JMX1.4) left unchanged.
    Also note that JSR 255 (JMX2.0) is currently on its Early Draft Review stage but not fixed yet as it is in Inactive status.
    http://jcp.org/en/jsr/detail?id=255

  • Crystal rpeort java(crj) not support weblogic 10.3.6 jdk1.6

    Hi,
    My system use weblogic 10.0 jdk1.5 with crystal report java (crjava-runtime_12.2.217) is work find, but we want to upgrade server to weblogic 10.3.6.
    In the crystal report java (crjava-runtime_12.2.217) document say weblogic 10.3.6 only support 1.5.0_04.
    I install jdk1.5 with weblogic 10.3.6 the server can't started success, it well say bad version for .class.
    I can't accept is any brand application server have support jdk1.6.
    Only Weblogic not support jdk1.6(Tomcat support 1.6 and is free).
    Someone can help me to finish server upgrade?
    Thank you very much.
    crystal report java (crjava-runtime_12.2.217) support document:
    Web Application Servers       
    JDK Support
    ===========================================================
    * JBoss 4.2
    1.5
    * JBoss 5
    1.5
    * JBoss 7.1
    1.6
    * Oracle Application Server 10g R3 (10.1.3)
    1.5.05
    * SAP Web Application Server 7.1
    1.5
    * SAP Web Application Server 7.31 SP4
    1.6
    * SAP Web Application Server 7.40
    1.6
    * Tomcat 5.5
    1.5.0_x
    * Tomcat 6.0
    1.5+/1.6
    * Tomcat 7.0.25
    1.6
    * WebLogic 9.2
    1.5.0_04
    * WebLogic 10.2
    1.5.0_04
    * WebLogic 10.3
    1.5.0_04
    * WebSphere 6.1
    1.
    * WebSphere 7.0
    1.5
    * WebSphere 8.5
    1.6

    Hi,
    The standalone weblogic 10.3.6 does support jdk 1.6 and not jdk1.5
    if crystal report works only with wls 10.3.6 with jdk 1.5, then you need to check if there is any other version of crystal report that can be used with wls 10.3.6 + jdk 1.6
    Thanks,
    Sharmela

  • Java files not supported n73

    Could someone help me, I have just got an N73 and have been trying to install some java games, some will go on but most say "Not Supported" also it does not support any sis files. is this just the model or have I got a problem. I also have an N70 and I can install all these file on to it without problems.

    04-Oct-200706:57 PM
    scoobyman wrote:
    Hi kismet54
    I have SmartMovie on my N95 and in the "Player" folder on PC there is S60 3rd .sisx file
    You may find that you have to set phone date some months in arrears if you get "error - certificate expired" to allow it to install.
    Hello buddy!
    It seems that every single application has to be dated back?

  • Does java print service support word docs or text files

    Can anyone tell me that java print service api allows to print word doc files or RTF files etc.

    no it doesn't.
    To print a Word Doc you need to be able to read it, and display it.
    Anything that can be displayed in, say a JPanel, can be printed, cos it's just a matter of displaying the
    image to a virtual component ( a print canvas ). Which then gets printed.
    So, because Java doesn't immediately support Ms Docs, neither does the print service.
    regards,
    Owen

Maybe you are looking for

  • How can I get my iPod touch to display all the artwork on my computer?

    Hi, I have an iPod touch 4th gen 32 GB with iOS 6.1 on it.  I have trouble getting it to display all the album artwork that I have on my computer.  Not all of my music has it, but about 90% of it does.  Is there any way I can make it display everythi

  • Query regarding backup of database

    Dear Developers, Greetings Of The Day !!! On button click from my swing application I want to take backup of database. How I can proceed with java. Any help would be appreciated Regards

  • Compressing and writing to a DVD

    Hi everybody! I am a rookie to FC and have been working on my first project. The actual video is about 1:15 and has about 20 song clips. I have it encoded as a QuickTime Movie. When I tried to burn it to a disk, iDVD, came back with a message that I

  • Mail shuts down

    For the past two days I have been trying to launch MAIL under Administrative User. The program launches, but as soon as it tries to show the contents of the mailbox, MAIL closes. This problem does not happen when I launch as another user. Oh yes, it

  • File export format

    Hello, Can someone tell me how to export to a file in a format like (using UTL FILE TYPE) "YAHOO","TEST ","TEST ","000020 ","0", 03434, 0,TEST help is appreciated.