Unable to access classes in third party jar files packaged with my ejb.jar

I have packaged some third party jar files in my xxx_ejb.jar file.  The third party jar file contains classes that are accessed by some custom classes which are in turn accessed by my bean classes.  I get the following error when my custom classes attempt to use any of the classes in one of the third party jar files:
java.lang.NoClassDefFoundError: com/Ostermiller/util/CSVParser
Shouldn't I be able to access classes in jar files that are packaged with my xxx_ejb.jar file?  I see the xxx_ejb.jar file as a resource of the application classloader that contains it but I don't see the third party jar files.

As per the Java EE specification, additional JAR files should be packaged on the EAR level. Only WAR files' WEB-INF/lib folder is scanned for JAR files to be added to the classloader.

Similar Messages

  • External Jar files packaged with the Application Jar.

    Hello Friends,
    I have a Java class 'Config.java' with a package a.b.c
    This class requires a third party Jar 'new.jar'. I place this Jar file in the parent directory of the package.
    So I can compile the Config.java with classpath as '.'
    This works fine.
    Now while packaging them, I create a mymanifest.mf file with following contents
    Main-Class: a.b.c.Config
    Class-Path: . new.jar
    and issue the command
    jar -cvmf mymanifest.mf myjar.jar *
    This creates a jar file with appropriate manifest information and heirarchy (since the included third party jar is in the same directory)
    When I run the Jar by issuing the command
    java -jar myjar.jar
    It gives me an error, NoClassDefFound for a class inside the included third party jar.
    I have gone through some of the other queries posted in this forum and through Sun's articles for creating Jar files.
    I have taken care of all the minute things involved in writing the manifest file, etc.
    I dont understand why such a simple application gives me a problem.
    Am I still missing something ?
    Regards,
    Ravi

    I had the same problem. But I solve it.. The thing that you have to do is:
    create another directory in your project application directory let's say your project directory is Project. such as Project / lib.
    then put external jars in lib directory.
    The last thing you have to do :
    change your manifest file like that
    Main-Class : mainclass
    Class-Path : lib/externaljar1.jar lib/externaljar2.jar
    I don't know you ever deal with manifest files before but there can be very stupid errors while you create .
    i.e there should be a space between ":" and mainclass name you shoul use "/" not "\" etc.
    I think it will work for you.

  • Unable to access UNC path on 2012 R2 file server with ABE enabled

    Brief Description:
    We have granted access to people via a domain local group on a folder on a file server that is three levels deep from the share, i.e. \\servercluster\share\folder1\folder2\folder3, where folder3 is where the group is granted Read & Execute
    access.  The share has Access-Based Enumeration (ABE) enabled and the Everyone group has Full Control share permissions.  We also use DFS, so the path for that is \\domain\dfsrootname\folderfororganization\share\folder1\folder2\folder3.  People
    in the aforementioned group only have access to folder3, its subfolders, and files.  They do not have any access to folder2 or any of the other folders higher in the tree at all.  Also, consider that folder3 contains a subfolder folder4, which is
    simply inheriting permissions. 
    What we have found is that clients running Windows 7 SP1 have strange access issues when attempting to access the folder via either the DFS or cluster name UNC paths.
    Detailed Testing Results Accessing Folder3 Directly:
    NOTE:  "UNC path" in the following test results means either the DFS or the cluster name share path.  The results are the same regardless which path is used.
    1 - Enter UNC path without trailing backslash in Windows Explorer's address bar:
    Windows Explorer seems to do nothing for about 30 seconds and then displays the following error:
    "Windows cannot access <UNC path>
    Check the spelling of the name.  Otherwise, there might be a problem with your network.  To try to identify and resolve network problems, click Diagnose."
    2 - Enter UNC path with trailing backslash in Windows Explorer's address bar:
    The same error encountered in #1 is displayed immediately.
    3 - Enter UNC path with or without trailing backslash but contained in double quotes in Windows Explorer's address bar:
    Internet Explorer opens and displays the error:
    "Internet Explorer cannot display the webpage"
    4 - Enter UNC path without trailing backslash in Run dialog box:
    An error message immediately appears:
    "<UNC path>
    The specified path does not exist.
    Check the path and then try again."
    5 - Enter UNC path with trailing backslash in Run dialog box:
    Same as #4.
    6 - Enter UNC path without trailing backslash but contained in double quotes in Run dialog box:
    Same as #4.
    7 - Enter UNC path with trailing backslash and contained in double quotes in Run dialog box:
    Windows Explorer opens the correct UNC path location and displays the folder contents.  This is the expected behavior for all of these attempts.
    8 - Create Shortcut to UNC path by performing #7 and then dragging the folder icon in Windows Explorer's address bar to either to the desktop or the Favorites section, and then attempt to access the folder via
    the shortcut.
    Same as #7.
    9 - Attempt to create a shortcut to the UNC path using the New Shortcut wizard:
    Unable to successfully create the shortcut, regardless if you add a backslash at the end or enclose the path in double qutoes.  When you press Next after entering the UNC path, you receive the following error:
    "The file <UNC path> cannot be found."
    10 - Disable ABE on the share and repeat all tests:
    All tests with ABE disabled on the share have the same result as #7.  There is no issue whatsoever accessing the desired folder when ABE is disabled.
    Other Notable Behaviors:
    If the aforementioned folder (folder3) contains one or more subfolders (e.g. folder4), you are able to access those subfolders via UNC path directly and then go up one level to folder3 without issue, even when ABE is enabled.  You just cannot access
    folder3 directly via UNC path unless you attempt to access it via the method used in #7 above or a successfully created shortcut.
    Adding a user account directly to the folder3 ACL rather than using group membership makes no difference.
    If access is granted to folder4 instead of folder3 (the fourth folder deep rather than the third), accessing folder4 directly via UNC path is not an issue regardless of ABE status or attempted access method.
    Windows 8 and 8.1 clients have no trouble directly accessing the folder's UNC path via any method.  The unusual, undesirable behavior seen in Windows 7 is non-existent on Windows 8.x clients.
    Systems Involved:
    Client:  Windows 7 Enterprise SP1 x86
    Server:  Windows Server 2012 R2 Standard in cluster
    Other Details About the Systems:
    Both the client and the file server cluster are in the domain AD DS domain.
    The client and the file server cluster are in different subnets.
    There is no firewall or other packet inspection or compression service/device in between the client and server (not even Windows Firewall).
    Question:
    Is there a way to fix this behavior with Windows 7 clients and ABE enabled on the share so that it works correctly without forcing the clients or server to use SMBv1 or disabling ABE on the shares?

    7-Zip 9.20
    Adobe Flash Player 13 ActiveX
    Cisco WebEx Meetings
    Java 7 Update 51
    It should be noted that I can't repeat the behavior on my test machine again today after some changes were made in our environment.
    Today, I found that someone had modified permissions on the folder to give the group my test account was a member of rights to traverse the folder hierarchy from the root of the share.  Additionally, in testing something with FIPS mode, I ended up reverting
    my virtual machine to an older snapshot.
    After removing the extra permissions that weren't present when I was doing my testing and reverting to the older snapshot, I  am not having issues accessing the real equivalent of folder3 directly in Windows Explorer via DFS UNC path or creating a shortcut
    with the New Shortcut wizard.
    Things have been fundamentally changed and I cannot repeat the behavior on this particular folder.  I will see if I can recreate the same situation on another folder.

  • Toplink-ejb-jar.xml config with weblogic-ejb-jar.xml

    Hello,
    To use toplink with EJB's deployed in Weblogic.
    I changed weblogic-ejb-jar.xml :
    (Because, it does not allow me to change <type-identifier> and <type-version> elements)
    <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
    <type-version>7.0</type-version>
    <type-storage>META-INF/toplink-ejb-jar.xml</type-storage>
    Here, is the toplink-ejb-jar.xml:
    (Because, I am asked to give PUBLIC value for Weblogic 8.1.0....)
    <!DOCTYPE toplink-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB RDBMS Persistence//EN" "file://D:/Toplink10g/toplink/config/dtds/toplink-wls-ejb-jar_10_0_3.dtd">
    <toplink-ejb-jar>
    <session>
    <name>myUniqueSession</name>
    <project-xml>META-INF/project.xml</project-xml>
    <login>
    <connection-pool>demoPool</connection-pool>
    </login>
    </session>
    </toplink-ejb-jar>
    1. I have also given full path to the "toplink-wls-ejb-jar_10_0_3.dtd", but I still get parsing error:
    "myBeans.jar": [EJB:011019]While reading META-INF/toplink-ejb-jar.xml, the persistence layer of the Entity EJB failed to deploy. The error was:
    "myBeans.jar": Error in descriptor line 5: Error parsing file at line: 5 column: 18. Element type "toplink-ejb-jar" must be declared..
    2. Also, How I can avoid the full path to the DTD???
    Thanks for your help in this regard!

    You are not properly configured to use TopLink with Weblogic. You need to place the TopLink_CMP_Descriptor.xml install file in your Weblogic lib/persistence directory. Add "TopLink_CMP_Descriptor.xml" to your persistence.install file and then update weblogic-ejb-jar.xml to reference the correct TopLink persistence type and versions, ie,
    <type-identifier>TopLink_CMP_2_0</type-identifier>
    <type-version>10</type-version>
    <type-storage>META-INF/toplink-ejb-jar.xml</type-storage>
    See the TopLink developer guide for more information and configuration details.
    http://download-east.oracle.com/docs/cd/B10464_05/web.904/b10313/pkg_depl.htm#1124524
    Cheers,
    Guy

  • How do I access methods in third party ocx file and get a return response.

    How do I attach a button to a method of an ocx or active x file? Is the activex component available on the front panel?

    You should probably browse directly to the OCX file if the component isn't registered with the system. If it is compatible with the front panel, you can simply drop it into an ActiveX container on the front panel (which requires the OCX to be a control (???)). Otherwise, you can create an ActiveX reference, and browse to the OCX. This will allow you to create invoke and property nodes.
    If you have trouble browsing, please post again, but it should simply be a matter of selecting browse, and then browse in the submenu to get file dialog to point to the OCX file directly. One possibility is that even though the control is registered (which makes it show up in the selection dialog), it may not have an obvious name. It is also safer to point to the OCX fil
    e, as this prevents your code from breaking if the OCX is upgraded or otherwise altered.

  • Call third party Executable file.

    How to call third party executable file from SAP as a modal.
    I have a drum filling system. I want to call executable file of drum system which take a weight from instrument and write a text file. After completion of this SAP will read that text file and write it to screen.

    the best way to do it is using RFC (remote function call)
    your drum tool should be compatible in order to do it
    if not you can still send a command to operating system in order to execute your tool but this is a second choice

  • What is a good third party display to use with the Mac Mini?

    The Acer monitor I bought simply doesn't work with my first generation Mac-Mini. When connected to the VGA connection I get a "input not supported" message. When I connect the DVI, the screen blacks out when I scroll and then comes back, at first I thought it was just with Firefox but soon discovered it was with any application I used. After some research on the internet I discovered that there is a problem with the firmware design on the DVI's on Acer Monitors. My new Acer monitor is enjoying it's new home in my sisters office, on her desk, connected to the VGA plug on her computer, enjoying Windows XP.
    At another web site for the Mac-Mini I was told that there are not that many displays that work for the Mac-Mini and I would be better off purchasing an Apple display, only problem is that the Apple displays are not within my budget. I would like some suggestions on this board from users as to what third party displays they use with a first generation Mac-Mini? I'm looking in the budget range of $200 to $250 dollars. I have a first generation Mac-Mini, Mac OS X Panther.
    PS I have tried setting monitor resolutions using both the VGA and DVI plug, they don't work.
    Thank you for any help I receive.

    Charles,
    I cannot speak on behalf of hooking this model of monitor up to a mini, however I do have a 19" Planar monitor at home hooked up to an old G4 tower via VGA, and the 19" Planar monitor that I have at work is hooked up via digital to my G4 15" PowerBook. I love both of these Planar 19" LCD monitors, and have absolutely no complaints. Planar's three year warranty is nice, and their tech support is top notch. I had an issue with the monitor at work, and I had a replacement on my desk in two days. Returning the bad monitor in the pre-paid box that the new one came in made things effortless. We have a few Planar's in the school district that I work in, and have no major issues with any of them.
    Not too sure what the most recent pricing is on this model, but CDW was selling them for around $225-$230 delivered right to your door.
    Hope this helps.

  • Activate a call forward with a Third-party SIP Device or with a analog device

    Hi,
    In a CUCMv9, how i can activate a call forward (all, busy, no anwser...) with Third-party SIP Device or with a analog device connected to a fxs?
    I want to activate a call forward like a Alcatel or Aastra PBX with a code.
    For exemple, i pick up the phone, with the code *95 followed by the destination number and hangs up the phone. And use the #95 for désactivate this call forward.
    It's possible?
    Thanks.

    No codes for 3rd party SIP phones, no way to do it. Or for that matter, not even for Cisco Phones, other than CFA.
    Anything besides CFA needs to be done via CCMadmin or CCMuser for any kind of phone.
    For FXS that's only doable if you're running SCCP
    http://www.cisco.com/en/US/partner/docs/ios/voice/fxs/configuration/guide/fxssccpsplmft.html
    HTH
    java
    if this helps, please rate
    www.cisco.com/go/pdihelpdesk

  • Using third party Rich Text Editors with Portal Release 2 (9.0.2)

    Hi Everyone,
    We would like to use some third party Rich Text editor with portal as the Oracle Rich Text editor is fairly basic and it does not fulfill our business requirements.
    Some of the things we are hoping to accomplish by through this text editor (after customizing) are:
    Ability to select any page within the portal to add as link in the Text Editor.
    Ability to select images from the portal repository.
    Create HTML Tables.
    Support of copy/paste from Microsoft Word.
    I am looking for any suggestions or experiences on how this can be done.
    Thanks in advance..
    Niraj

    Niraj,
    There's a RTE posted on knowledge exchange (with source), in my folder.
    Re: Calendar PJC on French Keyboard
    Hi Everyone,
    We would like to use some third party Rich Text editor with portal as the Oracle Rich Text editor is fairly basic and it does not fulfill our business requirements.
    Some of the things we are hoping to accomplish by through this text editor (after customizing) are:
    Ability to select any page within the portal to add as link in the Text Editor.
    Ability to select images from the portal repository.
    Create HTML Tables.
    Support of copy/paste from Microsoft Word.
    I am looking for any suggestions or experiences on how this can be done.
    Thanks in advance..
    Niraj

  • Error: cannot access class oracle.jsp.runtime.HttpJsp; file oracle\jsp\runtime\HttpJs

    Hello,
    where is now oracle\jsp\runtime\HttpJsp.class located?
    thanks.
    Oleg.

    Same problem,
    Error: cannot access class oracle.jsp.runtime.HttpJsp; file oracle\jsp\runtime\HttpJsp.class not found
    Thanks
    aldo

  • What is the best third party keyboard for kids with motor disabilities?

    What is the best third party keyboard for kids with motor disabilities?

    Got to the App Store and search on Keyboard - there is one in colors, Keyboard Pro, and others.  See if one of those looks like it would serve your needs batter than the built-in keyboard.

  • Importing third party XML files into form-based publishing

    Hi,
    I want to import third party XML files into form-based publishing. My problem is that when I open the files, they are presented as normal XML files.
    The 'type' property is not set to "form-based publishing". That's the reason no form is linked to the XML file.
    Is there a way to change the value of this 'type' property? Then I can set it to "form-based publishing".
    Message was edited by: E. van der Palen

    Hi,
       You should take into account two things:
    1. XML Repository filter
    System Administration-System Configuration-KM-CM-Repository Filters-choose XML Forms Repository Filter
    edit it and add your repository.
    After that you have to restart it.
    2. Resource Type.
    You should modify cm_resourcetype property to set form-based publishing.
    You could edit this xml file using form builder and then set this parameter.
    Patricio.

  • Does PI need a direct connection to third party or can work with a proxy server based connection to third party?

    does PI need a direct connection to third party or can work with a proxy server based connection to third party?

    Hi,
    It basically includes 3 systems, one is our ECC sender system, middle one is PI box and third one is the receiver system. Data is successfully reaching to PI system from our sender system.Now we want to forward this to our third party system from PI box.
                                                                    I want to know that such sending of data requires direct connection to third party or it can be done by proxy server based connection to third party.If it is possible then what are the steps to do this?
    Regards-
    Anuj Nogja

  • How to make a jar file downloadable with IE

    hello,
    I just bought a website:
    http://www.frozenfountain.net/
    and I put a jar file on it called Logo.jar
    Using Mozilla, the jar file downloads as expected, but with Internet Explorer, it tries to download it as .zip file.
    How do I get it to download as a .jar file with IE?
    thanks

    Just post a link to the Jar. Mozilla will download
    it as a jar. Windows will download it as a zip.
    Only one link. No problem, really. ;-)There is a problem. People who arent as good with computers as you are won't know how to run the jar file after downloading with IE.
    At school, I told someone to download the file, which they did with IE. It downloaded to desktop as a zip. They extracted and were left with a bunch of .class files.
    On a sidenote, how do you draw text with a gradient?

  • How to make jar files availabe for deployed EJBs

    Hi,
    I'm interested on how to make jar files availabe for deployed EJBs.
    My EJB is packed in an ear. It uses a util jar. I now just add the jar to the
    classpath, but I think that shouldn't be the way. Is there somthing in the admin
    console to make jars available or do I have to insert it in the ear file? And
    if so, where do I hve to place it?
    Thanks
    Claudia

    Put the util.jar in the ear with your ejb jars - at the same level (i.e. in
    the root) - but do not include them in the manifest.xml.
    Also each ejb jar that refers to util.jar must have util.jar on its internal
    classpath in the manifest.
    "Claudia" <[email protected]> wrote in message
    news:3d537db5$[email protected]..
    >
    Hi,
    I'm interested on how to make jar files availabe for deployed EJBs.
    My EJB is packed in an ear. It uses a util jar. I now just add the jar tothe
    classpath, but I think that shouldn't be the way. Is there somthing in theadmin
    console to make jars available or do I have to insert it in the ear file?And
    if so, where do I hve to place it?
    Thanks
    Claudia

Maybe you are looking for