EjbCreate not completing when calling into third party JAR ?

Hi
Are there any limitations/restrictions on calling out to a third-party library within an ejbCreate method of a stateless session bean.
I've set <initial-beans-in-free-pool> to 1 so that when I deploy the bean ejbCreate is invoked, but only the first System.out appears. The weblogic console shows the EJB deployment status as available, no stack traces of exceptions are shown.
   public void ejbCreate() {
        try {
            System.out.println(new Date() + " EJB XTestBeam ejbCreate invoked");
            searcher = new SearcherService();
            System.out.println(new Date() + " EJB XTestBean created SearchService " + searcher);
            System.out.println(new Date() + " EJB XTestBean ejbCreate completed ok");
        } catch (EJBException e) {
            e.printStackTrace();
            throw e;
        } catch (RuntimeException e) {
            e.printStackTrace();
            throw e;
        } catch (Exception e) {
            e.printStackTrace();
    }The environment is WLS 8.1 SP4, W2K, HotSpot Client VM 1.4.2_05.
Rgs
Erik

Thanks chrisswhite,
I should have mentioned that I tried this too and it didn't solve the problem. You're right though, I should be compiling with -fPIC anyway.
Jon

Similar Messages

  • How to Call third party Jar into Application

    Hi Can any Expert help ?
    I want to put third party Jar into my application but i have some problem occur.
    1. how to call jar with parameter in application ?
    2. when i exit the third party jar task, it will exit my main task too. How to set my main tast exit stats standalone ?
    3. I have over 10 jar files in one application, how can i set a classpath for client to call JNLP, instread of load all jar to client before run.
    Thanks.
    Sanki Poon ([email protected])

    1) Sounds like you are trying to launch the third party from it's application main instead of using it as an API How does your code interact with it or is that not important?. You don't call a jar, you load a class. You could use a exec http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html to run the java launcher and pass it all it's command line stuff(But this may not be possible security wise via WebStart).
    2) if it is launched in the same JVM and it calls a System.exit there is nothing you can do about your app closing too. It would need to be in another instance of the JVM
    3) Under the resources tag you can have as many jar tags as needed.
        <resources>
            <j2se version="1.5.0" java-vm-args="-esa -Xnoclassgc"/>
            <jar href="/jsf-wita/apps/MathMLWebEditor.jar"/>
        </resources>

  • Why do i have a dictionary on a Macbook and do not have it on the iPhone?(I do not wish to purchase a third party app when it is coded in OS/iOS)

    Why do i have a dictionary on a Macbook and do not have it on the iPhone?(I do not wish to purchase a
    third party app when it is coded in OS)

    You do use Siri. Hold the home button until Siri responds and say "Define bottle". Same thing, no?
    Hope that helps

  • How to include third party .jar files into my jar file

    Hi,
    how do i include a open source third party jar file into an executable jar?
    i have a class called BlogBox.java and it uses org.apache.commons.net.ftp.FTPClient, i want to create an executable file, where do i put the .jar file containing FTPClient aka Apache Commons Net?
    currently i'm getting the following error from when executing my BlogBox.jar
    C:\MyJava\BlogBox>java -jar BlogBox.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClient
    at blogbox.BlogBox.<init>(BlogBox.java:27)
    at blogbox.BlogBox.main(BlogBox.java:103)
    Any suggestions? i have searched google and this forum but could not find the solution to my problem, thanks
    [edited msg] do i need to add the classpath at execution or something of the apache commons net library?
    Message was edited by:
    gekkokid

    When you use an executable jar the normal class path
    is ignored, but you can put a classpath inside the
    jar. The usual trick is to place the library jar
    files in a directory inside the application directory
    and direct the manifest file to it. The manifest file
    live in the jar inside the META-INF directory and
    it's called manifest.mf
    The two heavilly used entries are Main-class: and
    Class-path: lines. Class-path just has a
    comma-separated list of library paths.
    The jar utility has a special option to load it up.Thanks :) I created a "/lib" directory, placed in the packages in there and redirected the Class-Path: lib/commons-net-1.4.1.jar
    and it works,
    thank you everyone :)

  • Problems with the ActiveX bridge for Java beans when using third-party .jar

    I encountered the following problem when using the ActiveX bridge for a java bean:
    I am using JDK 1.4.2_09 and MS Visual Basic 6.0 (SP6). I wrote a java bean called ProcessViewer (my class ProcessViewer inherits from JComponent and implements the interfaces Serializable and AdjustmentListener) which I would like to use within a VB 6.0 application. I used the ActiveX bridge (packager.exe) to generate a DLL (ProcessViewer.dll) and registered it successfully. The java bean GUI-control works fine within my VB 6.0 application unless my java bean (ProcessViewer.jar) uses any third-party .jar files.
    But when I tried to add a reference to some third-party class (com.sap.xxx.xxx....) I got some problems. I could solve the problem with packager.exe by setting the correct CLASSPATH. But at runtime my VB 6.0 application does not work. It crashes or it reports an error like this: "The control ... could not be loaded from axbridge.dll" (although I deployed my .jar file correctly to the directory C:\Programme\Java\j2re1.4.2_09\axbridge\bin and lib). Setting the CLASSPATH environment variable before calling my VB 6.0 application (exe) did not solve the problem.
    How can I teach my VB 6.0 application (containing the Java bean ActiveX control) where to find the third-party .jar file? Copying the third-party .jar file to the JRE lib-folder or to the axbridge\lib folder did not solve the problem either.
    I studied the documentation about the ActiveX bridge given at:
    http://java.sun.com/j2se/1.4.2/docs/guide/beans/axbridge/developerguide/index.html
    but I am missing informations on how the third-party .jar files can be found during runtime of the ActiveX container (e. g. a VB 6.0 application).

    See how to solve your problem with JNI:
    http://codeproject.com/cpp/OOJNIUse.asp
    More examples (for SWING) in tools setup:
    http://www.simtel.net/product.php[id]95126[SiteID]simtel.net
    http://www.simtel.net/product.php[id]94368[SiteID]simtel.net
    http://www.simtel.net/product.php[id]93174[SiteID]simtel.net

  • ADF mobile: How to pack a third party jars into apk

    Hi Expert,
    I am using Jdeveloper + ADF mobile 11.1.2.4 to develop an android application. In this application, I need to call some functions in the third party jar files.  I need to add the third party jars into my apk so that those classes can be found during runtime.
    I followed section 17.1.1.1 to add the libraries into my project. However, after I deployed my app to the emulator and tried to run it, it reported "encountered error: classes not found". And I also found that the third party jars don't exist in libs/ directory of the apk. Do you know how to solve the problem: How to reference a third party jar files in my app and make sure it works?
    Thanks,
    Yan

    Create a /libs directory within  Android project directory and copy the JAR files to /libs.
    To build.properties add
    external.libs.dir=libs

  • JAR executable do not find third party Jars

    Boy I am beat.
    I am trying to build executable jar that needs bunch of third party jars.
    So I import the jars into a ext folder at the top of the pkg. I jar it all up (using Ant)with a manifast that point the classpath to the jars at the ext folder
    Dir Structure:
    myJar.jar
    |
    +-build
    |main class
    |
    +EXT
    |
    + bunchOfJars
    </pre>
    Manifest-Version: 1.0
    Created-By: Apache Ant 1.5
    Built-By: Ted I Weitz
    Classpath: ext/dom.jar ext/xsltc.jar ext/dt jar ext/vecmath.jar
    ext/j3dcore.jar ext/j3dutils.jar ext/xercesImpl.jar ext/xalan.jar
    Main-Class: myMain
    Command:
    java -jar myJar.jar
    I will be very gratfull for any idea
    Ted

    Just posted on this in another thread I am watching. As far as I know, and every other post I have seen on this topic, there is no way to do this without using a custom classloader that is used by the executing .jar itself to load any .jar files. How I can see this work is the main class is nothing more than a "classloader" launcher. It creates a new instance of this custom classloader. It then opens "itself" (the .jar the main class and all the .jar's are in), reads the manifest file to locate the .jar files the application requires, then either loads them, or somehow is able to reference them without directly loading them. The URLClassLoader is a good one to extend for this. It already opens up any .jar file specified in its path when being created, scanning for any files in there. Basically, you need to "extend" this functionality to scan any .jar's in the .jar, and so on. So, the launcher may be like so:
    public void main (String[] args)
    JarClassLoader jcl = new JarClassLoader(this.getClass().getClassLoader());
    jcl.launchApp(this);
    the jcl.launchApp would be a method that tells the classloader to use THIS class, its "root" dir, to locate the .jar file to open and scan for more jar files. Each time it comes across a .jar file in the .jar, it opens it and scans it as well.
    Keep in mind, when the URLClassLoader contains one or more .jar files, when a class it loaded references a class that is not found in the that classloaders parent loader classpath, it then starts looking in the .jar files in the URL[] path specified to it. It looks at all classes in the .jar files, but it does NOT look in nested .jar files in the .jar file. Basically, you could take the source code of the URLClassLoader, and add the ability to open up any .jar files nested in each .jar file as needed to resolve a class. I would imagine this could take some time at runtime, probably a second or two on slower machines for a single typecast. However, that would be dependent on the number of nested .jar files, the number of .jar's in the classpath of the classloader. I think I may undertake this task when I have time. I gotta finish my plugin engine first, then I may undertake this classloader. I am pretty sure that is the proper approach to take. However, because it is not part of the JVM .jar execution mechanism, a special bit of coding will be required, such as what I posted above. The main class in the .jar file will have to create this classloader and tell it to "execute" the program, passing to it another main class, specifying the location of the .jar file the main class is in, etc. Hell, you could almost bypass the java -jar app.jar and just do a java Classname where by the class and the .jar are bundled together, although this wouldn't be as nice. The reason this might be better is that then you wouldn't have to do any special coding in the .jar main class. I suppose though, by providing the "launcher" class and having a developer just extend it as part of their main class could also work.
    }

  • Uploading an XML file from SAP into third party URL

    Hi,
    I need to Upload an XML file from sap into Third party URL. Can any body tell me the possible ways in SAP to achieve this task. Also explain me the proceedure.
    Thanks in advance.
    -Namdev

    Sorry. If they only said HTTP/HTTPS and didn't say explicitly web service, it means they don't want it.
    One thing I'm not sure is, do you have an URL at the third-party system that you need to contact, or should you provide one at your SAP system that they will contact?
    If it is the first one, to send an HTTP request to a given URL using ABAP, you'll find an example here: [SAP Library: Example Program: Executing an HTTP Request|http://help.sap.com/saphelp_nw70/helpdata/en/1f/93163f9959a808e10000000a114084/frameset.htm]
    Sandra

  • NoClassdefFoundError on the third-party jar's classes when building APK

    I am building a native extension for Android.
    For the android library, I create a android project and add several third-party jar files to build path.
    I extract a jar file from a android project and merge it and third-party jar files into a single jar file.
    I package ANE using a merged jar file and build a APK.
    When I install a APK and launch it, NoClassdefFoundError on the third-party class occurs.
    I use Flash Builder 4.6 and set sdk version to the Flex SDK 4.6.0 + AIR SDK 15.0.0.356.
    I decompile APK and check the classes.dex.
    Strangely a certain jar's classes are missing in the classes.dex.
    I tried googling and found a similar case.
    The following is the link :
    http://stackoverflow.com/questions/24777394/noclassdeffounderror-on-thirdparty-class-files -when-building-adobe-native-extens
    I try to follow the answer in this link.
    Did dx.jar in the AIR SDK really strip out some classes of third-party jar file??
    I inquired the java version of the third-party related with NoClassdefFoundError.
    Now I am waiting for the reply.
    Is anybody else know about this?

    The android-support-v4.jar is same.
    I check android-support-v4.jar's classes in ANE.
    But they are missing in APK after release build.
    I don't know why.
    I use Flash Builder 4.6 and Flex SDK 4.6.0 + AIR SDK 15.0.0.356.
    Is there anyone else know about this???

  • Self Healing integration into third party software

    I was wondering if there will be a programmers guide and possibly software libraries that will enable programmers to implement Self Healing and DTrace capabilities in the software we write. Wouldn�t it be cool to extend these capabilities into third party and open source software like Oracle, Sybase, GNOME, (etc�)

    While it is definitely possible to introduce a
    dependent service to do exactly the same thing, I
    find that somewhat a hack. What I have in mind is
    more along the lines of possible reactions in event
    of a service failure. A service restart failure
    script is certainly more appropriate than defining a
    dependent service.We might disagree on the hackishness/appropriateness of each: it depends on what the script's intended purpose is. A service failure script that sends you a message is fine; a service failure script that directly activates a replacement daemon or begins a long-duration outbound data transfer requiring reliable execution isn't. Both are possible from a script.
    What difference does it make to smf(5) if I run the
    same script in as a dependent service shutdown vs
    running it as a service down alert?I think that the difference is we're likely to offer fewer guarantees and impose more constraints on the service down alert, if one of the restarters is responsible for executing it. Our goal is to offer scripting, but such scripts will have constraints on reliability and impact on system load, and require some description of maximum duration and "report-first" or "report-last" if multiple failures occur.
    The contrast with an SNMP trap is: smf(5) issues the trap and then your management software can control the aspects of alerts, etc. None of the restarters is responsible for handling the execution of alert-tied action.
    We'll be working through these actions, plus monitors, over the coming months--your advice (and other comments I've received) is going right into my notes.
    Cheers.
    - Stephen

  • TS3367 face time has the camera icon with a line thru it and will not complete a call?

    on my iphone, when trying a face time call, the camera has a line thru it and will not complete the call.  it just rings tothe person, but there phone does not ring.

    I have the same problem. I can't figure it out. I have followed their
    trouble-shooting guide with no luck/\.

  • IPhone will not charge when plugged into computer

    My phone was not working, and so I took it to the apple store nearby. Here were the problems:
    -error message saying "this device not made to work with iPhone"
    -would not charge when plugged into computer OR wall charger
    -person on other end of phone calls said i sounded really far away and had trouble hearing me
    -when i shut it off, it restarts itself immediately
    -cant do a manual reset holding the power and center buttons at same time
    -when plugged into the computer, mouse freezes, and a message appears saying ""power surge on hub port A usb device has exceeded the power limits of its hub port."
    At the genuis bar they told me they cant help me cause that little water damage indicator inside the headphone hole is pink instead of white! I have never ever ever ever ever EVER gotten my phone directly wet. The only thing i could think of was the humidity in the bathroom when I'm taking a shower, and using the timer to use hair remover on my legs lol. But i think this is totally unfair, they wont repair my phone, or even really look at it because of this supposed water damage. My phone has worked fine up to this point, and the thing that happened that started all of this is when i dropped it about a foot off the ground in a DRY parking lot.
    Is there any way they will replace my iphone at no charge?

    Well don't give up try again maybe your luck will change when you go back up there,let somebody else look at your phone not the same person that told you that.I would get a second and a 3rd option about my phone.When you go back don't even tell them what somebody already told you up there ones.
    And after the 3rd time I'll ask them well can they send your phone off to be fixed,It might not be nothing wrong with your phone it might be just they eyes playing tricks on them.Cause I promise you I know my phone had gotten some water in it cause I was sitting on the porch one day me and about 6 other people one of my cousin came out and through a bucket of water at my brother and I was sitting right on the side of him.And when I say my phone look like I than gave it a bath witch when they did that I had already had call the Apple store and told them something was wrong with my phone.And they had gave me appt to come up there,so I went to the Apple store I wanted say two day's latter after I made the appt to let them see my phone but my cousin and brother was playing with that water the day before I had to go so I guess that's why I was mad cause I was going to get other phone the next day after apple look at my old phone.So even with all that they still gave me other phone and I don't see how I didn't have no water in my phone cause of how much water they had through on my phone.
    I guess I was luck cause if they would have told me that I would have freaked out so badly.And the reason why cause I wouldn't had my phone for five days and for them to tell me they couldn't do something oh yea they would have done something cause I would have went to jail that day for tearing up something in the store that worth my 400 and something dollars I spent on my phone and it would have bent one of them computer that would have bent history.
    But I'M telling you,you going to be okay don't give up.Make you other appt and see what they say.

  • Adobe PDF files will not display when called via a link in page (FF 4.01)

    adobe PDF files will not display when called via a link in page.
    This happens when testing new web page from DWeaver CS5 - all other browser tests are OK (IE9, Safari5.05, Chrome etc.)

    [moved to the Adobe Reader (desktop) forum]

  • I downloaded 9 songs and 2 of them are not complete when I play my IPOD they play 3/4's then end., I downloaded 9 songs and 2 of them are not complete when I play my IPOD they play 3/4's then end.

    I dowloaded 9 songs and 2 of them are not not complete when I play them on my IPOD Classic the songs play then 3/4's of the way they end.

    You may have to try deleting all the music from your phone (by going to Settings>General>Usage>Music, swipping All Music and tapping Delete), then sync it all back on with iTunes in order to fix this.

  • Phone will not ring when called

    Hello... I just purchased the iPhone from AT&t and the phone will not ring when called.  I have gone  to settings, sounds, ringtones and all looks good.  Phone sometimes shows a caller is calling but not always and it is not ringing.  Please help>>>

    If the issue is still occuring try a restore just in case.
    If that does not solve the issue..... Take it back to where you purchased it from
    AT&T's DOA (dead on arrival policy) is 30 days from the day of purchase.
    They should be able to replace the iPhone for you as long as you ask them to within 30 days of it being purchased.

Maybe you are looking for