Struts, JSP 1.1 spec and WLS 5.1 - issue with useBean and getProperty

Hi there, I am attempting to compile a JSP page using Struts tag libraries and Weblogic 5.1 with Service Pack 9.I have defined the bean using <jsp:UseBean id="myBean" ... > and then attempt to access its methods using <jsp:getProperty name="myBean" ... > This fails with a 'myBean is not defined as bean' error. When I replace the <jsp:getProperty ...> with a scriptlet e.g. <%= myBean.getCustomerName()%> it compiles and runs just fine.I have read that the WLS server may be enforcing a strict implementation of JSP spec 1.1 which the Struts tags may not be adhering to (?).Oddly, when I start WLS without invoking the Service Pack, the error disappears and the <jsp:getProperty> works as expected!Any official reason for this strange behaviour? ... I'd like to avoid using scriptlets if possible.Thanks in advance,Rash
          

Hi.
The following link shows supported versions of apache:
http://edocs.bea.com/wls/platforms/index.html#apach
In short, WLS 5.1 does not support Apache 1.3.20. The latest supported version is
1.3.19.
Regards,
Michael
Mauricio Guerra wrote:
Hello, i've read all the online documentation regarding the apache plug in for
weblogic, and i haven't
found an answer to my question:
Does weblogic 5.1 sp8 works ok with apache 1.3.20/SSL?
All the documentation talks mention apache 1.3.12 only...
thanks,
Mauricio--
Michael Young
Developer Relations Engineer
BEA Support

Similar Messages

  • WLS 8.1 issue with .ear deployment ....

    I think the weblogic8.1 seems to have some NEW bug now. We have a .ear file that
    works just PERFECT in WLS6.1. But now when we try to DEPLOY this .ear file our
    WLS8.1 server(via the new look and feel of WLS8.1' console)....we are getting
    the Exception like ...."pl read inline below":
    ...All i know is that WLS 8.1 has introduced something like : "single J2EEC -
    EAR compiler, replacing the separate compilers in previous releases" ........is
    it may be because of this ????
    If somebody has any idea ....please let me know asap ...and just above the EXCEPTION
    we are also getting something like ...."Deployment descriptor "/WEB-INF/ups-html.tld"
    is malformed" ....what is going wrong now ?
    Please note again ....this .ear file just work PERFECT in WLS6.1+sp2.
    Read inline for the Exception:
    <Jul 16, 2003 11:15:14 AM EDT> <Warning> <HTTP> <BEA-101248> <[ServletContext(id=4316640,name=ABL,context-path=/ABL)]:
    Deployment descriptor "/WEB-INF/ups-html.tld" is malformed. Check against the
    DTD: Element type "info" must be declared. (line 334, column 9).>
    <Jul 16, 2003 11:15:14 AM EDT> <Warning> <HTTP> <BEA-101248> <[ServletContext(id=4316640,name=ABL,context-path=/ABL)]:
    Deployment descriptor "/WEB-INF/ups-html.tld" is malformed. Check against the
    DTD: The content of element type "tag" must match "(name,tag-class,tei-class?,body-content?,display-name?,small-icon?,large-icon?,description?,variable*,attribute*,example?)".
    (line 335, column 8).>
    MessageResourcesFactory.createFactory
    java.lang.NoClassDefFoundError: org/apache/struts/util/MessageResourcesFactory
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:431)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:169)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:41)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:140)
    at org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResourcesFactory.java:161)
    at org.apache.struts.action.ActionServlet.initApplication(ActionServlet.java:1029)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:464)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1070)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
    at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:893)
    at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:842)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:782)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3191)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3136)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3109)
    at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:5559)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:853)
    at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2012)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2053)
    at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2558)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2483)
    at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2308)
    at weblogic.management.deploy.slave.SlaveDeployer.commitUpdate(SlaveDeployer.java:639)
    at weblogic.drs.internal.SlaveCallbackHandler$2.execute(SlaveCallbackHandler.java:35)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
    <Jul 16, 2003 11:15:14 AM EDT> <Error> <HTTP> <BEA-101046> <[ServletContext(id=4316640,name=ABL,context-path=/ABL)]
    service: Cannot load application resources bundle com.ups.dfd.abl.prop.Constants
    java.lang.NullPointerException
    at org.apache.struts.action.ActionServlet.initApplication(ActionServlet.java:1031)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:464)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1070)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
    at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:893)
    at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:842)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:782)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3191)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3136)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3109)
    at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:5559)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:853)
    at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2012)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2053)
    at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2558)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2483)
    at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2308)
    at weblogic.management.deploy.slave.SlaveDeployer.commitUpdate(SlaveDeployer.java:639)
    at weblogic.drs.internal.SlaveCallbackHandler$2.execute(SlaveCallbackHandler.java:35)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
    >
    <Jul 16, 2003 11:15:14 AM EDT> <Error> <HTTP> <BEA-101216> <Servlet: "service"
    failed to preload on startup in Web application: "ABL".
    javax.servlet.UnavailableException: Cannot load application resources bundle com.ups.dfd.abl.prop.Constants
    at org.apache.struts.action.ActionServlet.initApplication(ActionServlet.java:1043)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:464)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1070)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
    at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:893)
    at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:842)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:782)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3191)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3136)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3109)
    at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:5559)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:853)
    at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2012)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2053)
    at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2558)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2483)
    at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2308)
    at weblogic.management.deploy.slave.SlaveDeployer.commitUpdate(SlaveDeployer.java:639)
    at weblogic.drs.internal.SlaveCallbackHandler$2.execute(SlaveCallbackHandler.java:35)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
    thx, sangita

    Rob,
    These are the 3 files that you need:
    1) wlstart_cap (this is the start up script that we use to start the Managed server
    while on WLS6.1) ....please read inline:
    -----------Inline 1-----------------
    #!/bin/ksh
    # BEA WebLogic Start Script - Version 1.1
    # Add support for STARTMODE MKG 03/08/2002
    # Set user specified variables
    JAVA_HOME=/usr/j2sdk1_3_1_01
    JAVA_OPTIONS="-D$1 -ms128m -mx128m -noclassgc"
    BEA_HOME=/opt/bea
    WL_HOME=$BEA_HOME/wlserver6.1
    WL_SCRIPT=$WL_HOME/config/Subsidiary
    export WL_SCRIPT
    EXPORT_LIB=$WL_HOME/lib
    #### Set locale to US English MKG 2003/01/16
    LC_MESSAGES=C
    LC_TIME=en_US.ISO8859-1
    LC_NUMERIC=en_US.ISO8859-1
    LC_MONETARY=en_US.ISO8859-1
    LC_COLLATE=en_US.ISO8859-1
    LC_CTYPE=en_US.ISO8859-1
    export LC_MESSAGES LC_TIME LC_NUMERIC LC_MONETARY LC_COLLATE LC_CTYPE
    #### End locale settings
    #### UPSCAP-clientmanger App settings --- Begin
    # workaround for strange bug in code that requires an x-server
    # to be present when graph code is initialized.
    # Note that this is my sun workstation. MKG 05/16/2002
    DISPLAY=bluewolf.telecom.ups.com:0.0
    export DISPLAY
    #### UPSCAP-clientmanger App settings --- End
    #### EUP App settings --- Begin
    VANAPI_HOME=/opt/vanapi
    VANPATH=$VANPATH:$VANAPI_HOME/vanapi/share
    LD_LIBRARY_PATH=$VANAPI_HOME/vanapi:$VANAPI_HOME/vanapi/vanjavi:$LD_LIBRARY_PATH
    PATH=$VANAPI_HOME/perl_dir/bin:$PATH
    EUP_CLASSPATH=$WL_HOME/config/Subsidiary/serverclasses
    export VANPATH LD_LIBRARY_PATH VANAPI_HOME PATH EUP_CLASSPATH
    #### EUP App settings --- End
    CLASSPATH=$WL_HOME/lib/CR061106_61sp2.jar:$WL_HOME/lib/CR072612_61sp2.jar:$WL_HOME/lib/CR071109_610sp2.jar:$WL_
    HOME/lib/CR058352_61sp2.jar:$WL_HOME/lib/weblogic.jar:$BEA_HOME:$EUP_CLASSPATH
    if [ -n "$LD_LIBRARY_PATH" ]; then
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$WL_HOME/lib/solaris:
    else
    LD_LIBRARY_PATH=$WL_HOME/lib/solaris:
    fi
    export LD_LIBRARY_PATH
    ADMIN_URL=$(cat $WL_SCRIPT/config.weblogic|grep AdminServerURL|awk '{print  $2}')
    ADMIN_SERVER_NAME=$(cat $WL_SCRIPT/config.weblogic|grep AdminServerName|awk '{print
    $2}')
    DOMAIN_NAME=$(cat $WL_SCRIPT/config.weblogic|grep Domain|awk '{print  $2}')
    PATH=$WL_HOME/bin:$JAVA_HOME/bin:$PATH
    export PATH
    WLS_PW=$(cat $WL_SCRIPT/bea.check | awk '{print $1}')
    export $WLS_PW
    #################################export LOG_HOME=/export/bea/netsite/ext-admin/logs/bea
    export LOG_HOME=/export/bea/logs
    # echo all of the variable settings
    #echo
    #echo "BEA_HOME=$BEA_HOME"
    #echo "WL_HOME=$WL_HOME"
    echo "EXPORT_HOME=$EXPORT_HOME"
    echo "CLASSPATH=$CLASSPATH"
    #echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
    #echo "PATH=$PATH"
    #echo "JAVA_OPTIONS=$JAVA_OPTIONS"
    #echo "DOMAIN_NAME=$DOMAIN_NAME"
    #echo "ADMIN_URL=$ADMIN_URL"
    #echo "ADMIN_SERVER_NAME=$ADMIN_SERVER_NAME"
    #java -fullversion
    #echo
    #echo
    # Grab some file descriptors.
    maxfiles='ulimit -H -n'
    if [ ! $? -a "$maxfiles" != 1024 ]; then
    if [ "$maxfiles" = "unlimited" ]; then
    maxfiles=1025
    fi
    if [ "$maxfiles" -lt 1024 ]; then
    ulimit -n $maxfiles
    else
    ulimit -n 1024
    fi
    fi
    # Set Production Mode. When set to true, the server starts up
    # in production mode. When set to false, the server starts up
    # in development mode. The default is false.
    STARTMODE=true
    if [[ -n $1 ]]; then
    if [[ $1 = "admin" ]]; then
    echo "Starting admin server...."
    ###### echo "See /export/netsite/ext-admin/logs/bea/admin.start for more info"
    # Change to the WebLogic directory
    cd $WL_HOME
    echo nohup java $JAVA_OPTIONS -classpath $CLASSPATH -Dweblogic.Domain=$DOMAIN_NAME
    -Dweblogic.Name=$ADM
    IN_SERVER_NAME -Dbea.home=$BEA_HOME -Djava.security.policy==$WL_HOME/lib/weblogic.policy
    -Dweblogic.Production
    ModeEnabled=$STARTMODE -Dweblogic.management.password=$WLS_PW -Dweblogic.management.discover=true
    -Dweblogic.ma
    nagement.discover.retries=6 -Dweblogic.management.discover.interval=90 weblogic.Server
    nohup java $JAVA_OPTIONS -classpath $CLASSPATH -Dweblogic.Domain=$DOMAIN_NAME
    -Dweblogic.Name=$ADMIN_SE
    RVER_NAME -Dbea.home=$BEA_HOME -Djava.security.policy==$WL_HOME/lib/weblogic.policy
    -Dweblogic.ProductionModeE
    nabled=$STARTMODE -Dweblogic.management.password=$WLS_PW -Dweblogic.management.discover=true
    -Dweblogic.managem
    ent.discover.retries=6 -Dweblogic.management.discover.interval=90 weblogic.Server
    $LOG_HOME/admin.start 2>&1&
    echo
    shift
    # Change back to the domain directory
    cd config/$DOMAIN_NAME
    echo $! > admin.pid
    else
    while [[ $# -gt 0 ]];do
    SERVER_NAME=$(cat $WL_SCRIPT/config.weblogic|grep $1|awk '{print $2}')
    if [[ $SERVER_NAME = "" ]]; then
    echo "ERROR: unable to locate an entry for "$1" in config file"
    shift
    else
    echo "Starting server: "$SERVER_NAME
    ######### echo "See /export/netsite/ext-admin/logs/bea/$SERVER_NAME.start
    for more info"
    # Change to the WebLogic directory
    cd $WL_HOME
    echo nohup java $JAVA_OPTIONS -classpath $CLASSPATH -Dweblogic.Domain=$DOMAIN_NAME
    -Dweblogic.Nam
    e=$SERVER_NAME -Dweblogic.management.server=$ADMIN_URL -Djava.security.policy==$WL_HOME/lib/weblogic.policy
    -Dw
    eblogic.ProductionModeEnabled=$STARTMODE -Dweblogic.management.password=$WLS_PW
    weblogic.Server
    nohup java $JAVA_OPTIONS -classpath $CLASSPATH -Dweblogic.Domain=$DOMAIN_NAME
    -Dweblogic.Name=$SE
    RVER_NAME -Dweblogic.management.server=$ADMIN_URL -Djava.security.policy==$WL_HOME/lib/weblogic.policy
    -Dweblog
    ic.ProductionModeEnabled=$STARTMODE -Dweblogic.management.password=$WLS_PW weblogic.Server
    $LOG_HOME/$SERVER_NAME.start 2>&1 &
    shift
    # Change back to the domain directory
    cd config/$DOMAIN_NAME
    echo $! > $SERVER_NAME".pid"
    fi
    done
    fi
    else
    echo ""
    echo ""
    echo "FATAL ERROR: You must specify the server to start. Either 'admin' or
    the server token"
    echo ""
    fi
    -----------Inline 1 ends-----------------
    2) startManagedWebLogic.sh(this is the Managed server start up script at wls8.1)
    ---------Inline 2 starts---------
    #!/bin/sh
    # This script is used to start a managed WebLogic Server for the domain in the
    # current working directory. This script reads in the SERVER_NAME and
    # ADMIN_URL as positional parameters, sets the SERVER_NAME variable, then
    # starts the server.
    # Other variables that startWLS takes are:
    # WLS_USER - cleartext user for server startup
    # WLS_PW - cleartext password for server startup
    # PRODUCTION_MODE - Set to true for production mode servers, false for
    # development mode
    # JAVA_OPTIONS - Java command-line options for running the server. (These
    # will be tagged on to the end of the JAVA_VM and MEM_ARGS)
    # JAVA_VM - The java arg specifying the VM to run. (i.e. -server,
    # -hotspot, etc.)
    # MEM_ARGS - The variable to override the standard memory arguments
    # passed to java
    # For additional information, refer to the WebLogic Server Administration Guide
    # (http://e-docs.bea.com/wls/docs81/ConsoleHelp/startstop.html).
    #Set the New Java Path
    PATH=/opt/bea/jdk141_02/bin:$PATH
    # set up WL_HOME, the root directory of your WebLogic installation
    WL_HOME="/opt/bea/weblogic81"
    # set up common environment
    # Set Production Mode. When this is set to true, the server starts up in
    # production mode. When set to false, the server starts up in development
    # mode. If it is not set, it will default to false.
    PRODUCTION_MODE="true"
    # Set JAVA_VENDOR to java virtual machine you want to run on server side.
    JAVA_VENDOR="Sun"
    # Set JAVA_HOME to java virtual machine you want to run on server side.
    JAVA_HOME="/opt/bea/jdk141_02"
    set USE_CURRENT_JAVA_HOME "$@"
    . "${WL_HOME}/common/bin/commEnv.sh"
    shift 1
    # Set SERVER_NAME to the name of the server you wish to start up.
    ADMIN_URL=http://153.2.255.51:8001
    SERVER_NAME=
    # Set WLS_USER equal to your system username and WLS_PW equal
    # to your system password for no username and password prompt
    # during server startup. Both are required to bypass the startup
    # prompt.
    WLS_USER=
    WLS_PW=
    # Set JAVA_VM to java virtual machine you want to run on server side.
    # JAVA_VM="-server"
    # Set JAVA_OPTIONS to the java flags you want to pass to the vm. If there
    # are more than one, include quotes around them. For instance:
    # JAVA_OPTIONS="-Dweblogic.attribute=value -Djava.attribute=value"
    usage()
    echo "Need to set SERVER_NAME and ADMIN_URL environment variables or specify"
    echo "them in command line:"
    echo 'Usage: ./startManagedWebLogic.sh [SERVER_NAME] [ADMIN_URL]'
    echo "for example:"
    echo './startManagedWebLogic.sh managedserver1 http://localhost:7001'
    exit 1
    # Check for variables SERVER_NAME and ADMIN_URL
    # SERVER_NAME and ADMIN_URL must by specified before starting a managed server,
    # detailed information can be found at http://e-docs.bea.com/wls/docs81/adminguide/startstop.html.
    if [ ${#} = 0 ]; then
    if [ "x${SERVER_NAME}" = "x" -o "x${ADMIN_URL}" = "x" ]; then
    usage
    fi
    elif [ ${#} = 1 ]; then
    SERVER_NAME=${1}
    if [ "x${ADMIN_URL}" = "x" ]; then
    usage
    fi
    elif [ ${#} = 2 ]; then
    SERVER_NAME=${1}
    ADMIN_URL=${2}
    else
    usage
    fi
    # Start WebLogic server
    # Reset number of open file descriptors in the current process
    # This function is defined in commEnv.sh
    resetFd
    CLASSPATH="${WEBLOGIC_CLASSPATH}${CLASSPATHSEP}${POINTBASE_CLASSPATH}${CLASSPATHSEP}${JAVA_HOME}/jre/lib/rt.jar${CLASSPATHSEP}${WL_HOME}/server/lib/webservices.jar${CLASSPATHSEP}${CLASSPATH}"
    export CLASSPATH
    # Start WebLogic server
    echo CLASSPATH="${CLASSPATH}"
    echo
    echo PATH="${PATH}"
    echo
    echo "***************************************************"
    echo "* To start WebLogic Server, use a username and *"
    echo "* password assigned to an admin-level user. For *"
    echo "* server administration, use the WebLogic Server *"
    echo "* console at http://<hostname>:<port>/console *"
    echo "***************************************************"
    "$JAVA_HOME/bin/java" ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} \
    -Dweblogic.Name=${SERVER_NAME} \
    -Dweblogic.management.username=${WLS_USER} \
    -Dweblogic.management.password=${WLS_PW} \
    -Dweblogic.management.server=${ADMIN_URL} \
    -Djava.security.policy="${WL_HOME}/server/lib/weblogic.policy" \
    weblogic.Server
    -------Inline 2 ends----------
    3) startWebLogic.sh(this is the Admin start up script at wls8.1)
    ---------Inline 3 starts-------
    #!/bin/sh
    # This script is used to start WebLogic Server for the domain in the current
    # working directory. This script simply sets the SERVER_NAME variable
    # and calls the startWLS.sh script under ${WL_HOME}/server/bin.
    # To create your own start script for your domain, all you need to set is
    # SERVER_NAME, then starts server.
    # Other variables that startWLS takes are:
    # WLS_USER - cleartext user for server startup
    # WLS_PW - cleartext password for server startup
    # PRODUCTION_MODE - Set to true for production mode servers, false for
    # development mode
    # JAVA_OPTIONS - Java command-line options for running the server. (These
    # will be tagged on to the end of the JAVA_VM and MEM_ARGS)
    # JAVA_VM - The java arg specifying the VM to run. (i.e. -server,
    # -hotspot, etc.)
    # MEM_ARGS - The variable to override the standard memory arguments
    # passed to java
    # For additional information, refer to the WebLogic Server Administration
    # Console Online Help(http://e-docs.bea.com/wls/docs81/ConsoleHelp/startstop.html)
    #Set the New Java Path
    PATH=/opt/bea/jdk141_02/bin:$PATH
    # set up WL_HOME, the root directory of your WebLogic installation
    WL_HOME="/opt/bea/weblogic81"
    # set up common environment
    # Set Production Mode. When this is set to true, the server starts up in
    # production mode. When set to false, the server starts up in development
    # mode. If it is not set, it will default to false.
    PRODUCTION_MODE="true"
    # Set JAVA_VENDOR to java virtual machine you want to run on server side.
    JAVA_VENDOR="Sun"
    # Set JAVA_HOME to java virtual machine you want to run on server side.
    JAVA_HOME="/opt/bea/jdk141_02"
    set USE_CURRENT_JAVA_HOME "$@"
    . "${WL_HOME}/common/bin/commEnv.sh"
    shift 1
    # Set SERVER_NAME to the name of the server you wish to start up.
    SERVER_NAME=Admin
    # Set WLS_USER equal to your system username and WLS_PW equal
    # to your system password for no username and password prompt
    # during server startup. Both are required to bypass the startup
    # prompt.
    WLS_USER=
    WLS_PW=
    # Set JAVA_VM to java virtual machine you want to run on server side.
    # JAVA_VM="-server"
    # Set JAVA_OPTIONS to the java flags you want to pass to the vm. If there
    # are more than one, include quotes around them. For instance:
    # JAVA_OPTIONS="-Dweblogic.attribute=value -Djava.attribute=value"
    # Reset number of open file descriptors in the current process
    # This function is defined in commEnv.sh
    resetFd
    # Start WebLogic server
    CLASSPATH="${WEBLOGIC_CLASSPATH}${CLASSPATHSEP}${POINTBASE_CLASSPATH}${CLASSPATHSEP}${JAVA_HOME}/jre/lib/rt.jar${CLASSPATHSEP}${WL_HOME}/server/lib/webservices.jar${CLASSPATHSEP}${CLASSPATH}"
    export CLASSPATH
    "$JAVA_HOME/bin/java" ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} -Dweblogic.Name=${SERVER_NAME}
    -Dweblogic.management.username=${WLS_USER} -Dweblogic.management.password=${WLS_PW}
    -Dweblogic.ProductionModeEnabled=${PRODUCTION_MODE} -Djava.security.policy="${WL_HOME}/server/lib/weblogic.policy"
    weblogic.Server
    --------Inline 3 ends---------
    I think we are getting closer to a solution !
    thanks rob,
    Rob Woollen <[email protected]> wrote:
    Yes, your $CLASSPATH could be the issue. Can you show me the $CLASSPATH
    used in each version of the server?
    -- Rob
    sangita wrote:
    Thanks Rob, I understood changing the DOCTYPE ...and i will give ita try.
    And iam assuming you might have read my previous response in this chain,Iam using
    WLS6.1 & WLS8.1 BOTH on the same hardware unix server....iam just wonderingif
    there is any CLASSPATH issue that might have been causing this NoClassDefFoundError......?
    just wanted to let you know that iam running WLS6.1 + WLS8.1 on thesame BOX.
    I will try other options that you have suggested ....thanks again !
    Rob Woollen <[email protected]> wrote:
    sangita wrote:
    Rob,
    Right, you're referencing the Taglib 1.2 DTD, but your tld file conforms
    to the Taglib 1.1 DTD. You'll either need to change the DOCTYPE
    definition to the Taglib 1.1 DTD or change the tld file to conformto
    the 1.2 DTD. how do i do either of the 2 options ?To change your taglib to be the 1.1 DTD you just need to change the
    DOCTYPE header to be
    <!DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
    "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
    Otherwise, you'll need to change the tld file to be JSP 1.2 compliant.
    If you post your tld file here, then I can help.
    Iam just guessing here, is it may be due to this DTD/.tld issue thatiam not been
    able to DEPLOY the .ear file(now that wls8.1 checks the validity beforedeloying
    the app)....are the 2 errors that iam getting, in any ways inter-related?
    I'm not sure they're related. It is possible.
    i.e is it possible that due to DTD/.tld ....am i getting this NoClassDefFoundError
    JUST CURIOUS ???
    WELL THANKS FOR YOUR TIME ON THIS ...REALLY APPRECIATE IT !
    No problem.
    -- Rob
    Regards, sangita
    Rob Woollen <[email protected]> wrote:
    sangita wrote:
    1) This is how my .tld looks like:
    <?xml version="1.0" encoding="UTF-8" ?>^M
    <!DOCTYPE taglib^M
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"^M
    "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">^M
    Right, you're referencing the Taglib 1.2 DTD, but your tld file conforms
    to the Taglib 1.1 DTD. You'll either need to change the DOCTYPE
    definition to the Taglib 1.1 DTD or change the tld file to conformto
    the 1.2 DTD. Unfortunately WLS 6.1 didn't validate the tld file
    against
    the DTD, but it should have, and you'll need to correct your application.
    <taglib>^M
    <tlib-version>1.0</tlib-version>^M
    <jsp-version>1.2</jsp-version>^M
    <short-name>html</short-name>^M
    2) the MANIFEST.MF file is located within the ABL.war.
    3) I will try placing the struts-util.jar in the WEB-INF/lib directoryof the
    ABL.war file. And I will let you if it works or not ?Right. My guess is this is a bug in WLS 8.1. I can see no reasonwhy
    the manifest class-path isn't working for you. That's why I askedif
    you could send the EAR file so I could investigate, but I understand
    that's not always possible.
    I suspect the WEB-INF/lib will work, but it's just a workaround.
    I'm
    not sure if you're using 8.1 or 8.1SP1, but if you're not using SP1,
    then you might consider trying that. (java weblogic.version willtell
    you.)
    Otherwise, I think you should open a case with [email protected]
    -- Rob
    thx, sangita
    Rob Woollen <[email protected]> wrote:
    sangita wrote:
    Rob, here is the information that you need: Please read inline:
    ---------------------------iam doing cut&paste
    <attribute>^M
    <name>styleClass</name>^M
    <required>false</required>^M
    </attribute>^M
    (this is the 334 line)<info>applys the style of
    the
    number text
    if it passes the conditional given</info>^M
    </tag>^M
    </taglib>^MWell, it looks like you have a JSP 1.1 tld, but it's being validated
    against the JSP 1.2 tld. I suspect that you have not declareda
    DOCTYPE
    and 6.1 defaulted to the older JSP spec.
    Anyway, check the first line of your tld file. It should look
    something
    like this:
    <!DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
         "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
    I have an ABL.ear file and this is what it looks like:
    ABL.ear
    META-INF/
    META-INF/MANIFEST.MF
    ABL.jar
    ABL.war
    lib/
    lib/struts-util.jar
    META-INF/application.xml
    and in the ABL.war ...there is a META-INF/MANIFEST.MF file ...and
    when
    i open
    this file ...this is what it contains:Just to double-check, the MANIFEST.MF file is located within the
    ABL.war, right?
    Manifest-Version: 1.0
    Created-By: Ant 1.4.1
    Class-Path: lib/struts-util.jar
    there is nothing in the CLASSPATH that contains this application'sspecific .jar/.war
    ...or any classes specific to this application ........BOTH IN
    WLS6.1(and
    now
    in WLS8.1)Hmm, I'm not sure yet what the problem is here. Does it work ifyou
    place the struts-util.jar in the WEB-INF/lib directory of the ABL.war
    file? (I suspect it will.)
    This might be a WLS bug. If you can post your ear file here (oremail
    it to me rwoollen at bea dot com), then I can dig into it more.
    -- Rob
    thx, sangita
    Rob Woollen <[email protected]> wrote:
    It looks like there are 2 errors.
    The first error /WEB-INF/ups-html.tld is most likely the result
    of
    WLS
    8.1 doing more validation on your tld file. If you'd show us
    either
    the
    entire ups-html.tld or just the part around line 334, then wecan
    help.
    As for the NoClassDefFoundError, you'll have to provide some
    more
    details about your ear file and environment. Do you have anythingin
    the $CLASSPATH on either the 6.1 or 8.1 environments?
    -- Rob
    Sangita wrote:
    I think the weblogic8.1 seems to have some NEW bug now. We have
    a
    .ear
    file that
    works just PERFECT in WLS6.1. But now when we try to DEPLOY
    this
    .ear
    file our
    WLS8.1 server(via the new look and feel of WLS8.1' console)....we
    are
    getting
    the Exception like ...."pl read inline below":
    ...All i know is that WLS 8.1 has introduced something like
    "single
    J2EEC -
    EAR compiler, replacing the separate compilers in previous releases"........is
    it may be because of this ????
    If somebody has any idea ....please let me know asap ...and
    just
    above
    the EXCEPTION
    we are also getting something like ...."Deployment descriptor
    "/WEB-INF/ups-html.tld"
    is malformed" ....what is going wrong now ?
    Please note again ....this .ear file just work PERFECT in WLS6.1+sp2.
    Read inline for the Exception:
    <Jul 16, 2003 11:15:14 AM EDT> <Warning> <HTTP> <BEA-101248>
    <[ServletContext(id=4316640,name=ABL,context-path=/ABL)]:
    Deployment descriptor "/WEB-INF/ups-html.tld" is malformed.Check
    against
    the
    DTD: Element type "info" must be declared. (line 334, column
    9).>
    <Jul 16, 2003 11:15:14 AM EDT> <Warning> <HTTP> <BEA-101248><[ServletContext(id=4316640,name=ABL,context-path=/ABL)]:
    Deployment descriptor "/WEB-INF/ups-html.tld" is malformed.Check
    against
    the
    DTD: The content of element type "tag" must match "(name,tag-class,tei-class?,body-content?,display-name?,small-icon?,large-icon?,description?,variable*,attribute*,example?)".
    (line 335, column 8).>
    MessageResourcesFactory.createFactory
    java.lang.NoClassDefFoundError: org/apache/struts/util/MessageResourcesFactory
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:431)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:169)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:41)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:140)
    at org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResourcesFactory.java:161)
    at org.apache.struts.action.ActionServlet.initApplication(ActionServlet.java:1029)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:464)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1070)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
    at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:893)
    at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:842)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:782)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3191)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3136)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3109)
    at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:5559)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:853)
    at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2012)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2053)
    at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2558)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2483)
    at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2308)
    at weblogic.management.deploy.slave.SlaveDeployer.commitUpdate(SlaveDeployer.java:639)
    at weblogic.drs.internal.SlaveCallbackHandler$2.execute(SlaveCallbackHandler.java:35)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
    <Jul 16, 2003 11:15:14 AM EDT> <Error> <HTTP> <BEA-101046> <[ServletContext(id=4316640,name=ABL,context-path=/ABL)]
    service: Cannot load application resources bundle com.ups.dfd.abl.prop.Constants
    java.lang.NullPointerException
    at org.apache.struts.action.ActionServlet.initApplication(ActionServlet.java:1031)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:464)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:1070)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
    at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:893)
    at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:842)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:782)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3191)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3136)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3109)
    at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.

  • Kelly speca is having battery issues with new iPhone 6 plus.

    Hi this is Kelly Speca,
    I have a serious issue with my iPhone 6 plus. While watching movies or rather playing some basic games,the battery drains out very fast. It is a s fast as that I have to charge the phone almost 2 times a day...Also the phone touch screen becomes unbarely hot.So can anyone help me with some suggestions..
    Thanks,
    Kelly Speca.

    It may be worth your while to engage with Apple in a chat online or go to an Apple store. It seems as if you have some hardware issues that need to be sorted out
    But here is a test I would do to check the battery drain:
    1. Do this at night before going to bed
    2. use app switcher and close all apps
    3. Go into settings - cellular and turn cellular data off
    4. Put phone in airplane mode
    5. Charge phone to 100%
    6. Then un hook it from the charger and let it sit overnight and see what the battery percentage is, in the morning
    This will tell you if the battery itself is not performing up to par......

  • WLS 8.1 sp1 with Struts 1.1 JSP with bean tag won't compile

              Hello,
              We are currently porting our application which uses struts 1.1 to WLS 8.1 sp1
              from another app server. Everything seems to deploy correctly and pages which
              use struts tags appear to compile and run fine. However, the pages with struts
              <bean:define> tags are not compiling.
              Example JSP Code:
              <bean:define id="userForm" name="userForm" scope="session" toScope="page" type="UserFormBean"/>
              <% if (userForm.hasUserData()) {hasUser=true;} %>
              WLS Console Output:
              ..jsp_servlet\_jsp\_sailor\__home.java:493: cannot resolve symbol
              symbol : variable userForm
              location: class jsp_servlet._jsp._sailor.__home
              if (userForm.hasUserData()) { //[ /jsp/sailor/home.jsp; Line: 38]
              When I look at the JSP's parsed java code (__home.java:493) I find that nowhere
              in the class is the variable userForm declared.
              Is this a bug in WLS? Does anyone know of a workaround?
              Thanks,
              Scott
              

    Please contact customer support [email protected] and request a patch for
              CR112789. AT_END tags do not work correctly in 81sp1
              --Nagesh
              "Scott Fleming" <[email protected]> wrote in message
              news:3f734c0d$[email protected]..
              >
              > Hello,
              >
              > We are currently porting our application which uses struts 1.1 to WLS 8.1
              sp1
              > from another app server. Everything seems to deploy correctly and pages
              which
              > use struts tags appear to compile and run fine. However, the pages with
              struts
              > <bean:define> tags are not compiling.
              >
              > Example JSP Code:
              >
              > <bean:define id="userForm" name="userForm" scope="session" toScope="page"
              type="UserFormBean"/>
              >
              > <% if (userForm.hasUserData()) {hasUser=true;} %>
              >
              > WLS Console Output:
              >
              > ..jsp_servlet\_jsp\_sailor\__home.java:493: cannot resolve symbol
              > symbol : variable userForm
              > location: class jsp_servlet._jsp._sailor.__home
              > if (userForm.hasUserData()) { //[ /jsp/sailor/home.jsp; Line:
              38]
              >
              > When I look at the JSP's parsed java code (__home.java:493) I find that
              nowhere
              > in the class is the variable userForm declared.
              >
              > Is this a bug in WLS? Does anyone know of a workaround?
              >
              > Thanks,
              > Scott
              

  • Adf-Struts/JSP/BC4J- and setting date fields from jsp

    Hi,
    I'm working with the new ADF Frameworks (JDev 9.0.5.1) and ran into some questions regarding exception handling using BC4J, Struts and JSPs.
    I have a DATE column in database and an entity and VO with a datefield with type oracle.jbo.domain.Date.
    My JSP shows a textfield and the user should enter a valid date. Everything fine, until date is of wrong format or contains illegal characters...
    Problem:
    ADF tries to do a setAttribute on the datefield in VO row which expects a parameter with type oracle.jbo.domain.Date. When the user entered e.g. "NiceWeather" as date, I get an IIlegalArgumentException while converting to the correct Date format. This exception isn't thrown by bc4j as AttrValException and therefore my JSP renders a global error instead of a message directly behind the date field.
    I tried to validate the datefield in my DataForm and in my Action in the validateModelUpdates() method, but with no fitting solution.
    Any ideas how to validate a datefield with adf/struts/jsp/bc4j?
    Thanks for your help!
    Torsten.

    Torsen - In the first instance I'd recommed that you try and handle it declaritively using the Struts Validator Framework . See http://otn.oracle.com/products/jdev/howtos/10g/StrutsValidator/struts_validator_howto.html
    There is a section in there on how to use the validator with ADF databound pages and you can check the format the user enters via generated JavaScript.
    Also check out the matching sample project:
    http://otn.oracle.com/sample_code/products/jdev/10g/ADFandStrutsValidator.zip - this has a data field check on it as well

  • COMMIT problem in TopLink, Struts, JSP and ADF Databinding sample

    In the sample Developing a J2EE Application using TopLink, Struts, JSP and ADF Databinding,
    I followed all the steps to build a department browse page and a edit page.
    But when I get to Step number 23 in "Create a JSP to Edit Departments" I have a problem with the commit.
    Only after I make a change in the form and click the sumbit button, the commit and rollback buttons become active. And After I click the commit button the data gets commited to the database but the page inofmation changes to the very first department record, not the current one.
    How do I make those buttons active with out the extra click on the submit?
    After I click the commit button, how do I keep the current data on the screen?
    Thanks for you help.

    Shay,
    Thanks for the reply.
    For #1, I was able to do the following and get away with not having to press submit first. I just removed the bindings for disable. I hope that does not cause any problems?
    <input type="submit" name="event_Commit" value="Commit" />
    <input type="submit" name="event_Rollback" value="Rollback" />
    For #2, How I add an action on an HTML button? My UIModel.xml for the edit department page currently has two actions on it. Commit and RollBack. Is it linked through the "name" attribute of the input tag?

  • Edit multiple records with BC4J and Struts-JSP

    Hi everybody,
    I'm building BC4J components using entities and views and JSP business components. How can I edit and update multiple records at a time with Struts-Jsp ? Have someone already an example (with JSP and ActionForm code) ?
    thank you

    Hi,
    Nobody have an example ? Is it so difficult ?
    Thanks

  • How to use VPD in Java/Struts JSP portlet with SSO

    DB = 10.1.0 (Standard Edition)
    Portal = 9.0.4.1
    10gAS = 9.4.0.1 (EE)
    I am in the beginning stages of developing some portlets that will be Java/Struts JSP based. We use SSO and have implemented some VPD security in our DB by creating some views that use SYS_CONTEXT('USERENV','CURRENT_USERID').
    These Java portlets connect to the DB using a defined JDBC connection for the OC4J container they are deployed in. The problem I'm having is that the call to SYS_CONTEXT is returning the user of the JDBC connection and not the SSO user. So far I have been unable to find any documentation that will point me in the right direction to get this configured properly.
    Deployment and configuration are as follows. Deploy war file to custom container on app server. In the configuration of the OC4J contain the app used the containers default JDBC connection using the oracle.jdbc.pool.OracleDataSource class. Max and Min open connections are blank.
    In the portal configuration under Navigator - Providers tab we defined a new Registered Provider. In the Connections tab for the provider we Specify the URL Http://hpsrv02.simsol.com:7777/discovery-portlets/providers. Under "Specify how the user's identity will be set by the Portal..." the "The user has the same identity in the Web providers application as in the Single Sign-On identity" is selected. Under "User/Session Information" User is selected and Login Frequency is set to "Once per user session". Then we created a new portal page and created a new portlet with the new provider.
    Just an FYI I do have Discoverer working with VPD and any report portlet, dynamic page portlet and any other type of portlet I created all work correctly with VPD it is just the java/struts one that is not working.
    So does any one have any insight into what configuration steps I have missed?
    Any help is much appreciated,
    Ed Klinger

    Ed,
    Your java code must get the SSO username (it's just a HTTP header variable) :
    ie: code sample...
    Enumeration e = request.getHeaderNames();
    while (e.hasMoreElements()) {
    String name = (String)e.nextElement();
    String value = request.getHeader(name);
    out.println("<br> "+name + " = " + value);
    if (name.toUpperCase().trim().equals("OSSO-USER-DN")){
    dn_user=value;
    out.println("<br>******** USER DN = "+dn_user);
    Then, the SSO username can be used in the VPD policy.
    Note that there is a difference between the sso username and the database username . SSO username is not known by database (CURRENT_USERID will return a database username)
    Discoverer worked OK in your case with the SYS_CONTEXT (.. CURRENT_USERID) because authentication is made by database user, probably.

  • Urgent: Portletizing an struts JSP application

    Hello all,
    I have a struts JSP application. I want to portletize this whole
    application, so that navigation is always within the portal
    framework.
    Using URL Services all I can see is that the first page will be a
    portlet.
    Can anyone suggest the best way to portletize the application?
    This is quite urgent and your help will be greatly appreciated.
    Thanks in advance.
    Faisal.

    Hi all,
    Concerning the message below, does the struts framework affect how normal JSP applications are added to Portal? Or is it as simple as just importing the portal classes and referencing them in the JSP's?
    We would like to use struts for our next web application using JSPs, but need to display them within Portal. I've done this before by just changing the way our hrefs work, but am wondering if using struts will affect any of this.
    Thanks in advance,
    Gillian
    Hello all,
    I have a struts JSP application. I want to portletize this whole
    application, so that navigation is always within the portal
    framework.
    Using URL Services all I can see is that the first page will be a
    portlet.
    Can anyone suggest the best way to portletize the application?
    This is quite urgent and your help will be greatly appreciated.
    Thanks in advance.
    Faisal.

  • Working with large number of search results in struts/jsp application

    I'm developing a struts/jsp web application that returns upwards of
    30000 results obtained from a very complex schema and multiple queries
    to the database.
    We want the user to be able to paginate through the results, sort by
    several fields, add/drop columns and download in several formats. We
    don't expect heavy traffic but we do want it to be scalable.
    Up to now, I have been storing the results in a session ArrayList
    which can eat up a lot of memory. The queries take long to perform so
    I do not want to repeat them with every request.
    I would like to store in a single mysql temp table but I have read
    that when the connection ends, the table is dropped. I understand that
    creating a database Connection as a session variable is not a good
    practice.
    This is not a unique problem - I was hoping someone else has some
    insight into the best way to proceed.
    Thanks

    glwinsor wrote:
    I'm developing a struts/jsp web application that returns upwards of
    30000 results obtained from a very complex schema and multiple queries
    to the database.Who will want to deal with 30,000 rows? Not me. When Google returns a result to me, I get it in chunks of 10 at a time.
    We want the user to be able to paginate through the results, sort by
    several fields, add/drop columns and download in several formats. We
    don't expect heavy traffic but we do want it to be scalable.That's a separate, complex issue.
    Up to now, I have been storing the results in a session ArrayList
    which can eat up a lot of memory. The queries take long to perform so
    I do not want to repeat them with every request.Maybe your schema has issues. Do you have appropriate indexes? Has your DBA checked EXPLAIN PLAN to be sure that the queries are optimal?
    I would like to store in a single mysql temp table but I have read
    that when the connection ends, the table is dropped. I understand that
    creating a database Connection as a session variable is not a good
    practice.Not scalable.
    This is not a unique problem - I was hoping someone else has some
    insight into the best way to proceed.The paging part has been dealt with by Hibernate and other frameworks. Something like the Flex grid UI component might help. Caching and such can help you out. It's not easy, as you already know, and there isn't a canned solution that is one size fits all.
    %

  • What do I download for Struts/JSP/Hibernate?

    My organization has purchased a five-user license for "Workshop" and I would like to use it for Struts/Hibernate/JSP development. However, it's not clear what I need to download and install.
    I tried downloading and installing both of these files:
    workshopstudio102_win32.exe
    workshop102_win32.exe
    In both cases, after the dust settled there was no application called "Workshop" on my Windows XP system.
    There is now something called "WorkSPACE Studio 1.1." ("Space," not "shop.")
    What is "WorkSpace Studio?" I never heard of it before I ran this installer.
    What is the difference between "Workshop Studio" and "Workshop for WebLogic?"
    What do I download to get Eclipse-based Struts/JSP/Hibernate development tools?
    How do I install it?
    Thanks,
    Ethan
    Edited by ethanmichaels at 03/26/2008 4:48 PM

    Hi Ethan,
    The license you have purchased is for WorkshopStudio 10.2
    This allows you to develop Struts/Hibernate/JSP applications against both BEA and non BEA servers.
    Workshop for WebLogic allows users to develop applications against BEA WebLogic Servers and does not require a special license
    More information on Workspace Studio is available at http://edocs.bea.com/wlw/docs102/workspaceFAQ.html
    Hope this helps
    cheers
    Raj

  • How to "Performing an Action on Multiple Selected Records" using Struts-JSP

    Hi all:
    How to do "Performing an Action on Multiple Selected Records" through using Struts/JSP solution that is original MVC/UIX customizing example by Jheadstart.
    I know how to reason by analogy through tutorial guide on
    Model and Control layer of MVC , but for View layer that is torment to me !
    have any idea ?
    thanks a lot .

    Ting Rung,
    In the table in the JSP page you add a checkbox like this:
    <td class="fixed">
    <input type="checkbox" name="multiselect" value="<%=index%>"/>
    </td>
    This will render a checkbox in each row, with index number of that row as value.
    When you submit the page the request contains the multiselect parameter when at least one row has the checkbox checked.
    You can get the value of the multiselect parameter by calling sessionData.getRequestParameterValues("multiselect") in your action. The value is a string array containing the index numbers of the rows that have the checkboc checked.
    Steven Davelaar,
    JHeadstart Team.

  • Where can find  JHeadstart  customizing using Struts & JSP

    We can found the Tutorial-Customizing JHeadstart Applications , using MVC-Framework and UIX,
    but where we can find the tutorial-Customizing on Struts & JSP solution ?

    Dear Steven:
    As you mentioned in early:
    we will make a new version of this tutorial available through the supplement option which will then contains the same customizations as the MVC-UIX one.Whether this new version of Sruts-JSP tutorial is released now ? and whether have any supplement option for Jhs10g have been released ?
    thanks a lot !

  • How to retrieve values from the struts DAO to Struts JSP

    Hi friends,
    I have one question. i want to display values in the struts jsp file from the struts DAO class. can anyone tell how do it.
    Appreciated for your help.
    Thanks
    G1 :)

    Hi Santosh,
    Thanks for your prompt reply.
    Actually, my problem is i want to display complete rows from the DAO to JSP page. I'm displaying all the rows in the DAO from DB.
    But i dont know how to retrieve all these data from DAO. Can i take arraylist.??
    DAO:
    ------------     public Customers getData(Customers customers){ // Reading data from DB
         //ArrayList list = null ;
         try
              Connection conn = getSQLConnection();
              Statement statement = conn.createStatement();
              String qry = "select * from register";
              ResultSet resultSet = null;
              PreparedStatement pstat = conn.prepareStatement(qry);
              // pstat.setString(1, customers.getFname());
              resultSet = pstat.executeQuery();
    //Print the data to the console
    while(resultSet.next()){
              String fnam = resultSet.getString(1);
              String lnam = resultSet.getString(2);
              String gen = resultSet.getString(3);
              String addres = resultSet.getString(4);
              String cit = resultSet.getString(5);
              String zip = resultSet.getString(6);
              String county = resultSet.getString(7);
              String emal = resultSet.getString(8);
              System.out.println("First name:"+fnam);
              System.out.println("Last name:"+lnam);
              System.out.println("Address:"+addres);
              customers.setFname(fnam);
              customers.setLname(lnam);
              customers.setGender(gen);
              customers.setAddress(addres);
              customers.setCity(cit);
              customers.setZipcode(zip);
              customers.setCountry(county);
              customers.setEmail(emal);
                   statement.close();
                   conn.close();
              }catch(Exception e1){
                   e1.printStackTrace();
              return customers;
    Bean:
    I have specified in this line in Bean:
    request.getSession().setAttribute("customers", customers);
    But in JSP. how will i populate all these data. Pls..send some code.
    I'm sorry this is just practicals. i'm not doin any real time project. that;s why i have placed all these code.
    Thanks for your patience for resolving my problems.
    Thanks
    G1

  • I have a MacBook Pro, 15-inch, Mid 2009.  I would love to upgrade to a Solid State Drive.  What is the best possible upgrade I can buy.  I need the specs and even brand name.  Thank you to anyone who can help.

    I have a MacBook Pro, 15-inch, Mid 2009.  I would love to upgrade to a Solid State Drive.  What is the best possible upgrade I can buy.  I need the specs and even brand name.  Thank you to anyone who can help.

    A 15" mid-2009 MBP RAM specifications are: 204-pin PC3-8500 (1066 MHz) DDR3 SO-DIMM.
    As has been pointed out, OWC is an excellent source for Mac compatible RAM.  Crucial is another first rate source for Mac RAM.  RAM from either vendor will work just as well as any purchased from Apple with the bonus of being less expensive and having a lifetime guarantee.
    Ciao.

Maybe you are looking for