Where does the class for useBean go?

I'm having trouble in jsp when I try to do a useBean. WebLogic can't seem to find my class. Where should the bean that I am trying to use go, and how should I refer to it in the .jsp file that needs to use it? Do I need to import the bean class?
I have the following structure:
proj_home
'-->all .jsp and html files
'---->Classes
'------->com
'----------->company
'-------------->project
'----------------->all class files for the project
'---->src
'------->com
'----------->company
'-------------->project
'--------------->all source files for the project
'---->WEB-INF
Currently the bean is named UserData. It is in package com.company.project.
I tried placing the UserData.class file everywhere I could think of but that didn't help.
I then tried to import it into the bean that uses it like this:
<jsp:directive.page import="com.company.project.UserData"/>
But that gives me errors saying this:
...jsp_servlet\__savename.java:17: package com.company.project.ejb does not exist import com.company.project.ejb.UserData; //[ /SaveName.jsp; Line: 1]
Well it does exist, but under the CLASSES directory.
HELP!

I was picking that up from your error message
..jsp_servlet\__savename.java:17: package com.company.project.ejb does not exist import com.company.project.ejb.UserData; //[ /SaveName.jsp; Line: 1]
The folder structure needs to mirror the package structure exactly (standard java)
So yes, If you have a com.company.project.ejb package with a class UserData within it
"UserData.class" needs to be in folder "WEB-INF/classes/com/project/ejb/"
If you don't have that class, then check your import statement - its asking for it.
Good luck,
evnafets

Similar Messages

  • Where does the jar for a custom tag libary need to go?

    I am having trouble getting a custom tag library's classes found. These are located
    in a jar file called blazix.jar.
    I have the following GetName.jsp:
    <%@ taglib prefix="blx" uri="/blx.tld" %>
    <jsp:directive.page import="com.company.project.ejb.UserData"/>
    <jsp:useBean id="user" class="UserData" scope="session"/>
    <HTML>
         <BODY>
              <blx:getProperty name="user" property="*">
              <FORM METHOD=POST ACTION="SaveName.jsp">
                   What's your name? <INPUT TYPE=TEXT NAME=username SIZE=20><BR>
                   What's your e-mail address? <INPUT TYPE=TEXT NAME=email SIZE=20><BR>
                   What's your age? <INPUT TYPE=TEXT NAME=age SIZE=4>
                   <P><INPUT TYPE=SUBMIT>
              </FORM>
              </blx:getProperty>
         </BODY>
    </HTML>
    When I run this, I get the following:
    Parsing of JSP File '/GetName.jsp' failed:
    /GetName.jsp(1): Error in using tag library uri='/blx.tld' prefix='blx': cannot
    find tag class: 'desisoft.jsp.tagext.SetProp'
    probably occurred due to an error in /GetName.jsp line 1:
    <%@ taglib prefix="blx" uri="/blx.tld" %>
    The jar does contain the needed class (desisoft.jsp.tagext.SetProp), but how can
    I tell WebLogic where to find it?
    In other words, what directory does the blazix.jar need to go under? I tried
    adding it to my classpath but that did not help.
    Thanks!

    I got it. Just needed to add my own lib directory under WEB-INF and copy the jar
    to it.
    Question though, why wouldn't this get generated for me? Would think it would
    be a common thing to need.
    "Darrin" <[email protected]> wrote:
    >
    BTW,
    I placed the blx.tld file under the WEB-INF directory. It seems to find
    it OK
    there at least.
    "Darrin" <[email protected]> wrote:
    I am having trouble getting a custom tag library's classes found. These
    are located
    in a jar file called blazix.jar.
    I have the following GetName.jsp:
    <%@ taglib prefix="blx" uri="/blx.tld" %>
    <jsp:directive.page import="com.company.project.ejb.UserData"/>
    <jsp:useBean id="user" class="UserData" scope="session"/>
    <HTML>
         <BODY>
              <blx:getProperty name="user" property="*">
              <FORM METHOD=POST ACTION="SaveName.jsp">
                   What's your name? <INPUT TYPE=TEXT NAME=username SIZE=20><BR>
                   What's your e-mail address? <INPUT TYPE=TEXT NAME=email SIZE=20><BR>
                   What's your age? <INPUT TYPE=TEXT NAME=age SIZE=4>
                   <P><INPUT TYPE=SUBMIT>
              </FORM>
              </blx:getProperty>
         </BODY>
    </HTML>
    When I run this, I get the following:
    Parsing of JSP File '/GetName.jsp' failed:
    /GetName.jsp(1): Error in using tag library uri='/blx.tld' prefix='blx':
    cannot
    find tag class: 'desisoft.jsp.tagext.SetProp'
    probably occurred due to an error in /GetName.jsp line 1:
    <%@ taglib prefix="blx" uri="/blx.tld" %>
    The jar does contain the needed class (desisoft.jsp.tagext.SetProp),
    but how can
    I tell WebLogic where to find it?
    In other words, what directory does the blazix.jar need to go under?
    I tried
    adding it to my classpath but that did not help.
    Thanks!

  • Where does the password for Elgamal algorithm is stored

    hi,
    i am doing a project in Intelligent security in java using Elagamal algorithm. The feature of Elgamal is that the password is not stored in database . Then where is the password is stored to check for a existing user .
    If i am an existing user then when i type the username and password then it should check or compare and tell that password is right or wrong . so where is the password is stored to compare ?? please give me the coding in java .
    i need the coding immediately , of how to get the password and to store and then to compare where the user is correct else message should display "type the correct password".
    Given below is my Main window coding plz help me where to include the coding,
         This simple extension of the java.awt.Frame class
         contains all the elements necessary to act as the
         main window of an application.
    // LOGIN WINDOW ( FIRST WINDOW ) FOR LOGIN AND EXISTING USER
    import java.awt.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.sql.*;
    import java.math.*;
    import java.security.*;
    import java.io.IOException;
    import javax.crypto.Cipher;
    import javax.crypto.IllegalBlockSizeException;
    import javax.crypto.KeyGenerator;
    import javax.crypto.SecretKey;
    public class Smart extends Frame
         public Smart()
              // This code is automatically generated by Visual Cafe when you add
              // components to the visual environment. It instantiates and initializes
              // the components. To modify the code, only use code syntax that matches
              // what Visual Cafe can generate, or Visual Cafe may be unable to back
              // parse your Java file into its visual environment.
              //{{INIT_CONTROLS
              setLayout(null);
              setBackground(new java.awt.Color(255,247,192));
              setSize(1200,900);
    // 157,135,178
              setVisible(false);
              label1.setText("USERID");
              add(label1);
              label1.setFont(new Font("Dialog", Font.PLAIN, 14));
              label1.setBounds(315,180,84,48);
              label2.setText("PASSWORD");
              add(label2);
              label2.setFont(new Font("Dialog", Font.PLAIN, 14));
              label2.setBounds(315,260,100,40);
              textField1.setBounds(430,180,216,36);
              //textField1.setBackground(new java.awt.Color(196,197,233));//textfieldcolor
              add(textField1);
              textField2.setEchoChar('*');
              //textField2.setBackground(new java.awt.Color(196,197,233));
              add(textField2);
              textField2.setBounds(430,260,213,36);
              button1.setLabel("SUBMIT");
              add(button1);
              button1.setBackground(new java.awt.Color(196,197,233));
              button1.setBounds(320,360,120,40);
              button2.setLabel("CLEAR");
              add(button2);
              button2.setBackground(new java.awt.Color(196,197,233));
              button2.setBounds(520,360,120,40);
              label3.setText("REGISTRATION FORM");
              add(label3);
              label3.setFont(new Font("Dialog", Font.BOLD, 20));
              label3.setBounds(324,54,550,80);
              button3.setLabel("NEW USER REGISTRATION");
              add(button3);
              button3.setBackground(new java.awt.Color(196,197,233));
              button3.setBounds(369,450,232,40);
              //add(textArea1);
              //textArea1.setBounds(0,360,576,52);
              setTitle("LOGIN PHASE Application");
              /*int mStrength = 16;
              SecureRandom mSecureRandom = new SecureRandom();
              p = new BigInteger(mStrength, 16, mSecureRandom);*/
              //{{INIT_MENUS
              //{{REGISTER_LISTENERS
              SymWindow aSymWindow = new SymWindow();
              this.addWindowListener(aSymWindow);
              SymAction lSymAction = new SymAction();
              button1.addActionListener(lSymAction);
              button2.addActionListener(lSymAction);
              button3.addActionListener(lSymAction);
         public Smart(String title)
              this();
              setTitle(title);
    * Shows or hides the component depending on the boolean flag b.
    * @param b if true, show the component; otherwise, hide the component.
    * @see java.awt.Component#isVisible
    public void setVisible(boolean b)
              if(b)
              setLocation(50, 50);
              super.setVisible(b);
         public static void main(String args[])
         try
                   //Create a new instance of our application's frame, and make it visible.
              (new Smart()).setVisible(true);
              catch (Throwable t)
                   System.err.println(t);
                   t.printStackTrace();
                   // Ensure the application exits with an error condition.
                   System.exit(1);
              public void addNotify()
              // Record the size of the window prior to calling parents addNotify.
              Dimension d = getSize();
              super.addNotify();
              if (fComponentsAdjusted)
                   return;
              // Adjust components according to the insets
              setSize(getInsets().left + getInsets().right + d.width, getInsets().top + getInsets().bottom + d.height);
              Component components[] = getComponents();
              for (int i = 0; i < components.length; i++)
                   Point p = components.getLocation();
                   p.translate(getInsets().left, getInsets().top);
                   components[i].setLocation(p);
              fComponentsAdjusted = true;
         // Used for addNotify check.
         boolean fComponentsAdjusted = false;
         //{{DECLARE_CONTROLS
         java.awt.Button button1 = new java.awt.Button();
         java.awt.Button button2 = new java.awt.Button();
         java.awt.Label label1 = new java.awt.Label();
         java.awt.Label label2 = new java.awt.Label();
         java.awt.Label label3 = new java.awt.Label();
         java.awt.Button button3 = new java.awt.Button();
         java.awt.TextField textField1 = new java.awt.TextField();
         java.awt.TextField textField2 = new java.awt.TextField();
         java.awt.TextArea textArea1 = new java.awt.TextArea();
         //BigInteger p;
         //{{DECLARE_MENUS
         class SymWindow extends java.awt.event.WindowAdapter
              public void windowClosing(java.awt.event.WindowEvent event)
                   Object object = event.getSource();
                   if (object == Smart.this)
                        Smart_WindowClosing(event);
         void Smart_WindowClosing(java.awt.event.WindowEvent event)
              System.exit(0);
         class SymAction implements java.awt.event.ActionListener
              public void actionPerformed(java.awt.event.ActionEvent event)
                   Object object = event.getSource();
                   if (object == button1)
                        button1_ActionPerformed(event);
                   else if (object == button2)
                        button2_ActionPerformed(event);
                   else if (object == button3)
                        button3_ActionPerformed(event);
         void button1_ActionPerformed(java.awt.event.ActionEvent event)
              //try{
              String ids = textField1.getText();
              String pss = textField2.getText();
              byte [] bt = ids.getBytes();
              BigInteger id = new BigInteger(bt);
              //by samy byte [] bts = pss.getBytes();
              //BigInteger ps = new BigInteger(bts);
         int mStrength = 16;
         SecureRandom mSecureRandom = new SecureRandom();
         BigInteger p = new BigInteger(mStrength, 16, mSecureRandom);
         System.out.println("p = "+p.toString(16));
         BigInteger g = new BigInteger(mStrength - 1, mSecureRandom);
         System.out.println("g= "+g.toString(16));
         BigInteger x = new BigInteger(mStrength - 1, mSecureRandom);
         System.out.println("x="+x.toString(16));
         //byte[] bt = id.getBytes();
         BigInteger idb = new BigInteger(bt);
         //System.out.println("id= "+idb.toString(16));
         BigInteger ps = idb.modPow(x, p);
         //String pw = new String("pass = "+ps.toByteArray());
         System.out.println("ps ="+ps.toString(16));
         BigInteger r =null;
    BigInteger ONE = BigInteger.valueOf(1L);
    BigInteger p_1 = p.subtract(ONE);
    SecureRandom sr = new SecureRandom();
    do {
    r = new BigInteger(p.bitLength(), sr);
    } while (r.compareTo(ONE) <= 0 || r.compareTo(p_1) >= 0);
         System.out.println("r= "+r.toString(16));
         BigInteger c1 =idb.modPow(r,p);
         System.out.println("c1= "+c1.toString(16));
         long time = System.currentTimeMillis();
         System.out.println("TIME ="+time);
         BigInteger one = new BigInteger( new Integer(1).toString());
         BigInteger T = new BigInteger( new Long(time).toString());
         BigInteger t =T.xor(ps);
         BigInteger t1 = t.mod(p.subtract(one));
         System.out.println("t="+t1.toString(16));
         BigInteger M = idb.modPow(t1, p);
         System.out.println("M="+M.toString(16));
         int rnd = r.intValue();
         BigInteger c2 =ps.modPow(r,p).multiply(M).mod(p);
         System.out.println("c2 ="+c2.toString(16));
         //(bia[0].modPow(a, p).modInverse(p)).multiply(bia[1]).mod(p);
         BigInteger val1 = (c1.modPow(x,p).modInverse(p)).multiply(c2).mod(p);
         BigInteger val2 = id.modPow(t1,p);
         System.out.println(val1.toString(16));
         System.out.println(val2.toString(16));
    send s=new send();
    // }catch( IOException e){
    //System.out.println("Exception caught ") ; }     
    //     catch( Exception e){
    //System.out.println("Exception caught ") ; }               
         void button2_ActionPerformed(java.awt.event.ActionEvent event)
              textField1.setText("");
              textField2.setText("");
         void button3_ActionPerformed(java.awt.event.ActionEvent event)
         {   Security s1 = null;
              try
    System.out.println("this is in Smart ");
         //Create a new instance of our application's frame, and make it visible.
              s1 = new Security();
              s1.setVisible(true);
              catch (Throwable t)
                   System.err.println(t);
                   t.printStackTrace();
                   //Ensure the application exits with an error condition.
                   System.exit(1);
              //s1.dispose();     

    I was picking that up from your error message
    ..jsp_servlet\__savename.java:17: package com.company.project.ejb does not exist import com.company.project.ejb.UserData; //[ /SaveName.jsp; Line: 1]
    The folder structure needs to mirror the package structure exactly (standard java)
    So yes, If you have a com.company.project.ejb package with a class UserData within it
    "UserData.class" needs to be in folder "WEB-INF/classes/com/project/ejb/"
    If you don't have that class, then check your import statement - its asking for it.
    Good luck,
    evnafets

  • Where does the Services for Object (GOS) store data?

    I have a requirement that I need to upload a Blocking Reason document for any blocked vendor.
    The normal process we follow for blocking is XK02->Extras-> Blocked Data or XK05.
    We want to check before the Vendor is saved with blocked data whether he/she (who is blocking the vendor) has uploaded the Blocking Reason Document .
    I found out that we have an option in Vendor screen for uploading a document under 'Services for Object' in XK02 as shown in the below (in the red box).
    After uploading the attachment it will show the uploaded document in the Attachment List as shown below.
    I don't know where this entry is stored. I checked in the table SOOD (SAPoffice: Object definition), but there is no entry in there.
    I would like to know on how to check whether the file has been uploaded at the time of saving the vendor.
    If anyone knows the table in which this data is stored, kindly point it out.
    Thank You,
    Sreejith Babu.

    Hi Sreehith,
    Please refer the following document: http://wiki.scn.sap.com/wiki/x/yIEEBQ
    These attachments can be downloaded using FM BDS_GOS_CONNECTIONS_GET
    Refer the following document: Printing or Downloading Service For Object Attachments to local desktop
    Regards,
    Vijay

  • Where does the java classes go?

    I normally use IntelliJ which automatically puts the java class and the jsp where they are meant to go.
    Can some help me.
    Can someone please tell me where to put the java class, i have put the jsp pages in the webapps\ROOT but where does the java classes go?
    Edited by: Tinkerbelle on Jul 24, 2008 1:46 AM

    Tinkerbelle wrote:
    sorry being stupid i do that sorry,
    If i change the class to type (as someone said in a previous post)That would only work if you already put the bean in the session scope.
    Did you try what PaulOckford wrote?
    >
    i get this error:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 6 in the generated java file
    Only a type can be imported. com.database.contactDB resolves to a packageDo you have a package structure that looks like this:
    com
    com/database/ <-- This is where contactDB.class is located
    com/database/contactDB/
    Because that is what the compiler is saying. Though it may be thrown off by case (see below)
    P.S. If you use the jsp:useBean you do not need the import statement which appears to be where the error occurs. (One of the things that makes JSPs so hard to debug is the fact that the error line in the generated java file as referenced above is never the same as the line in the JSP file).
    >
    An error occurred at line: 3 in the jsp file: /login.jsp
    database.contactDB cannot be resolved to a type
    1: <%@ page import="com.database.contactDB" %>
    2:
    3: <jsp:useBean id='db'
    4: scope='session'
    5: type='database.contactDB'/>
    6: <html>
    And to be ultra clear - you did compile contactDB from a .java file to a .class file, and the class is called contactDB and not ContactDB correct? The class name is case sensitive and should be the exact same case in the useBean and import statements as in the real class name.
    >
    An error occurred at line: 3 in the jsp file: /login.jsp
    database.contactDB cannot be resolved to a type
    1: <%@ page import="com.database.contactDB" %>
    2:
    3: <jsp:useBean id='db'
    4: scope='session'
    5: type='database.contactDB'/>
    6: <html>
    Stacktrace:
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.
    Apache Tomcat/5.5.26Edited by: stevejluke on Jul 24, 2008 7:33 AM
    Fixed compile from .class file to a .java file to compile from a .java file to .class file

  • Where can I download the classes for com.ms.security.*;

    Hello Java Experts;
    Does anyone know where I can download the classes for com.ms.security.*;
    These are the classes that deal with signed applets
    Stephen

    Download the Microsoft SDK for java development. or you can use Microsoft Visual J++. It is not a class supported by sun in official JDK.

  • Where does the magnet go for the reed switch? (i found the magnet after . .

    My hinges had broken on the display so I replaced the display.
    After putting back the unit together I found a magnet ?
    The unit was going to sleep with the screen open.
    I assume this is for the reed switch, where does the magnet go?
    in the computer?
    I found reference to the 12" ibook G4 1.2ghz with the reed switch under "end" key and the magnet in the screen. However I found the sensor "reed switch" in my screen in the right upper side.

    I found it.
    Message was edited by: Patrick Bagdasarian

  • Where does one search for ALL the APPS that are available?

    Where does one search for All the apps that are available ?

    If you don't see any messages, not have anti-malware running or the Firewall on, try installing the Mac OS X 10.6.8 Update Combo
    It's ok to do this even though you are already running v10.6.8 (according to your profile).
    Restart your Mac after the combo in installed, try the App Store.
    Also... if you have an app called Little Snitch installed, that can prevent a connection to the App Store.

  • Where does the ACS server get the DNS info for IP pools?

    I am trying to change the DNS servers that my VPN users are assigned from the IP pools on the ACS server. Where does the IP pools get the DNS server information. I have changed the DNS Ips on the windows server and rebooted. But the VPN clients are still being assigned the old DNS servers.

    ACS ip pools do not push DNS server information
    It is either being forwarded from VPN concentrator group setup or
    it is being send from ACS user/group setup > Radius(VPN 3000) attributes > [026/3076/005] Primary-DNS.
    Hope this helps.
    Regards
    Rohit

  • Where does the logging in RDBMSRealm go  --and-- are some JavaDocs missing?

    I see that a LogOutputStream is created in the example
    class RDBMSRealm, but where do all of the log
    statements go. The LogOutputStream is created as:
    log = new LogOutputStream("RDBMSRealm");
    but I do not see and file called RDBMSRealm and/or
    I do not see the log statements on stdout.
    BTW, I do have logging set to the most detailed
    level (Info) from the console if this matters.
    Also, are there some JavaDocs missing from
    Weblogic's Reference website at
    http://edocs.bea.com/wls/docs60/javadocs/index.html
    LogOutputStream is an example. I do not see the
    class when I select the package
    weblogic.logging.
    Where is it?
    Much Thanks
    Bill Ralenkotter.

    Thanks Terry,
    Sorry, I should have mentioned that I am using WL6.0.
    Does anyone know what I need to do to get the RDBMS Realm log to start on
    WL6.0.
    About the missing JavaDocs: Also, if I am doing development using these
    classes I still do not
    understand why they are not on the 6.0 refernce site!
    About the missing JavaDocs,
    I see java docs for a lot of classes, but what document do I use that
    helps me to understand the entire framework? The Programming
    Weblogic Security does give this information.
    Example question: how do I get a reference to the realm to create
    users? Should I even be doing this?
    Thanks for your help.
    Bill.
    "THorner" <[email protected]> wrote in message
    news:B4D7B3CBF165D311844100C04F4E3E1B031246@DANCERACE01...
    If you are using WLS5.1 you much set the property
    weblogic.security.realm.debug=true
    then this information will be sent to stdout. This is set to false by
    default, as there is a lot of information, and it is a big performance
    hit.
    I think weblogic likes to avoid some of its APIs being public, which is
    annoying at times, but probably reasonable
    terry
    -----Original Message-----
    From: Bill Ralenkotter [mailto:[email protected]]
    Posted At: Thu 03 May 2001 16:00
    Posted To: weblogic.developer.interest.security
    Conversation: Where does the logging in RDBMSRealm go and are some
    JavaDocs missing?
    Subject: Where does the logging in RDBMSRealm go and are some
    JavaDocs missing?
    I see that a LogOutputStream is created in the example
    class RDBMSRealm, but where do all of the log
    statements go. The LogOutputStream is created as:
    log = new LogOutputStream("RDBMSRealm");
    but I do not see and file called RDBMSRealm and/or
    I do not see the log statements on stdout.
    BTW, I do have logging set to the most detailed
    level (Info) from the console if this matters.
    Also, are there some JavaDocs missing from
    Weblogic's Reference website at
    http://edocs.bea.com/wls/docs60/javadocs/index.html
    LogOutputStream is an example. I do not see the
    class when I select the package
    weblogic.logging.
    Where is it?
    Much Thanks
    Bill Ralenkotter.

  • Where does the ejb store the state

    hi all,
    where does the statefull session store the state in
    between multiple methods invocations of the client.
    In which format it will store

    Where and in what format stateful session state is stored is an implementation detail of the container.
    In many cases passivation will not take place at all, so the session bean state is simply stored in
    memory between invocations. If passivation does take place, the container is allowed to store the
    passivated state anywhere it likes. Many implementations provide configuration that determines where
    the state is stored. In SUN's implementations, the deployer can choose between a file system store,
    a high availability database, or in-memory replication.
    The important thing is that the application code does not have to concern itself with most of these
    details. All you need to do as a developer is ensure that the bean class state conforms to the
    contracts for Serializability. The exact rules are covered in Section 4.2.1 of the EJB 3.0 spec.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How does the Class javax.security.auth.Subject work?

    Hi,
    i don't understand how does the class Subject work.
    First i will describe how do i understand u can use the class Subject
    This is the way you can create a Subject(i think):
    1. create a LoginContext, where u can tell over its parameter which
    Module to use
    2. a LoginModule will be used
    3. now the LoginModule create a Subject
    if this steps right--> ok, else--> please write how it really works
    Now the questions:
    1. Where do the LoginModule get the username and stuff like this from
    to fill the Subjects? Principals?
    2. Where will be the Subject save, at server or at client side?
    when save on server: how to reference a Subject is belong to the
    right Client?
    when save on client: how to ensure the client do not modify it?
    3. In the documentation of JavaTM 2 Platform Std. Ed. v1.4.1, there is
    no advice, that the class have any FIELDS, but then where the
    principals are saved?
    4. The Class Subject do not have any methodes to modify the principals,
    so how to modify it if necessary?
    i think this is enough for the beginnig :)
    thanx,
    edo

    Hi
    Let me try to answer. I am a bit confused too.
    Hi,
    i don't understand how does the class Subject work.
    First i will describe how do i understand u can use
    the class Subject
    This is the way you can create a Subject(i think):
    1. create a LoginContext, where u can tell over its
    parameter which
    Module to use
    2. a LoginModule will be used
    3. now the LoginModule create a Subject
    Correct.if this steps right--> ok, else--> please write how it
    really works
    Now the questions:
    1. Where do the LoginModule get the username and stuff
    like this from
    to fill the Subjects? Principals?
    The Loginmodule does not need the user name. The username is
    only relevant to your application not to JAAS. Consider a standaalone
    application. Whoever starts the application, becomes the user.
    After you start the application, and login (whatever way), your subject
    is created. This subject pertains to the person who is executing the application, not the application specific userid/username. So the user id or name is not required. There is only one user, who is running the application. The JAAS architecture is more relevant for UNIX like
    permission/grant structure, which determines who can execute what.
    >
    2. Where will be the Subject save, at server or at
    client side?
    Again the Subject has nothing to do with your application specific userid. It will be there in the LoginContext. So in a sense a LoginContext is actually a user, not a Subject.
    when save on server: how to reference a Subject is
    is belong to the
    right Client?
    when save on client: how to ensure the client do
    do not modify it?
    In a client server mode, usually the login is done twice. You have to find a way to communicate the subject to the server.3. In the documentation of JavaTM 2 Platform Std. Ed.
    v1.4.1, there is
    no advice, that the class have any FIELDS, but then
    en where the
    principals are saved?
    4. The Class Subject do not have any methodes to
    modify the principals,
    so how to modify it if necessary?
    I think you can add Principals. That is definitely there.i think this is enough for the beginnig :)
    thanx,
    edo
    Hope this helps. As of now I do not think JAAS provides a very good architecture for authorization.
    cheers
    Projyal

  • Apple maps has received a poor performance rating just after introduction of the iPhone 5. I am running google maps app on the phone. Siri cannot seem to get me to a specific address. Where does the problem lie? Thanks.

    Apple maps has received a poor performance rating just after introduction of the iPhone 5. I am running Google Maps app on the phone. SIRI cannot seem to get me to a specific address. Where does the problem lie? Also can anyone tell me the hierarchy of use between the Apple Maps, SIRI, and Google maps when the app is on the phone? How do you choose one over the other as the default map usage? Or better still how do you suppress SIRI from using the Apple maps app when requesting a "go to"?
    I have placed an address location into the CONTACTS list and when I ask SIRI to "take me there" it found a TOTALLY different location in the metro area with the same street name. I have included the address, the quadrant, (NE) and the ZIP code into the CONTACTS list. As it turns out, no amount of canceling the trip or relocating the address in the CONTACTS list line would prevent SIRI from taking me to this bogus location. FINALLY I typed in Northeast for NE in the CONTACTS list (NE being the accepted method of defining the USPS location quadrant) , canceled the current map route and it finally found the correct address. This problem would normally not demand such a response from me to have it fixed but the address is one of a hospital in the center of town and this hospital HAS a branch location in a similar part of town (NOT the original address SIRI was trying to take me to). This screw up could be dangerous if not catastrophic to someone who was looking for a hospital location fast and did not know of these two similar locations. After all the whole POINT of directions is not just whimsical pasttime or convenience. In a pinch people need to rely on this function. OR, are my expectations set too high? 
    How does the iPhone select between one app or the other (Apple Maps or Gppgle Maps) as it relates to SIRI finding and showing a map route?  
    Why does SIRI return an address that is NOT the correct address nor is the returned location in the requested ZIP code?
    Is there a known bug in the CONTACTS list that demands the USPS quadrant ID be spelled out, as opposed to abreviated, to permit SIRI to do its routing?
    Thanks for any clarification on these matters.

    siri will only use apple maps, this cannot be changed. you could try google voice in the google app.

  • Where are the drivers for HP LaserJet 5P for Windows 8.1 (64bit)?

    Had been using HP LaserJet 5p printer with HP LaserJet 5p printer driver, but had printer disconnect for a few months due to not have black toner.  Now I want to use the printer and my control panel does not show HP Laser 5p printer for my tablet but shows it for my laptop.   I can not find the driver on the HP support list and the support list does not recognize  HP LaserJet 5p.   
    Where are the drivers for HP LaserJet 5p for windows 8.1 (64bit)??????

    Hi,
    Basic print drivers are available for the HP Laerjet 5P via Windows Update.
    Follow these steps to install the printer drivers on Windows 8.1:
    http://h20564.www2.hp.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-c03470332#N100AA
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Where is the jar for me to import?

    import javax.servlet.http.*; <--- showing error
    import kr.pe.okjsp.util.*;
    import com.oreilly.servlet.MultipartRequest;
    public class WriteServlet extends HttpServlet {  <--- showing error
    long long time ago, there was
    server.jar
    but in java 5.0, where is the jar for me to import?
    It would be really appreciated. Do I have to download j2ee for this?
    My memory is fuzzy...
    Thanks -

    Yes, it is part of EE not SE. Or you can get it/them from your application server's lib dir (which may or may not be a better choice).

Maybe you are looking for

  • Can I share my iCloud with my family in another state?

    Can I share my ICloud with a family member in another state?

  • VPN access to server ip question

    Our office just had a macmini server installed with Snow Leopard server right up to date. It serves a LAN with 11 other Macs and several printers. The LAN is connected through Asante 24 port FriendlyNet GX5-424W switch which is behind a DSL Netopia 3

  • QTVR & XP64bit?

    Hello apple community, I'm currently having a problem with QuickTimeVirtualReality as I cannot display the 360 view here: http://www.sideshowtoy.com/cgi-bin/category.cgi?item=2932 (the 360 view option) When I try to view it, I get this error: "Error

  • How do I use this forum?

    Can someone explain how to "reply" to a question in this discussion? I posted a question MOVING FROM G4 TO iMAC and I would like to respond to those who kindly posted a reply. Please don't suggest the "reply" button - that doesn't work. Yesyesyes I a

  • 1z0-051 Sample Question Query

    I saw this question at http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=303&p_certName=SQ1Z0_051 3. Examine the structure of the EMP table:   EMP       Name  Null?  Type   EMPNO ENAME SALARY COMM_PCT NOT NULL  NUMBER(3) VARCH