Login as a component?

Hello,
I've done a login in my main-app and I want to outsource it as a component
If I done this, I could implement my login-component like this
        <mx:ViewStack id="Views" width="100%" height="550">
            <LoginView id="loginView"/>
            <ReadyView id="readyView"/>
        </mx:ViewStack>
My problem ist noch, that this login-component ask the user for email and password and check this after the user hit a button. If this entered data is correct, the login-component should tell the parents-app that all things are fine and the main-app should switch to the viewstackchild 'readyView'.
Is this possible?
- bb

Ou, as I see such question is a common problem, I just start another topic with the same problem. I`ve tried to resolve problem by creating my own event that dispatch to listeners, and I`ve tried to add Listener to main app. Just in case it will such:
1. You create event: LoginCorrectEvent.
2. dispacth it.
3. main app listen to LoginCorrectEvent and make something.
You can check code in this topic http://forums.adobe.com/thread/700947?tstart=0
But I have problem that I haven`t instance to listen to, but you will have I suppose, so you can make event driven communication. Something like this:
var loginComp:LoginComponent = new LoginComponent();
loginComp.addEventListener(LoginCorrectEvent.LOGIN_CORRECT_EVENT, loginCorrectHandler);
it will be in you main app, and there you should define loginCorrectHandler - it will handle event.

Similar Messages

  • Question about login in Pipeline Component

    Dear All,
    I'm working on registering a new user. Soon after user submits registration, an InputProcessor
    will validate its registration data. If success, a Pipeline Component will create
    a user via UserManager.createUser() method and then will set properties via ProfileWrapper.setProperty()
    method. But before I can setProperty I need to login user. I'm think of using ServletAuthentication.weak()
    method to do so, but I don't know how to get a HttpServletRequest object or HttpSession
    object. Can anyone tell me how to do it? Also, will it be any trouble to logout if
    I use this way to login user?
    Thanks in advance for your help.
    Tim

    Tim,
    You can get the HttpServletResponse from the PipelineSession from inside you
    PipelineComponent (with signature):
    PipelineSession process(PipelineSession pipelineSession,
    java.lang.Object requestContext)
    By calling:
    reponse (HttpServletResponse) = pipelineSession.getRequestScopedAttribute(
    WebFlowConstants.HTTP_SERVLET_RESPONSE,
    pipelineSession.getContext().getCurrentNamespace(), context );
    From the reponse you can get the HttpSession by simply calling getSession.
    Let me know if you have any problems.
    Sincerely,
    Daniel Selman
    "Tim" <[email protected]> wrote in message
    news:3d32cdc3$[email protected]..
    >
    Dear All,
    I'm working on registering a new user. Soon after user submitsregistration, an InputProcessor
    will validate its registration data. If success, a Pipeline Component willcreate
    a user via UserManager.createUser() method and then will set propertiesvia ProfileWrapper.setProperty()
    method. But before I can setProperty I need to login user. I'm think ofusing ServletAuthentication.weak()
    method to do so, but I don't know how to get a HttpServletRequest objector HttpSession
    object. Can anyone tell me how to do it? Also, will it be any trouble tologout if
    I use this way to login user?
    Thanks in advance for your help.
    Tim

  • Content Player / Policy Configuration component login modules

    Problem using Content Player u2013 HTTP 401 errors, not authorized
    Because of security concerns, we have modified our login Policy Configuration component, u201Cticketu201D to no longer use the login module u201CBasicPasswordLoginModuleu201D. We use the login module u201CSAMLLoginModuleu201D instead and direct our users through our Shibboleth based identity provider.
    We now are having a problem with the Content Player. We have configured it in http://<server>:<port>/lms/mediator/config with connection information including a username and password for both access to the ABAP system and the CMS user. We also have set SNC.
    With the BasicPasswordLoginModule removed, we get HTTP 401 errors, not authorized. We see this in a pop-up window when we try to run a WBT course and we see it in the trace files.
    When we put the BasicPasswordLoginModule back in place, we can access the course.
    We are looking for a way to redirect the Content Player to a different Policy Configuration component that we can then allow to include the BasicPasswordLoginModule.
    Is this possible?
    Where is the configuration defined that directs the Content Player to use that default Policy Configuration component?
    Can we change it to use a different Policy Configuration component?
    Deb Nugent

    It appears that we cannot (or should not) redirect the login module for the Content Player to something other than the "ticket" login method. Since we require Content Player, we re-added the BasicLoginPassword Module to the "ticket" method of logon. We knew this would allow Content Player to work. We are using other / additional security measures to ensure no one is directly accessing our systems with username/password.
    Thank-you all.
    Deb Nugent.

  • I m using ms access as database and i want to create a login page in java

    hye frnz... plz help me m new to java
    m using ms access as database and try to create a login page where user type username and pw
    i had enter valid user entries in database i checked connectivity is working i want as user login the main window must open after checking username and pw field to database but
    now there is an error class not found exception sun:jdbc...... error
    plz help me i had stuck frm 4 days */
    import java.sql.DriverManager;
    import java.sql.Connection;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Login extends JFrame
    //Component Declarations
    JLabel jlb1,jlb2;
         JTextField jtf1;
         JPasswordField jpf1;
         JButton jb1,jb2;
         //Constructor
         Login()
         //frame settings
              setTitle("Login Dialog");
              setLayout(new GridBagLayout());
              GridBagConstraints gbc = new GridBagConstraints();
              setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              Dimension d= Toolkit.getDefaultToolkit().getScreenSize();
              setBounds(d.width/2-175,d.height/2-100,350,200);
              gbc.insets=new Insets(7,7,7,7);
         //adding components
              jlb1=new JLabel("User ID");
              gbc.gridx=0;
              gbc.gridy=0;
              add(jlb1,gbc);
              jlb2=new JLabel("Password");
              gbc.gridx=0;
              gbc.gridy=1;
              add(jlb2,gbc);
              jtf1=new JTextField(10);
              gbc.gridx=1;
              gbc.gridy=0;
              add(jtf1,gbc);
              jpf1=new JPasswordField(10);
              gbc.gridx=1;
              gbc.gridy=1;
              add(jpf1,gbc);
              jb1=new JButton("Login");
              gbc.gridx=0;
              gbc.gridy=2;
              add(jb1,gbc);
              jb1.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                   Connection conn=null;
                        Statement stmt=null;
                        boolean found=false;
                   try
                             Class.forName("sun.jdbc.driver.JdbcOdbcDriver");
                             String dataSourceName = "Inventory";
                             String dbURL = "jdbc:odbc:" + dataSourceName;
                             conn=DriverManager.getConnection(dbURL, "","");
                             stmt=conn.createStatement();
                             ResultSet rst=stmt.executeQuery("Select * from User");
                             System.out.println(jtf1.getText()+"/t"+jpf1.getPassword());
                             while(rst.next())
                                  System.out.println( rst.getString(1) +"/t"+ rst.getString(2));
              if(jtf1.getText().equals(rst.getString(1).trim()) && new String(jpf1.getPassword()).equals(rst.getString(2).trim()))
                                       found=true;
                                       rst.close();
                                       dispose();
                                       MainWindow mw= new MainWindow();     /*created min window object created to be opend after login but not working*/     
                                       break;
                             rst.close();
                             stmt.close();
                             conn.close();                    
                        catch(ClassNotFoundException e){System.out.print(e);}
                        catch(Exception e){System.out.print(e);}
                        if(found==false) /*this portion is executing and dialog box appears invalid name and pw with class not found exception sun:jdbc.......on console */
                             JOptionPane.showMessageDialog(null,"Invalid username or password",
                                  "Error Message",JOptionPane.ERROR_MESSAGE);
              jb2=new JButton("Clear");
              gbc.gridx=1;
              gbc.gridy=2;
              add(jb2,gbc);
              jb2.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        jtf1.setText("");
                        jpf1.setText("");
                        jtf1.requestFocus();
              setSize(350,200);
              setVisible(true);
              jtf1.requestFocus();
         public static void main(String args[])
    Login l=new Login();
    }

    http://forums.oracle.com/forums/ann.jspa?annID=599
    Oh, and by the way, your keyboard seems to be broken as your words are not getting spelled correctly.

  • Plz help using ms access as database,i want to create a login page in java

    hye frnz... plz help me m new to java
    m using ms access as database and try to create a login page where user type username and pw
    i had enter valid user entries in database i checked connectivity is working i want as user login the main window must open after checking username and pw field to database but
    now there is an error class not found exception sun:jdbc...... error
    plz help me i had stuck frm 4 days */
    import java.sql.DriverManager;
    import java.sql.Connection;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Login extends JFrame
    //Component Declarations
    JLabel jlb1,jlb2;
         JTextField jtf1;
         JPasswordField jpf1;
         JButton jb1,jb2;
         //Constructor
         Login()
         //frame settings
              setTitle("Login Dialog");
              setLayout(new GridBagLayout());
              GridBagConstraints gbc = new GridBagConstraints();
              setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              Dimension d= Toolkit.getDefaultToolkit().getScreenSize();
              setBounds(d.width/2-175,d.height/2-100,350,200);
              gbc.insets=new Insets(7,7,7,7);
         //adding components
              jlb1=new JLabel("User ID");
              gbc.gridx=0;
              gbc.gridy=0;
              add(jlb1,gbc);
              jlb2=new JLabel("Password");
              gbc.gridx=0;
              gbc.gridy=1;
              add(jlb2,gbc);
              jtf1=new JTextField(10);
              gbc.gridx=1;
              gbc.gridy=0;
              add(jtf1,gbc);
              jpf1=new JPasswordField(10);
              gbc.gridx=1;
              gbc.gridy=1;
              add(jpf1,gbc);
              jb1=new JButton("Login");
              gbc.gridx=0;
              gbc.gridy=2;
              add(jb1,gbc);
              jb1.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                   Connection conn=null;
                        Statement stmt=null;
                        boolean found=false;
                   try
                             Class.forName("sun.jdbc.driver.JdbcOdbcDriver");
                             String dataSourceName = "Inventory";
                             String dbURL = "jdbc:odbc:" + dataSourceName;
                             conn=DriverManager.getConnection(dbURL, "","");
                             stmt=conn.createStatement();
                             ResultSet rst=stmt.executeQuery("Select * from User");
                             System.out.println(jtf1.getText()+"/t"+jpf1.getPassword());
                             while(rst.next())
                                  System.out.println( rst.getString(1) +"/t"+ rst.getString(2));
              if(jtf1.getText().equals(rst.getString(1).trim()) && new String(jpf1.getPassword()).equals(rst.getString(2).trim()))
                                       found=true;
                                       rst.close();
                                       dispose();
                                       MainWindow mw= new MainWindow();     /*created min window object created to be opend after login but not working*/     
                                       break;
                             rst.close();
                             stmt.close();
                             conn.close();                    
                        catch(ClassNotFoundException e){System.out.print(e);}
                        catch(Exception e){System.out.print(e);}
                        if(found==false) /*this portion is executing and dialog box appears invalid name and pw with class not found exception sun:jdbc.......on console */
                             JOptionPane.showMessageDialog(null,"Invalid username or password",
                                  "Error Message",JOptionPane.ERROR_MESSAGE);
              jb2=new JButton("Clear");
              gbc.gridx=1;
              gbc.gridy=2;
              add(jb2,gbc);
              jb2.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent ae)
                        jtf1.setText("");
                        jpf1.setText("");
                        jtf1.requestFocus();
              setSize(350,200);
              setVisible(true);
              jtf1.requestFocus();
         public static void main(String args[])
    Login l=new Login();
    Edited by: 795772 on Sep 19, 2010 4:44 AM

    795772 wrote:
    hye frnz... plz help me m new to java
    m using ms access as database and try to create a login page where user type username and pw
    i had enter valid user entries in database i checked connectivity is working i want as user login the main window must open after checking username and pw field to database but
    now there is an error class not found exception sun:jdbc...... error
    plz help me i had stuck frm 4 days */
    <snip>The subject of this forum is Oracle databases. How does your problem relate to that subject?
    Two bits of advice:
    1) Make sure you ask questions in a forum related to your problem.
    2) If you want to be taken seriously as a professional, drop the MS IM Speak and use the language of the forum. In this forum it is English, which is successfully used by many people for whom English is far from their native language.

  • How to make a login and logout in jsf  2.0 ?

    Hello all, i am developing an web application have login and logout component. I want to check whenever end user try to open admin/index.xhtml, it will be redirected to login.xhtml. And when end user click on log out button, i will be destroy session and redirect end user to login.xhtml. But i am not sure about session in JSF 2.0. I am using netbean 6.9.1 to develop. First time, when i run my web application, i can get session back. But another time, i can't get session in my bean. Do i can use filter with JSF 2.0 to make a validate login user ? And any suggestion for my issue ? Thanks in advance!
    Here is my filter with doFilter method:
    RequestWrapper wrappedRequest = new RequestWrapper((HttpServletRequest) request);
    ResponseWrapper wrappedResponse = new ResponseWrapper((HttpServletResponse) response);
    if (wrappedRequest.getSession().getAttribute("isValidUser") != null) {
    chain.doFilter(request, response);
    } else {
    goPage(wrappedRequest, wrappedResponse, "/faces/enduser/index.xhtml");
    And here is my bean with login and log out method:
    public String validUser() {
    try {
    if (iAccBO != null) {
    Utilities utilities = new Utilities();
    Account account = new Account();
    account.setAccName(getAccName());
    account.setPassword(utilities.encode(getPassword()));
    if (iAccBO.validUser(account)) {
    setAccName("");
    setPassword("");
    return "/admin/index";
    } else {
    FacesContext fc = FacesContext.getCurrentInstance();
    fc.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "invalid username or password", ""));
    return "login";
    } catch (Exception ex) {
    ex.printStackTrace();
    Logger.getLogger(AccountBean.class.getName()).log(Level.SEVERE, null, ex);
    return null;
    public String Logout() {
    try {
    servletRequest.getSession().invalidate();
    return "../login";
    } catch (Exception e) {
    e.printStackTrace();
    return "";
    Best Regards,
    Coy.

    I looked up it but it seem not work with me. Almost example which i found is run on Glass Fish. But I am running on TomCat server of Netbeans 6.9.1. Can someone give me another suggestion ?
    Thanks in advance!
    Best Regards,
    Coy.

  • Oracle Web Service Manager Login failed

    Hi ,
    I had installed advance version of SOA 10.1.3.1 on windows xp. I abel to login to all component other than web service manager.I am using the oc4jadmin user id and its password to login.Please let me know what i have to do to fix it.
    Regards,
    Pankaj

    Hi syed,
    I completely agree to you. But I observed that after advanced installation of SOA suite, only OWSM uid & pwd defers from the default oc4jadmin uid & pwd like for other components.
    We can configure that at later point of time. But by default, oc4jadmin credential will not work.
    Cheers,
    Abhi...

  • Referencing 'states' in another component

    Relevant file structure:
    Main.mxml (main app file)
    \myComponents\Login.mxml (custom component)
    In my Main.mxml file I have three states:
    <Base state>
    Login (start)
    Home
    On clicking a Submit button in the Login.mxml component I
    would like to have the Main.mxml's state switch to Home. How would
    I go about referencing the Home state from the Login.mxml custom
    component (which is placed in the Login state). The questions boils
    down to targetting syntax. Any help is appreciated, thank you.

    Hi,
    I'm not sure to understand what you want to do but:
    to have the Main.mxml's state switch to Home by clicking a
    Submit button in the Login.mxml component I would do the following:
    - in your Main.mxml make a public function (witch change
    state) that you call from Login.mxml
    Ex:
    Main.mxml :
    <mx:Application id="main" xmlns:mx="
    http://www.adobe.com/2006/mxml">
    public function changestate():void {
    ....//change state function
    Login.mxml :
    private function OnClick_submit(e:event):void {
    //call main.mxml function to change state
    main.changestate();

  • Embedded component not referenced in Tapestry

    I have built several Tapestry components and one of them doesn't work. When the Login link displayed on my home page is clicked, the following error shows up on the server console:
    // beginning of error
    Feb 15, 2005 2:59:47 PM org.apache.tapestry.BaseComponentTemplateLoader checkAllComponentsReferenced
    SEVERE: Template for component Home does not reference embedded component: loginLink.
    // end of error
    The Login component is built the following way
    In Home.html
    Login
    In Home.page
    <component id="loginLink" type="PageLink">
         <static-binding name="page" value="Login"></static-binding>
    </component>

    I found the error.
    I had Login
    instead of
    Login

  • Coldfusion 10 ODBC Services

    I have a server with an installation of ColdFusion 10 however the ODBC Services did not get installed with the initial installation. Is there a simple, manual method for installing ODBC Services without uninstalling CF and then reinstalling with that option selected? I have tried running the installation over the current one but with the Configure Installer window, it has Server Configuration greyed out as it has found a current installation. It then gives an option of either EAR file or WAR file in the JEE configuration. Not sure which to choose so that's why I ask the question of a manual install.
    Thanks in advance. This is running on a Windows Server 2008 R2 64-bit box.
    Dave

    Here is the script to install ODBC services
    <cfscript>
      //login using admin
      //createObject("component","cfide.adminapi.administrator").login("administrator_password" );
      createObject("component","cfide.adminapi.administrator").login("admin");
      //instantiate datasource object
      myObj = createObject("component","cfide.adminapi.datasource");
    </cfscript>
    To Install ODBC Services:
    <cfscript>
             writeOutput("Installing ODBC Services...<br>");
             returnValue = myObj.installODBCservice();
             writeOutput("ODBC Services installed");
    </cfscript>
    Regards,
    Anit Kumar

  • Web Service in Sneak Preview SP15 gives NoSuchFieldError: _typeRegistry

    Hi,
    I've been trying to create a WebDynpro application which should access a simple webservice. To ensure that the webservice actually works, I have successfully contacted it and sent a request with a successful response to it using WSNavigator.
    All this is running on the Full Java Sneak Preview SP15 and being developed in NWDS SP15.
    What I've done is:
    - Create model using url
    - Link request in context from model to component
    - Link request in context from component to view
    The context (of both the component and the view) is strucured as follows:
    Context
    - Request_UserSessionSoap_login
    -- in
    --- username
    --- password
    - Response
    -- Result
    The init of the component I have set up as follows:
        Request_UserSessionSoap_login login = new Request_UserSessionSoap_login();
        ComplexType_LoginRequestInDef loginRequest = new ComplexType_LoginRequestInDef();
        loginRequest.setUsername("someuser");
        loginRequest.setPassword("somepass");
        login.setIn(loginRequest);
        wdContext.nodeRequest_UserSessionSoap_login().bind(login);
    I have then created a method 'login' in the component, which is called in the eventhandler to a button on the view.
    The login method is as follows:
        try {
             wdContext.currentRequest_UserSessionSoap_loginElement().modelObject().execute();
             wdContext.nodeResponse().invalidate();
        } catch(Exception e) {
             wdComponentAPI.getMessageManager().reportWarning("ARGH!! " + e.getMessage());
    When I try running the application and clicking the button I get the 'NoSuchFieldError: _typeRegistry' message in my tracelog.
    As far as I know, my there is no errors in my approach, nor my code.
    So, examining the generated code, I find where typeRegistry is set. It is in a class extends the abstract class com.sap.engine.services.webservices.jaxrpc.wsdl2java.ServiceBase. The abstract class rightly has the field 'typeRegistry'. So all is good... Just to test something I try inserting the line
    private TypeMappingRegistryImpl _typeRegistry;
    in the generated class, so that calls to _typeRegistry are directed at the local member.
    Trying this approach (which is bound to mess everything up eventually) it seems like the code runs a little further before crashing, and I end up with the following exception in my tracelog: SAPNoClassDefFoundError: com/sap/engine/services/webservices/jaxrpc/wsdl2java/dynamic/DynamicInterface
    And I've tried searching for this class but have not been able to find it anywhere. I do not think that really matters, because the first exception should never have happend in the first place.
    So, all in all I am now at my wits end. I do not know what else to do than ask you people for guidance.
    Thanks in advance,
    developer-in-distress Rune J.

    I have solved this now...
    The solution is: Uninstall SP15, download and install SP16.
    Installing SP16 might raise some new problems.. e.g. the administrator is now Administrator/abcd1234 instead of admin/admin ... And this must be manually changed in configtool.bat under secure store.. and the password for SDM should be changed from admin to abcd1234 too.... but that is another story
    ps. all those things can be found around the forum.

  • What can be done when Cold Fusion 9 ODBC Services will not install?

    What can be done when 64-bit Cold Fusion 9 ODBC Service will not install on a Windows Server 2008-R2 64-bit machine? Yes, most of the things in other discussions have been tried.

    Hi GDMVU,
    Save the below code as CF9_RemoveOdbc.cfm
    <cfscript>
      //login using admin 
      //createObject("component","cfide.adminapi.administrator").login("administrator_password" );
      createObject("component","cfide.adminapi.administrator").login("admin");            
      //instantiate datasource object
      myObj = createObject("component","cfide.adminapi.datasource");
    </cfscript>
    <cfscript> 
         writeOutput("Removing ODBC Services...<br>"); 
         returnValue = myObj.removeODBCservice(); 
         writeOutput("ODBC Services removed"); 
    </cfscript>
    Save the below code as CF9_InstallOdbc.cfm
    <cfscript>
      //login using admin 
      //createObject("component","cfide.adminapi.administrator").login("administrator_password" );
      createObject("component","cfide.adminapi.administrator").login("admin");
      //instantiate datasource object
      myObj = createObject("component","cfide.adminapi.datasource");
    </cfscript>
    <cfscript> 
             writeOutput("Installing ODBC Services...<br>"); 
             returnValue = myObj.installODBCservice(); 
             writeOutput("ODBC Services installed"); 
    </cfscript>
    Now try the following steps:-
    Change admin password in above .cfm pages for your CF 9 server.
    Use RemoveObdc cfm page first to remove any existing faulty/corrupted Odbc services.
    Use InstallOdbc Odbc services to install Odbc services there.
    Hope this helps.
    Regards,
    Anit Kumar

  • How to Put scrolling text below masthead?

    Hi,
    I have written a portal component which has got marque text.
    I want to display this marque text just above the top level navigation and below the masthead.
    I added my component in the framework but then when I login only my component is displayed.
    Regards,
    Anagha

    Hi,
        If it is a portal component, you can create iView from the component directly. Open default framework page (DFP) and right click the iView and add it to DFP. Make sure you have set entry point property of iView to Yes. In the DFP, click on page layout radio button and arrange the iView next to masthead and save it. Logout and login back to check. I would advise to check these with copy of DFP since any wrong changes done to standard DFP can cause other portal problems.
    Regards,
    Harini S

  • Template Caching

    When we use SVN to update our sites .cfm and .css files the
    css update immediately but the templates remain cached. We have all
    caching turned off in the Administrator. We try using the Clear
    Cache function any way, and still nothing. The pages that are most
    frequently hit seem to cache for the longest. For example, pages
    with 5-10 hits / second take 2-3 hours for the templates to
    recompile and update. The pages with 1-2 hits / second take about 1
    hour to update. Low traffic pages with 5-10 hits / minutes update
    immediately. Has any one experienced this? Is ColdFusion just
    really bad at caching on high traffic sites? Obviously having CSS
    files update hours before the templates creates a huge issue. The
    only currently known solution is to restart ColdFusion which
    doesn't work for our clients. Any thoughts or ideas would be
    appreciated.
    Regards

    We have a function like this in our application.cfc. We call
    it by passing a URL param that onRequestStart checks for.
    I am sure you could do the same thing with application.cfm
    though.
    <cffunction name="clearCache">
    <cfscript>
    createObject("component","cfide.adminapi.administrator").login("XXXXX");
    createObject("component","cfide.adminapi.runtime").clearTrustedCache();
    </cfscript>
    </cffunction>

  • Validation errors weblogic-webservices.xml during deploy for valid dd

    Hi,
    I am trying to set the login-config for my JAXWS EJB webservice endpoint, but I weblogic doesn't accept my weblogic-webservices.xml
    I validated my weblogic-webservices.xml using several xml validator tools and all say it is valid.
    Here is the weblogic-webservices.xml
    <?xml version='1.0' encoding='UTF-8'?>
    <weblogic-webservices
         xmlns="http://xmlns.oracle.com/weblogic/weblogic-webservices"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
         xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-webservices http://xmlns.oracle.com/weblogic/weblogic-webservices/1.1/weblogic-webservices.xsd http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <webservice-description>
    <webservice-description-name>AppManager</webservice-description-name>
    <port-component>
    <port-component-name>AppManager</port-component-name>
    <service-endpoint-address>
    <webservice-contextpath>/AppManagerService</webservice-contextpath>
    <webservice-serviceuri>/AppManager</webservice-serviceuri>
    </service-endpoint-address>
    <login-config>
    <j2ee:auth-method>BASIC</j2ee:auth-method>
    <j2ee:realm-name>myrealm</j2ee:realm-name>
    </login-config>
    </port-component>
    </webservice-description>
    </weblogic-webservices>
    Here are the validation errors I get during deployment:
    VALIDATION PROBLEMS WERE FOUND problem: cvc-complex-type.2.4a: Expected elements 'auth-method@http://java.sun.com/xml/ns/j2ee realm-name@http://java.sun.com/xml/ns/j2ee form-login-config@http://java.sun.com/xml/ns/j2ee' instead of 'auth-method@http://xmlns.oracle.com/weblogic/weblogic-webservices' here in element login-config@http://xmlns.oracle.com/weblogic/weblogic-webservices:<null> problem: cvc-complex-type.2.4a: Expected elements 'auth-method@http://java.sun.com/xml/ns/j2ee realm-name@http://java.sun.com/xml/ns/j2ee form-login-config@http://java.sun.com/xml/ns/j2ee' instead of 'realm-name@http://xmlns.oracle.com/weblogic/weblogic-webservices' here in element login-config@http://xmlns.oracle.com/weblogic/weblogic-webservices:<null>
    Error VALIDATION PROBLEMS WERE FOUND problem: cvc-complex-type.2.4a: Expected elements 'auth-method@http://java.sun.com/xml/ns/j2ee realm-name@http://java.sun.com/xml/ns/j2ee form-login-config@http://java.sun.com/xml/ns/j2ee' instead of 'auth-method@http://xmlns.oracle.com/weblogic/weblogic-webservices' here in element login-config@http://xmlns.oracle.com/weblogic/weblogic-webservices:<null> problem: cvc-complex-type.2.4a: Expected elements 'auth-method@http://java.sun.com/xml/ns/j2ee realm-name@http://java.sun.com/xml/ns/j2ee form-login-config@http://java.sun.com/xml/ns/j2ee' instead of 'realm-name@http://xmlns.oracle.com/weblogic/weblogic-webservices' here in element login-config@http://xmlns.oracle.com/weblogic/weblogic-webservices:<null>
    If I remove the namespace indicator 'j2ee' it complains about the same. So it would seem that weblogic ignores the 'j2ee' resulting indeed in a invalid xml.
    Can someone please help me to a weblogic-webservices.xml (example with login-config) that was accepted by weblogic?
    Thanks a lot,
    Eltjo.

    Hi,
    Please try the following: ( Looks like you are mixing the Tag contents of web.xml  as well as weblogic-webservice.xml   together.... )
    weblogic-webservice.xml
    <?xml version='1.0' encoding='UTF-8'?>
    <weblogic-webservices xmlns="http://www.bea.com/ns/weblogic/weblogic-webservices" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-webservices http://www.bea.com/ns/weblogic/weblogic-webservices/1.0/weblogic-webservices.xsd">
          <webservice-description>
              <webservice-description-name>AppManager</webservice-description-name>
              <port-component>
              <port-component-name>AppManager</port-component-name>
                     <service-endpoint-address>
                        <webservice-contextpath>/AppManagerService</webservice-contextpath>
                        <webservice-serviceuri>/AppManager</webservice-serviceuri>
                     </service-endpoint-address>
              </port-component>
          </webservice-description>
    </weblogic-webservices>And Now provide the <login-config> information separately inside *"web.xml"* file
    <login-config>
         <auth-method>BASIC</j2ee:auth-method>
         <realm-name>myrealm</j2ee:realm-name>
    </login-config>.
    Thanks
    Jay SenSharma

Maybe you are looking for

  • HT1535 how do i transfer photos from iphoto on my imac to my new ipad

    I have read and reread the ipad manual and under importing photos and videos -  this is all it says, "To transfer the photos to your computer, connect iPad to your computer and import the images with a photo application such as iPhoto or Adobe Elemen

  • Boot Camp causes Kernel Panics on Startup

    Hi all, I just purchased a new MBP. I had installed everything and transferred all of my files from my previous notebook (via Time Machine). System was working very well. I wanted to install a windows partition via boot camp. used Boot Camp Assistant

  • IDOC data to excel file

    Hi I have downloaded the IDOC Data in my Excel file. But the problem is that I am getting all the details in a single column. I want the systematic data should appear on my Excel. Thanks

  • Music control from apple tv to pc

    I can get my pc to play music to my apple tv but the apple tv will not get music from my pc. Is this a firewall problem or a router config problem

  • Trouble with Layered Menus

    Hello, I've created a menu with icons that show when the curser is in the button's field and disappears when the curser moves out of the button's field. Unfortunately, I've made a few mistakes and need to add some text to the menu but I am unable to