Hanging while accessing a page with Windows Integrated security?

Here is the code I am trying:
HttpMethodBase method = null;
try {   
HttpClient client = new HttpClient();
client.getState().setCredentials(AuthScope.ANY,
new NTCredentials(userName, pwd, host, domain) );
System.out.println(httpServiceURL);
method = new GetMethod(httpServiceURL);
method.setDoAuthentication( true );
int status = client.executeMethod(method);
System.out.println(status + "\n" + method.getResponseBodyAsString());
This code works fine on stand alone java application, but when I deploy it to Weblogic.. it just hangs at GetMethod. No exception, nothing..
when I change that to
               method = new GetMethod();
               method.setFollowRedirects(true);
               method.setPath(httpServiceURL);
It is failing at executeMethod().
any suggestions? Thanks,

This Weblogic... is it running as a Windows service? Under what user profile? Presumably the authentication would be based on that user profile.

Similar Messages

  • JAX-WS web service client and Windows integrated Security authentication

    I am currently developing a JAX-WS web service client running on WebLogic 10.3.2.0. The client is connecting to exchange web service running on IIS.
    Everything works well when EWS is configured with Http basic authentication.
    The problems started when I changed the autentication method on EWS from Http basic authentication to Windows integrated Security authentication.
    The client is then unable to authenticate to the web service. Every request made to EWS returns with the message : Invalid HTTP server response [401] - Unauthorized.
    I tried using an authenticator like this one:
    static class RetrieveWSDLAuthenticator extends Authenticator
    private String username, password;
    public RetrieveWSDLAuthenticator(String user, String pass)
    username = user;
    password = pass;
    @Override
    protected PasswordAuthentication getPasswordAuthentication()
    return new PasswordAuthentication(username, password.toCharArray());
    and setting it as the default authenticator :
    Authenticator.setDefault(new MyAuthenticator("username", "password"));
    but the method getPasswordAuthentication() was not even called.
    Is there a way to make a JAX-WS client works with Windows integrated Security ?

    WIS is not suppported on WLS JAX-WS. You'll need to use other authentication mechanisms such as http basic (which you tried already), or message-level security such as UNT, or SAML.
    Regards,
    Pyounguk

  • Windows Integrated Security with SSRS, Sharepoint 2013 and SSAS over http

    I have the following setup and problem:
    Sharepoint 2013 with SSRS in Sharepoint integrated mode
    SSAS 2012 SP1 with http access (IIS + msmdpump) enabled on the same box as SSAS
    Every component I have tried works fine with this (PerformancePoint, .bism connections, SSIS packages etc.), connecting over http using Kerberos and windows integrated authentication.
    SSRS (.rsds) connections in Sharepoint fail a connection test when using the same http connection string + Windows integrated authentication which works for everything else. The error is: "Unsupported data format: -> Microsoft.ReportingServices.DataExtensions.AdomdTestConnectionException:
    Unsupported data format:"
    SQL server profiler shows that the windows username is reaching the SSAS server is all cases.
    Kerberos delegation is set up for SSAS and is working.
    Switching the .rsds connection to saved credentials (same user as I tried with Windows integrated auth) works fine and SQL server profile logs look the same as the Windows integrated case.
    So, everything seems to work with Kerberos + http apart from SSRS ... any idea welcome. I did read that SSPI is not supported for http connections but then again, there are sites which give examples of exactly such connection strings. I can't find any
    mention of this case or exact problem anywhere ...

    For information, this was fixed by applying the .NET 4.5.1 patch as advised by MS support. Now http connections from integrated mode SSRS work ok.

  • Wrt54g2 v1 to slow access to internet with windows xp

    what can be the reason that my router wrt54g2 v1 is to slow accessing to internet with windows xp, while in windows 2000 is driving like a train????

    Is the Windows XP Computer wired to the router or Wireless ?
    Is the Windows 2000 Computer wired to the router or Wireless ?

  • Get error while invoking a page with "create"

    I get this error while invoking a page with "create". Also please any one tell me where is the log file is place to see the full story.
    ]] Root cause of ServletException.
    javax.el.PropertyNotFoundException: Target Unreachable, 'Comments' returned null
         at com.sun.el.parser.AstValue.getTarget(AstValue.java:88)
         at com.sun.el.parser.AstValue.isReadOnly(AstValue.java:126)
         at com.sun.el.ValueExpressionImpl.isReadOnly(ValueExpressionImpl.java:230)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.getReadOnly(EditableValueRenderer.java:400)
         at oracle.adfinternal.view.faces.renderkit.rich.FormElementRenderer.renderAsElement(FormElementRenderer.java:199)
         Truncated. see log file for complete stacktrace
    If i use a "create button then it does not throw error.
    Please help.

    When you are invoking your page, does your view object has an empty row where data can go and presist?
    Create a an empty row in your view object(vo.createRow()) , or use create operation from data control palette.
    You can set the log in Tools->Preferences-->Environment-->Log.
    Regards,
    Vikram

  • Very slow Access 2002 query with Windows 7

    I need help troubleshooting consistently slow queries in an Access 2002 database with Windows 7.
     I’m running a temporary query in a local copy of a back end database with only tables. The identical query will take just 2-3 seconds with Windows XP but 30-60 seconds with Windows 7. Multiple Windows 7 workstations are all slow and
    all Windows XP machines run the query quickly.  I even used JetShowPlan on both workstations to compare and the plans are identical. Two tables are involved with rushmore used on the first and a full scan on the second table of about 150,000 records.
    Even in XP Mode on the Windows 7 machine the query still takes only about 10 seconds. Anyone have any ideas why Access/Jet on Windows 7 can be so slow? Thanks for any ideas.
    Rick Collard

    Hi Tony,
    Thanks for the pointer - I had found that one earlier and tried it - did not help.  I think the HP ProtectTools Security Manager is Normally loaded
    on Laptops - my problem is on Workstation.  I did a test of 2007 Access in the Virtual XP Mode window - There is works 'normally'. 
    To give you an idea how Slow a query in 2007 access/W7 is;
    I started a search for part numbers with 'busbar' in their description...
       on W7 - Database is LOCAL to WS and upgraded to Office 2007
    I then opened an XP Mode window
    Opened the 2007 Access DB to the 'normal' database located on fileserver.
    enter the same Part search
    counted to 10 - 19 Parts found
    Closed DB
    Closed XP Mode window
    Waited about 2 minutes... same 19 parts found....  Wonderful!
    I will wait till my MS Rep can get me in line for the Hot fix or MS releases it.  Till then I will teach the Users how to Use XP Mode.
    -db 

  • Fdm, create app with enabling "Windows Integrated Security"

    currently, we need to enter UserID and Password each time we create a new fdm app on the web. we also cannot sign into the Workbench client.
    how do we configure the system, so that we can create applications WITH enabling "Windows Integrated Security", so that we can use the same password to sign into the Workbench client.
    thanks.
    Edited by: user642786 on Feb 7, 2011 9:35 PM
    Edited by: user642786 on Feb 8, 2011 11:54 AM

    os admin takes care of this.

  • While using fire fox with windows 7. and you hit the back arrow. random pages start to pop up.

    while using firefox with windows 7 every time i click the back arrow it will load a random page behind what i am looking at. any thing from gamevance to home refinancing to some mozilla pages.
    == This happened ==
    Every time Firefox opened
    == i installed firefox

    Do you still have the Bookmarks Toolbar visible with the bookmarks on it?
    If that is the case then see:
    *https://support.mozilla.org/kb/Restore+the+default+Smart+Bookmarks+Folders
    Otherwise check this:
    Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible:
    *Firefox > Options
    *"View > Toolbars"
    Open the Customize window to set which toolbar items to display:
    *View > Toolbars > Customize
    *Firefox > Options > Toolbar Layout
    *Check that the "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    *If the "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the toolbar palette in the customize window to the Bookmarks Toolbar
    *If missing items are in the toolbar palette then drag them back from the Customize window on the toolbar
    *If you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar set up
    *https://support.mozilla.org/kb/How+to+customize+the+toolbar
    *https://support.mozilla.org/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • ITunes crashes while accessing iTunes Store with a intel video driver

    I have a DELL laptop running Windows 8.1 with i7 4500U at 1.8G, 8G ram, 1TB hard disk, NVidia GT750M, iTunes is working fine at downloading or updating apps but crashes while I trying to accessing iTunes Store, no matter I choose run with intel integrated video card or Nvidia video card.
    I wonder if this is happened because of Win 8.1 incompatibility or intel video driver, the driver is up to date and if I try an older driver, iTunes won't start at all.
    The same thing happens with Adobe Photoshop CC 64bit, it just get freezed but get an error message said intel driver is crashed and auto recovered.
    a message is shown if I run iTunes with intel video card by default when i access itunes store, but itunes quit if I try nvidia video card, without any error message.

    I'd like to add some more details to my question.
    I don't know if this happens at Win8 since I updated to Win 8.1 right after I purchased my laptop, all Win patches are up to date and also iTunes, I am running Win 8.1 64bit Pro version.
    I tryed to reinstall iTunes, install quicktime or reinstall quicktime, also tryed to use microsoft kb 2639417, but it does not support win 8.1.

  • Error while accessing UIX pages when deployed using OC4J

    UIX: 2.1.9
    JDeveloper: 9.0.3
    Database: 8i Release 3.
    Using UIX and BC4J, I created few pages for a small application. I installed the OC4J standalone and configured setting library paths and and deployed this application. I extended the UixPageBroker and TrivialPageFlow engine to suit my application requirements. All pages within the application requires the user to login. While accessing a UIX page, I am getting the error provided below. However, if I am not extending the UixPageBroker and PageFlowEngine, UIX pages are rendered with no problem. Can someone tell me what is the cause of this?
    500 Internal Server Error
    java.lang.NullPointerException
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].naming.ContextClassLoader.loadClass(ContextClassLoader.java:135)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].naming.ContextClassLoader.loadClass(ContextClassLoader.java:135)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at oracle.bali.share.util.ClassLoaderUtils.loadClass(Unknown Source)
         at oracle.bali.share.util.ClassLoaderUtils.loadClass(Unknown Source)
         at oracle.cabo.servlet.UIXServlet.init(Unknown Source)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpApplication.loadServlet(HttpApplication.java:1956)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpApplication.findServlet(HttpApplication.java:4355)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2484)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:617)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
         at java.lang.Thread.run(Unknown Source)

    I found out the workaround but not sure whether it is the right solution.
    When the application is deployed, it will be creating few files under the directory "application-deployments", of which some are configuration files specific to the deployed application.
    Edit the file: orion-web.xml and uncomment the following:
    <web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="true" />Save the file and restart OC4J.

  • Firefox 20.0.1 with Shockwave 11.7.700.169 crashes when you access web pages with video content

    I have a problem with Firefox 20.0.1 under Windows 7 with Shockwave flash 11.7.700.169. When I access a web site / web page with some content that requires Shockwave (usually videos) I can view the video, however, when I exit Firefox, it will crash with "Firefox encountered a problem - check for a solution ...". I also have a web site "MyHeritage" that when I access a family tree I repeatedly get a message "Video driver stopped working - NVIDIA driver ... has successfully recovered". If I disable Shockwave, Firefox will not crash in both cases, unfortunately, I cannot watch any video content.
    I did go to the Adobe web site and updated what I thought was my version of Shockwave, unfortunately this installed Director for netscape V12.2, I have disabled this plug-in.
    BTW - running Firefox in safe mode (add-ons disabled) stopped my NVIDIA driver from crashing and also stopped Firefox from crashing when exiting.

    Please check if all your plugins are up-to-date using [http://mozilla.com/plugincheck Mozilla Plugin Check site].
    Once you're there, the site will check if all your plugins have the latest versions.
    If you see plugins in the list that have a yellow ''Update'' button or a red ''Update now'' button, please update these immediately.
    To do so, please click each red or yellow button. Then you should see a site that allows you to download the latest version. Double-click the downloaded file to start the installation and follow the steps mentioned in the installation procedure.

  • IMac aug. 2008, OCZ SSD 250Gb hangs when trying to boot with Windows CD

    I just bought a new Vertex 250GB SSD disc and installed OSX on it and everything seems to work.
    Now I wanted to install bootcamp with Windows 7 64 RC1 on it, but I can't boot from the DVD. It just hangs with a white screen in the beginning, right after the beep, before it even starts the Win-setup. I have made the partitions and I have tried different CDs also 32/64 bit. I have also tried with a Ubuntu/Linux CD. The only CD I can boot from is the Mac install DVD.
    Have anyone else had this problem or do anyone have any ideas for a fix?
    I have created a thread on OCZ's forum too - http://www.ocztechnologyforum.com/forum/showthread.php?t=58552
    Some specs (It Danish):
    Modelnavn: iMac
    Model-id: iMac8,1
    Processornavn: Intel Core 2 Duo
    Processorhastighed: 3.06 GHz
    Antal processorer: 1
    Antal kerner i alt: 2
    L2-buffer: 6 MB
    Hukommelse: 4 GB
    Bushastighed: 1.07 GHz
    Boot ROM-version: IM81.00C1.B00
    SMC-version (system): 1.30f1
    Intel ICH8-M AHCI:
    Producent: Intel
    Produkt: ICH8-M AHCI
    Hastighed: 3 Gigabit
    Beskrivelse: AHCI Version 1.10 Supported
    OCZ-VERTEX:
    Kapacitet: 238,47 GB
    Model: OCZ-VERTEX
    Revision: 1.3
    Serienummer: 35GIQ91BARL00LU95SFU
    NCQ (Native Command Queuing): Ja
    Antal kommandoer i kø: 32
    Udskiftelige medier: Nej
    Udskifteligt drev: Nej
    BSD-navn: disk0
    Mac OS 9-drivere: Nej
    Type partitionsoversigt: GPT (GUID-partitionstabel)
    S.M.A.R.T.-status: Kontrolleret
    Enheder:
    MAC OS X:
    Kapacitet: 157,88 GB
    Tilgængelig: 77,09 GB
    Ikke skrivebeskyttet: Ja
    Arkivsystem: Journaled HFS+
    BSD-navn: disk0s2
    Aktiveringspunkt: /
    BOOTCAMP:
    Kapacitet: 80,28 GB
    Tilgængelig: 80,26 GB
    Ikke skrivebeskyttet: Ja
    Arkivsystem: MS-DOS FAT32
    BSD-navn: disk0s3
    Aktiveringspunkt: /Volumes/BOOTCAMP

    If this is an external SSD, I do not believe that you can install Windows with a Boot Camp partition. It is an internal drive process only.
    Just an idea for you. There is an entire Apple Discussion forum dedicated to Boot Camp and Windows.
    Whereas, not everyone here with an Intel iMac has installed, tried to install or has experience with BC & Windows, everyone there has or at least has an interest. You may attract help more quickly there.
    The Forums are at the bottom of the main Apple Discussions page under Windows Compatible Technology. Here is a link;
    Boot Camp: Installation and Storage

  • IllegalArgumentException while accessing an EJB with a servlet client

    Dear All,
    Hey,
    I am facing some problems while accessing a deployed stateless ejb. Following is how my application is being accessed:
    WEBAPP CLIENT
         caller.html ------->> DisplayServletClient --------->> DisplayServlet
    (Simple HTML Page)          (Servlet which performs lookup)     (The actual bean)
    CONSOLE CLIENT
    DisplayConsoleClient --------->> DisplayServlet
    (Simple Console Client)     (The actual bean)
    I am using the J2EE reference implementation, the ejb bean is successfully deployed. The console client successfully, access the ejb. But when I try to access the ejb using the webapp client, I get the following exception:
    ======= EXCEPTION ENCOUNTERED ============
    Application DisplayApp deployed.
    Servlet Entered
    HTML Content Type Set
    PrintWriter Object Created
    Context Object Created
    Exception in Servlet Client Code: java.lang.IllegalArgumentException: Unknown co
    mponent type
    java.lang.IllegalArgumentException: Unknown component type
    at com.sun.enterprise.naming.NamingManagerImpl.getComponentType(NamingMa
    nagerImpl.java:670)
    at com.sun.enterprise.naming.NamingManagerImpl.getMangledIdName(NamingMa
    nagerImpl.java:708)
    at com.sun.enterprise.naming.NamingManagerImpl.getComponentIdInternal(Na
    mingManagerImpl.java:680)
    at com.sun.enterprise.naming.NamingManagerImpl.getComponentId(NamingMana
    gerImpl.java:313)
    at com.sun.enterprise.naming.java.javaURLContext.getComponentContext(jav
    aURLContext.java:397)
    at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.j
    ava:51)
    at javax.naming.InitialContext.lookup(InitialContext.java:350)
    at DisplayServletClient.service(DisplayServletClient.java:27)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServl
    et.java:428)
    at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java
    :180)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationF
    ilterChain.java:197)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilt
    erChain.java:176)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:172)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:243)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:215)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:566)
    at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve
    .java:246)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
    2314)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:164)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:566)
    at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.ja
    va:368)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:163)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
    r.java:995)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
    va:1088)
    at java.lang.Thread.run(Thread.java:484)
    ======== EXCEPTION END ===========
    Tweaking with the servlet client code, I have discovered that it is failing to perform a correct lookup. Can anybody suggest any remedy? My Source code is below:
    =========================================================
    ============ Remote Interface START ==============
    // The DisplayApp Remote Interface File
    import javax.ejb.*;
    import java.rmi.*;
    public interface Display extends EJBObject
         public String display() throws RemoteException;
    ============ Remote Interface END ==============
    ============ Home Interface START ==============
    // The DisplayApp Home Interface File
    import javax.ejb.*;
    import java.rmi.*;
    public interface DisplayHome extends EJBHome
         public Display create() throws RemoteException, CreateException;
    ============ Home Interface END ==============
    ============ Bean Class START ==============
    // The DisplayApp Bean Class File
    import javax.ejb.*;
    import java.rmi.*;
    public class DisplayBean implements SessionBean
         public String display() throws RemoteException
              System.out.println("The Server Side Response");
              return "Hello, Me a New Friend";
         public void ejbCreate(){}
         public void ejbRemove(){}
         public void ejbActivate(){}
         public void ejbPassivate(){}
         public void setSessionContext(SessionContext ctx){}
    ============ Bean Class END ==============
    ========== Console Client Class START ======
    // The Display Console Client Class File
    import javax.ejb.*;
    import javax.rmi.*;
    import javax.naming.*;
    import Display;
    import DisplayHome;
    public class DisplayConsoleClient
         public DisplayConsoleClient()
              try
                   Context initial=new InitialContext();
                   Object objref=initial.lookup("java:comp/env/DisplayJNDI");
                   DisplayHome home=(DisplayHome)PortableRemoteObject.narrow(objref, DisplayHome.class);
                   Display ref=home.create();
                   System.out.println("Client Side: "+ref.display());
                   ref.remove();
              catch(Exception ex)
                   System.out.println("Exception in Client Code: "+ex);
                   ex.printStackTrace();
         public static void main(String args[])
              new DisplayConsoleClient();
    ========== Console Client Class END ======
    ========== Servlet Client Class START ======
    // The DisplayApp Servlet Client Class File
    import javax.ejb.*;
    import javax.rmi.*;
    import javax.naming.*;
    import Display;
    import DisplayHome;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class DisplayServletClient extends HttpServlet
         private PrintWriter out;
         public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              try
              System.out.println("Servlet Entered");
              response.setContentType("text/html");
              System.out.println("HTML Content Type Set");
              out=response.getWriter();
              System.out.println("PrintWriter Object Created");
              Context initial=new InitialContext();
              System.out.println("Context Object Created");
              Object objref=initial.lookup("java:comp/env/ejb/DisplayWEBJNDI");
              System.out.println("Lookup Done Successfully");
              DisplayHome home=(DisplayHome)PortableRemoteObject.narrow(objref, DisplayHome.class);
              System.out.println("Home Object Created");
              Display ref=home.create();
              System.out.println("Remote Object Created");
              out.println("<html><title>The Results Page</title>");
              out.println("<body<hr>");
              out.println("<h1>The Client Side Response is: ");
              out.println(ref.display());
              out.println("</h1>");
              out.println("<hr>");
              out.println("</body></html>");
              System.out.println("Responses Done");
              out.flush();
              System.out.println("Output Stream Flushed");
              ref.remove();
              System.out.println("Remote Object Removed");
              catch(Exception ex)
                   System.out.println("Exception in Servlet Client Code: "+ex);
                   ex.printStackTrace();
    ========== Servlet Client Class END ======
    ========== Calling HTML File START ======
    <html>
    <body>
    <hr>
    <form method="get" action="/servlet/DisplayServletClient">
    <input type="submit" name="submit" value="Call Now!">
    </form>
    <hr>
    </body>
    </html>
    ========== Calling HTML File END ======
    =========================================================
    Since, the descriptors were automatically generated, I have not included them here. Also, I did not build the war, jar, ear files myself, they were automatically generated by the deploytool.
    Please help!!
    Thanks & Bye,
    Tualha Khan

    Hey,
    This was the latest code snippet which I used in the Servlet file.
    ========================
    try
              System.out.println("Servlet Entered");
              response.setContentType("text/html");
              System.out.println("HTML Content Type Set");
              out=response.getWriter();
              System.out.println("PrintWriter Object Created");
              InitialContext initial=new InitialContext();
              System.out.println("Context Object Created");
              Object objref=initial.lookup("DisplayWEBJNDI");
              System.out.println("Lookup Done Successfully");
              DisplayHome home=(DisplayHome)PortableRemoteObject.narrow(objref, DisplayHome.class);
              System.out.println("Home Object Created");
              Display ref=home.create();
              System.out.println("Remote Object Created");
              out.println("<html><title>The Results Page</title>");
              out.println("<body<hr>");
              out.println("<h1>The Client Side Response is: ");
              out.println(ref.display());
              out.println("</h1>");
              out.println("<hr>");
              out.println("</body></html>");
              System.out.println("Responses Done");
              out.flush();
              System.out.println("Output Stream Flushed");
              ref.remove();
              System.out.println("Remote Object Removed");
    ========================
    The Response was
    ========================
    Servlet Entered
    HTML Content Type Set
    PrintWriter Object Created
    Context Object Created
    Exception in Servlet Client Code: javax.naming.NameNotFoundException: DisplayWEB
    JNDI not found
    javax.naming.NameNotFoundException: DisplayWEBJNDI not found
    <<no stack trace available>>
    ========================
    So what else should I do???
    Thanks & Waiting,
    Tualha Khan

  • "One or more field types are not installed properly. Go to the list settings page to delete these fields" while accessing website pages

    We have a publishing website in SharePoint 2010. There are total 4 environments - Development, Test, Stage and Production. For some enhancements, we had to create some new lists and libraries. When we moved changes from Development to Test environment, everything
    worked fine. Relevant lists and libraries in lower environments were saved as templates (in .stp format) including content, imported to higher environment, lists/libraries were created in higher environment using imported templates. 
    Things worked fine from Development to Test. We did similar exercise from Test to Stage environment. Now in Stage, when we access some pages, we get error message - "One or more field types are not installed
    properly. Go to the list settings page to delete these fields.". ULS logs don't tell which exact list has got problems. 
    On searching for this error, I got many articles that explain how this could happen when we migrate from SharePoint 2007 (MOSS) to 2010. Though our case different (as all our environments are in 2010), we still tried following steps. 
    De-activate 'SharePoint Server Publishing Infrastructure' Site Collection feature
    Go to https://site-name/relationships%20list/allitems.aspx. This is a hidden list. Delete this list. 
    Re-activate 'SharePoint Server Publishing Infrastructure' Site Collection feature.
    Make sure that new hidden list with one item is created at https://site-name/relationships%20list/allitems.aspx
    However, this didn't help as we are still getting same error message. Appreciate if someone can suggest how this issue can be resolved. 
    Following are ULS logs:
    Unable to execute query: Error 0x81020014
    One or more field types are not installed properly. Go to the list settings page to delete these fields.
    System.Runtime.InteropServices.COMException: One or more field types are not installed properly. Go to the list settings page to delete these fields.   
     at Microsoft.SharePoint.Library.SPRequestInternalClass.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback,
    ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)    
     at Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback
    pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)
    Thanks!

    Hi Shrishail ,
    Some time this issue occurs if you have any custom filed types in the list or library and that field type is not installed on server .
    Can you please check that if you are having any custom field types column on the list and library and if that is the case you need to install that field type on the server. sometimes it happens if field types are not properly deployed / Installed then
    you have to uninstall that field types (retract solution) and deploy it again.
    Thanks,
    Ujjwal

  • Customize Access Requried page with code behind attached to it in sharepoint 2010

    Hi,
    I have modified default AccessDenied page to my custom accessdenied.aspx page and put Request Access button on it and javascript client side redirection to my requestaccess (reqestaccess.aspx, reqestaccess.aspx.cs) application page.
    Here the problem is whenever i try to redirect to custom requesaccess page in _layouts it again shows me accessdenied page since user is not having access.
    I changed requrestaccess to my custom requestaccess through Powershell command (UpdateMapping - 5). I can only modify the UI part of requestaccess.aspx and can not bind code behind where i want user to select combination of what access is required
    on the site, there are lots of controls on requestaccess page e.g. dropdown that fetches data from list\external list and so on.
    I tried many things to attach code behind to requestaccess page e.g. <%@ Page Inherits="codebehind.cs" /> and all.
    Q - How can i redirect user to custom request access page (includes both aspx, aspx.cs) and allow user to interact with custom page? Is there any way OR WORKAROUND to do this in Sharepoint 2010?
    OR
    Can we overide with ElevetedPermissions in UI\CodeBehind and show the application page to user?
    OR
    Can user access application page even though they donot have rights to access site? Anything will do.
    OR
    In short, I need to redirect a user to some .aspx\.aspx.cs page from AccessDenied page, irrespective of user having access or not. 
    I hope question is clear enough to understand the issue. :)
    Regards,
    Rahul

    Hi,
    According to your post, my understanding is that you had an issue about the custom Access Required page.
    Microsoft supported using code behind, but for these pages it seemed some difference.
    However, as a workaround, we can put all the functionality to the aspx page directly.
    http://umbraes-tower.blogspot.com/2011/10/custom-request-access-page-in.html
    More reference:
    http://onlinecoder.blogspot.com/2011/05/how-to-customize-requestaccess.html
    http://oszakiewski.net/eric/customizing-the-access-request-page-in-sharepoint-2010
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

Maybe you are looking for

  • My hp photosmart all in one 309a does not print PDF

    I recently had to uninstall and reinstall the program, and now all prints fine EXCEPT Adobe PDF documents.  Any Answers? Thanks

  • Xml in JTree: how to not collpase JTree node, when renaming XML Node.

    Hi. I'm writing some kind of XML editor. I want to view my XML document in JTree and make user able to edit contents of XML. I made my own TreeModel for JTree, which straight accesses XML DOM, produced by Xerces. Using DOM Events, I made good-looking

  • Confused about this error.

    I'm new to Java, and I'm trying to do some work with the Graphics2d library. But whenever I try to run any sample code (like below), I get this weird error: java.lang.NoClassDefFoundError: ShapeExample Exception in thread "main" What's up? It seems t

  • What is needed to do a remote trace?

    I am interested in logging events from Microsoft-Windows-HttpService on a remote machine. I'm in a corporate environment and all the computers use Windows Auth. I have access to the remote machine. Are there certain permissions that I need  in order

  • Where is Verizons customer loyalty?

    I've had this account for well over 20 years. Why am I paying the same rates as a new customer? Why do I need to jump through hoops to get new equipment? With all the companies and plans out here, you should provide more for your customers. Why aren'