Another packaging problem

I am working with wl6.0 sp2 jdk1.3.
I have MessageDriven bean (m.jar) and support classes (s.jar).
I am using Ant and following depend.zip from Bea....
The m.jar gets deployed but it cannot see classes in s.jar. Error :
Storing MessageDrivenContext
Obtaining a message
controller...java.lang.reflect.InvocationTargetException: ja
va.lang.NoClassDefFoundError:
com/elscience/medline/factories/ControllerFactory
at
com.elscience.medline.ejb.listeners.LoadMsgListener.ejbCreate(LoadMsg
Listener.java:21)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.ejb20.internal.MessageDrivenEJBHome.createBean(MessageDriven
I did everything I can.
If I put s.jar in server startup classpath everything is fine. But I do not
want to restart my server everytime I make changes.
I've run out of options to try.
Note: Ant scripts builds two jar files for MDB, a standard jar called 1.jar
and ejb jar called 2.jar.
my manifest file has
Class-path: s.jar.
But this entry is missing from final 2.jar's manifest file.

It's Class-Path not Class-path. And, are you using the 'manifest' attribute in
the jar element in Ant?
Something like:
<jar jarfile=1.jar
basedir="."
manifest="META-INF/MANIFEST.MF"
/>
Bill
vignette wrote:
I am working with wl6.0 sp2 jdk1.3.
I have MessageDriven bean (m.jar) and support classes (s.jar).
I am using Ant and following depend.zip from Bea....
The m.jar gets deployed but it cannot see classes in s.jar. Error :
Storing MessageDrivenContext
Obtaining a message
controller...java.lang.reflect.InvocationTargetException: ja
va.lang.NoClassDefFoundError:
com/elscience/medline/factories/ControllerFactory
at
com.elscience.medline.ejb.listeners.LoadMsgListener.ejbCreate(LoadMsg
Listener.java:21)
at java.lang.reflect.Method.invoke(Native Method)
at
weblogic.ejb20.internal.MessageDrivenEJBHome.createBean(MessageDriven
I did everything I can.
If I put s.jar in server startup classpath everything is fine. But I do not
want to restart my server everytime I make changes.
I've run out of options to try.
Note: Ant scripts builds two jar files for MDB, a standard jar called 1.jar
and ejb jar called 2.jar.
my manifest file has
Class-path: s.jar.
But this entry is missing from final 2.jar's manifest file.

Similar Messages

  • Instantiating a class from another package

    Hi,
    I have two packages, say "framework" and "impl" -
    framework package (framework.jar)
    - contains base classes
    - contains factories to instantiate concrete classes
    - bundled in <product>.ear
    impl package (impl.jar)
    - contains implementation(concrete) classes
    - compile time dependency on framework.jar
    - bundled in <product>.ear
    I could successfully compiled and build <product>.ear which contains both the jars. The ear gets deployed successfully.
    PROBLEM
    Now, whenever a factory class (part of framework package) tries to instantitate an impl class (part of impl package) using -
    Class.forName(impl.ConcreteClassName OR fully_qualified_concrete_class_name).newInstance();
    It throws "classNotFoundException". It is not able to locate the concrete class.
    So, my question is how can i instantiate a class using its fully qualified name(package.classname) from another package ?
    Thanks.

    909219 wrote:
    PROBLEM
    Now, whenever a factory class (part of framework package) tries to instantitate an impl class (part of impl package) using -
    Class.forName(impl.ConcreteClassName OR fully_qualified_concrete_class_name).newInstance();
    It throws "classNotFoundException". It is not able to locate the concrete class.This sound like a classpath problem. Check your ear's manifest.
    BTW:
    Shouldn't the framework better use ServiceRegistry to load implementations?
    bye
    TPD

  • A package that "patches" another package

    I'd like to make a PKGBUILD for usb-rndis-lite v0.11. Usb-rndis-lite contains files that should replace some files from 'kernel26' package. Is it right when one package replaces files from another package? If so, what is the right way to do that?
    The point is that USB RNDIS driver, included in current 2.6.26 kernel is either outdated or buggy, so sometimes it needs to be replaced by SynCE's usb-rndis-lite. Unfortunately that driver is a part of kernel26 package and cannot be separately removed.

    Mr.Cat wrote:Nothing would prevent me from doing this, but that would be the "wrong way", I suppose. And you've mentioned one of the reasons - possible problems with correct package removal. Another problem I see - is that when kernel26 is updated - my package's files would be owerwritten.
    Exactly. Pretty ugly solution, although possible. In the install script, you can specify an uninstall function, so theoretically you can backup the original driver on install, and restore on uninstall, with a check if it hasn't been updated meanwhile.
    UPD:
    bender02 wrote:There's a special directory where you can put your patched/updated version of a driver, and then modprobe/insmod would load that new version, when the driver is requested.
    Thanks, worked for me.
    UPD:
    I've submitted a PKGBUILD for rndis-usb-lite (v0.11) to unsupported: http://aur.archlinux.org/packages.php?ID=20336.
    I'm glad it worked.

  • Writing to file within another package

    Hi all, I had a search in the forums, but I couldn't find what I was looking for.
    I have what I consider to be good code organised into packages that make sense, but for some reason, I cannot programmatically save Files to where I want to.
    If I create them manually, they read fine, (with
    File xmlFile = new File(this.getClass().getClassLoader().
            getResource("data/records.xml").getFile());
    SAXBuilder builder = new SAXBuilder();
    Document xml = builder.build(xmlFile);).
    So now I want to create this file programatically.
    The code I have is
    // Make a new file
    File xmlFile = new File("data/" + p.getName() + "deck.xml");
    xmlFile.createNewFile();But that gives (probably unsuprisingly)
    java.io.IOException: The system cannot find the path specified
         at java.io.WinNTFileSystem.createFileExclusively(Native Method)
         at java.io.File.createNewFile(File.java:883)
         at gamepackage.PlayerDeck.updateDeck(PlayerDeck.java:99)When I create a file in the default package (probably frowned upon) with
    // Try create file in default package
    File xmlFile = new File(p.getName() + "deck.xml");
    xmlFile.createNewFile();It works as expected (except my file is in the default package).
    So, it must be a package problem. I have tried messing around with mkdir(), but that creates Files in directories called "data" rather than my existing package "data" (which confuses my little soul, because I thought packages were treated as directories (see JAR files etc)), and I have tried messing around with URIs and URLs, to little avail. Also, ClassLoaders such as
    File xmlFile = new File(this.getClass().getClassLoader().
                      getResource("data/" + p.getName() + "deck.xml").getFile());wont work, because I need to create the file before I can call .getFile(); but I need the File to call createNewFile() on.
    Please can you point me in the right direction? Many thanks in advance.

    Hemmels wrote:
    I've been playing CS and BF2142 and went for a jog, and we're into double figure views It's not a bad question, and you presented your problem well, it's just... well it isn't done this way. Packages are really intended to solve +this* problem. But the organization (and unique identifying) of source files problem.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • TS3074 im can u please help me out this issue im trying to install iTunes  in windows 7 some error showing " windows installer package problem DLL require to complete this installation" this message showing.

    im can u please help me out this issue im trying to install iTunes  in windows 7 some error showing " windows installer package problem DLL require to complete this installation" this message showing.

    Try the following user tip:
    " ... A DLL required for this installation to complete could not be run ..." error messages when installing iTunes for Windows

  • Can I call a function in another package?

    Dear all,
    Can I call a function in another package?
    Say I have package A, and package B.
    Is it possible for me to call a function in inside package A, within a function inside package B?
    If yes, what's the syntax.
    Thanks in advance!

    The variable in the calling package that will receive the value of the function in the other package needs to be defined based on that type in the other package directly:
    sql>create or replace package pkg_a
      2  is
      3    type testTable is table of varchar2(10) index by binary_integer;
      4 
      5    function f_a return testTable;
      6  end;
      7  /
    Package created.
    sql>create or replace package body pkg_a
      2  is
      3    function f_a
      4      return testTable
      5    is
      6      v_table testTable;
      7    begin
      8      v_table(1) := 'One';
      9      v_table(2) := 'Two';
    10      return v_table;
    11    end; 
    12  end;
    13  /
    Package body created.
    sql>create or replace package pkg_b
      2  is
      3    procedure p_b;
      4  end; 
      5  /
    Package created.
    sql>create or replace package body pkg_b
      2  is
      3    procedure p_b
      4    is
      5      v_table pkg_a.testTable;  -- this variable has to be based on the type in pkg_a
      6    begin
      7      v_table := pkg_a.f_a;
      8      for i in 1..v_table.count loop
      9        dbms_output.put_line( v_table(i) );
    10      end loop;
    11    end;
    12  end; 
    13  /
    Package body created.
    sql>exec pkg_b.p_b
    One
    Two
    PL/SQL procedure successfully completed.

  • How to resolve AVCHD package problem in mountain lion

    how to resolve AVCHD package problem in mountain lion

    Thanks, David. I know this workaround. And one more with creating right-click Service. That's why I've used "uncomfortable" instead of "impossible". In my opinion, Apple should leave ability to choose OS's behavior, and I hoped somebody knew where to find it .

  • How to import one package in another package in java

    HI ,
    I want call a class which is located in package pckage1 into another package package2s class..
    could any one help me on this...
    realy that would be appricateble

    Use import package.ClassName;

  • USage of import java.util.* & using another package

    When we use import java.util.*; from where does JAVA take the class that are related to util, when I did search for "util" in my machine, I got about 50 results for folders named util and also some where in a folder called "java" when I opened it it did not have the classes, that I was expecting. So I am not clear where does it get the class files from. This is not only for this but for any import commands like import java.io.*;
    When we get another package or source code which was written in java and want to use it in our code where do we have keep the files ? eg. i have the java code that i m writing in c:\java then do I put all the downloaded related files in that folder and then run the code ? or i keep a folder inside java folder and then import them into my code ?
    please do advice.
    Thanks in advance.

    When we use import java.util.*; from where does JAVA
    take the class that are related to util,It means when you use a classname in your code, and that classname is neither in the same package as the class you're writing, nor imported specifically by classname, that it will search for it.
    Where it searches is every folder called util whose parent folder is called java which in turn is at the root level of one of the classpath elements. That is, if classpath contains "A" and "B", and you refer to a class called "Foo", then it will look for "A/java/util/Foo.class" and "B/java/util/Foo.class".
    search for "util" in my machine, I got about 50
    results for folders named util and also some where in
    a folder called "java" when I opened it it did not
    have the classes, that I was expecting. So I am not
    clear where does it get the class files from. This is
    not only for this but for any import commands like
    import java.io.*; All the java.* and javax.* and whatever else it part of the core API is in rt.jar, which lives inside the Java distribution. Classpath elements can be directories or jar files or zip files.

  • Use a method from another class in another package?

    How can I use a method from another class in another package?

    WhiteJ wrote:
    What do you mean by "new keyword?" You posted this previously:
    I tried that, it seems to not be working. I want to use the constructor from the other class. I imported it, using this piece of code:
    import components.FileChooser;
    components.FileChoser();
    Typically if I am going to call a constructor on a class called Fubar, I'd use new to create a new object:
    Fubar myFubar = new Fubar();Incidently, is it a simple typo in your post or are you trying to use a FileChoser object when it should be FileChooser?

  • Can I get another package to Russia?

    Hey there.
    I call lot to Russia now, and my current 60 min + 15 min is too little, so I uploaded some Saldo to account and this is now over. Is there really no possible to get another 60 min Russia package to mobile phones? So I could use my 75 minutes I paid for these and when this all over, another 60 min I would pay every month with your month fee to this as long as I need more voice than 75 min. My previous package was 120 min + 30 min free as year sub, but when it was over I called a lot less and now my call needs are more. Is there really no way to add another package to SAME country or update my current to 120 min + 30 min free?
    Let me explain, I dont want new account for another sub as it is hard for me to change accounts. I need two packages right now to my account to the same country, is this possible? When I try to get another package to Russia, it tels me that there is already 75 min package to Russia and if I want to get this 60 min one, it will avtivate AFTER my current is over and that's a long wait, as it ends after next summer.
    Or is onlyone option skype saldo?? For over limits voice.
    Thank you and sorry for my bad english.

    Got answer.
    If you purchase same amount of voice, it activates only when your subsription is over. If you get another amount of voice, different one, it activates as soon as your current month minutes are over. So you can have for example for Russia 60 min + 15 min if year sub and 120 min package by month.

  • YAPP (Yet Another Printing Problem)

    I've found another printing problem - this time with colour printing.
    To my
    surprise, Forte (3.0.E.0) can print in colour (at least on a HP 690C,
    using
    NT drivers for the 660C, the printer being connected to a Win95
    machine).
    I can print OK with from my NT develpoment machine in colour, but when
    running
    the same app from the Win95 client with the printer attached locally the
    coloured text disappears. Has anyone else come across this problem?
    Is this another of the 'Printing works fine as long as it happens
    non-locally?'
    features?
    Thanks
    Jamie Anstice
    Programmer/Analyst, University of Canterbury
    New Zealand

    I can print OK with from my NT develpoment machine in colour, but when
    running
    the same app from the Win95 client with the printer attached locally the
    coloured text disappears. Has anyone else come across this problem?Hi Jamie,
    I wonder if this is related to the printing feature I discovered
    where things I print from Forte have a strong tendency to come out in
    the same colours as my windows desktop, which is
    typically yellow-on-black.
    - Ed
    ================================================================================
    Eduard E Havelaar, Information Services Section, University of Canterbury
    email: [email protected]
    phone: +64-3-366 7001 extn 8910
    fax: +64-3-364 2999
    snailmail: Private Bag 4800, Christchurch, New Zealand

  • Executing another class from another package with a click of a button

    package language;
    textfield_4 = new JTextField();
    getContentPane().add(textfield_4);
    button_10 = new JButton("Open");
        getContentPane().add(button_10);
        button_10.addActionListener(new java.awt.event.ActionListener()
          public void actionPerformed(ActionEvent e)
            String cmd = "notepad.exe";
            String path = textfield_4.getText();
            try
              Runtime.getRuntime().exec(cmd + " \"" + path + "\"");
            catch (IOException ex)
              ex.printStackTrace();
        button_12 = new JButton("Run");
        getContentPane().add(button_12);From the codes above, what i intended to do is when clicking the "Run" button, it will pass the values from textfield_4 to another class in another package thus, executing the class with the value of textfield_4. What are the steps to do that? If possible, please insert sample codes. Thank you.

    import  anyPackage.AnotherClass;
    button_12.addActionListener(new ActionListener() {
      AnotherClass ac = new AnotherClass();
      ac.execute(textfield_4.getText());
    });Is that what you wanted?

  • Apparent SDL package problem

    I installed kdenlive and mlt from community and have a problem with the configuration. A dev on the kdenlive IRC channel said I should ask the mlt devs who in turn said it must be a SDL packaging problem. So I'm here now with this bit:
    #kdenlive
    [19:38] <dust__> need some help getting this program started
    [19:43] <dust__> says it can't find melt or SDL profiles and module
    [19:43] <dust__> but when I run it as root everythings OK
    [19:46] <xzhayon> distro?
    [19:47] <dust__> Arch. I installed both mlt and kdenlive from community repos
    [19:49] <xzhayon> run melt -query consumers 2>&1 | grep sdl
    [19:49] <xzhayon> and show me the results
    [19:49] <dust__> - sdl_image
    [19:51] <dust__> when I run that as su I get this
    [19:51] <dust__> - sdl - sdl_audio - sdl_preview - sdl_still
    [19:53] <xzhayon> as su?
    [19:53] <xzhayon> but that's the output of query consumers
    [19:56] <dust__> just that Im getting different output as su than user
    [19:57] <xzhayon> what's the output of melt -query consumers 2>&1 | grep sdl not run as su?
    [19:57] <dust__> - sdl_image
    [19:58] <xzhayon> that's definitely wrong
    [19:58] <xzhayon> try reinstalling mlt
    [19:58] <dust__> did that at least twice
    [19:59] <dust__> 0.5.10
    [19:59] <dust__> kdenlive 0.7.8
    [20:01] <xzhayon> may i see the pkgbuild for this package?
    [20:03] <dust__> http://repos.archlinux.org/wsvn/community/mlt/repos/community-x86_64/PKGBUILD
    [20:12] <xzhayon> im' sorry but i have no clue on what's happening
    [20:15] <dust__> please tell me what the output above means briefly
    [20:17] <xzhayon> well, that shows the producers and consumers available to melt
    [20:17] <xzhayon> but that's not the expected output
    [20:17] <xzhayon> what you see with "su"
    [20:18] <xzhayon> i what should appear when run as normal user
    [20:18] <xzhayon> while what you see when run as normal user
    [20:18] <xzhayon> is what you should see when querying producers, not consumers
    [20:18] <xzhayon> try asking on [email protected]
    mlt-devel replied as follows:
    Perhaps ask the SDL packager; I doubt the MLT packager will be of much
    help. This appears to be some permission issue with SDL and its access
    to things. Maybe you need to add your account to some groups. Does
    ffplay at the command line work? It too uses SDL. If that does not
    work either, then perhaps 'strace melt -query consumers'. strace is a
    very verbose output, but it might show what it is failing to access.
    any thoughts?

    allan@mugen ~
    > melt -query consumers 2>&1 | grep sdl
    - sdl
    - sdl_audio
    - sdl_preview
    - sdl_still
    Maybe try creating a new user and see if it works for them.

  • Can I create another package for another module?

    Hi,
    I am doing a project in NetBeans.
    I used a JFrame with Menu and a JDesktopPane with five JInternalFrames for my I module.Now I first module is finished.
    My designing and coding are in Package Javaapp1.
    For II module I have to create another JDesktopPane with five jInternalFrames.
    If I use the same Javaapp1 package for II Module my coding is very large and difficult to trace.
    can I create another package Javaapp2 for II module and import
    in my first package?
    if it is possible? please give me few lines about this.
    Thank you so much.
    Meena.

    Hi,
    Thank you so much for your reply.
    I understand what you mean.
    I am developing only one project not two many.
    But I have four modules in my project.So I try to the concept of package.
    In NetBeans I first create one project named Javaapp1.
    It automatically comes under the name Package Javaapp.
    In this I finished my first module.
    Now I want to develop second module.To avoid confusion in coding I need to create second module in different package.
    So I create another project Javaapp2.It comes under the name
    Package Javaapp2.I develop II module here.
    Then I try to import Javaapp2 in Javaapp1.I got the error "Package Javaapp1 doesnot exist".Thenonly i add needed jar file(Javaapp2.jar) into my project.Now there is no error.
    You told me that "The Above Approch is for when we create more than one project and take something from one to other".
    But I donot know how can I create another package without creating another project and without including the jaf files.
    I donot know is there any way to do.
    I am also have a look at netBeans.org.
    Can I continue with this?
    will you please comment on my lines.That should be useful to me to get a idea.
    Thank you so much.
    Meena.

Maybe you are looking for

  • Macbook Pro Mid-2012 slow after upgrading to Mavericks

    A few days ago, my macbook started to run very slowly on Mountain Lion. This was the first time that I ever had any issues with it. So I decided to upgrade to Mavericks and see if that would solve it. I did a clean install of the OS and it is still f

  • Interaction report in Fronter fails... SCORM 1.2 and SCORM 2004 problems...

    I am using Captivate 2.0 and trying to make a SCORM content that will report user interaction in the new Fronter 7.1 (www.fronter.com). I use the reload SCORM 1.2 player for complaince check, since I do not have one for SCORM 2004 ( http://www.reload

  • Organiser Photoshop Elements 10

    How do you compare two images in the Organiser in Photoshop Elements 10 please

  • Itunes 11.1.5 not recognising iphone 4 with 7.1 iOS upgrade

    Hi I have an iMac that I synch my iPhone 4s to. I recently updated the OS to 7.1 and itunes to 11.1.5. Now it's not recognising the iphone but still recognises the ipad (running ios7.1). I checked the cables, uninstalled and reinstalled itunes. No jo

  • Installing downloaded icons?

    i am very new to macs, but i do love it so far. i have a new macbook c2d running tiger 10.4.8. i was wondering how to install new icons? i downloaded an icon set from the apple download page, but i cant figure out how to make them appear as my new ic