New  bee weblogic classloader

I read some articles on weblogic classloading. This is what is my understanding any jar files needed by both ejb and war shoud be placed in the root of an ear file ,suppose i need log4j for both ejb and war i place it inside ear and add amanifest entry in ejb , and war can also see log4j becaue the war parent class-loader is ejb classloader.Now suppose I need struts jar for my war , Should I just place in web-inf/lib and no entry in war manifest ? is this right?
I am facing lot of troubles with my war classloader,any utility class I call in war I get get class not found exception, what stops war classloader not to see classes inside jar inside web-inf/lib ?

Isn't the documentation link I responded with pretty clear? APP-INF is a directory directly in the root of the EAR and you can create it yourself.
Class Loading for Shared Classes+
The classes and libraries stored under APP-INF/classes and APP-INF/lib are available to all modules in the Enterprise Application. The application classloader always attempts to resolve class requests by first looking in APP-INF/classes, then APP-INF/lib.
If you want to isolate jars and classes to a particular Web module, then you can put them in the Web module's WEB-INF/lib or use the manifest mechanism that you referenced. I find the manifest mechanism to be brittle in comparison, but it is standard and portable. Putting jars that I want in APP-INF/lib for universal access and WEB-INF/lib for web module isolated access is easier in my opinion because the location of the jar file denotes your intention.
http://edocs.bea.com/wls/docs103/programming/classloading.html#wp1069420

Similar Messages

  • Support for the creation of a new BEA WebLogic Application Server v10.3

    To All,
    After downloading and installing the Enterprise Pack for Eclipse (Ganymede: http://download.oracle.com/otn_software/oepe/ganymede) I attempted to create a new BEA WebLogic 10.3 server - since that is the version of the application server that I have installed on my machine.
    I went to create the new server and selected "BEA WebLogic Server v10.0", since there was no option to select a WebLogic 10.3 server. I selected as the WebLogic Home directory "D:\BEA_HOME\wlserver_10.3" and received the error message: "The path "D:\BEA_HOME\wlserver_10.3" contains the wrong version of WebLogic Server. Expected version 10.0. Found version 10.3."
    Is there some way that I can create a new WLS v10.3 in Eclipse Ganymede? Do I need to download an additional plugin?
    Thanks in advance for your help on this,
    John Livingstone

    Look for WLS 10.3 under Oracle rather than BEA group.
    Konstantin

  • New to Weblogic Security

    I have an ORACLE database which contains a table of 100s of users and passwords with their group information. I developed a Webapplication (in Tomcat) in which one of the servlets works as authenticator for the user logging in by fetching row from the datbase and validating him.(This is a simple authentication)
    Now I have switched to Weblogic platform 8.1 SP2 and am completely new to Weblogic Security. I want to use Weblogic security features for my application and the users & groups should be retrieved from the database for authentication.
    How can I do this ? Any clear-cut steps ?
    Where can I find them in documentation ?
    Please help me...Urgent !!

    I found it in
    Weblogic Administration Console Home -> Summary of  Security Realms->myrealm->Providers.
    Click on new Authentication provider button-> you will see 'TrustServiceIdentityAsserter' as one of the types.

  • New to Weblogic 7 - How do I verify digital certificates?

    Hello, I am new to Weblogic and my department has 2 servers running Weblogic 7 and they have asked me to verify whether the servers have both root and intermediate digital certificates installed. How do I check for this?

    Backup the library with this User Tip. (Also any other personal data)
    Deauthorize the old computer before it goes away.
    Restore the backup to your new computer using the same tool used to back it up.
    Keep your backup up-to-date in future.
    tt2

  • Regarding New for weblogic portal

    hi every one.
    My name is krishnarjun yada. I am the new for weblogic portal applicatons and i have a training on next weak. But i don't know much more about on portal.I mean which topics are there and how to work. I have knowledge on WebspherePortalServer. Please guide me anyone it's very need for me.
    Please reply to <email address removed by moderator> ASAP.

    *** moderator note ***
    I've removed your email address from the post because a) you are likely to get lots of spam in your email by publishing it in public and b) responses to issues should be posted on the forum, as this is not a personal support service where people should be contacting you directly.
    Also please note that this is a forum of volunteers doing their own jobs, and leading their own lives, so to request help "ASAP" or "Urgently" etc. is not appropriate and considered very rude by many people.  Such urgent issues suggest a live system that has got problems and a company is losing money or people's lives are at risk, in which case the issue should be raise via My Oracle Support (MOS) which is the paid-for support channel for Oracle.
    The description of your issue, wanting to know more about a product before your training, is not an urgent issue. (Surely the point of the training is to learn it?)
    *** end of moderator note ***

  • Really new to Weblogic - trying to install WAR

    Hi,
    I am really new to Weblogic, and I am trying to get a web application
    that I've been given to work with Weblogic 8.1 on Windows 2000 Server.
    I just installed Weblogic 8.1 today, then I've configured a Weblogic
    configuration. I then copied the WAR file to the
    C:\bea\user_projects\domains\mydomain\applications directory, and then
    executed c:\bea\user_projects\domains\mydomain\startWebLogic.cmd.
    This causes a command window to open, with the output of the Weblogic
    startup, and I'm getting some "Warning" messages about the Weblogic.xml
    being malformed:
    <Feb 7, 2005 8:03:36 PM EST> <Warning> <HTTP> <BEA-101248>
    <[Application: 'C:\be
    a\user_projects\domains\mydomain\applications', Module: 'admingui']:
    Deployment
    descriptor "weblogic.xml" is malformed. Check against the DTD:
    org.xml.sax.SAXPa
    rseException: Element type "prefer-web-inf-classes" must be declared.
    (line 54,
    column 37).>
    <Feb 7, 2005 8:03:36 PM EST> <Warning> <HTTP> <BEA-101248>
    <[Application: 'C:\be
    a\user_projects\domains\mydomain\applications', Module: 'admingui']:
    Deployment
    descriptor "weblogic.xml" is malformed. Check against the DTD:
    org.xml.sax.SAXPa
    rseException: The content of element type "container-descriptor" must
    match "(ch
    eck-auth-on-forward?,redirect-content-type?,redirect-content?,redirect-with-abso
    lute-url?)". (line 55, column 29).>
    <Feb 7, 2005 8:03:41 PM EST> <Warning> <HTTP> <BEA-101248>
    <[Application: 'C:\be
    a\user_projects\domains\mydomain\applications', Module: 'admingui']:
    Deployment
    descriptor "weblogic.xml" is malformed. Check against the DTD:
    org.xml.sax.SAXPa
    rseException: Element type "prefer-web-inf-classes" must be declared.
    (line 54,
    column 37).>
    <Feb 7, 2005 8:03:41 PM EST> <Warning> <HTTP> <BEA-101248>
    <[Application: 'C:\be
    a\user_projects\domains\mydomain\applications', Module: 'admingui']:
    Deployment
    descriptor "weblogic.xml" is malformed. Check against the DTD:
    org.xml.sax.SAXPa
    rseException: The content of element type "container-descriptor" must
    match "(ch
    eck-auth-on-forward?,redirect-content-type?,redirect-content?,redirect-with-abso
    lute-url?)". (line 55, column 29).>
    <Feb 7, 2005 8:03:45 PM EST> <Notice> <WebLogicServer> <BEA-000355>
    <Thread "Lis
    tenThread.Default" listening on port 7080, ip address 192.168.0.232>
    <Feb 7, 2005 8:03:45 PM EST> <Notice> <WebLogicServer> <BEA-000331>
    <Started Web
    Logic Admin Server "myserver" for domain "mydomain" running in
    Development Mode>
    <Feb 7, 2005 8:03:45 PM EST> <Notice> <WebLogicServer> <BEA-000360>
    <Server star
    ted in RUNNING mode>
    <Feb 7, 2005 8:04:00 PM EST> <Warning> <HTTP Session> <BEA-100061> <Web
    applicat
    ion: ServletContext(id=30856733,name=admingui,context-path=/admingui)
    tried to p
    lace a non-serializable attribute: scmApplication into the session:
    CIP2ZDiP7WYa
    bsU2sr3emRk9TcS821XyWrIM1WfbDeCp1XD9o3z3!-690527957!1107824638218. This
    attribut
    e will be lost upon redeployment. This message is logged only once per
    session.>
    The funny thing is that the application still seem to (somewhat) work,
    i.e., if I point my browser to http://<myhost>:7080/admingui, I get the
    page displayed, etc.
    However, Weblogic is not exploding the WAR.
    Is this (the WAR not being exploded) happening because of the warning
    messages?
    If that's the case, then how do I fix the problem in the Weblogic.xml
    file, since it hasn't been extracted?
    Also, can anyone tell me what the problem with that XML file might be?
    Thanks,
    Jim

    Hi,
    For the record, I was just able to get this working by doing the
    following:
    1) Create a directory called "DefaultWebApp" under the "applications"
    directory
    2) Copy the WAR file to the DefaltWebApp directory
    3) Unzip the WAR file in-place
    4) After I unzipped the WAR file, I was able to fix the weblogic.xml
    file in the WEB-INF directory
    5) Once I did all that, WebLogic seems to be happy (no warnings).
    Jim
    ohaya wrote:
    >
    Hi,
    I am really new to Weblogic, and I am trying to get a web application
    that I've been given to work with Weblogic 8.1 on Windows 2000 Server.
    I just installed Weblogic 8.1 today, then I've configured a Weblogic
    configuration. I then copied the WAR file to the
    C:\bea\user_projects\domains\mydomain\applications directory, and then
    executed c:\bea\user_projects\domains\mydomain\startWebLogic.cmd.
    This causes a command window to open, with the output of the Weblogic
    startup, and I'm getting some "Warning" messages about the Weblogic.xml
    being malformed:
    <Feb 7, 2005 8:03:36 PM EST> <Warning> <HTTP> <BEA-101248>
    <[Application: 'C:\be
    a\user_projects\domains\mydomain\applications', Module: 'admingui']:
    Deployment
    descriptor "weblogic.xml" is malformed. Check against the DTD:
    org.xml.sax.SAXPa
    rseException: Element type "prefer-web-inf-classes" must be declared.
    (line 54,
    column 37).>
    <Feb 7, 2005 8:03:36 PM EST> <Warning> <HTTP> <BEA-101248>
    <[Application: 'C:\be
    a\user_projects\domains\mydomain\applications', Module: 'admingui']:
    Deployment
    descriptor "weblogic.xml" is malformed. Check against the DTD:
    org.xml.sax.SAXPa
    rseException: The content of element type "container-descriptor" must
    match "(ch
    eck-auth-on-forward?,redirect-content-type?,redirect-content?,redirect-with-abso
    lute-url?)". (line 55, column 29).>
    <Feb 7, 2005 8:03:41 PM EST> <Warning> <HTTP> <BEA-101248>
    <[Application: 'C:\be
    a\user_projects\domains\mydomain\applications', Module: 'admingui']:
    Deployment
    descriptor "weblogic.xml" is malformed. Check against the DTD:
    org.xml.sax.SAXPa
    rseException: Element type "prefer-web-inf-classes" must be declared.
    (line 54,
    column 37).>
    <Feb 7, 2005 8:03:41 PM EST> <Warning> <HTTP> <BEA-101248>
    <[Application: 'C:\be
    a\user_projects\domains\mydomain\applications', Module: 'admingui']:
    Deployment
    descriptor "weblogic.xml" is malformed. Check against the DTD:
    org.xml.sax.SAXPa
    rseException: The content of element type "container-descriptor" must
    match "(ch
    eck-auth-on-forward?,redirect-content-type?,redirect-content?,redirect-with-abso
    lute-url?)". (line 55, column 29).>
    <Feb 7, 2005 8:03:45 PM EST> <Notice> <WebLogicServer> <BEA-000355>
    <Thread "Lis
    tenThread.Default" listening on port 7080, ip address 192.168.0.232>
    <Feb 7, 2005 8:03:45 PM EST> <Notice> <WebLogicServer> <BEA-000331>
    <Started Web
    Logic Admin Server "myserver" for domain "mydomain" running in
    Development Mode>
    <Feb 7, 2005 8:03:45 PM EST> <Notice> <WebLogicServer> <BEA-000360>
    <Server star
    ted in RUNNING mode>
    <Feb 7, 2005 8:04:00 PM EST> <Warning> <HTTP Session> <BEA-100061> <Web
    applicat
    ion: ServletContext(id=30856733,name=admingui,context-path=/admingui)
    tried to p
    lace a non-serializable attribute: scmApplication into the session:
    CIP2ZDiP7WYa
    bsU2sr3emRk9TcS821XyWrIM1WfbDeCp1XD9o3z3!-690527957!1107824638218. This
    attribut
    e will be lost upon redeployment. This message is logged only once per
    session.>
    The funny thing is that the application still seem to (somewhat) work,
    i.e., if I point my browser to http://<myhost>:7080/admingui, I get the
    page displayed, etc.
    However, Weblogic is not exploding the WAR.
    Is this (the WAR not being exploded) happening because of the warning
    messages?
    If that's the case, then how do I fix the problem in the Weblogic.xml
    file, since it hasn't been extracted?
    Also, can anyone tell me what the problem with that XML file might be?
    Thanks,
    Jim

  • Hi i am jad anan a new bee i want TO REVIEW my app id but with no creidit

    hi i am jad anan a new bee i want TO REVIEW my app id but with no creidit card help plz

    Follow the instruction here to create a NEW account w/o a credit card. Follow them carefully.
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card

  • New to weblogic - cannot get examples working

    I am new to weblogic; working under RH Linux Fedora 2.
    I tried to follow the examples.html instructions to create a new sideline copy of the source. The instructions do not match the layout of the samples/ directories. The instructions for config.xml say to leave 3 <Application>s in place and remove the rest; there are only 2 of the 3 in the original config.xml. When I try to start the examples using the startExamplesServer.sh (edited per the directions), the startup hangs at the <Notice>...starting weblogic admin server .... message.
    Can anyone recommend how to get a foothold in this process? I have spent almost a week trying to get anything working, including trying to create a new server within the examples domain (so I can try things without disturbing the original source). I created a server in the console (on port 7701 rather than 7001, to allow others to run the 7001 server), and that failed with an error. (I found two posts regarding the error - but no replies to either).
    Thanks for any direction in helping me make some progress!

    I am guessing that your config.xml is not quite right. You can either send it to me or post it here and I will review it.
    Another suggestion is to install WebLogic Server in a different bea home...and play with the examples right out of the box so that you don't have to fiddle around the scripts at this point.
    The samples paths you see in examples.html are for windows. Maybe that's why they don't match up with your Linux directories verbatum.

  • New to Weblogic

    Hi All,
    Am new to weblogic. I need basic document for weblogic. Can some one post it to [email protected]

    Hi,
    All the documentaion for Weblogic Server 12c can be found here:
    http://docs.oracle.com/cd/E24329_01/index.htm
    Regards Peter

  • New Mobile Weblogs

    Dear friends,
    This thread is dedicated to publishing new weblogs. <b>Do not append any comments onto this thread. Only if you have written a weblog related to the topic discussed in this forum, you can append a small description with the link here.</b>
    You can also use the "Watch this Topic" option at the start of the thread to get emails whenever a new weblog link is posted here (Click "Watch Options", check "Email Updates", and "Update Watches". This ensures that whenever a new append is made to this thread, SDN will send an email to all watchers) This is a very effective and easy way to track new interesting weblogs.
    GENTLE REMINDER: Do NOT append anything else on this thread, as any new append will trigger a flood of emails to all the people on the watch list.
    Thanks and Regards,
    Santo.

    Introduction to Mobile Sales Application for Laptops - /people/santosh.v/blog/2006/05/23/introduction-to-mobile-sales-application-for-laptops

  • New bee in JMS

    Dear ALL,
    I am new bee in this area.
    Pls. how and from where can I download api and tuts.
    thanks
    Dukkar Lee

    The JMS specification, tutorial, and a list of vendors can be found at
    http://java.sun.com/products/jms
    Enjoy!

  • New Bee Starter Guidance needed

    Hi All,
    I am a new bee in Business Intelligence.I want to study micro-strategy or OBIEE .Please let me know what are the pre-requites .From where should i start with .I know SQL.What should i do next.Which forum will be helpful. Where can i find study material.
    I would really appreciate if anyone can provide me info as much as they can.
    You can even email me at [email protected] / [email protected]
    Every bit of info will be helpful for me.
    Thanks in Advance.
    -Mona

    Hi,
    Below are the topics to learn Oracle Business Intelligence Enterprise.
    I. Administrator.
    OBIEE and BI Server Architecture.
    Data warehouse fundamentals.
    Repository basics, structure, features, and functions - Using BI Admin tool.
    Building a Physical Layer (Data sources, connection pool, tables, Keys, Aliases and opaque views).
    Best Practices to follow while building a Physical Repository.
    Building a Business Model (Logical Table, Column, Sources).
    Building a time dimension hierarchy and other dimensions.
    Defining logical models and building measures.
    Learning the Business Model properties.
    Building the presentation layer in Repository.
    Create Presentation layer objects and setting up appropriate properties.
    Testing and validating a repository.
    Deploying the repository to the BI Server.
    II. Answers.
    Introduction to presentation services - Answers, Dashboards and Delivers.
    Creating reports, filters, formulas, prompts in Answers.
    Exploring Charts and graphs in Answers.
    Creating multiple views of the same report.
    Creating pivot tables and other views.
    Dashboard basics and exploring dashboard editor.
    III. Security - Administrator
    Introduction to Security in BI Admin tool and presentation server Administration.
    Creating Users and Groups. Permissions for users and groups.
    Setting up different connection pools, Query limits and timing restrictions.
    Variables – Repository, Session and Presentation Variables
    Advanced concepts in presentation server.
    Using variables during design and developments.
    Reference:
    See the below thread and Oracle Site are more helpful for you.
    Re: OIEE Training.
    http://www.oracle.com/technetwork/middleware/bi-enterprise-edition/tutorials/index.html
    And We have the document library for 11g, try the below.
    http://download.oracle.com/docs/cd/E14571_01/bi.htm
    Thanks,
    Balaa...

  • WebLogic classloader issue

    Hi,
    I'm trying to resolve a "cannot be cast" error on Oracle JDeveloper 11.1.2.2.0. My application is using eclipselink JPA provider, which works fine on a fresh start WLS. However, when I redeployed my application without restarting the WLS, I got a very strange runtime error:
    gov.noaa.gcld.model.jpa.User cannot be cast to gov.noaa.gcld.model.jpa.User
    The code is:
    List<User> users = dao.findByUserLdapId(userId);
    The compile has no error. I checked the classloader of the User object returned by the entityManager. This is what I've found:
    1) When I did a fresh start of the WLS,
    The classloader of User object in my application: weblogic.utils.classloaders.ChangeAwareClassLoader@1bf353c
    The classloader of User object returned from the entity manager: weblogic.utils.classloaders.ChangeAwareClassLoader@1bf353c
    The application is working fine at this time.
    2) When I redeployed my application without restarting the WLS,
    The classloader of User object in my application: weblogic.utils.classloaders.ChangeAwareClassLoader@14e4ae9
    The classloader of User object returned from the entity manager: weblogic.utils.classloaders.ChangeAwareClassLoader@1bf353c
    Now I got the "gov.noaa.gcld.model.jpa.User cannot be cast to gov.noaa.gcld.model.jpa.User" error.
    It looks the WLS is using a new classloader when I redeploy my application but still using the old classoloader for eclipselink entity manager, even after I undeployed my application completely, and there's no other applications using the same persistence unit.
    Does anybody know how to force the WLS to reload the eclipselink entity manager using the same classloader as the application? Our server admin will not restart the WLS when we redeploy our applications.
    Thanks very much for your help!
    Edited by: huaichen on Aug 8, 2012 12:00 PM

    I assume you are using a non (application) managed persistence unit. For application managed persistence units you are responsible for closing the EntityManagerFactory when undeploying.
    If any EntityManagerFactory are not closed, then the old persistence unit remains deployed, and will have the wrong class loader.
    See,
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=326552

  • Weblogic Classloader issues

    I place my WAR file for deployment in the domain/applications directory for automatic deployment when the Weblogic server starts. This usually works fine. But, for unkown reasons, I am now getting a ClassNotFoundException after I added some new JARS to the appliation's WEB-INF/lib directory. The Class that it complains about is in one of the new JARs, the package name is correct, and the JAR is getting deployed. When I deploy the application manually, I the problem goes away. Deploying manually means that I make the applicatoin directory myself under domain/applications and the unwar it into that directory.
    I'm using Weblogic 8.1 SP3 on a Windows Server 2000.

    Hi
    The problem with t3config and disableWeblogicClassPath (described below) also
    seems to exist in WLS 5.1 - sp2.
    Regards
    Steffen Bering Jensen
    Systems Architect * Nordija ApS * Denmark
    [email protected] wrote:
    I hope that it is fixed in post 4.5.0 versions.
    [email protected] wrote:
    Steffen
    I ran into the same problem with 4.5.0 while using t3config
    I would like to know the version you are working with.
    Support, please tell me it can be fixed.
    Madhu
    "Steffen B. Jensen" wrote:
    Hi
    Due to some classloader issues we start up WebLogic with the following
    system property:
    -Dweblogic.system.disableWeblogicClassPath=true
    and no weblogic.class.path property.
    However, when trying to set this up for an NT service using wlconfig,
    wlconfig seems to insist on a weblogic.class.path system property. When
    that property exists (although empty) WebLogic will not boot.
    It seems that you can't run weblogic as an NT service with
    weblogic.system.disableWeblogicClassPath=true?
    Regards
    Steffen Bering Jensen
    Systems Architect * Nordija ApS * Denmark

  • New bee question - no memoryleak dector in jrockit 1.4.2_10 mem console?

    Hi,
    Our company runs jrockit java version "1.4.2_10"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
    BEA JRockit(R) (build R26.3.0-32_CR283061-63465-1.4.2_10-20060620-1811-win-ia32, )
    "memorylead detector" tab was not available in Management Console, started from [jrockit home]/bin/console commandline.
    Any idea?
    Thanks in advance.

    Here is complete capture of exception information:
    =========================================
    from running Weblogic 8.1 sp6 instance:
    [JRockit] New Management Server connection from 127.0.0.1
    [JRockit] Timeout while handshaking with Management Client.
    [JRockit] Management Server connection: Handshaking failed!
    [JRockit] Management Server connection closed.
    =========================================
    from memleak client GUI error details:
    java.io.EOFException
         at java.io.DataInputStream.readInt(DataInputStream.java:448)
         at com.jrockit.memleak.comm.CommunicationChannel$ReceiveThread.readResponse(CommunicationChannel.java:61)
         at com.jrockit.memleak.comm.CommunicationChannel$ReceiveThread.run(CommunicationChannel.java:55)
    ==========================================
    from the command promot that started memleak.exe
    java.net.SocketException: socket write error: Connection aborted by peer
    at jrockit.net.SocketNativeIO.writeBytesPinned(I[BII)V(Native Method)
            at jrockit.net.SocketNativeIO.socketWrite(Ljava.io.FileDescriptor;[BII)V
    (Unknown Source)
            at java.net.SocketOutputStream.socketWrite0(Ljava.io.FileDescriptor;[BII
    )V(SocketOutputStream.java:???)
            at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
            at java.net.SocketOutputStream.write(SocketOutputStream.java:115)
            at java.io.DataOutputStream.writeInt(I)V(Unknown Source)
            at com.jrockit.memleak.comm.CommunicationChannel$SendThread.sendRequest(
    CommunicationChannel.java:163)
            at com.jrockit.memleak.comm.CommunicationChannel$SendThread.run(Communic
    ationChannel.java:129)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for