Jsp on iPlanet 4.1

Can someone give me the steps to enable jsp for iPlanet? Is it a good
idea to use Java2 SDK 1.3_03? I have seen posts with problems related
to 1.3. Also, I am a bit confused as to what to put into the following
fields:
JDK Runtime Libpath
JDK Runtime Classpath
thanks in advance

Hi Sid,
JDK Runtime Libpath=<JDK-installation_dir>/jre/lib
JDK Runtime Classpath=<JDK-installation_dir>/lib
Hope it will help you.
Please feel free to mail me back if you still have doubts.
Regards,
Sanjeev.
Developer Support Group iAS.
Sid French wrote:
Can someone give me the steps to enable jsp for iPlanet? Is it a good
idea to use Java2 SDK 1.3_03? I have seen posts with problems related
to 1.3. Also, I am a bit confused as to what to put into the following
fields:
JDK Runtime Libpath
JDK Runtime Classpath
thanks in advance

Similar Messages

  • JavaBeans in JSP on iPlanet server problem

    Hi-
    I have deployed several JSPs, but this is my first attempt at using JavaBeans in the pages. We are using the iPlanet 4.1 web server.
    The following is my JSP code (MyTest.jsp):
    <html>
    <head>
    <title> Test case</title>
    </head>
    <body>
    <jsp: useBean id="myBean" class="Beans.MyBean" />
    </body>
    </html>
    The following is the bean code:
    package Beans
    public class MyBean {
    private String message = "No Message";
    public String getMessage() {
    return(message);
    public void setMessage(String message) {
    this.message = message;
    I have the JSP and bean in the same directory. I'm not clear on where to put it on an iPlanet server. The bean compiles fine, and iPlanet seems to be able to see it. However, when I compile the JSP I get the following error on iPlanet:
    recompiling JSP file: /<dir path>/Beans/MyTest.jsp
    JSP compilation error: java.lang.Exception: JSP parse error (line24) - Incomplete tag ending of /jsp:useBean, stack: java.lang.Exception: JSP parse error(line 24) - Incomplete tag ending of /jspuseBean
    I've looked through several books and the JSP coding to useBean looks fine. Is this error related to iPlanet? Is it tied to the directory structure? We are using JDK1.3, is it set up for JavaBeans - or do we need to download some other files?
    Any help is welcomed!
    Thanks,
    Leilani

    Leilani,
    Have you got your JSP and beans to work. I'm having a similar problem. I am getting the following error when trying to load the JSP:
    [10/Dec/2001:11:46:42] info ( 1688): Internal Info: loading servlet /wacc/jsp/pickProgram.jsp
    [10/Dec/2001:11:46:47] info ( 1688): JSP: JSP1x compiler threw exception
    org.apache.jasper.JasperException: Unable to compile class for JSPC:\iPlanet\Server4\https-wacc\config\..\ClassCache\_jsps\_wacc\_jsp\_pickProgram_jsp.java:86: Undefined variable or class name: menu
    menu.setUserId(userId);
    ^
    1 error
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:260)
         at com.netscape.server.http.servlet.NSServletEntity.load(NSServletEntity.java:230)
         at com.netscape.server.http.servlet.NSServletEntity.update(NSServletEntity.java:149)
         at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:463)
    [10/Dec/2001:11:46:47] warning ( 1688): Internal error: Failed to get GenericServlet. (uri=/wacc/jsp/pickProgram.jsp,SCRIPT_NAME=/wacc/jsp/pickProgram.jsp)
    My iPlanet "Configure JVM Attributes" has the path to the beans directory (I have also tried adding it to the Windows CLASSPATH variable):
    C:\dir\dir\beansdir;
    and here is the JSP code snippet:
    <%@ page info="Pick Program into page" %>
    <HTML>
    <HEAD>
    </HEAD>
    <BODY BGCOLOR="#ffffff">
    <USEBEAN name="menu" type=ford.wacc.beans.Menus lifespan=page></USEBEAN>
    <%
    PrintWriter myOut = response.getWriter();
    // get logged in user id
    String tmpStr = "userid";
    String userId = tmpStr.toUpperCase();
    // store user id in bean
    try {
    menu.setUserId(userId);
    } catch (Exception ex) {
    // global variables
    String[] menuItems = null;
    %>
    <%= tmpStr %>
    <%= userId %>
    </BODY>
    </HTML>
    I believe I have my iPalnet server configured correctly but it seems to me that it is a path problem. If anyone can point me in the right direction, I'd appreciate it. Thanks.

  • How can I connect JSP in IPlanet that access to EJB in Weblogic?

    Hi:
    I have a JSP in IPlanet that access to EJB in Weblogic.
    IPlanet and Weblogic are installed in different machines.
    I don't know what code source and deployment actions to do to connect jsp and ejb. Can anybody guide me?
    Thanks in advance,
    David B.

    Hi,
    now only i am initiating the combination of iplanet webserver 4.1 and weblogic 5.1 application server for my project. I can able to execute jsps through iplanet webserver.
    Can u explain clearly jsps calls over to ejb which is stored in weblogic? How i will handle this combination in single machine?
    thanks in advance
    vijay.

  • Importing packages in JSP using iPlanet problem

    hi experts,
    i am new begi to iPlanet server6.0
    i have installed iPlanet6.0 in windowsNT(d:\iPlanet\servers)
    document root is d:\iPlanet\servers\Docs
    i have one jsp called test.jsp in document root dir.
    i imported one package called adminBeans in jsp file.
    i put adminBeans class folder in
    d:\iPlanet\servers\Docs\WEB-INF\classes
    whrn i am ruuning this jsp error shows as below
    ============================
    [04/Jul/2002:11:15:01] info ( 347): JSP: JSP1x compiler threw exception
    org.apache.jasper.JasperException: Unable to compile class for JSPd:\iPlanet\Servers\https-ntserver.vsnl\config\..\ClassCache\_jsps\_test_jsp.java:15: Package adminBeans not found in import.
    import adminBeans.*;
    ^
    1 error
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
         at com.iplanet.server.http.servlet.NSServletEntity.load NSServletEntity.java:252)
         at com.iplanet.server.http.servlet.NSServletEntity.update(NSServletEntity.java:173)
         at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:416)
    =====================================================
    do i want to set any configuration for jsp running?.
    without any import,like helloworld.jsp file is working fine.
    any idea
    plz help me ya.
    thanks in adv.
    endrum anpudan
    maruthu

    hi,
    first of all u understand the way package works
    suppose u have package named mybeans and there r classes under this folder for e.g myBeans/AdminBean and many more so ur definetly going to import the classes in this way import myBeans.*; for all classes or import myBeans.AdminBean; for single class but before doin that make sure that u have set that package path in ur environment. how will u do that ? register the path just above one folder to myBeans for e.g
    D:\myClasses in the evironment and ur myBeans folder wil reside under D:\myClasses\myBeans

  • Deploy JSP to IPlanet

    How do I deploy a JSP application using dataTags on I-Planet? I was able to deploy an application using beans however the JSP's that use dataTags do not run.

    Unlike Tomcat, iPlanet4.1 does not seem to have web.xml to setup the datatags configuration.
    I have got a Datatags jsp working on iplanet4.1 on my side.
    The only extra step i did from the
    deployment of JSP's with webbeans is that
    I copied DataTags.tld file into the root directory of iPlanet webserver.
    ex:-
    root directory = c:\Netscape\server4\Docs
    I created a "webapp" directory under the above one
    and copied "DataTags.tld" file into c:\Netscape\server4\Docs\webapp
    then I created a simple jsp file which browses the Dept ViewObject using DataTags
    ex:- DeptView_Browse.jsp
    I deployed the jsp file into
    c:\Netscape\server4\Docs\datatags_html\DeptView_Browse.jsp
    here "datatags_html" was the directory used as HTML root in JDeveloper.
    Others I assume you already setup are
    BC4J Runtime libraries as part of classpath of iPlanet4.1, this should include jbohtml.zip
    your BC4J Appmodule jar file
    raghu

  • Unable to run Jsp in iPlanet 4.1 on Solaris

    Hi all,
    On solaris we have 2 virtual servers running on iPlanet 4.1.
    When we try to run index.jsp , it is giving the below error.
    All the mappings are fine.
    [10/Oct/2002:10:53:29] info (21932): Internal Info: loading servlet /jsp/index.jsp
    [10/Oct/2002:10:53:29] info (21932): JSP: JSP1x compiler threw exception
    java.io.FileNotFoundException: /jsp/index.jsp
         at java.lang.Throwable.fillInStackTrace(Native Method)
         at java.lang.Throwable.fillInStackTrace(Compiled Code)
         at java.lang.Throwable.<init>(Compiled Code)
         at java.lang.Exception.<init>(Compiled Code)
         at java.io.IOException.<init>(Compiled Code)
         at java.io.FileNotFoundException.<init>(Compiled Code)
         at org.apache.jasper.compiler.JspReader.pushFile(Compiled Code)
         at org.apache.jasper.compiler.JspReader.pushFile(Compiled Code)
         at org.apache.jasper.compiler.JspReader.<init>(Compiled Code)
         at org.apache.jasper.compiler.JspReader.createJspReader(Compiled Code)
         at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
         at com.netscape.server.http.servlet.NSServletEntity.load(Compiled Code)
         at com.netscape.server.http.servlet.NSServletEntity.<init>(Compiled Code)
         at com.netscape.server.http.servlet.NSServletRunner.loadServlet(Compiled Code)
         at com.netscape.server.http.servlet.NSServletRunner.Service(Compiled Code)
    [10/Oct/2002:10:53:29] warning (21932): Unable to locate class:
    /home/pruser/PRAPP_HOME/PRApplication/jsp (java.lang.ClassNotFoundException:
    /home/pruser/PRAPP_HOME/PRApplication/jsp)
    [10/Oct/2002:10:53:29] warning (21932): Internal error: Failed to load servlet
    (servlet=/jsp/index.jsp)
    This is very urgent, Any help is appreciated.
    Thanx
    Shiva
    make a cc to me at
    [email protected]

    You have to set the java compile path at main level in your web server admin page
    ie in the global settings and jdk/jre configure set the path of your jdk to your java directory
    sincer
    thusi

  • My first JSP in iPlanet (Help me please!!!!)

    I recently developed a Jsp aplication in Tomcat Jakarta 3.2, but the client decided to migrate to iPlanet 6.0.
    I'm searching for a directory where I can put the Jsp's( or a simple jsp to execute it and place all the rest ), but I can't find it.
    I place one simple JSP expecting to execute it , but nothing works.I only want a default directory ,to place one single JSP only to show the chief that it works ... only that...
    When I was working whit Tomcat , it cames with a lot of examples ,so the only thing that I did it was to place my simple jsp in the same directory of the examples...
    But it seems that Iplanet came with no examples.
    Please help coz I'm in death time.........

    I use an old version of iPlanet . There the JSPs are stored in <SERVER-HOME>/docs folder . As in my case it is D:\Netscape\myserver\docs
    Also, in order to run JSP you have to enable JSP engine and Servlet engine from the Administration console.
    I think it will be similar in iPlanet 6.
    Cheers!!
    Shubhrajit

  • Jsp on iplanet 6.0 sp7 error: unable to load jsp class

    I am having trouble to install astraweb on iplanet with following error
    [06/Apr/2005:08:46:38] info (21397): WebApp service: uri = /astraweb/ contextPath = /astraweb servletPath = /index.jsp pathInfo = null servletName = jsp
    [06/Apr/2005:08:46:38] info (21397): JSP11 Log:JspEngine --> /index.jsp
    [06/Apr/2005:08:46:38] info (21397): JSP11 Log: ServletPath: /index.jsp
    [06/Apr/2005:08:46:38] info (21397): JSP11 Log: PathInfo: null
    [06/Apr/2005:08:46:38] info (21397): JSP11 Log: RealPath: /opt/iplanet60sp7/docs/astraweb/index.jsp
    [06/Apr/2005:08:46:38] info (21397): JSP11 Log: RequestURI: /astraweb/
    [06/Apr/2005:08:46:38] info (21397): JSP11 Log: QueryString: null
    [06/Apr/2005:08:46:38] info (21397): JSP11 Log:Classpath according to the Servlet Engine is: /opt/iplanet60sp7/docs/astraweb/WEB-INF/classes:/opt/iplanet60sp7/docs/astraweb/WEB-INF/lib/Basej4.jar:/opt/iplanet60sp7/docs/astraweb/WEB-INF/lib/commons-fileupload-1.0.jar:/opt/iplanet60sp7/docs/astraweb/WEB-INF/lib/hsi.jar:/opt/iplanet60sp7/docs/astraweb/WEB-INF/lib/net.jar:/opt/iplanet60sp7/docs/astraweb/WEB-INF/lib/oreilly.jar:
    [06/Apr/2005:08:46:38] info (21397): JSP11 Log:unable to load jsp class: jsps.index_jsp
    [06/Apr/2005:08:46:38] failure (21397): Internal error: exception thrown from the servlet service function (uri=/astraweb/): java.lang.NullPointerException, Stack: java.lang.NullPointerException
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.isJspFileModified(JspServlet.java:231)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadJSP(JspServlet.java:199)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$4(JspServlet.java:171)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:596)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:919)
    at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1058)
    at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:981)
    Any idea? Thanks

    In the course of your troubleshooting to date, have you worked through the following document, Jeff?
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert

  • Problem with errorPage in page directive tag while proxying request from iPlanet to WebLogic

              Hi,
              We are using iPlanet 4.0 as the webserver and WebLogic 5.1 as the application server on different solaris machines. We have put our JSPs in the weblogic application server and proxy the requests from iplanet to weblogic.
              We are facing a problem with the errorPage in the 'Page Directive' tag of the JSP. We have given xxx.jsp as an 'errorpage' parameter in the page directive tag. If we directly access the JSP from the WebLogic, and there is an system error, the error page specified in the JSP is getting displayed. But if we access the JSP from iPlanet and there is an system error, instead of displaying the error page, iPlanet is asking whether we want to download the file. If we say yes it downloads the actual JSP code itself. We have defined the mime types in obj.conf file as well as mime.types for the iPlanet.
              If anyone knows how this can be solved, it would be of great help
              Regards,
              Krish
              

    How did you configure the obj.conf file? proxy by mime type or ppath? It
              seems errorPage.jsp was not proxyed and treated as a unknown mime type.
              Krishnaraja <[email protected]> wrote in message
              news:3a372d79$[email protected]..
              >
              > Hi,
              >
              > We are using iPlanet 4.0 as the webserver and WebLogic 5.1 as the
              application server on different solaris machines. We have put our JSPs in
              the weblogic application server and proxy the requests from iplanet to
              weblogic.
              >
              > We are facing a problem with the errorPage in the 'Page Directive' tag of
              the JSP. We have given xxx.jsp as an 'errorpage' parameter in the page
              directive tag. If we directly access the JSP from the WebLogic, and there is
              an system error, the error page specified in the JSP is getting displayed.
              But if we access the JSP from iPlanet and there is an system error, instead
              of displaying the error page, iPlanet is asking whether we want to download
              the file. If we say yes it downloads the actual JSP code itself. We have
              defined the mime types in obj.conf file as well as mime.types for the
              iPlanet.
              >
              > If anyone knows how this can be solved, it would be of great help
              >
              > Regards,
              > Krish
              

  • Accessing my own class members from the JSP file

    Hi,
    I have created a class by name simple.java.and the package structure is like sridhar.source.useful.In this package i placed my file simple.java.
    Now i import this file with the import statement in JSP like
    <%@ import = "sridhar.source.useful.*" %>
    Now from the JSP file i want to execute some of the methods in simple.java.
    I tried this one by importing the simple.java in my JSP file,but i am getting some errors:
    variables that i have declared in Java files are not defined.
    The JSP is not importing the class simple.java
    I am executing my JSP in weblogic6.1(webserver is IPlanet)
    shall i need to set any classpath for this in the weblogic shell script??
    pls clarify me if any configuration is to be made or not??
    regards
    Naidu

    For JSP with IPlanet/weblogic and imported custom classes:
    Put your class / package in the correct folder. $path is any path you want....
    Ex: package foo, class foorbar must be
    $path/foo/foobar.class
    All classes must be .class, not .jar.
    Weblogic/IPlanet must be configured to have the CLASSPATH
    $path/
    (do not include foo/foobar!)
    The JSP has
    <%@ import "foo.*" %>
    Your class may now be used just like the other imported classes. Say you have an object Foobar with a constructor, you can just say
    Foobar myFoo = new Foobar();
    I do this with my classes, so if you have any questions, just ask.

  • Class not found when I run JSPs

    I set up and can run JSPs in iPlanet 4.1 SP9 on NT. But if I use anything
    such as Date() I get a Server Error and a Class Not Found in the error log.
    Can someone tell me how to confire where the .class and .jar support files
    go, or where do I put them. In the JDK install directory or in the iPlanet
    install directory.
    Thanks, Gary

    Something to note, you must have superuser priveleges to run ibconf.
    Check out this document about installing a PCI-GPIB on a Solaris machine. There is a section in it on page 9 about configuring the software with ibconf.
    If you still have problems after reading through this repost.
    JenK

  • Classpath issue with .war files on iPlanet 6.0

    Hi there,
    I'm using iPlanet 6.0 Web Server (SP1, I think), and I have an issue.
    We deploy a .war file as per normal. We go to the URL, and get a 500 error. Checking the error file gives us the following error (the application name has been blanked out with #####, and the server's domain name with <server>, but the actual package names remain -- they are libraries from ESRI):
    [08/Jul/2003:13:27:20] info ( 2705): Internal Info: loading servlet /#####/index.jsp
    [08/Jul/2003:13:27:21] info ( 2705): JSP: JSP1x compiler threw exception
    org.apache.jasper.JasperException: Unable to compile class for JSP/opt/iplanet/servers/https-<server>/c
    onfig/../ClassCache/_jsps/_#####/_index_jsp.java:15: Package com.esri.aims.mtier.io not found in import.
    import com.esri.aims.mtier.io.*;
    ^
    /opt/iplanet/servers/https-<server>/config/../ClassCache/_jsps/_#####/_index_jsp.java:16: Class com
    .esri.aims.mtier.model.map.layer.FeatureLayer not found in import.
    import com.esri.aims.mtier.model.map.layer.FeatureLayer;
    ^
    /opt/iplanet/servers/https-<server>/config/../ClassCache/_jsps/_#####/_index_jsp.java:17: Class com
    .esri.aims.mtier.model.envelope.Envelope not found in import.
    import com.esri.aims.mtier.model.envelope.Envelope;
    ^
    /opt/iplanet/servers/https-<server>/config/../ClassCache/_jsps/_#####/_index_jsp.java:18: Class com
    .esri.aims.mtier.model.acetate.Point not found in import.
    import com.esri.aims.mtier.model.acetate.Point;
    ^
    /opt/iplanet/servers/https-<server>/config/../ClassCache/_jsps/_#####/_index_jsp.java:19: Class com
    .esri.aims.mtier.model.map.layer.query.Filter not found in import.
    import com.esri.aims.mtier.model.map.layer.query.Filter;
    ^
    /opt/iplanet/servers/https-<server>/config/../ClassCache/_jsps/_#####/_index_jsp.java:20: Class com
    .esri.aims.mtier.model.map.layer.renderer.symbol.SimpleMarkerSymbol not found in import.
    import com.esri.aims.mtier.model.map.layer.renderer.symbol.SimpleMarkerSymbol;
    ^
    /opt/iplanet/servers/https-<server>/config/../ClassCache/_jsps/_#####/_index_jsp.java:21: Class com
    .esri.aims.mtier.model.map.Map not found in import.
    import com.esri.aims.mtier.model.map.Map;
    ^
    7 errors
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
    at com.iplanet.server.http.servlet.NSServletEntity.load(NSServletEntity.java:252)
    at com.iplanet.server.http.servlet.NSServletEntity.update(NSServletEntity.java:173)
    at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:416)
    [08/Jul/2003:13:27:21] warning ( 2705): Internal error: Failed to get GenericServlet. (uri=/#####/index.jsp,SCRIPT_NA
    ME=/#####/index.jsp)
    Hopefully that is readable -- basically, it can't find a bunch-o-classes. Now, normally, I would snicker, and say something smart about classpaths. However, I have already done this, and looked in all the places that I think should have these classes in (I shall just use the last eg, com.esri.aims.mtier.model.map.Map, rather than all of them):
    # find /home/websites/#####/ |grep com.esri.aims.mtier.model.map.Map
    /home/websites/#####/WEB-INF/classes/com/esri/aims/mtier/model/map/Map.class
    # jar tvf /home/websites/#####/WEB-INF/lib/arcims_jconnect.jar |grep com.esri.aims.mtier.model.map.Map
    33267 Wed Dec 04 15:50:14 GMT+09:30 2002 com/esri/aims/mtier/model/map/Map.class
    So, as you can see, the relevant files are in not just one, but two places that I had assumed were in the classpath. Judging from the error messages, they are not. Am I doing something wrong here?
    Here's some of the config...
    The relevant line from web-apps.xml:
    <web-app uri="/#####" dir="/export/home/websites/#####" enable="true"/>
    The classpath from jvm12.conf:
    jvm.classpath=/opt/iplanet/servers/plugins/servlets/examples/legacy/beans.10/SDKBeans10.jar
    That's all that I can find that is relevant. Please ask if there is anything else I can give you (apart from access to the server or the application -- I can't give that).
    Any ideas?

    The solution was to download the DTD file and change
    the URL to a file: link, so iPlanet could
    successfully use the DTD. Did you have to define the file link as an absolute path? Or where you able to use a relative link.? If so, can you please provide the full syntax?
    We faced a similar problem and after much trial and error ended up placing the DTD on the server in /usr. But we'd like to try and find a way to define a relative file path and put the DTD right in the WEB-INF directory (or somewhere similar) so that we have one less configuration hassle and platform/server independence (i.e. the war file has everything it needs). But we have not been able to determine a way of doing this.
    Thanks

  • Debugging with iPlanet

    Has anyone been able remote debug with JDeveloper 3.1 and iPlanet 4.1? In order to enable JSPs on iPlanet, I had to point iPlanet to the JDK that comes with JDeveloper.
    If anyone could tell me how to configure iPlanet and JDeveloper for this, I would appreciate it.
    Thanks,
    Chris
    null

    I don't have an iPlanet installation here to try this with, however the iPlanet documentation must include information for how to support remote debugging.
    JDeveloper's remote debugging supports both JPDA (Sun's standard for remote debugging, it's an add on component of JDK 1.2.2 and built-in starting with JDK 1.3). as well as OJVM protocol (Oracle's VM specific extensions).
    I'd find out from the iPlanet documentation how to allow a JPDA debugger to attach, and then just let JDeveloper use the standard JPDA mechanism to get this to work. This works on Tomcat, Apache JServ, as well as many other envionments (I debug my Java application on my Linux machine from JDeveloper on my WinNT desktop)
    Hope this helps,
    Rob
    null

  • All the steps involved in creating user attributes

    where is it documented on how to create user attributes that are stored in the ldap?
    I created a jspprovider channel, and I can get data out of the user attributes in the samplecontent.jsp by:
    JSPProvider p = (JSPProvider)pageContext.getAttribute("JSPProvider");
    SSOTokenManager mgr = SSOTokenManager.getInstance();
    SSOToken token = mgr.createSSOToken(request);
    AMStoreConnection dpc = new AMStoreConnection(token);
    String name = token.getPrincipal().getName();
    AMUser user = dpc.getUser(name);
    Map attMap = user.getAttributes();
    Collection valueCollection = attMap.values();
    Iterator valueIterator = valueCollection.iterator();
    int iSize = attMap.size();
    Set attKeySet = attMap.keySet();
    Iterator keyIterator = attKeySet.iterator();
    and then iterate through to display them all.
    I then tried to store a value using the sampledoedit.jsp file:
    JSPProvider p = (JSPProvider)pageContext.getAttribute("JSPProvider");
    SSOTokenManager mgr = SSOTokenManager.getInstance();
    SSOToken token = mgr.createSSOToken(request);
    AMStoreConnection dpc = new AMStoreConnection(token);
    String name = token.getPrincipal().getName();
    AMUser user = dpc.getUser(name);
    String aname = request.getParameter("attributeName");
    Object aval = request.getParameter("attributeValue");
    HashMap attMap = new HashMap();
    attMap.put(aname,aval);
    user.setAttributes(attMap);
    user.store(true);
    response.sendRedirect((String)pageContext.getAttribute("url"));
    For whatever reason, I get an error, and in the debug I just get couldn't set attributes.
    Then, when I try to retreive the list of attributes, the new name/value pair is created, but the value is blank.....
    Any ideas? Or a link on a step by step process on how to create user attributes?

    BTW, here is the error I get in the debug log:
    01/06/2005 12:43:47:232 PM AST: Thread[service-j2ee,5,main]
    ERROR: DesktopServlet.handleException()
    com.sun.portal.providers.ProviderException: JSPProvider.processJSPFile(): jsp=doedit.jsp, com.sun.portal.providers.ProviderException: JSPProvider.processJSPFile(): jsp=sampledoedit.jsp, com.iplanet.am.sdk.AMException: Unable to set attribute(s) com.sun.portal.desktop.taglib.DesktopTaglibException: JSPProvider.processJSPFile(): jsp=sampledoedit.jsp,
    at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:880)
    at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:777)
    at com.sun.portal.providers.jsp.JSPProvider.processEdit(JSPProvider.java:673)
    at com.sun.portal.desktop.DesktopServlet.doGetPost(DesktopServlet.java:644)
    at com.sun.portal.desktop.DesktopServlet.service(DesktopServlet.java:320)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:586)
    com.sun.portal.providers.ProviderException: JSPProvider.processJSPFile(): jsp=sampledoedit.jsp, com.iplanet.am.sdk.AMException: Unable to set attribute(s) com.sun.portal.desktop.taglib.DesktopTaglibException: JSPProvider.processJSPFile(): jsp=sampledoedit.jsp,
    at com.sun.portal.desktop.taglib.provider.ProcessEditTag.doStartTag(ProcessEditTag.java:28)
    at jsps.etc._opt._SUNWps._desktop._AnyWarePortal_en_CA._JSPEditContainer._html._doedit_jsp._jspService(_doedit_jsp.java:193)
    at com.sun.portal.providers.jsp.jasper3.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
    at com.sun.portal.providers.jsp.JspServletWrapper.service(JspServletWrapper.java:182)
    at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:863)
    at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:777)
    at com.sun.portal.providers.jsp.JSPProvider.processEdit(JSPProvider.java:673)
    at com.sun.portal.desktop.DesktopServlet.doGetPost(DesktopServlet.java:644)
    at com.sun.portal.desktop.DesktopServlet.service(DesktopServlet.java:320)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:586)
    com.sun.portal.providers.ProviderException: JSPProvider.processJSPFile(): jsp=sampledoedit.jsp, com.iplanet.am.sdk.AMException: Unable to set attribute(s)
    at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:880)
    at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:777)
    at com.sun.portal.providers.jsp.JSPProvider.processEdit(JSPProvider.java:673)
    at com.sun.portal.desktop.taglib.provider.ProcessEditTag.doStartTag(ProcessEditTag.java:26)
    at jsps.etc._opt._SUNWps._desktop._AnyWarePortal_en_CA._JSPEditContainer._html._doedit_jsp._jspService(_doedit_jsp.java:193)
    at com.sun.portal.providers.jsp.jasper3.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
    at com.sun.portal.providers.jsp.JspServletWrapper.service(JspServletWrapper.java:182)
    at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:863)
    at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:777)
    at com.sun.portal.providers.jsp.JSPProvider.processEdit(JSPProvider.java:673)
    at com.sun.portal.desktop.DesktopServlet.doGetPost(DesktopServlet.java:644)
    at com.sun.portal.desktop.DesktopServlet.service(DesktopServlet.java:320)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:586)
    com.iplanet.am.sdk.AMException: Unable to set attribute(s)
    at com.iplanet.am.sdk.AMDirectoryManager.processInternalException(AMDirectoryManager.java:247)
    at com.iplanet.am.sdk.AMDirectoryManager.setAttributes(AMDirectoryManager.java:2151)
    at com.iplanet.am.sdk.AMCacheManager.setAttributes(AMCacheManager.java:867)
    at com.iplanet.am.sdk.AMObjectImpl.store(AMObjectImpl.java:1573)
    at jsps.etc._opt._SUNWps._desktop._AnyWarePortal_en_CA._WebFolders._html._sampledoedit_jsp._jspService(_sampledoedit_jsp.java:118)
    at com.sun.portal.providers.jsp.jasper3.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
    at com.sun.portal.providers.jsp.JspServletWrapper.service(JspServletWrapper.java:182)
    at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:863)
    at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:777)
    at com.sun.portal.providers.jsp.JSPProvider.processEdit(JSPProvider.java:673)
    at com.sun.portal.desktop.taglib.provider.ProcessEditTag.doStartTag(ProcessEditTag.java:26)
    at jsps.etc._opt._SUNWps._desktop._AnyWarePortal_en_CA._JSPEditContainer._html._doedit_jsp._jspService(_doedit_jsp.java:193)
    at com.sun.portal.providers.jsp.jasper3.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
    at com.sun.portal.providers.jsp.JspServletWrapper.service(JspServletWrapper.java:182)
    at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:863)
    at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:777)
    at com.sun.portal.providers.jsp.JSPProvider.processEdit(JSPProvider.java:673)
    at com.sun.portal.desktop.DesktopServlet.doGetPost(DesktopServlet.java:644)
    at com.sun.portal.desktop.DesktopServlet.service(DesktopServlet.java:320)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:586)

  • I can't work with java Beans in IWS6

    I have been trying to get my iWS6 to run java bean but has not been able to do so. I tried a few beans and I get the same message on the log:
    [27/May/2002:18:30:50] info ( 3160): JSP: JSP1x compiler threw exception
    org.apache.jasper.JasperException: Unable to compile class for JSP/local/iplanet/https-hdesk-1/config/../ClassCache/_jsps/_otro_jsp.java:60: Class _jsps.UserData not found.
    UserData user = null;
    ^
    /local/iplanet/https-hdesk-1/config/../ClassCache/_jsps/_otro_jsp.java:63: Class _jsps.UserData not found.
    user= (UserData)
    ^
    /local/iplanet/https-hdesk-1/config/../ClassCache/_jsps/_otro_jsp.java:68: Class _jsps.UserData not found.
    user = (UserData) Beans.instantiate(this.getClass().getClassLoader(), "UserData");
    ^
    3 errors
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
    at com.iplanet.server.http.servlet.NSServletEntity.load(NSServletEntity.java:252)
    at com.iplanet.server.http.servlet.NSServletEntity.update(NSServletEntity.java:173)
    at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:416)
    [27/May/2002:18:30:50] warning ( 3160): Internal error: Failed to get GenericServlet. (uri=/otro.jsp,SCRIPT_NAME=/otro.jsp)
    I read a similar answer in this Forum but I couldn't find good results.
    I'm using Solaris SPARC and JDK 1.3. When I run the Web server I Find these messages:
    Java VM classpath: /local/iplanet/plugins/servlets/examples/legacy/beans.10/SDKBeans10.jar:/local/iplanet/docs:/local/iplanet/bin/https/jar/NSServletLayer.jar:/local/iplanet/bin/https/jar/NSJavaUtil.jar:/local/iplanet/bin/https/jar/NSJavaMiscUtil.jar:/local/iplanet/bin/https/jar/servlet.jar:/local/iplanet/bin/https/jar/servlet-2.3-filters-api.jar:/local/iplanet/bin/https/jar/jsp092.jar:/local/iplanet/bin/https/jar/jaxp.jar:/local/iplanet/bin/https/jar/crimson.jar:/local/iplanet/bin/https/jar/xalan.jar:/local/iplanet/bin/https/jar/jspengine.jar:
    [27/May/2002:18:29:21] info ( 3160): Loading IWSSessionManager by default.
    [27/May/2002:18:29:21] info ( 3160): IWSSessionManager: Maximum number of sessions is 1000
    [27/May/2002:18:29:23] info ( 3160): Successfully initialized web application environment (web-apps.xml) for virtual server (https-hdesk-1)
    [27/May/2002:18:29:23] warning ( 3160): The server configuration may require more file descriptors than the operating system provides. If you encounter PR_PROC_DESC_TABLE_FULL_ERROR errors, you may wish to increase the operating system hard file descriptor limit from 1024 to 5763 (see your operating system documentation) or decrease one or more of the following settings: MaxFiles in nsfc.conf and ConnQueueSize, RqThrottle, and MaxKeepAliveConnections in magnus.conf.
    [27/May/2002:18:30:46] info ( 3160): Internal Info: loading servlet /otro.jsp
    I've run many jsp files without problem, but when I use java Beans it doesn't work.
    Thank you
    P.D. The Classpath already contains the Java Bean file.

    Hola Daniel,
    Make this simple thing, import the class in your jsp, for example, in your case this should be:
    <%@ page import="UserData" %>
    The jasper compiler assumes that any unqualified class is part of the package jsps. I think this is to allow class definitions in the jsps. So if you indicate that the class is not packaged in jsps it will be found.
    Juan

Maybe you are looking for

  • Why is my project so big?

    Hi guys, *using DVDSP4 I'm having trouble with a large project that I am working on. It is mainly consisted of many menus (using .psd files), and some m2v menus as well. The project is about India. So it is ALL the states of India with a brief summar

  • Loading photos from Ipad to comp

    can't figure out how to tranfer photos from my ipad to my Imac ?

  • My phone is only offering upgrade to iOS 6 beta 3???

    Tried all the standard stuff short of factory reset (last resort only!!!!)  Any ideas? Paul

  • How to create subtotal in every invoice page for print layout design

    Dear Experts, How can I create subtotal column for every page if having more than one page of items in my invoice? Thanks!

  • Osx 10.6

    i have osx 10.5.8 and took my computer in for repairs and apple said they were going to put Snow Leopard on it for free. i have a download for safari snow leopard but it wont let me install it because i dont have 10.6. how do i get 10.6?