Weird classpath issue in EAR.Some classes can access jars that others cant!

Hi,
I'm experiencing a very frustrating problem that's proving to be a bit of a show stopper for me. I would really appreciate some help...
I have an EAR deployed successfully on Sun Appserver 8 which passes the tests from the sun EAR verifier tool. The ear contains a jar file that I built which has a stateless session bean, home, remote interfaces and rmi stubs, deployment descriptors, as well as some utility classes. The EAR also contains some third-party jars such as Hibernate, Log4-j, apache-commons etc etc. The jar I built has in it's manifest file, the classpath information to reference the other jars in the ear.
The problem I am having is that one of the classes in a third-party jar (hibernate3.jar) cannot see a class in another of the third party jars (log4j-1.2.8.jar) and as a result is throwing a NoClassDefFoundError for org/apache/log4j/Layout while trying to initialise - the two jars are at the root of the EAR.
Furthermore, my utility classes can access and use Log4j classes without any problem and logging command from those classes is output successfully to the server console. However, my session bean, which is packaged in the same jar as the utility classes, fails to log anything even though it uses exactly the same logger and log configuration as the utility classses.
I have tried adding classpath information to the manifest of the EAR so that the third-party jars can pick it up but this makes no difference. Also, according to the EAR verifier tool, you are not allowed to put any classpath information in the EAR manifest.
I have also tried deploying this in weblogic but am experiencing the same problem.
If anyone can offer any advice or solutions I would greatly appreciate it.
:)

what´s type error have you?
perhaps external libraries (located in classpath) invoke opsCommon.jar and config-3.0.jar classes. then, classnotfound is normal.
and... why separate external libraries (opsCommon.jar and config-3.0.jar inside ear, and other in classpath)?

Similar Messages

  • I installed indesign CS5 on new macbook pro and keeps freezing with spinning wheel once the app opens. Is there an issue with OS Mav or font issue or a plist I can pull. All other Adobe products work.

    I installed indesign CS5 on new macbook pro and keeps freezing with spinning wheel once the app opens. Is there an issue with OS Mav or font issue or a plist I can pull. All other Adobe products work.

    Migration should never be done with any Adobe program.
    If you have done Migration, you have to UNINSTALL first (if even possible) and then download Adobe Creative Cloud Cleaner Tool and run that also. When this is done, restart your computer and install the programs from an original Adobe Installer.
    Other question is, if your OS is supporting that version. You can try it, it is not officially supported, but it might work.
    But CC will work, upgrade to CC2014 (without additional cost), use that as it is better anyway.

  • I have a National Lottery online account but for a while now i cannot access it from my MacBook. I can access it via other pc's and laptops and via my iphone. I have been on to the NL helpline and they say the issue is with cookies and my MacBook. Help!

    I have a National Lottery online account but for a while now i cannot access it from my MacBook. I can access it via other pc's and laptops and via my iphone. I have been on to the NL helpline and they say the issue is with cookies and my MacBook. Help!

    Hi Josh,
    Thanks for taking the time to contact us here a Novation for technical support. Lets continue to correspond via email so we can get your issue resolved.
    Thanks.
    Mike Towns

  • I have a number of audiobooks purchased through iTunes on my iPod touch.  Is there a way to move or download them to the Cloud so that I can access them on other devices?

    I have a number of audiobooks purchased through iTunes on my iPod touch.  Is there a way to move or download them to the Cloud so that I can access them on other devices?

    Thanks - I didn't realize that.  I'm also embarrassed to admit that I don't know how to transfer the audio files from my iPod to the iTunes library on my computer.  When I select a book from the list on the iPod, the only option I see with the right-facing arrow symbol is "Show in iTunes Store ".  I back the iPod up to this computer so I guess those files must be on it somewhere, but all I can recognize in the iTunes folder under " Music"  are the music files found in the "iTunes Music" folder. (There are also a ton of files named "iTunes Temp (some #).) The Books list on the computer shows some but not all of the audiobooks -  I purchased the rest on a different computer that is now unfortunately dead. I'm guessing now that those didn't transfer over when the new computer was populated from the old one, so the iPod may be the only place where those audiobooks now reside.  I hope that made some sense- any additional advice would be appreciated.

  • Hi all...  My user ID is Keychain Access won't allow me to access my information in my Keychain.  I can't seem to fix it.  What do I need to do?  I don't really know how to explain it but I can access all the other keychains just not my user account

    Hi all...
    My user ID is Keychain Access won't allow me to access my information in my Keychain.  I can't seem to fix it.  What do I need to do?  I don't really know how to explain it but I can access all the other keychains just not my user account keychain.  Can this be fixed?
    Thanks!

    That is correct...  I know the Admin password but the password for my keychain is not correct and I can't seem to remember what the last password would have been.  Any ideas how to reset it?  Maybe delete and recreate?  I know I may lose some info.  Thanks!

  • When I open a photo with Preview, it opens all the photos I have viewed previously.  How can I prevent that, other than manually clearing the list after each time?

    When I open a photo with Preview, it opens all the photos I have viewed previously.  How can I prevent that, other than manually clearing the list after each time?

    Close the pictures before you quit Preview. Cmd-opt-q will close all windows and quit. cmd-opt-w will close all windows and not quit.
    Or, Disable automatically opening files that were left open in General System Preferences

  • I cant access app store with my wifi though i can access from any other network

    i cant access app store with my wifi though i can access from any other network

    What happens when you try? Error message?
    Have you synced apps from that computer/iTunes library? You can only sync apps from your one syncing computer.

  • CLASSPATH issues on DOS/NT and loading of jar files

    Hello all,
    I have the following problem on running WebLogic 5.1 on
    NT. The CLASSPATH is getting truncated after a certain number of
    characters. I have a lot of third party jar files that I use in my
    application. How do I overcome this problem ? I tried increasing my DOS
    environment space by changing the default values in config.sys.
    What are other alternatives ?
    One idea that I have is to use URLClassLoader to load the jar files. I
    am running a RMI based application and I need to load these jar files
    before I load the RMI code. Where would I run this URLClassLoader code
    ? Is there some system startup class that can load jar files ?
    Thanks,
    Aswin.

    Thanks for the reply. I much appreciate it. What about the other idea that I
    had outlined-loading these jar files using a ClassLoader. Is that viable ?
    Aswin.
    Cameron Purdy wrote:
    In Win2k: Control Panel, System, Advanced, Environment Variables
    ComSpec=%SystemRoot%\system32\cmd.exe /e:16384
    You still will not be able to have a command line exceeding a certain size
    (around 1k or so). That is a hardcoded limit somewhere inside the NT kernel
    ("kernel" being a poor term for the piece so named in NT ;-).
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    http://www.tangosol.com
    Tangosol: How Weblogic applications are customized
    "Aswin Dinakar" <[email protected]> wrote in message
    news:[email protected]..
    Hello all,
    I have the following problem on running WebLogic 5.1 on
    NT. The CLASSPATH is getting truncated after a certain number of
    characters. I have a lot of third party jar files that I use in my
    application. How do I overcome this problem ? I tried increasing my DOS
    environment space by changing the default values in config.sys.
    What are other alternatives ?
    One idea that I have is to use URLClassLoader to load the jar files. I
    am running a RMI based application and I need to load these jar files
    before I load the RMI code. Where would I run this URLClassLoader code
    ? Is there some system startup class that can load jar files ?
    Thanks,
    Aswin.

  • Loading XML using a custom class and accessing it from other classes?

    I began with a class for a movie clip rollover function
    FigureRollOver. It works marvellously. Three things happen:
    1) it loads XML from a file "mod1_fig1.xml" and uses another
    class, XMLMember, to retool the scoping of the XML so that I can
    get at it
    2) an onload call inside of XMLMember calls the myOnLoad
    function and transfers the XML into an array.
    3) so long as the array is finished building, rolling over a
    movie clip attaches a new movie clip with the rollover text in it.
    But I don't want all those functions in one because I need it
    to be more dynamic, starting with being able to load any old xml
    file instead of just "mod1_fig1.xml", plus it seems like
    overbuilding to have all of that in one class, so I've separated
    out the loading of the XML and building of the array into its own
    class, FigureXMLLoader. FigureRollOver is then left to just attach
    the rollover with text in it, extracted from the array built by the
    new class.
    Problem is, though the array builds inside FigureXMLLoader, I
    can't figure out how to make it available outside the class. I know
    that I'm constructing things in the wrong order, and that the array
    needs to be somehow built inside the class function to be
    available, but I can't figure out how to do that. A cruddy
    work-around is to put a function call at the end of the building of
    the array, which calls yet ANOTHER function on the main timeline of
    my .swf to put the array I've just built into a new variable. This
    works, but it's messy. It seems like I should be able to have one
    line of script in the .swf that generates an array on the main
    timeline (or just a public array) which I can then access from my
    FigureRollOver class:
    var myRollOvers:Array = new FigureXMLLoader("mod1_fig1.xml");
    Here is FigureXMLLoader (see comments in the code for more
    details) which obviously does not return an array as it is, because
    of all the working around I've had to do. Note the "testing"
    variable, which can be traced from the main timeline of the .swf,
    but I will get "not what I want" because of course the array hasn't
    been built yet, and never will be, inside of the declaration as it
    is. How do I get it in there so I can return an array?
    Thanks!

    Suggest you ask this question in the Actionscript forum as
    this forum is
    more tuned to database integration questions.
    You can create arrays outside a class and pass them into it
    by reference and
    visa versa build arrays inside a class and pass out via
    reference.
    The preferred approach is to place the array in a class and
    not expose it.
    Then add methods to use the array or should we say to use the
    class.
    Lon Hosford
    www.lonhosford.com
    Flash, Actionscript and Flash Media Server examples:
    http://flashexamples.hosfordusa.com
    May many happy bits flow your way!
    "maija_g" <[email protected]> wrote in
    message
    news:ed4i43$9v0$[email protected]..
    > Update: I've now put this on the main timeline of the
    .swf:
    >
    > myRollOversLoaded = false;
    > var myRollOvers:Array;
    > var roll_content = new FigureXMLLoader("mod1_fig1.xml");
    >
    > And inside the "myOnLoad" function in FigureXMLLoader,
    just after the
    > while
    > loop I've put this:
    >
    > _root.myRollOversLoaded = true;
    > _root.myRollOvers = figure_arr;
    >
    > The movie clip rollover won't act until
    myRollOversLoaded is true. It
    > works,
    > but it still seems klugey. Any suggestions for a more
    elegant solution
    > would be
    > appreciated.
    >

  • Administrator can access Safari & Firefox; other users can't

    Hi:
    I have latest Safari & Firefox downloaded as well as Leopard. I can access the web browsers on my administrator account' but 3 other users in my family can't access them on their accounts. Any suggestions?

    Applications need to be in the Applications folder which allows for system wide usage.
    If these browsers are only in your Home folder, than only you can use them.
    So make sure after you have downloaded them, that they are dragged out of the Disk Image into the Applications folder, and then eject the Disk Images they came in.
    Message was edited by: roam

  • HT201209 I have a .45 cent balance on my account.  How can I delete that other than buying something??

    I have .45cent balance on my iTunes account.  How can I delete that since I cannot purchase anything for that price.

    If you want to change countries and you can't spend it then you can try contacting iTunes Support and ask them if they can remove it so that you can do so : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Can/May I append some classes to rt.jar

    I want to append one package to rt.jar provided by sun. I am able to do it with jdk1.4 and jdk1.5.
    But I cant do it in case of jdk1.6 or its updates. How can i do it? Is it legal to do it?
    Many Thanks,

    Technically, a jar file is just a zip file with an manifest document. You can easily add more classes to it. The question is, WHY do you want to do this. Personally, I would suggest that you should not do this.
    You can always just put your files in a different jar file. rt.jar has a very specific purpose, and a very specific meaning. It appears as though you wish to add non-standard packages to the rt jar file. If you then encourage others to rely upon these packages being in the rt jar file, you now have a non-standard set of libraries, which means your code will only work on a jvm that has your version of the rt.jar.
    Furthermore, when java 7 is released, you will have to add your packages to the rt.jar file that is distributed with java 7, whereas if you just created your own jar file, you would not need to do this.
    - Adam

  • Unsigned applet: some machines can copy to clipboard, others can't

    My understanding of Java applet security says that an unsigned applet cannot copy-to or paste-from the system clipboard. However, on at least two systems at my office (but not mine) the user can highlight text in one of our applets, hit Ctrl-C and copy the text to the clipboard. All machines are current vintage, running MS XP and Java 1.4.2. I've checked the java.policy files and they are identical--there are no non-standard permissions in them.
    Now my boss is complaining that I told him this couldn't be done without going the signed applet route. Does anybody know what's going on?

    First of all if you're developing applets for your company (or another one) make sure they
    have the jre set up correctly.
    Any respectfull IT person within a company has IE security set up so why not the jre as
    wel?
    Using the default jre installation in your company? Are you allso using the default IE
    install or did you not agree with some settings there?
    Anyway here is how I think you should set up the jre for your companys people:
    I think a good configuration would be a keystore and policy on the company's
    Intranet to be used by everyone and if so needed a keystore and policy in the user home
    folder to be edited only by admins. Add the 2 keystores to the java.security and the
    admins can configure any special privileges to special applets (like IE security zones
    but more detailed).
    Add the following line to all codebases: "grant { " section in the java.policy/
    permission java.lang.RuntimePermission "usePolicy";
    Now the user does not have the option of "do you trust" for signed applets. I think this
    is a verry good idea because anyone with a jdk can sign their jar.     
    About someone beeing able to copy and the other one not, I guess you've given the
    user too much freedom in changing their settings (the msjvm settings in IE). The
    applet is probably not even run with the SUN jre because you are using the Applet tag.
    Now I am not even sure if hitting crl + c does anyting with an unsigned applet but I would guess that accessing the clipboard from code should not be possible.

  • Security issues on OS4.1 You can access contacts without knowing the PIN

    I foundd this on a web site today, and was shocked that Apple could miss out such a thing......
    You boys at Apple need to get this fixed ASAP
    http://www.markc.me.uk/MarkC/Blog/Entries/2010/10/25Security_Issue_-_iPhone_4_LockScreen.html

    Any way to get this escalated to the security folks?
    Tipped off by this post:
    http://www.macstories.net/news/iphone-security-hole-lets-you-make-calls-when-the -phone-is-locked/
    My own comments on this flaw:
    http://johndball.blaize.net/2010/10/26/bypass-apple-iphone-lock-screen/
    Message was edited by: john_ball

  • Our email keeps saying server not found - it is up and running and we can access it from other computers just not the imacs, our email keeps saying server not found - it is up and running and we can access it from other computers just not the imacs

    Our email keeps shutting down and saying server not found. It works fine on all the PCs but not our iMacs. Any help would be appreciated. We just downloaded the new LION  - would this be an issue?

    I feel like I'm getting closer. First, the connector on our cable didn't fit snugly. Tug it slightly and it lost contact. I put a new cable on the server and now it seems more robust. Server Admin opened faster, anyway.
    In the Console, I'm seeing some Kerberos errors:
    8/31/09 10:00:17 AM com.apple.launchd[1] (org.samba.nmbd) Throttling respawn: Will start in 5 seconds
    8/31/09 10:00:17 AM com.apple.KerberosAutoConfig[892] Couldn't find KerberosClient config record
    8/31/09 10:00:43 AM com.apple.DirectoryServices[26] Enter machine password:
    8/31/09 10:00:43 AM com.apple.launchd[1] (org.samba.nmbd) Throttling respawn: Will start in 10 seconds
    8/31/09 10:00:43 AM com.apple.DirectoryServices[26] Enter machine password:
    8/31/09 10:00:43 AM com.apple.DirectoryServices[26] Enter machine password:
    8/31/09 10:00:44 AM com.apple.DirectoryServices[26] [2009/08/31 10:00:44, 0, pid=902] /SourceCache/samba/samba-187.8/samba/source/libads/kerberos.c:adskinitpassword(228)
    8/31/09 10:00:44 AM com.apple.DirectoryServices[26] kerberoskinitpassword [email protected] failed: Preauthentication failed
    8/31/09 10:00:45 AM com.apple.DirectoryServices[26] [2009/08/31 10:00:45, 0, pid=902] /SourceCache/samba/samba-187.8/samba/source/libads/kerberos.c:adskinitpassword(228)
    8/31/09 10:00:45 AM com.apple.DirectoryServices[26] kerberoskinitpassword [email protected] failed: Preauthentication failed
    8/31/09 10:00:46 AM com.apple.KerberosAutoConfig[909] Kerberos configuration is up to date
    This server is bound to Active Directory (using Directory Utility -- don't know if I need to do it elsewhere?) and I'm not sure what was trying to authenticate at that time.
    My error messages for "server not found" have gone away for my iChat client, but now it just pops up the authentication window over and over when I try to log in. I'm wondering if there's something missing in the server binding?
    Mike

Maybe you are looking for

  • Where can I buy a new logic board for my iphone 4s

    I phoned apple today and exxplained that I tried to fix my battery connector myself and messed it up I asked if I could buy another motherboard for my iphone 4s to be told apple dont sell parts and to try on ebay I have already tried on ebay and boug

  • Crucial M4/USB 3.0 mounting problem

    Hi! I've got an issue on my 15" MacBook Pro Retina. I have a 128GB Crucial M4 2.5" SSD in a USB 3.0 enclosure, but the only way I can get it to mount is if I turn the laptop off, plug in the drive and turn the laptop on again. My wife has a mid-2010

  • Daisy Chain FW800 & FW400 Mixed

    My current setup is: iMac FW400 port --> LaCie d2 DVD burner iMac FW800 port -->LaCie 1Tb D2 Quadra --> LaCie 1Tb D2 Quadra None of the drives are bus powered. If I upgrade the iMac I will lose the FW400 port.  If I keep the external drives my setup

  • Questions in partial key matches of Btree

    Hi, For Btree access method, partial key matches and range searches can be done through cursor with DB_SET_RANGE flag specified. It will return "the smallest record in the database greater than or equal to the supplied key". Seems it only support ran

  • Why I cannot tab to enter instead of using enter key?

    For example. When I want to log in a website that I have an account. After typing username and password, I can not tab  by trackpad to enter. I have to use enter key to login. Why? Have how to fix that?