Common JNI Native Library inside servlets

I need to load a native library from a jee application, every things runs pretty well until I instanciate a new class inside a different application and try to load the same native library, wls throws a UnsatisfiedLinkException.
          How can I share the native library for both applications and avoid the UnsatisfiedLinkException?
          Any idea, thoughts?
          thanks

Finally I get it working by myself. In difference to WAS, WLS does not have any document where specifies how to load a shared native library.
          After two weeks of research, I went for an EJB solution followed by a singleton class. Why EJB? because I need to have an only one object where I can load the native library both loaded by the same classloader and share it by any mean. With this implementation avoid the UnsatisfiedLinkException, and publish an object which has access to the native library. And finally the singleton, you know how it works, it loads once the native library in its constructor avoids the restriction to load just once a native library in the same JVM.

Similar Messages

  • Error in Java Runtime Environment when running JNI native library

    Hi,
    I am kinda new to JNI but understand it [and done some tutorials]. I am trying to implement JavaStyle [ a Java vst host that uses JNI ] and have reached a point where i successfully build the native code to a dll, and almost manage to load the native dll library. I do not get a Unsatisfied Link Error, but instead have the JVM close due an internal error.
    I am completely lost and dont know what to try now, and I would appreciate any help offered.
    I have debugged and the error arrives at the System.load line of code:
      static {
        System.out.print("Pre loadLibrary..."); 
        System.loadLibrary("JaVaSTyle");
        System.out.println("JavaStyle dll loaded in JVSTLibrary");
      }Detail: I compiled the native library with MS visual studio .NET 2003 using the project settings supplied from the CVS repository.
    I use Netbeans 6.0 for the java side of things. The console output is:
    # An unexpected error has been detected by Java Runtime Environment:
    #  Internal Error (0xe0434f4d), pid=1500, tid=6012
    # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing)
    # Problematic frame:
    # C  [kernel32.dll+0x12a5b]
    # An error report file with more information is saved as hs_err_pid1500.logand the error report is :
    # An unexpected error has been detected by Java Runtime Environment:
    #  Internal Error (0xe0434f4d), pid=1500, tid=6012
    # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing)
    # Problematic frame:
    # C  [kernel32.dll+0x12a5b]
    # If you would like to submit a bug report, please visit:
    #   http://java.sun.com/webapps/bugreport/crash.jsp
    ---------------  T H R E A D  ---------------
    Current thread (0x00297000):  JavaThread "main" [_thread_in_native, id=6012]
    siginfo: ExceptionCode=0xe0434f4d
    Registers:
    EAX=0x0090f4c0, EBX=0x00000001, ECX=0x000b0fd0, EDX=0x00000000
    ESP=0x0090f4bc, EBP=0x0090f510, ESI=0x00000000, EDI=0x00000000
    EIP=0x7c812a5b, EFLAGS=0x00000246
    Top of Stack: (sp=0x0090f4bc)
    0x0090f4bc:   000b0fd0 e0434f4d 00000001 00000000
    0x0090f4cc:   7c812a5b 00000000 791b9d02 02ea1198
    0x0090f4dc:   07624998 000b0fd0 0090f4fc 791be271
    0x0090f4ec:   000ae008 00000002 07624998 00000000
    0x0090f4fc:   0090f50c 791be286 000ae008 07624998
    0x0090f50c:   0090f51c 0090f568 7921020d e0434f4d
    0x0090f51c:   00000001 00000000 00000000 000b0fd0
    0x0090f52c:   0090f578 00000001 7c812a5b 0090f1f0
    Instructions: (pc=0x7c812a5b)
    0x7c812a4b:   8d 7d c4 f3 a5 5f 8d 45 b0 50 ff 15 08 15 80 7c
    0x7c812a5b:   5e c9 c2 10 00 85 ff 0f 8e 36 93 ff ff 8b 55 fc
    Stack: [0x008c0000,0x00910000),  sp=0x0090f4bc,  free space=317k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C  [kernel32.dll+0x12a5b]
    C  [mscorwks.dll+0x6020d]
    C  [mscorwks.dll+0x60190]
    C  [mscorwks.dll+0x60144]
    C  [mscorwks.dll+0xa6dcb]
    C  [mscorwks.dll+0x26a7e]
    C  0x000b15f6
    j  java.lang.ClassLoader$NativeLibrary.load(Ljava/lang/String;)V+0
    j  java.lang.ClassLoader.loadLibrary0(Ljava/lang/Class;Ljava/io/File;)Z+300
    j  java.lang.ClassLoader.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)V+268
    j  java.lang.Runtime.loadLibrary0(Ljava/lang/Class;Ljava/lang/String;)V+54
    j  java.lang.System.loadLibrary(Ljava/lang/String;)V+7
    j  org.tango.JaVaSTyle.JVSTLibrary.<clinit>()V+10
    v  ~StubRoutines::call_stub
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j  java.lang.ClassLoader$NativeLibrary.load(Ljava/lang/String;)V+0
    j  java.lang.ClassLoader.loadLibrary0(Ljava/lang/Class;Ljava/io/File;)Z+300
    j  java.lang.ClassLoader.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)V+268
    j  java.lang.Runtime.loadLibrary0(Ljava/lang/Class;Ljava/lang/String;)V+54
    j  java.lang.System.loadLibrary(Ljava/lang/String;)V+7
    j  org.tango.JaVaSTyle.JVSTLibrary.<clinit>()V+10
    v  ~StubRoutines::call_stub
    j  org.tango.JaVaSTyle.Main.main([Ljava/lang/String;)V+3
    v  ~StubRoutines::call_stub
    ---------------  P R O C E S S  ---------------
    Java Threads: ( => current thread )
      0x02a6d800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=4752]
      0x02a68c00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=4472]
      0x02a67800 JavaThread "Attach Listener" daemon [_thread_blocked, id=2016]
      0x02a66c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=4328]
      0x02a62400 JavaThread "Finalizer" daemon [_thread_blocked, id=5072]
      0x02a5dc00 JavaThread "Reference Handler" daemon [_thread_blocked, id=5552]
    =>0x00297000 JavaThread "main" [_thread_in_native, id=6012]
    Other Threads:
      0x02a5cc00 VMThread [id=4660]
      0x02a6f000 WatcherThread [id=3864]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation   total 960K, used 199K [0x22970000, 0x22a70000, 0x22e50000)
      eden space 896K,  22% used [0x22970000, 0x229a1ff0, 0x22a50000)
      from space 64K,   0% used [0x22a50000, 0x22a50000, 0x22a60000)
      to   space 64K,   0% used [0x22a60000, 0x22a60000, 0x22a70000)
    tenured generation   total 4096K, used 0K [0x22e50000, 0x23250000, 0x26970000)
       the space 4096K,   0% used [0x22e50000, 0x22e50000, 0x22e50200, 0x23250000)
    compacting perm gen  total 12288K, used 23K [0x26970000, 0x27570000, 0x2a970000)
       the space 12288K,   0% used [0x26970000, 0x26975c48, 0x26975e00, 0x27570000)
        ro space 8192K,  66% used [0x2a970000, 0x2aebf860, 0x2aebfa00, 0x2b170000)
        rw space 12288K,  52% used [0x2b170000, 0x2b7bf078, 0x2b7bf200, 0x2bd70000)
    Dynamic libraries:
    0x00400000 - 0x00423000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\java.exe
    0x7c900000 - 0x7c9b0000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f5000      C:\WINDOWS\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f02000      C:\WINDOWS\system32\RPCRT4.dll
    0x77fe0000 - 0x77ff1000      C:\WINDOWS\system32\Secur32.dll
    0x7c340000 - 0x7c396000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\msvcr71.dll
    0x6d870000 - 0x6daba000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\client\jvm.dll
    0x7e410000 - 0x7e4a0000      C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f57000      C:\WINDOWS\system32\GDI32.dll
    0x76b40000 - 0x76b6d000      C:\WINDOWS\system32\WINMM.dll
    0x76390000 - 0x763ad000      C:\WINDOWS\system32\IMM32.DLL
    0x5cd70000 - 0x5cd77000      C:\WINDOWS\system32\serwvdrv.dll
    0x5b0a0000 - 0x5b0a7000      C:\WINDOWS\system32\umdmxfrm.dll
    0x003a0000 - 0x003ad000      C:\WINDOWS\system32\myokent.dll
    0x6d3c0000 - 0x6d3c8000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\hpi.dll
    0x76bf0000 - 0x76bfb000      C:\WINDOWS\system32\PSAPI.DLL
    0x6d820000 - 0x6d82c000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\verify.dll
    0x6d460000 - 0x6d47f000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\java.dll
    0x6d860000 - 0x6d86f000      C:\Program Files\Java\jdk1.6.0_03\jre\bin\zip.dll
    0x10000000 - 0x10018000      D:\NetbeansWorkspace\myJavaStyle\JaVaSTyle.dll
    0x79170000 - 0x79196000      C:\WINDOWS\system32\mscoree.dll
    0x10480000 - 0x1053c000      C:\WINDOWS\system32\MSVCP71D.dll
    0x10200000 - 0x10287000      C:\WINDOWS\system32\MSVCR71D.dll
    0x77f60000 - 0x77fd6000      C:\WINDOWS\system32\SHLWAPI.dll
    0x77c10000 - 0x77c68000      C:\WINDOWS\system32\msvcrt.dll
    0x791b0000 - 0x79412000      C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorwks.dll
    0x79040000 - 0x79085000      C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusion.dll
    0x7c9c0000 - 0x7d1d6000      C:\WINDOWS\system32\SHELL32.dll
    0x773d0000 - 0x774d3000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
    0x5d090000 - 0x5d12a000      C:\WINDOWS\system32\comctl32.dll
    0x79780000 - 0x79980000      c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll
    0x774e0000 - 0x7761d000      C:\WINDOWS\system32\ole32.dll
    0x79430000 - 0x7947c000      C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\MSCORJIT.DLL
    0x51a70000 - 0x51af0000      C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\diasymreader.dll
    VM Arguments:
    java_command: org.tango.JaVaSTyle.Main
    Launcher Type: SUN_STANDARD
    Environment Variables:
    CLASSPATH=.;C:\jdk1.5.0_09\bin;C:\Program Files\Java\jre1.6.0_03\lib\ext\QTJava.zip
    PATH=C:\Program Files\MiKTeX 2.7\miktex\bin;c:\program files\imagemagick-6.3.7-q16;C:\texmf\miktex\bin;C:\Program Files\ActiveState Komodo IDE 4.2\;C:\Program Files\Autodesk\Maya2008\bin;C:\Python25\;C:\Program Files\PC Connectivity Solution\;C:\ORANT\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\GPS Pathfinder Office 3.00;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;C:\Program Files\Common Files\Motorola\Toolbox;C:\PROGRA~1\COMMON~1\Motorola\Toolbox;C:\Program Files\Novell\ZENworks\;C:\Program Files\Novell\SecureLogin;C:\Program Files\Smart Projects\IsoBuster;C:\Latex\MikTeX\V2.10;C:\PROGRA~1\CA\Common\SCANEN~1;C:\Program Files\CA\Common\ScanEngine;C:\Program Files\CA\SharedComponents\CAUpdate\;C:\Program Files\CA\SharedComponents\ThirdParty\;C:\Program Files\CA\SharedComponents\SubscriptionLicense\;C:\PROGRA~1\CA\ETRUST~1;C:\Program Files\QuickTime\QTSystem\;C:\cygwin\bin;C:\Program Files\Tcl\bin;D:\netbeansWorkspace\myJavaStyle;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;C:\Program Files\Csound\bin;C:\Program Files\CVSNT\
    USERNAME=hectorj
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 13 Stepping 8, GenuineIntel
    ---------------  S Y S T E M  ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 1 (1 cores per cpu, 1 threads per core) family 6 model 13 stepping 8, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 1047920k(270244k free), swap 2520456k(1654520k free)
    vm_info: Java HotSpot(TM) Client VM (1.6.0_03-b05) for windows-x86, built on Sep 24 2007 22:24:33 by "java_re" with unknown MS VC++:1310

    Something is wrong with the library.
    Staring at java code will not help you figure that out.
    Maybe it isn't intended to be loaded in java but instead it loads java itself?
    If not then write a C/C++ basic app that links that dll in and see if you can at least get it to start.

  • Fatal error using C++ native library

    Hi everyone,
    I'm currently developing a JNI native library in C++ in order to use an original library from a third vendor. I'm trying to perform a very simple operation, just calling a concrete method from the original library from a Java sample application.
    The same test in C++ is working fine, so I assume the vendor library is working correctly. But if I perform exactly the same code from within my native library using JNI, it give a crash like this:
    # A fatal error has been detected by the Java Runtime Environment:
    # SIGSEGV (0xb) at pc=0x000000371c880580, pid=17095, tid=1077307712
    # JRE version: 6.0_27-b07
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (20.2-b06 mixed mode linux-amd64 compressed oops)
    # Problematic frame:
    # C [libc.so.6+0x80580] wchar_t+0x0
    I think this is telling me that there was an error in the native library, more concrete in the libc.so library which is part of the GNU C++ compiler used to generate the native library. I don't know what the "wchar_t" wants to mean, since I know that is a primitive type for wide chars. It might be that the error is related to the use of this primitive within the vendor library?
    The compilation options that I'm using are the following:
    #CCFLAGS = -shared -Wl,-soname,${TARGET} -lstdc++ -ldl -lpthread -fopenmp
    CCFLAGS = -shared -Wl,-soname,${TARGET} -ldl -fopenmp
    #FPFLAGS = -DLINUX -DGX_NAMESPACES -fPIC -fshort-wchar
    #FPFLAGS = -fPIC -fshort-wchar
    FPFLAGS = -fPIC
    ${TARGET} : FPEnginePulnixImpl.o
         ${CC} -o ${TARGET} FPEnginePulnixImpl.o ${CCFLAGS} -L${JAI_DIR} -lVrs
    FPEnginePulnixImpl.o :
         ${CC} -o FPEnginePulnixImpl.o -I"${JDK_INCLUDES}" -I"${JDK_INCLUDES_LINUX}" -I"../jni/include" -I"${JAI_INCLUDES}" ${FPFLAGS} -c ../src/main/C++/FPEnginePulnixImpl.cc
    I played around with those ones, without success so far. I debugged the native code and I know the crash is coming when I call a constructor of a C++ class of the vendor library. Is there something I could do about this? BTW, on Windows is working fine, but indeed, the vendor library is a different one. I've got the impression that there's something in the JNI wrapper of the JDK6 that I'm using that makes the vendor library to crash, either that or something wrong with the compilation of my native library.
    Any help will be welcome.
    Thanks and regards,
    Luis

    Most often errors are caused by
    1. Pointer errors
    2. Api misuse, such as using something in the wrong order (which actually leads to a pointer problem but it not really the cause.)
    Keep in mind that the fact that code runs 'ok' on one system is NOT a safe indicator that the above problems do not exist.
    If it is not that then if the binaries have incompatible build properties then that can cause problems.

  • Native library NOT thread safe - how to use it via JNI?

    Hello,
    has anybody ever tried to use a native library from JNI, when the library is not thread safe?
    The library (Windows DLL) was up to now used in an MFC App and thus was only used by one user - that meant one thread - at a time.
    Now we would like to use the library like a "server": many Java clients connect the same time to the library via JNI. That would mean each client makes its calls to the library in its own thread. Because the library is not thread safe, this would cause problems.
    Now we discussed to load the library several times - separately for each client (for each thread).
    Is this possible at all? How can we do that?
    And do you think we can solve the problem in this way?
    Are there other ways to use the library, though it is not thread safe?
    Any ideas welcome.
    Thanks for any contributions to the discussion, Ina

    (1)
    has anybody ever tried to use a native library from
    JNI, when the library (Windows DLL) is not thread safe?
    Now we want many Java clients.
    That would mean each client makes its calls
    to the library in its own thread. Because the library
    is not thread safe, this would cause problems.Right. And therefore you have to encapsulate the DLL behind a properly synchronized interface class.
    Now the details of how you have to do that depends: (a) does the DLL contain state information other than TLS? (b) do you know which methods are not thread-safe?
    Depending on (a), (b) two extremes are both possible:
    One extreme would be to get an instance of the interface to the DLL from a factory method you'll have to write, where the factory method will block until it can give you "the DLL". Every client thread would obtain "the DLL", then use it, then release it. That would make the whole thing a "client-driven" "dedicated" server. If a client forgets to release the DLL, everybody else is going to be locked out. :-(
    The other extreme would be just to mirror the DLL methods, and mark the relevant ones as synchronized. That should be doable if (a) is false, and (b) is true.
    (2)
    Now we discussed to load the library several times -
    separately for each client (for each thread).
    Is this possible at all? How can we do that?
    And do you think we can solve the problem in this
    way?The DLL is going to be mapped into the process address space on first usage. More Java threads just means adding more references to the same DLL instance.
    That would not result in thread-safe behavior.

  • External library inside Air native extension for android

    Hello everyone,
    First, I've been looking throught this topics
    - http://stackoverflow.com/questions/7732742/air-3-native-extensions-for-android-can-i-how-t o-include-3rd-party-libraries
    - http://stackoverflow.com/questions/24626380/how-to-include-additional-jar-in-android-nativ e-extension-for-adobe-air-mobile
    I got a similar problem. But not exactly the same. And the solution didn't worked for me :(.
    First of all, I don't have any visible error.
    -I can easily talk between java and action script.
    -The gateway is set without problems.
    My problem comes when, from my java-side-part of the extension, I try to call a 3rd party library. This library is (and I think this is where I do something  wrong) linked to my project as an external lib, in .jar format.
    So when I make a call to 3rd party library, it just doesn't print anything. Neither on the adobe part or on the java part. The logs that are before my call are printed but not the ones after.
    I tried different solutions that are:
    -Taking all compiled class files of my external lib and add it inside the main native extension jar [link1]
    same result (no errors)
    -including the 3rd party jar inside the ANE by adding a dependence file that require the .jar [link2]
    with this method i got this error that I don't get
    > aapt tool failed:ERROR: input directory '--auto-add-overlay' does not exist
    My third party library also include's itself some external .jars so do I need to include every jars inside the same packaged jar?
    I can see that a lot of people are dealing with issues like that so my question would be:
    What is the best way to include 3rd party library inside android AIR Native Extension ?.
    For information, here is what I do to create the ANE
    >adt -package -target ane AirInfinitGameANE\AirInfinitGame.ane AirInfinitGameASLib\src\extension.xml -swc AirInfinitGameANE\AirInfinitGameASLib.swc -platform Android-ARM -C AirInfinitGameLib .
    - AirInfinitGameASLib: just the folder with the actionScript part and the config xml file
    - AirInfinitGameANE: folder in the one that will be the native extension
    - AirInfinitGameLib: the eclipse java project. I need to put in that folder the airInfinitgamelib.jar(extension jar) and the library.swf (from the swc file) in order to beeing able to compile the ANE.
    Here it is ! Thanks a lot for thoses who'll read me.

    I had the same problem recently and fixed it as follows;
    - Extract the 3rd party jar file and copy the class folder (usually named "com" in the root of the jar) to my project.
    - Under Project Properties -> Java Build Path -> Libraries click "Add class folder" and add the "com" folder you just extracted from your .jar.
    Hope this helps

  • Apache Tomcat Native library

    Hi All,
    I got the following error message in catalina.log file while accessing on in my website at online
    1. My Project is created using Netbeans with tomcat 5.5.23 and jdk_1.5.0_10
    2. I am created "admin" folder in my project with as myproj --> "admin"
    3. myproj --> web-inf/classes/all packages with its realated folder names.
    4. Please read this , the out of "admin " folder have some jsp files that are use the <jsp:useBean> property so it call correctly with specified classes function in web-inf folder classes package
    5. Note: But the inside of "admin" folder have some jsp files while executing these files all the files are correctly running on my localsystem welled.
    6. But the same files are uploaded and checking on my site this will throw the exception as follows
    the useBean class attribute in invalid and also the catalina.log file containg the following message,
    7. But all the files with it's corresponding places in website those files are also executing correctly but not in after uploading online please help to reply to bring the solution.
    Dec 8, 2008 12:48:06 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.5.0_10/jre/lib/i386/server:/usr/java/jdk1.5.0_10/jre/lib/i386:/usr/java/jdk1.5.0_10/jre/../lib/i386
    Dec 8, 2008 12:48:06 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 580 ms
    Dec 8, 2008 12:48:06 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Dec 8, 2008 12:48:06 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
    Dec 8, 2008 12:48:06 AM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Dec 8, 2008 12:48:08 AM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    Dec 8, 2008 12:48:08 AM org.apache.struts.tiles.TilesPlugin initDefinitionsFactory
    INFO: Tiles definition factory loaded for module ''.
    Dec 8, 2008 12:48:08 AM org.apache.struts.validator.ValidatorPlugIn initResources
    INFO: Loading validation rules file from '/WEB-INF/validator-rules.xml'
    Dec 8, 2008 12:48:08 AM org.apache.struts.validator.ValidatorPlugIn initResources
    INFO: Loading validation rules file from '/WEB-INF/validation.xml'
    Dec 8, 2008 12:48:08 AM org.apache.axis.configuration.EngineConfigurationFactoryServlet getServerEngineConfig
    SEVERE: Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd
    Dec 8, 2008 12:48:09 AM org.apache.axis.configuration.EngineConfigurationFactoryServlet getServerEngineConfig
    SEVERE: Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd
    Dec 8, 2008 12:48:09 AM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:21109
    Dec 8, 2008 12:48:09 AM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/45 config=null
    Dec 8, 2008 12:48:09 AM org.apache.catalina.storeconfig.StoreLoader load
    INFO: Find registry server-registry.xml at classpath resource
    Dec 8, 2008 12:48:09 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 3085 ms
    Dec 8, 2008 12:49:58 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: /TestBean.jsp(7,3) The value for the useBean class attribute sam.model.Test is invalid.
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
         at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1175)
         at org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1117)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2164)
         at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2214)
         at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2220)
         at org.apache.jasper.compiler.Node$Root.accept(Node.java:457)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2164)
         at org.apache.jasper.compiler.Generator.generate(Generator.java:3322)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:199)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:296)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
         at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
         at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
         at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
         at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
         at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
         at java.lang.Thread.run(Thread.java:595)
    Dec 8, 2008 12:50:08 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: /TestBean.jsp(7,3) The value for the useBean class attribute sam.model.Test is invalid.
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
         at org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1175)
         at org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1117)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2164)
         at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2214)
         at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2220)
         at org.apache.jasper.compiler.Node$Root.accept(Node.java:457)
         at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2164)
         at org.apache.jasper.compiler.Generator.generate(Generator.java:3322)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:199)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:296)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
         at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
         at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
         at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773)
         at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
         at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
         at java.lang.Thread.run(Thread.java:595)

    vijay_raga wrote:
    SEVERE: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: /TestBean.jsp(7,3) The value for the useBean class attribute sam.model.Test is invalid.It means that either the mentioned class cannot be found (i.e. missing in classpath), or that its construction (i.e. new Test()) failed.

  • Problem :  Native Library already loaded in another classloader

    I created a shared library HaspKeyAPI.dll by using JNI and add path to Java class library. I need to call native functions in my servletAction class to check some information in a key. Sometimes not always, I met �java.lang.UnsatisfiedLinkError: Native Library C:\eclipse\workspace\HaspKey\SharedLib\HaspKeyAPI.dll already loaded in another classloader� problem. I have to restart tomcat server then to restart my web app.
    Does anyone know how to fix it?
    Thank you in advance!
    ////////////////////////////////////my native function class, a singleton class////////////////////////////////
    package haspkey.api;
    import java.util.Collection;
    import java.util.Vector;
    import haspkey.HardwareSecurityKey;
    Public class HaspKeyAPI {
    Public static final int KEYEXIST = 1;
    //A Singleton Class
    private static HaspKeyAPI haspKeyAPI;
    private HaspKeyAPI()
    public static HaspKeyAPI getSingletonObject()
    if ( haspKeyAPI== null)
    haspKeyAPI = new HaspKeyAPI();          
    return haspKeyAPI;
    public Object clone()
         throws CloneNotSupportedException
    throw new CloneNotSupportedException();
    /**********use native functions to call hasp C API***********/
    public native int keyPresent(int password1, int password2);
    public native int getId(int password1, int password2);
    public native void readBlock(int startMemoryLocation, int size,
    byte[] block, int password1, int password2);
    public native void writeBlock(int startMemoryLocation,int size, byte[] block, int password1,
    int password2);
    public native boolean decodeData(int size, byte[] block, int password1,
    int password2);
    public native boolean encodeData(int size, byte[] block, int password1,
    int password2);
    static {
    System.loadLibrary("HaspKeyAPI");
    private int getPrivMachineSpeed(boolean decrypt, int pass1, int pass2, String MLOCRTypeCode){
    byte[] block = new byte[8];
    int privMachineSpeed = 0;
    boolean isNumeric = true;;
    readKeyMemory(40,8,block, decrypt, pass1, pass2);
    if(block.length!=8){
    return -1;
    }else{
    String s = new String(block);
    for(int n=0; n<3; n++){
    if(s.charAt(n)<48 || s.charAt(n)>57){
    isNumeric = false;
    if(isNumeric){
    privMachineSpeed = Integer.parseInt(s.substring(0,3));
    return privMachineSpeed;
    public HardwareSecurityKey getHardwareSecurityKey(boolean decrypt, int pass1, int pass2, String AuthorizationCodes,String MLOCRTypeCode){
    HardwareSecurityKey key = new HardwareSecurityKey();
    if(keyPresent(pass1,pass2)==KEYEXIST){
    key.setPrivKeyID(getId(pass1, pass2));
    key.setPrivMachineSpeed(getPrivMachineSpeed(true, pass1,pass2, MLOCRTypeCode));
    }else{
    return null;
    /////////////////////////////// a class include some static final information to call the native function///////////////
    import com.bowebellhowell.haspkey.api.HaspKeyAPI;
    import com.bowebellhowell.winsort.vo.haspkey.HardwareSecurityKey;
    public class HaspKey{
    public static final String MLOCRTypeCode ="mmmmmmmmmmmmmmm";
    public static final String AuthorizationCodes = "bbbbbbbbbbbbbbbb";
    public static final int p1 = 0;
    public static final int p2 = 0;
    public static HardwareSecurityKey getHardwareSecurityKey(){
    HaspKeyAPI key = HaspKeyAPI.getSingletonObject();
    return key.getHardwareSecurityKey(true,p1,p2,AuthorizationCodes,MLOCRTypeCode);
    /////////////////////////////////// a servlet to call native function///////////////////////////////////
    public class LogonAction extends Action {
         public ActionForward execute(
              ActionMapping mapping,
              ActionForm form,
              HttpServletRequest request,
              HttpServletResponse response)
              throws Exception {
              int n = HaspKey.isKeyPresent();
              if(n!=1){
              if(n==2){
              message = "KeyDriverNotMatch";          
              }else if(n==3){
              message = "KeyOldModel";
              }else if(n==4){
              message = "KeyPasswordNotMatch";
              }else if(n==-1){
              message = "keyNotExist";
              request.getSession().setAttribute("message",message);
    java.lang.UnsatisfiedLinkError: Native Library C:\eclipse\workspace\HaspKey\SharedLib\HaspKeyAPI.dll already loaded in another classloader
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1551)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1511)
    at java.lang.Runtime.loadLibrary0(Runtime.java:788)
    at java.lang.System.loadLibrary(System.java:834)
    at haspkey.api.HaspKeyAPI.<clinit>(HaspKeyAPI.java:76)
    at util.HaspKey.isKeyPresent(HaspKey.java:35)
    at LogonAction (LogonAction .java:65)

    Hi EveryBody:
    i working in 2 servlets, these servlets import a login.jar library and login.jar call to Login.dll (a native Library)
    then. when i start second servlet i have this message
    java.lang.UnsatisfiedLinkError: Native Library dllLogin.dll already loaded in another classloader
    i read about class loader and i know about a only one load for native library but i don't know how resolve this exception because both servlets need dllLogin.dll to validate the user
    please anybody knows how or have any idea?
    Kind Regards
    Edson
    --sorry i know. my english is very bad                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Using JNI with weblogic JSP & Servlets

    I want to use native libraries from JSP and Servlets.
              Everything works fine befire redeploying.
              After redeploying there is an error:
              Servlet failed with Exception
              java.lang.UnsatisfiedLinkError: Native Library D:\WINNT\system32\XXXX.dll
              already loaded in another classloader
              at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1346)
              at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306)
              at java.lang.Runtime.loadLibrary0(Runtime.java:749)
              at java.lang.System.loadLibrary(System.java:820)
              at HelloWorld.<clinit>(HelloWorld.java:9)
              at NativeTestServlet.doGet(NativeTestServlet.java:31)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :208)
              at
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              ntext.java:1127)
              at
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              :1529)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              Can anybody solve it?
              Best wishes, Oleg.
              

    Java will not allow us to reload any class that is dependent on a native
              library. I suggest that any classes that depend on native code should be
              put in the system classpath. If you change these classes or the native
              library you will need to restart your server.
              Sam
              "Jennifer Yin" <[email protected]> wrote in message
              news:[email protected]...
              > Oleg-
              >
              > I'm having the exact same problem and was wondering how you fixed it. I
              ran
              > javah -jni <classname> to verify the correct method call and have also
              verified
              > that the library file is included in the system path.
              >
              > Any other suggestions?
              >
              > Jennifer
              >
              > Oleg wrote:
              >
              > > I want to use native libraries from JSP and Servlets.
              > > Everything works fine befire redeploying.
              > > After redeploying there is an error:
              > >
              > > Servlet failed with Exception
              > > java.lang.UnsatisfiedLinkError: Native Library
              D:\WINNT\system32\XXXX.dll
              > > already loaded in another classloader
              > > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1346)
              > > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306)
              > > at java.lang.Runtime.loadLibrary0(Runtime.java:749)
              > > at java.lang.System.loadLibrary(System.java:820)
              > > at HelloWorld.<clinit>(HelloWorld.java:9)
              > > at NativeTestServlet.doGet(NativeTestServlet.java:31)
              > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
              > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              > > at
              > >
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              > > :208)
              > > at
              > >
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              > > ntext.java:1127)
              > > at
              > >
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              > > :1529)
              > > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              > > >
              > >
              > > Can anybody solve it?
              > >
              > > Best wishes, Oleg.
              >
              

  • Can I create more than one instance of a native library?

    Hello all,
    I am using Java to access a Win32 DLL with JNI. Everything is working fine, but I have several threads using the same instance of the native library because it is loaded "statically" in the Java class which uses it, and I suspect I am getting a bottle-neck at the native library.
    Does anyone know if there is any way to load more than one "instance" of a native library?
    The use of System.loadLibrary() would indicate not, and my (limited) knowledge of the Windows environment would tell me that a "shared" library only has on instance. (confirm anyone?)
    I need to find a way around this bottle-neck issue... (and "no", before anyone suggests it, I can't ditch Windows!)
    Thanks.

    I am not sure about the behaviour of the dll as it's not mine. It's a COM DLL which I have "wrapped" in a standard windows DLL so I can expose the JNI methods. I assume because it's COM that it IS reentrant, but I am a bit of a novice when it comes to Windows and COM. I didn't install the COMponent either, it was installed as part of another application. (It's an antivirus COM dll that is part of an AV application)
    Thanks for your help though, I think I will just have to live with it.

  • How to use a native library (.so) in EJB

    Hi,
    I know how to package a native library into a connector in iAS. But I don't quite know how to use it. Suppose I provide a wrapper java class for the native library, can I use the java class directly in my EJB (since the classloader of the RA is the parent of the EJB classloader) or I have to issue an outbound call?
    Also, if I package the native library into a RA (standalone), iAS will automatically load it so in my wrapper java class, I don't have to call System.loadLibrary(...). Correct?
    Thanks,
    Haitao

    Thanks, Russ. My older Mac Pro is a 2,1 -- I think I only missed by a few months in buying one that would run Mavericks (64 bit EFI).  I do intend to buy a "trashcan" Mac Pro but not just yet.
    As for updating projects — that's my issue, I think. The Mac Pro and the laptop are networked so I can be working on my laptop and go to the Mac Pro and open the Final Cut Pro that is resident on that computer. What is odd is that it doesn't open any of the projects that normally open up with I start up FCP X on the Mac Pro.
    I frequently work inside the house on my laptop running programs that are on my Mac Pro outside in my office — usually no problem at all with Adobe applications. 
    FCP X won't let me open a project by clicking on the project — it insists that I "Open projects from within FCP X" but they won't open that way.  This what is odd — that it won't let me open projects even thought they are fully native to that version of FCP and are even on the same hard drive on the Mac Pro.

  • Native library working in Eclipse but not in command line ...

    I was working on a Nutch project combing CMeCab with the analyzer.
    It uses:
    System.load('CMeCab');
    where the problem occured. I have the file libCMeCab.so in /usr/lib/ and it was working fine inside eclipse.
    But when I complie with ant (by the way I'm not familiar with this great tool, but followed the easy tutorial), and then run everything inside terminal like normal Nutch project. Everything was fine until the index process which uses native library CMeCab to analyze.
    The error was:
    java.io.IOException: Job failed!
    And in the hadoop.log in detail:
    java.lang.UnsatisfiedLinkError: no CMeCab in java.library.path
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738)
         at java.lang.Runtime.loadLibrary0(Runtime.java:823)
         at java.lang.System.loadLibrary(System.java:1028)
    I didn't have runtime -D option in Eclipse run configuration for library path, and didn't know what was the difference that's causing the trouble. I googled trying hard, but most of the MeCab documentations is in Japanese and merely had the problem I had.
    Please help me.
    Thanks in advance.

    Hello,
    I was working on a Nutch project combing CMeCab with the analyzer.No idea what Nutch and CMeCab are (but apparently this latter has unkempt hair ;o).
    I didn't have runtime -D option in Eclipse run configuration for library path, and didn't know what was the difference that's causing the trouble.I won't know either why it works in Eclipse, but have you tried adding -Djava.library.path=/usr/lib to the command line, to check how it works? If it works, would this be a problem to use this configuration?
    Regards,
    J.

  • Error: native library oljdbc40.dll already loaded in another classloader

    Hi, we're using Oracle 8iLite in combination with Tomcat (on WinNT4.0) to run servlets accessing our OLite db. We use a deployed db (Deployment tool: PolUtil.exe) and pure JDBC connections.
    When starting tomcat, the servlet is automatically initialized (exactly once!). It comes to the point, where a database connection is to be established. At this point, we get the following error message:
    Native Library E:\MyServer\DB\BIN\oljdbc40.dll already loaded in another classloader
    The strange thing is, that this error only occurs on some machines. There are no other java apps running.
    Where does this error come from, and how can someone avoid this seemingly arbitrary error?
    Thanks in advance for your time, Holger
    null

    You are having some problems with that Oracle Driver and Orion.
    Do you have any JSP at your Installation that work with Oracle?
    Orion needs to know where that Diver is located is that Driver in
    some package that is in Orion's Class Path?

  • Weblogic 8.1.6 Unable to load native library: libjvm.so

    hi,
    i have installed weblogic 8.1 SP6 on my box and when im trying to deploy new application i get errors comaplining about some java libraries.
    when i link them to the /usr/lib directory it's working but it's not a solution couse i need also weblogic 9.2 server running on that box.
    i tried to export LD_LIBRARY_PATH with path to the jdk142 that was installed with weblogic server by myself but also without any success.
    i checked commEnv.sh file and found that path to java libraries are not set properly. added those paths to the LD_LIBRARY_PATH but after running WLS when i try to echo ${LD_LIBRARY_PATH} i get no results.
    maybe someone had such problems, and knows how to resolv them.
    my system is Debian Linux/stable
    WL_HOME=/home/bea/bea/weblogic81
    JAVA_HOME=/home/bea/bea/jdk142_11
    added to commEnv.sh:
    LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/${JAVA_HOME}/jre/lib:${JAVA_HOME}/jre/lib/i386:${JAVA_HOME}/jre/lib/i386/server:${JAVA_HOME}/jre/lib/i386/client
    thanks
    below is a log for this error:
    CUT HERE
    <Error> <HTTP> <brain> <blsBepi> <ExecuteThread: '14' for queue: 'weblogic.kernel.Default'>
    weblogic.servlet.jsp.CompilationException: Compilation of /home/bea/bepi/blsBepiDomain/blsBepi/.wlnotdelete/extract/blsBepi_bepi
    Unable to load native library: libjvm.so: cannot open shared object file: No such file or directory
    at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:478)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:246)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:196)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:598)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:406)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:526)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7047)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    Caused by: java.io.IOException: Compiler failed executable.exec
    at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:470)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
    at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:321)
    at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:451)
    ... 13 more
    -- CUT HERE --
    PS. sorry for my english and is this post is not in the place where it sould be ;-)

    SOLUTION:
    set the absolute path to javac in General Section of the configuration
    make sure that you j2sdk1.4.2 is accessible by all uids that managed servers are running at.
    if that wont help try to put your J2SDK in /usr/local/java.
    and reconfigure your administration server.
    i hope that will help you all that have same problems. cheers ;-)

  • Creating an air app as a native library

    Is there a way to build a swf with adobe air that will create a native library(.a,.so,dll, etc) so that I can load it from inside another application?

    Hi Sean,
    Unfortunately, I don't have an answer to this question, but I'm hoping others in the community can help out.  Running AIR as a service has been a popular request, but not something we officially support at this time.  There have been a couple of feature requests made for this that I'd encourage you and others interested to go vote on:
    Run AIR app as a service on a server machine without user logon on the machine
    Register and run as Services on OS
    Googling "Error 1053: The service did not respond to the start or control request in a timely fashion" returns quite a few hits, with responses ranging from increasing time out lengths, changing logon account types, and many other service property tweaks.
    Please let us know if your able to get this to work and hopefully others can contribute their experiences as well.
    Chris

  • Include native library with webservice deployement

    Hi,
    I wrote a webservice which i'm deploying to tomcat server. the methods of this webservice require a native library (.so) to work correctly.
    I'm not sure where can i put this .so library so my deployed java webservice will find it when running in tomcat server?
    also In netbeans IDE version 6.7 the IDE doesn't find any native library and i can't figure out how to tell netbeans where to find these native libraries.
    any help where i should put the .so file within my webservice deployment ?
    thanks.

    gimbal2 wrote:
    you cannot deploy a native library just like that; when starting up Java has to be able to find this library, meaning it has to be in a known location. Basically the so will have to be in one of the following:
    - on the system path
    - in the same directory where java is invoked (you cannot be sure of this directory when the server is the one starting java, so forget about this one)
    - passed as a command line parameter to the JVM, which will be done in the server startup script (-Djava.library.path=FOLDER_WITH_NATIVE_LIBRARIES)
    I would say that needing a native library in a web project is a bad idea (tm).yes i'm too annoyed by the fact a webservice needs a OS library .not logical approach as webservices tends not to rely on underlying OS.
    but that's what i was asked to do ! i have no choice.
    your answer scares me . does this means in general webservices don't use OS native libraries?
    will it be good Idea to move native lib logic to webservice client?
    if i write a webservice servlet client ,where should i put the native library in this case (webservice servlet client deployed in tomcat server)?

Maybe you are looking for

  • How to highlight the first row of a table

    When entering the form, how do I get the first row of the table to be highlighted when it has not been selected yet? There is already data in the table. Thanks. Allyson

  • Issues with Archiving object MM_EKKO

    Hi, I am trying to archive few Purchasing documents on R3 4.7, The archiving write job fails with the error "There is no entry for instance 000000000096197571 in either INOB or IBase" Please help. Regards, Deepak

  • How to know the extension of the file stored in BLOB

    Hi Frens I've a BLOB column in which signatures are stored.Now i am extracting the signatures which are stored in the server.The extension of the file is .bmp as I'm appending it while extracting the file.Is there a way to know what is the file forma

  • Cant open my web..nokia 6120c

    my web cnt open,,,if i wanna conect to the internet i must click on my web so it can open,i do that but it failes,,can any one assist me there please,,,i cnt log onto the internet just cause of that,,,my email adress is please please please,i thank y

  • Requirement for cells in excel

    Hi All, I have a requirment, how we can achieve this? 1. We have to convert pdf file to xml (we have achieved this using Perl script). 2. Now in the excel sheet we have data from which we have got from PDF..But the data which is available in excel sh