RDBMSRealm in WL6.0 sp2

Hi,
I have my Own Database Schema.
( users table(userID,pasword,firstname,lastname).Group table
(groupId,groupName,groupDesc) UserGrouptable (userid,groupid))
How would like implement RDBMSRealm
How to Implement RDBMSRealm in weblogic?
Please let me Know the Steps...
Thanks,
Murali

If you the implementations steps please let me know
Murali
"kirankumar nimashakavi" <[email protected]> wrote:
hi,
to my knowledge the communication between weblogic & rdbmsrealm relies
on
the schema props( the quests you define to retrieve users.so u need to
write
your queries accordingly.
Regards
kiran
"murali" <[email protected]> wrote in message
news:3bcb0d2b$[email protected]..
Hi,
I have my Own Database Schema.
( users table(userID,pasword,firstname,lastname).Group table
(groupId,groupName,groupDesc) UserGrouptable (userid,groupid))
How would like implement RDBMSRealm
How to Implement RDBMSRealm in weblogic?
Please let me Know the Steps...
Thanks,
Murali

Similar Messages

  • WL6.1 SP2, Oracle 8.1.7, OCI, ConnectionPool

    Hi,
    i try to set up a database connection from a WL6.1 SP2 running on
    Solaris 8 to a Oracle 8.1.7 DB running on Linux. I have to use the
    Oracle - Driver, not the Weblogic - Driver. CLASSPATH, PATH,
    LD_LIBRARY_PATH, ORACLE_HOME and TNS_ADMIN are set correct
    (hopefully). When I use the thin - drivers, everything works fine. Now
    I want to switch to OCI and get the following error:
    ORA-07217: sltln: environment variable cannot be evaluated
    I know this error occurs because I did not provide an ORACLE_SID. But
    why do I need to export ORACLE_SID, isn´t the SID provided by the
    ConnectionURL?
    Anyway, if I set the ORACLE_SID explicitely, I get:
    ORA-01034: ORACLE not available
    Do I need to export the ORACLE_SID? If yes, why do i get the 01034?
    The tnsnames.ora is correct, I can connect by using sqlplus to the
    database without any problems ...
    Here is the definition of the connection - pool:
    <JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
    LoginDelaySeconds="1" MaxCapacity="10"
    Name="BMSP JDBC Connection Pool"
    Password="{3DES}LFkEplP7jUuI/nVqSwNNjQ=="
    Properties="user=vgn_data;dll=ocijdbc8;protocol=oci8"
    RefreshMinutes="5" Targets="sgw-domain-server"
    TestConnectionsOnRelease="true"
    TestConnectionsOnReserve="true"
    TestTableName="dual" URL="jdbc:oracle:oci8:@TESTDB"/>
    Any hint is very welcome.
    Thanks in advance,
    Jochen

    Hi,
    ok, I solved the problem, it was a "classic" version - conflict. The
    drivers (classes12.zip) came from an 8.1.6 - Version, but the
    libraries were all 8.1.7. Mea maxima culpa ;)
    Anyway, it was hard to find this error, because the errormessages did
    not point to a version - conflict ... so, if anyone of you out there
    encounters the same strange behaviour: Check your versions ;)
    Greetings,
    Joche

  • Upgrading WL6.1 SP2 to SP3

    hi all
    i would like to know what is the ways of upgrading the WL from SP2 to SP3
    i have installed WL6.1 SP2 on my solaris station and i want to upgrade it to SP3
    is there a way of upgrading rather then installing new WL.
    thanks in advance
    shlomit

    Shlomit <[email protected]> wrote:
    i have installed WL6.1 SP2 on my solaris station and i want to upgrade it to SP3.
    Is there a way of upgrading rather than installing new WL? Shlomit,
    Sure. Go to bea.com, download service pack 3, install as follows:
    $ /opt/bea/jdk131/bin/java -cp wls61sp3_upgrade_generic.zip install -i console
    Preparing CONSOLE Mode Installation...
    ===============================================================================
    Choose Locale...
    ->1- English
    CHOOSE LOCALE BY NUMBER: 1
    ===============================================================================
    WebLogic Server 6.1 Service Pack 2 (created with InstallAnywhere by Zero G)
    ===============================================================================
    Introduction
    This installer will guide you through the installation of Service Pack 3 of
    WebLogic Server 6.1. Use command "next" to proceed to the next screen. If you
    want to change something in a previous screen, use command "previous" or
    "back". You may quit the installer at any time by using the command the
    "quit".
    PRESS <ENTER> TO CONTINUE:
    ===============================================================================
    Choose BEA Home Directory
    1- /opt/bea
    Existing BEA Home: 1
    ===============================================================================
    Installing...
    [==================|==================|==================|==================]
    [------------------|------------------|------------------|------------------]
    ===============================================================================
    Install Complete
    Congratulations! The installation of Service Pack 3
    for WebLogic Server 6.1 is complete.
    The installer has saved copies of files which you may have modified to:
    /opt/bea/wls/servicepacks/sp3/backup
    Press "Enter" to quit the installer:
    $
    Then, to verify...
    MBean reports:
    WebLogic Server 6.1 SP3 (...etc...)
    Let me know if you need more assistance.
    Brian J. Mitchell
    BEA Systems Administrator
    TRX
    Atlanta, GA
    email: [email protected]
    office: 404-327-7238
    mobile: 678-283-6530

  • Start WL6.1 sp2 as service, can't find DB2 dlls

    I have WL6.1 sp2 installed to run as a service. I modified the classpath and java.library.path
    to pick up my DB2 jdbc drivers. The service sends a message stating that the
    DB2CLI.dll can not be found in the following path c:\bea\wlserver6.1\bin;.;c:\winnt...etc.
    The -extrapath setting in the installNTservice.cmd sets the 'path' parameter
    in the registry, but does not seem to do anything. If I copy all my DB2*.dll
    files into the \bin, it works fine. I would rather figure out how to modify that
    path correctly.

    Layne,
    Can you test with the latest beasvc.exe file thatw as shipped with sp2
    for WLS 6.1 ?
    The -extrapath issue has been fixed in the latest beasvc.exe file
    Thanks,
    Raj Alagumalai
    Developer Relations Engineer
    BEA Support
    Layne Carder wrote:
    I have WL6.1 sp2 installed to run as a service. I modified the classpath and java.library.path
    to pick up my DB2 jdbc drivers. The service sends a message stating that the
    DB2CLI.dll can not be found in the following path c:\bea\wlserver6.1\bin;.;c:\winnt...etc.
    The -extrapath setting in the installNTservice.cmd sets the 'path' parameter
    in the registry, but does not seem to do anything. If I copy all my DB2*.dll
    files into the \bin, it works fine. I would rather figure out how to modify that
    path correctly.

  • Failure in Precompilation of JSPs  due to include file in WL6.1 SP2

    Hi
              We are getting the following error when we try to do precompilation of JSPs using
              precompile param to true in weblogic.xml
              We are deploying our application as war files.
              eagerly waiting for your help
              sincerely
              Ramesh
              Issue description and StackTrace:
              Issue:
              Precompilation of JSPs fail while using precompile param to true in weblogic.xml and deploy it as War file. It is througing "failure pre-compiling JSP's
              weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamE
              xception: Could not include index.jsp" exception.
              OS: Windows 2000
              Jdk: Sun Jdk1.3.1
              Weblogic: 6.1 SP2
              ***Stacktrace*************
              <Dec 17, 2002 1:05:51 PM CST> <Error> <HTTP> <[WebAppServletContext(3961036,AdvW
              eb,/AdvWeb)] failure pre-compiling JSP's
              weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamE
              xception: Could not include index.jsp
              at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1025)
              at weblogic.servlet.jsp.JspParser.doit(JspParser.java:80)
              at weblogic.servlet.jsp.JspParser.parse(JspParser.java:183)
              at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
              at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255
              

    Ramesh,
              We experienced this sympton as well. In our JSPs, we converted
              <%@ include file="xyz.jsp"%> (static include, source time) to
              <jsp:include page="licensedQuote.jsp"/> (dynamic include, run time)
              and the problem went away.
              We still use static includes at the very start of the JSPs. It seems the problem only occurs when the static include is inside of a tag whose body does JSP evaluation.
              -Charlie
              "Ramesh Danala" <[email protected]> wrote in message news:[email protected]...
              > Hi
              > We are getting the following error when we try to do precompilation of JSPs using
              > precompile param to true in weblogic.xml
              > We are deploying our application as war files.
              > eagerly waiting for your help
              > sincerely
              > Ramesh
              >
              > Issue description and StackTrace:
              > Issue:
              >
              > Precompilation of JSPs fail while using precompile param to true in weblogic.xml and deploy it as War file. It is througing "failure pre-compiling JSP's
              > weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamE
              > xception: Could not include index.jsp" exception.
              >
              > OS: Windows 2000
              > Jdk: Sun Jdk1.3.1
              > Weblogic: 6.1 SP2
              >
              > ***Stacktrace*************
              >
              > <Dec 17, 2002 1:05:51 PM CST> <Error> <HTTP> <[WebAppServletContext(3961036,AdvW
              > eb,/AdvWeb)] failure pre-compiling JSP's
              > weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamE
              > xception: Could not include index.jsp
              > at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1025)
              > at weblogic.servlet.jsp.JspParser.doit(JspParser.java:80)
              > at weblogic.servlet.jsp.JspParser.parse(JspParser.java:183)
              > at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
              > at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255
              > )
              

  • Installing WL6.0 sp2 on RedHat 7.1 - Error

    How can I install BEA Weblogic Server 6.0 sp2 on RedHat 7.1. I have tried several
    of the fixes that have been mentioned here to no avail.
    I have the Sun JDK 1.3.1 for Linux on the system.
    I have the link to cut set up:
    lrwxrwxrwx 1 root root 8 Jul 12 10:16 /usr/bin/cut -> /bin/cut
    I have run the following and still get the error:
    # export LD_ASSUME_KERNEL=2.2.5
    # sh weblogic600sp2_linux.bin -i console
    Preparing to install...
    weblogic600sp2_linux.bin: line 1: 24167 Segmentation fault (core dumped)
    /tmp/install.dir.23184/Solaris/resource/jre/jre/bin/java -Djava.compiler=NONE
    com.zerog.lax.LAX "/tmp/install.dir.23184/temp.lax" /tmp/env.properties.23184
    "-i" "console"
    Any help would be appreciated.
    --Peter

    Here's a workaround previously posted to the newsgroup:
    "Glen Austin" <[email protected]> wrote in message
    news:[email protected]...
    Found it. Same problem as on Oracle 8.1.7 on RedHat 7.1.
    1. Install the compat* RPMs from the RedHat 7.1 CD1 and CD2. These RPMs
    allow compatibility with RedHat 6.2.
    2. Put the following two statements in your environment prior to running
    the install.
    export LD_ASSUME_KERNEL=2.2.5
    . /usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh
    These two statements will allow you to run your shell in a 6.2compatibility
    mode, for glibc 2.1.3 instead of the new glibc 2.2.2 libs.
    It sounds to me like Sun needs to update the JDKs to support the new glibc
    and the 2.4 kernel. I'm not sure this is even BEA's problem?
    Glen Austin
    OmniSYS, Inc.
    "Glen Austin" <[email protected]> wrote in message
    news:[email protected]...
    I installed jdk 1.3.1 from java.sun.com on a RedHat 7.1 O/S.
    Originally, I was not pointing to the JDK correctly. I fixed the PATH,
    CLASSPATH, JAVA_HOME, JAVA_PATH to point to the jdk1.3.1 dir.
    Then I got an error saying that cut could not be found in /usr/bin, so I
    ln -s /bin/cut cut in the /usr/bin directory.
    I ran the install script a 3rd time and I'm seeing a [<defunct>] for myJava
    VM in a ps -aef entry, which is in the process list along with the WLS
    6.0
    SP1 install bin file. I will try it one more time, but it's not looking
    good.
    Glen Austin
    "Henri Jubin" <[email protected]> wrote in message
    news:[email protected]...
    You need to install the JDK 1.3.1 to have wls 6.0 working.
    The JDK could be found at the developpers zone at javasoft.
    root <[email protected]> wrote:
    i tried installing the wls by using the command :
    sh weblogic600sp1_linux.bin
    i got the message ,
    "Preparing to install..."
    and thats where it stops !
    any ideas ??
    cheers
    Pac
    Michael Girdley
    BEA Systems
    Learning WebLogic? http://learnweblogic.com
    Buy the only book covering J2EE & WebLogic 6:
    http://www.amazon.com/exec/obidos/ASIN/0130911119/learnweblogic/102-1778325-
    4765749
    "Peter Woodhams" <[email protected]> wrote in message
    news:[email protected]...
    >
    How can I install BEA Weblogic Server 6.0 sp2 on RedHat 7.1. I have triedseveral
    of the fixes that have been mentioned here to no avail.
    I have the Sun JDK 1.3.1 for Linux on the system.
    I have the link to cut set up:
    lrwxrwxrwx 1 root root 8 Jul 12 10:16/usr/bin/cut -> /bin/cut
    I have run the following and still get the error:
    # export LD_ASSUME_KERNEL=2.2.5
    # sh weblogic600sp2_linux.bin -i console
    Preparing to install...
    weblogic600sp2_linux.bin: line 1: 24167 Segmentation fault (coredumped)
    >
    /tmp/install.dir.23184/Solaris/resource/jre/jre/bin/java -Djava.compiler=NON
    E
    com.zerog.lax.LAX "/tmp/install.dir.23184/temp.lax"/tmp/env.properties.23184
    "-i" "console"
    Any help would be appreciated.
    --Peter

  • Please help: Installation of WL6.1 SP2 aborts w no error message

    Hello,
    I am trying to install Weblogic Server 6.1 Service Pack 2 on a PC with AMD Duron
    800 MHz, 6 GB HD space, 419 MB RAM running Windows 2000 Professional. I have
    jdk1.3.1_02, j2sdkee v1.3.1, and TomCat v4.0 installed on the same PC. I have
    the c:\jdk1.3.1_02\bin as the first entry both in CLASSPATH and PATH System variables.
    After I double click on the .exe file for weblogic 6.1 SP2 to install, the InstallAnywhere
    progress window pops up and then after it completes, nothing happens.
    Please give me suggestions as to how I can install weblogic 6.1? Can I do a command
    line install in windows 2000 professional?
    Thanks in Advance,
    Jay

    Hi.
    there is no command line installation option for wls on windows, unfortunately.
    Have you searched the archives of this newsgroup for answers? There have been numerous
    postings and solutions regarding similar installation problems.
    Regards,
    Michael
    Jayanta wrote:
    Hello,
    I am trying to install Weblogic Server 6.1 Service Pack 2 on a PC with AMD Duron
    800 MHz, 6 GB HD space, 419 MB RAM running Windows 2000 Professional. I have
    jdk1.3.1_02, j2sdkee v1.3.1, and TomCat v4.0 installed on the same PC. I have
    the c:\jdk1.3.1_02\bin as the first entry both in CLASSPATH and PATH System variables.
    After I double click on the .exe file for weblogic 6.1 SP2 to install, the InstallAnywhere
    progress window pops up and then after it completes, nothing happens.
    Please give me suggestions as to how I can install weblogic 6.1? Can I do a command
    line install in windows 2000 professional?
    Thanks in Advance,
    Jay--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Error to call IOServicesDef.getFileSystem(FS_NAME) in WL6.0 sp2

    I use WL 6.0 sp2 on NT Workstation. I have the following code in the
    startup class:
    IOServicesDef myio = t3Service.io();
    Enumeration myenum = myio.listFileSystems();
    for (; myenum.hasMoreElements(); )
    System.out.println(myenum.nextElement());
    T3FileSystem myfs = myio.getFileSystem(FS_NAME);
    It does print the file system's name. But an internal error occurred at
    callling myio.getFileSystem(FS_NAME). The command console output is like
    this:
    MyFileSystem
    java.lang.InternalError: Needs updating
    at
    weblogic.io.common.internal.T3FileSystemLocalMountPoint.<init>(T3FileSystemLocalMountPoint.java:66)
    at
    weblogic.io.common.internal.IOServicesServerImpl.getLocalFileSystem(IOServicesServerImpl.java:54)
    at
    weblogic.io.common.internal.IOServicesServerImpl.getFileSystem(IOServicesServerImpl.java:25)
    at
    com.experian.ncac.startup.NCACStartup.getIniFilePath(NCACStartup.java:175)
    at com.experian.ncac.utils.IniFile.<clinit>(IniFile.java:37)
    at
    com.experian.ncac.affiliate.ZipAffiliate.<init>(ZipAffiliate.java:90)
    at
    com.experian.ncac.affiliate.ZipAffiliate.getInstance(ZipAffiliate.java:270)
    at com.experian.ncac.startup.NCACStartup.startup(NCACStartup.java:80)
    at
    weblogic.t3.srvr.StartupClassRunner.invokeStartup(StartupClassRunner.java:112)
    at
    weblogic.t3.srvr.StartupClassRunner.invokeClass(StartupClassRunner.java:93)
    at
    weblogic.t3.srvr.StartupClassRunner.run(StartupClassRunner.java:61)
    at java.lang.Thread.run(Thread.java:484)
    Need your help. Thanks in advance. - Yang Cao

    I use WL 6.0 sp2 on NT Workstation. I have the following code in the
    startup class:
    IOServicesDef myio = t3Service.io();
    Enumeration myenum = myio.listFileSystems();
    for (; myenum.hasMoreElements(); )
    System.out.println(myenum.nextElement());
    T3FileSystem myfs = myio.getFileSystem(FS_NAME);
    It does print the file system's name. But an internal error occurred at
    callling myio.getFileSystem(FS_NAME). The command console output is like
    this:
    MyFileSystem
    java.lang.InternalError: Needs updating
    at
    weblogic.io.common.internal.T3FileSystemLocalMountPoint.<init>(T3FileSystemLocalMountPoint.java:66)
    at
    weblogic.io.common.internal.IOServicesServerImpl.getLocalFileSystem(IOServicesServerImpl.java:54)
    at
    weblogic.io.common.internal.IOServicesServerImpl.getFileSystem(IOServicesServerImpl.java:25)
    at
    com.experian.ncac.startup.NCACStartup.getIniFilePath(NCACStartup.java:175)
    at com.experian.ncac.utils.IniFile.<clinit>(IniFile.java:37)
    at
    com.experian.ncac.affiliate.ZipAffiliate.<init>(ZipAffiliate.java:90)
    at
    com.experian.ncac.affiliate.ZipAffiliate.getInstance(ZipAffiliate.java:270)
    at com.experian.ncac.startup.NCACStartup.startup(NCACStartup.java:80)
    at
    weblogic.t3.srvr.StartupClassRunner.invokeStartup(StartupClassRunner.java:112)
    at
    weblogic.t3.srvr.StartupClassRunner.invokeClass(StartupClassRunner.java:93)
    at
    weblogic.t3.srvr.StartupClassRunner.run(StartupClassRunner.java:61)
    at java.lang.Thread.run(Thread.java:484)
    Need your help. Thanks in advance. - Yang Cao

  • [WL6.1 SP2] RMI and Serialization problems

    Greetings. I've got a strange question.
    I have a rather large object graph that's produced by an EJB. This
    object graph is then serialized and sent across the network to a waiting
    client, or is passed to the web tier.
    The object graph is of variable size, but huge in any case - some
    examples are 10 megs in size when serialized to disk.
    The big problem is that it takes a lot of ram to serialize this object
    to push it over the network. Now, this wouldn't be a big problem (because
    objects are not requested very often), but for the fact that weblogic
    doesn't seem to release the memory for these objects after the serialization
    takes place.
    Is there some way to make sure that the object stream is closed after
    the object is sent, so the memory can be GC'd for other processes? We're
    currently giving the server about 600 Megs of ram max for the heap (the
    server is a ES40 dual), and the server can die in a matter of hours.
    Would SP3 help things at all?
    Is there some way to force memory cleanup?
    Thanks!
    -Jim Nemesh

    "Jim Nemesh" <[email protected]> writes:
    The big problem is that it takes a lot of ram to serialize this object
    to push it over the network. Now, this wouldn't be a big problem (because
    objects are not requested very often), but for the fact that weblogic
    doesn't seem to release the memory for these objects after the serialization
    takes place.This sounds like a bug, although if you leave any reference to the
    object it will not get GC'd. Are nulling out all your references after
    you are done with the object?
    Is there some way to make sure that the object stream is closed after
    the object is sent, so the memory can be GC'd for other processes? We're
    currently giving the server about 600 Megs of ram max for the heap (the
    server is a ES40 dual), and the server can die in a matter of hours.If the stream is not being closed then its a bug.
    Would SP3 help things at all?
    Is there some way to force memory cleanup?Garbage collection should do this.
    andy

  • Exploded directory: wl6.0 sp2: how to define in config.xml?

    hi,
              how do i define a web server with exploded directory format. i dont want to
              use webcomponent because it creates a war and the jsp changes are not
              reflected. war is fine for production, but during development i dont want to
              restart the server to see the jsp changes.
              is there a way to create a web server component with an exploded directory
              format in config.xml. i want to map the current jsp directory to the web
              server.
              in short: i want to see the jsp changes immediately without restarting the
              server everytime.
              thanks.
              

              "Muthu Ram" <[email protected]> wrote:
              >hi,
              >
              >how do i define a web server with exploded directory format. i dont want
              >to
              >use webcomponent because it creates a war and the jsp changes are not
              >reflected. war is fine for production, but during development i dont
              >want to
              >restart the server to see the jsp changes.
              >
              >is there a way to create a web server component with an exploded directory
              >format in config.xml. i want to map the current jsp directory to the
              >web
              >server.
              >
              >in short: i want to see the jsp changes immediately without restarting
              >the
              >server everytime.
              >
              >thanks.
              >
              >
              apparently if you create an empty file called REDEPLOY (no exstension) in your
              meta-inf directory then either touch it if on unix or change it and save it (i
              add then delete a spce in it) in win32. apparently wls looks at this file and
              if its been changed it reloads the rest off the webapp and hey presto dynamic
              deployment. the alternative is to goto the console goto your app uncheck the deployed
              box click apply then check the deployed box and click apply (this should redeploy
              it). Note jsps don't seem to redeploy well if you have keepgenerate set to true
              in the weblogic.xml.
              

  • JSP- Java compilation duplicates methods (WL6.1 SP2)

              I am trying to run some examples (unpacked application). All JSP pages fail
              compilation, upon request, due to duplicated code section in the generated
              Java file i.e (exprformtestfile.jsp -> _exprformtestfile.java)
              private static void _releaseTags(javax.servlet.jsp.tagext.Tag t) {
              while (t != null) {
              javax.servlet.jsp.tagext.Tag tmp = t;
              t = t.getParent();
              try { tmp.release(); } catch (Exception ignore) {}
              private static void _releaseTags(javax.servlet.jsp.tagext.Tag t) {
              while (t != null) {
              javax.servlet.jsp.tagext.Tag tmp = t;
              t = t.getParent();
              try { tmp.release(); } catch (Exception ignore) {}
              Naturally, the compilation fails due to duplicating method names.
              Any ideas?
              TIA
              

              I am trying to run some examples (unpacked application). All JSP pages fail
              compilation, upon request, due to duplicated code section in the generated
              Java file i.e (exprformtestfile.jsp -> _exprformtestfile.java)
              private static void _releaseTags(javax.servlet.jsp.tagext.Tag t) {
              while (t != null) {
              javax.servlet.jsp.tagext.Tag tmp = t;
              t = t.getParent();
              try { tmp.release(); } catch (Exception ignore) {}
              private static void _releaseTags(javax.servlet.jsp.tagext.Tag t) {
              while (t != null) {
              javax.servlet.jsp.tagext.Tag tmp = t;
              t = t.getParent();
              try { tmp.release(); } catch (Exception ignore) {}
              Naturally, the compilation fails due to duplicating method names.
              Any ideas?
              TIA
              

  • WL6.1 sp2: It seems there isnt' HttpSession.getServletContext() method

              Hi all,
              In the release notes (features & changes section) we can read that the getServletContext()
              method has been added to HttpSession but we get an NoSuchMethodError exception when
              we invoke it.
              Whats going wrong?
              TIA.
              Pablo.
              

              Thanks all,
              So, there is no way to get the ServletContext from the Session?
              We need to do it without the servlet (we use the wep app context to store global
              common data for all the users).
              Deepak Vohra <[email protected]> wrote:
              >ServletContext ctx=getServletConfig().getServletContext();
              >
              >Pablo wrote:
              >
              >> Hi all,
              >>
              >> In the release notes (features & changes section) we can read that the
              >getServletContext()
              >> method has been added to HttpSession but we get an NoSuchMethodError exception
              >when
              >> we invoke it.
              >>
              >> Whats going wrong?
              >>
              >> TIA.
              >> Pablo.
              >
              

  • Tomcat4.02 & WL6.1 SP2

    I use tomcat&apache as my jsp&serverlet container and weblogic as my ejb container.
    There're always nullpoint error when I call ejb from serverlet. What's wrong with
    me???
    Any clue will be appreciated!@!

    Can you show us the NullPointerException?
    FWIW, you'd get much better performance from running WLS for both the servlet and EJB
    containers.
    -- Rob
    Aaron wrote:
    I use tomcat&apache as my jsp&serverlet container and weblogic as my ejb container.
    There're always nullpoint error when I call ejb from serverlet. What's wrong with
    me???
    Any clue will be appreciated!@!--
    AVAILABLE NOW!: Building J2EE Applications & BEA WebLogic Server
    by Michael Girdley, Rob Woollen, and Sandra Emerson
    http://learnWebLogic.com
    [att1.html]

  • Error while migrating from wl 5.1 to wl6.1

    I have an application running on WL5.1. When I convert this application to run on
    WL6.1 sp2, I get the
    following error when I try to access an entity bean from an servlet.
    <Apr 30, 2002 4:47:44 PM PDT> <Error> <HTTP> <[WebAppServletContext(6184715,myapp,/myapp)]
    Error loading servlet: 'process'
    java.lang.NoClassDefFoundError: com/engr/app/approval/ApprovalHome
    a class upon which this class depends wasn't found
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:600)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:368)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    The code works fine on WL 5.1
    Does anyone know why this happens. The console shows that EJBs are deployed
    Thanks
    Jai

    Just deploy your web component and ejb's in a single ear.
    Jai Vas <[email protected]> wrote:
    I have an application running on WL5.1. When I convert this application to run on
    WL6.1 sp2, I get the
    following error when I try to access an entity bean from an servlet.
    <Apr 30, 2002 4:47:44 PM PDT> <Error> <HTTP> <[WebAppServletContext(6184715,myapp,/myapp)]
    Error loading servlet: 'process'
    java.lang.NoClassDefFoundError: com/engr/app/approval/ApprovalHome
    a class upon which this class depends wasn't found
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:600)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:368)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    The code works fine on WL 5.1
    Does anyone know why this happens. The console shows that EJBs are deployed
    Thanks
    Jai--
    Dimitri

  • WL6.1 SP3 and JNDINameReplicated

    What happened to the promised JNDINameReplicated feature for WebLogic 6.1 SP3?
              When I manually enter it into config.xml I get this error on starting up
              the cluster Admin Server:
              Exception raised:
              weblogic.management.configuration.ConfigurationException: Unknown attribute JNDI
              NameReplicated for FailedMessagesQueue, type JMSQueue
              I see the attribute WL7.0 dtd for config.xml si I'm pretty sure I'm using it
              right, but here is the snippet of relevant config.xml
              <JMSServer Name="JIRJMSCluster01" Store="JIRJDBCStore01" Targets="jircluster
              01">
              <JMSQueue JNDIName="/jir/queues/hub/failedmessages" Name="FailedM
              essagesQueue" JNDINameReplicated="false"/>
              <JMSQueue ErrorDestination="FailedMessagesQueue"
              JNDIName="/jir/queues/brokers/default"
              Name="DefaultBrokerQueue" RedeliveryLimit="2" JNDINameReplicated="fa
              lse"/>
              <JMSQueue ErrorDestination="FailedMessagesQueue"
              JNDIName="/jir/queues/hub/billingnotify"
              Name="BillingNotification" RedeliveryLimit="4" JNDINameReplicated="f
              alse"/>
              <JMSTopic JNDIName="/jir/queues/hub/notify" Name="NotificationTop
              ic"/>
              </JMSServer>
              I am on a Sun Solaris 8. I used the patch to upgrade WL6.1 SP2 to WL6.1 SP3
              Jirawat
              

              There is a CSR patch available on 6.1 sp2 for this if you dont already have it.
              It works great.
              Mike
              "Stephen Felts" <[email protected]> wrote:
              >This feature is available in 7.0 but was not back ported to 6.1.
              >
              >"Jirawat Uttayaya" <[email protected]> wrote in message
              >news:[email protected]...
              >> What happened to the promised JNDINameReplicated feature for WebLogic
              >6.1
              >SP3?
              >> When I manually enter it into config.xml I get this error on starting
              >up
              >> the cluster Admin Server:
              >>
              >> Exception raised:
              >> weblogic.management.configuration.ConfigurationException: Unknown
              >attribute JNDI
              >> NameReplicated for FailedMessagesQueue, type JMSQueue
              >>
              >> I see the attribute WL7.0 dtd for config.xml si I'm pretty sure I'm using
              >it
              >> right, but here is the snippet of relevant config.xml
              >>
              >> <JMSServer Name="JIRJMSCluster01" Store="JIRJDBCStore01"
              >Targets="jircluster
              >> 01">
              >> <JMSQueue JNDIName="/jir/queues/hub/failedmessages" Name="FailedM
              >> essagesQueue" JNDINameReplicated="false"/>
              >> <JMSQueue ErrorDestination="FailedMessagesQueue"
              >> JNDIName="/jir/queues/brokers/default"
              >> Name="DefaultBrokerQueue" RedeliveryLimit="2"
              >JNDINameReplicated="fa
              >> lse"/>
              >> <JMSQueue ErrorDestination="FailedMessagesQueue"
              >> JNDIName="/jir/queues/hub/billingnotify"
              >> Name="BillingNotification" RedeliveryLimit="4"
              >JNDINameReplicated="f
              >> alse"/>
              >> <JMSTopic JNDIName="/jir/queues/hub/notify" Name="NotificationTop
              >> ic"/>
              >> </JMSServer>
              >>
              >>
              >> I am on a Sun Solaris 8. I used the patch to upgrade WL6.1 SP2 to WL6.1
              >SP3
              >>
              >> Jirawat
              >
              >
              

Maybe you are looking for