Can't find FeedDownloadHook implmentation Class

Hi I have created a Download hook for the data feeder by implmenting FeedDownloadHook the problem is that the class is not seen how can I configure to solve this problem the thrown exception is:
java.lang.ClassNotFoundException:
java.lang.ClassNotFoundException: com.raya.wireless.GeneralDownloadHook
     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Class.java:195)
     at oracle.panama.util.CommonUtils.loadClass(Unknown Source)
     at oracle.panama.util.CommonUtils.getClassInstance(Unknown Source)
     at oracle.panama.feed.engine.FeedConfigImpl.getFeedDownloadHook(Unknown Source)
     at oracle.panama.feed.engine.FeedDataSourceBase.initialize(Unknown Source)
     at oracle.panama.feed.engine.BatchDataSource.initialize(Unknown Source)
     at oracle.panama.feed.engine.HttpDataSource.initialize(Unknown Source)
     at oracle.panama.feed.engine.FeedConfigImpl.createAndInitialize(Unknown Source)
     at oracle.panama.feed.engine.FeedConfigImpl.getDataSource(Unknown Source)
     at oracle.panama.feed.engine.FeedAgentImpl.initialize(Unknown Source)
     at oracle.panama.feed.engine.FeedAgentManagerImpl.initialize(Unknown Source)
     at oracle.panama.feed.engine.DataFeedServer.createFeed(Unknown Source)
     at oracle.panama.feed.engine.DataFeedServer.createFeeds(Unknown Source)
     at oracle.panama.feed.engine.DataFeedServer.init(Unknown Source)
     at oracle.panama.sysmgmt.server.SMAgent.initForPanamaServer(Unknown Source)
     at oracle.panama.sysmgmt.server.PTGProcessManager.getSMAgentSingletonForPanamaServer(Unknown Source)
     at oracle.panama.sysmgmt.server.PanamaServer.init(Unknown Source)
     at oracle.panama.sysmgmt.server.PanamaServer.main(Unknown Source)
Plase advice

Hi,
You will need to add your class (com.raya.wireless.GeneralDownloadHook) to the CLASSPATH of the OC4J_Wireless instance.
The way I usually do this is:
1) Package your class in a .jar file and copy the .jar file to IAS_HOME\wireless\lib or any other convenient location
2) Add the .jar file as a library entry in IAS_HOME/j2ee/OC4J_Wireless/config/application.xml
For instance:
<library path="d:\oracle\ias902\wireless/lib/GeneralDownloadHook.jar"/>
Hope that helps,
Phil Darringer

Similar Messages

  • ERROR:can't find native registration class while J2EE Engine startup

    Hi
    Iam trying to integrate a Java Profiler application which contains a native library(namely ProfilerDLL.dll) with the J2EE Server.Here are the steps which i had followed
    1. Added the following Java option through the config tool of WebAS.<b> -XrunProfilerDLL</b>.
    2.Restarted the server.
    Server does not starup and throws a error with exit
    code -1 .
    Here is the log
    JStartupIReadSection: read node properties [ID7217950]
    -> node name       : server0
    -> node type       : server
    -> java path       : C:\j2sdk1.4.2_04
    -> java parameters : -Djava.security.policy=./java.policy -Djava.security.egd=file:/dev/urandom -Dorg.omg.CORBA.ORBClass=com.sap.engine.system.ORBProxy -Dorg.omg.CORBA.ORBSingletonClass=com.sap.engine.system.ORBSingletonProxy -Djavax.rmi.CORBA.PortableRemoteObjectClass=com.sap.engine.system.PortableRemoteObjectProxy -Djava.library.path=/usr/sap/J2E/JC00/j2ee/os_libs -XX:NewSize=32m -XX:MaxNewSize=64m -XX:NewRatio=3 -XX:+DisableExplicitGC -XX:MaxPermSize=128m -XrunProfilerDLL:1 -Xbootclasspath/a:jakarta-regexp.jar;profiler_trace.jar;commons-lang.jar -D__PROFILER_PACKAGE_FILTER=__A__com.sap.engine.boot.Start;__M__sun.;__M__com.sun.;__M__java.;__M__javax.; -D__PROFILER_TIMING_METHOD=1 -Drdbms.driverLocation=C:/sapdb/programs/runtime/jar/sapdbc.jar -Dsys.global.dir=C:/usr/sap/J2E/SYS/global/
    -> java vm version : 1.4.2_04-b05
    -> java vm vendor  : Java HotSpot(TM) Server VM (Sun Microsystems Inc.)
    -> java vm type    : server
    -> java vm cpu     : x86
    -> heap size       : 256M
    -> init heap size  : 128M
    -> root path       : C:\usr\sap\J2E\JC00\j2ee\cluster\server0
    -> class path      : .\bin\boot\boot.jar;.\bin\boot\jaas.jar;.\bin\system\bytecode.jar;.
    -> OS libs path    : C:\usr\sap\J2E\JC00\j2ee\os_libs
    -> main class      : com.sap.engine.boot.Start
    -> framework class : com.sap.bc.proj.jstartup.JStartupFramework
    -> registr. class  : com.sap.bc.proj.jstartup.JStartupNatives
    -> framework path  : C:\usr\sap\J2E\JC00\j2ee\os_libs\jstartup.jar
    -> shutdown class  : com.sap.engine.boot.Start
    -> parameters      :
    -> debuggable      : no
    -> debug mode      : no
    -> debug port      : 1024
    -> shutdown timeout: 120000
    [Thr 420] JLaunchISetDebugMode: set debug mode [no]
    [Thr 5780] JLaunchIStartFunc: Thread 5780 started as Java VM thread.
    JHVM_LoadJavaVM: VM Arguments of node [server0]
    -> stack   : 262144 Bytes
    -> arg[  0]: exit
    -> arg[  1]: abort
    -> arg[  2]: -Denv.class.path=;C:\D\vim\Intellisense\javaft.jar;C:\j2sdk1.4.2_04\lib\tools.jar
    -> arg[  3]: -Djava.security.policy=./java.policy
    -> arg[  4]: -Djava.security.egd=file:/dev/urandom
    -> arg[  5]: -Dorg.omg.CORBA.ORBClass=com.sap.engine.system.ORBProxy
    -> arg[  6]: -Dorg.omg.CORBA.ORBSingletonClass=com.sap.engine.system.ORBSingletonProxy
    -> arg[  7]: -Djavax.rmi.CORBA.PortableRemoteObjectClass=com.sap.engine.system.PortableRemoteObjectProxy
    -> arg[  8]: -Djava.library.path=/usr/sap/J2E/JC00/j2ee/os_libs
    -> arg[  9]: -XX:NewSize=32m
    -> arg[ 10]: -XX:MaxNewSize=64m
    -> arg[ 11]: -XX:NewRatio=3
    -> arg[ 12]: -XX:+DisableExplicitGC
    -> arg[ 13]: -XX:MaxPermSize=128m
    -> arg[ 14]: -XrunProfilerDLL:1
    -> arg[ 15]: -Xbootclasspath/a:jakarta-regexp.jar;profiler_trace.jar;commons-lang.jar
    -> arg[ 16]: -D__PROFILER_PACKAGE_FILTER=__A__com.sap.engine.boot.Start;__M__sun.;__M__com.sun.;__M__java.;__M__javax.;
    -> arg[ 17]: -D__PROFILER_TIMING_METHOD=1
    -> arg[ 18]: -Drdbms.driverLocation=C:/sapdb/programs/runtime/jar/sapdbc.jar
    -> arg[ 19]: -Dsys.global.dir=C:/usr/sap/J2E/SYS/global/
    -> arg[ 20]: -Dsys.global.dir=C:\usr\sap\J2E\SYS\global
    -> arg[ 21]: -Dapplication.home=C:\usr\sap\J2E\JC00\j2ee\os_libs
    -> arg[ 22]: -Djava.class.path=C:\usr\sap\J2E\JC00\j2ee\os_libs\jstartup.jar;.\bin\boot\boot.jar;.\bin\boot\jaas.jar;.\bin\system\bytecode.jar;.
    -> arg[ 23]: -Djava.library.path=C:\j2sdk1.4.2_04\jre\bin\server;C:\j2sdk1.4.2_04\jre\bin;C:\j2sdk1.4.2_04\bin;C:\usr\sap\J2E\JC00\j2ee\os_libs;c:\sapdb\programs\bin;c:\sapdb\programs\pgm;C:\PROGRA1\SECUDE\SECUDE1;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Symantec\pcAnywhere\;c:\progra~1\ixos\bin;C:\j2sdk1.4.2_04\bin;C:\j2sdk1.4.2_04\jre\bin\server;C:\j2sdk1.4.2_04\lib\tools.jar;C:\Program Files\JProbe Profiler 5.2.1\bin;C:\usr\sap\J2E\JC00\exe;C:\usr\sap\sherlok;C:\cygwin\bin;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\JVMStatAnalysis\jvmstat\bat;;C:\usr\sap\J2E\SCS01\exe;C:\usr\sap\J2E\JC00\exe;C:\usr\sap\J2E\SYS\exe\run
    -> arg[ 24]: -Dmemory.manager=256M
    -> arg[ 25]: -Xmx256M
    -> arg[ 26]: -Xms128M
    -> arg[ 27]: -DLoadBalanceRestricted=no
    -> arg[ 28]: -Djstartup.mode=JCONTROL
    -> arg[ 29]: -Djstartup.ownProcessId=1740
    -> arg[ 30]: -Djstartup.ownHardwareId=I1361390454
    -> arg[ 31]: -Djstartup.whoami=server
    -> arg[ 32]: -Djstartup.debuggable=no
    -> arg[ 33]: -DSAPINFO=J2E_00_server
    -> arg[ 34]: -DSAPSTARTUP=1
    -> arg[ 35]: -DSAPSYSTEM=00
    -> arg[ 36]: -DSAPSYSTEMNAME=J2E
    -> arg[ 37]: -DSAPMYNAME=INLD50035793_J2E_00
    -> arg[ 38]: -DSAPDBHOST=
    -> arg[ 39]: -Dj2ee.dbhost=INLD50035793
    [Thr 5780] Wed Sep 22 15:30:06 2004
    [Thr 5780] JHVM_LoadJavaVM: Java VM created OK.
    <u>[Thr 5780] ***ERROR => can't find native registration class [com.sap.bc.proj.jstartup.JStartupNatives] [jhvmxx.c     417]
    [Thr 5780] JLaunchCloseProgram: good bye (exitcode=-1)</u>
    Any ideas how to fix this problem?
    Thanks
    S.Shylaja

    Btw: I get the warning starting IIS - It seems to me that IIS tries to load Tomcat on-the-fly. The Tomcat load the fails and IIS continues to load successfully.
    The beginning of the IIS Event log outputs this:
    Apache Jakarta Connector2, Information, Info: [jk_vm_default.c (340)]: vm.detach() ok
    Apache Jakarta Connector2, Warning, Error: [jk_worker_jni.c (308)]: Can't find class org/apache/jk/apr/AprImpl
    Apache Jakarta Connector2, Information, Info: [jk_worker_jni.c (297)]: Loaded org/apache/jk/apr/TomcatStarter
    Apache Jakarta Connector2, None, Debug: [jk_vm_default.c (302)]: vm.attach() allready attached
    Apache Jakarta Connector2, Information, Info: [jk_worker_jni.c (252)]: jni.validate() class= org/apache/jk/apr/TomcatStarter
    Apache Jakarta Connector2, Information, Info: [jk_vm_default.c (607)]: vm.open2() done
    Apache Jakarta Connector2, Information, Info: [jk_vm_default.c (500)]: vm.init(): Jni lib: C:\wwwapps\j2sdk1.4.2_01\jre\bin\client\jvm.dll
    /watson

  • Help: error: can not find the main class!

    when I run the class, the following error message comes up:
    java.lang.NoClassDefFoundError: j2sdk1/4/1
    and also a dialogue window (title is "java virtual machine launcher") comes up: could not find the main class, program will exit! After I click ok button, another error message shows up: Exception in thread "main" .
    Could anyone help me figure out what's wrong with my program? If you need any other informaiton, please email me: [email protected], Thanks a lot!!!

    Hi, thank you very much for your reply. Here is the program:
    import java.sql.*;
    import java.io.*;
    import java.util.*;
    import java.lang.Object;
    public class CatalogConnect{
    Statement stmt, st, mast, ques;
    ResultSet rset, orgset,maset, quesset;
    String organization = null;
    String sponsor = null;
    String interMethod = null;
    String year = null;
    String collection = null;
    String country = null;
    String countryName = null;
    String archNO = null;
    String codeBook = null;
    String td = null;
    String todate = null;
    String month = null;
    int studyID, quesID, sponsorID, orgID;
    public CatalogConnect(){
    connect();
    makeXMLFile();
    public CatalogConnect(String codeBk){
    codeBook = codeBk;
    connect();
    makeXMLFile();
    public void connect(){
    try{
    // DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    // Class.forName(oracle.jdbc.driver.OracleDriver);
    Connection conn =
    DriverManager.getConnection ("jdbc:oracle:thin:@137.99.37.146:1521:ipoll",
    "catalog", "catalog");
    stmt = conn.createStatement ();
    st = conn.createStatement ();
    mast = conn.createStatement ();
    Connection conn2 =
    DriverManager.getConnection ("jdbc:oracle:thin:@137.99.36.171:1521:ipolljr2",
    "catalog", "catalog");
    ques = conn2.createStatement ();
    } catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    public static void main (String args[]){
    CatalogConnect c = new CatalogConnect();
    public void makeXMLFile() {
    PrintWriter out = null;

  • How can I find the servlet class name from inside a ServletFilter?

    Ive implemented a servlet filter, but need to discover the class name of any servlet class that gets executed.
    Ive dug through the spec and cant seem to find any path to do this.
    Seems the methods needed to do this have been deprecated. (for security reasons?)
    Is there any way to write a ServletFilter to grab this info?
    If not, is there any other way to capture every servlet execution in the container, time its execution, and log the class name along with the execution time?
    (***WITHOUT*** requiring a classpath over ride of any container provider classes)
    Any help is much appreciated. Been banging my head against this for some time now :(

    request.getServletPath() returns the part of the URL which refers to the servlet. It isn't the classname of the servlet but it should be a reasonable surrogate. If you log that, then you could write some code which reads your web.xml and uses the servlet-mapping elements to convert it to servlet class names later.

  • Can't find registered ActiveX class - where's LabVIEW getting this from...?

    Hi All
    I'm trying to found out from where LabVIEW is getting this particular class from, since it isn't showing up when I open the Active X class browser, and yet somehow seems to be magically registered - I have some invoke nodes and it works fine. Why doesn't it show up in the class browser - shouldn't everything? Where else can I look for it? It's not a standard LV class, but a third party exe I installed. I know the class name (right clicking invoke, browse...). Ideas?? 

    If you have a typelibrary you should probably use the regtlib.exe program instead. Some useful information might be found in this article. Of course if your library comes with an installer, the installer should have done this.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Where Can I Find the JSP Class files on OC4J (Orion server)

    I am using Oracle J2EE Container (OC4J 1.0.2.2 aka Orion server) and I need to find the ".class" file generated for each JSP I created. I've looked under the "WEB-INF" directory under the "application" directory and the "persistence" directory under application-deployments and didn't find them. Any help would be appreciated. Thank you.

    hi
    Just check in _pages directory
    regds

  • Tomcat config problem: jsp can't find a bean class

    I've been working within a JSP/Javabeans/JDBC/MySQL architecture with Windows XP and Websphere. So far everything works perfectly. Now I need to get the same project and make it run with a Tomcat server.
    I've already set the Tomcat server but its not working properly. I have a problem when a jsp tries to access any class inside my project's package.
    For example, when I make the next call:
    <jsp:useBean id="ctrl" class="myPack.myBean" scope="page"/>
    I get an error saying:
    Error: 500
    Location: /myproj/login.jsp
    Internal Servlet Error:
    org.apache.jasper.JasperException: Unable to compile C:\Program Files\jakarta-tomcat-3.3.1\work\DEFAULT\myproj\login_1.java:64: Class myPack.myBean not found.
    myPack.myBean ctrl = null;
    ^
    I believe that my problem cames when setting the Tomcat environment. So far what I have done is:
    * install j2sdk-1.3.1.03
    * install jakarta-tomcat-3.3.1
    * install mysql-max-3.23.51-win
    * set the environment variable JAVA_HOME
    * set the environment variable TOMCAT_HOME
    * set the environment variable MYSQL_HOME
    * add the %JAVA_HOME%\bin to the PATH
    * create 'myproj' directory inside TOMCAT_HOME\webapps
    * create into 'myproj' the subdirectory WEB-INF\classes and copy into it the jar file with my java classes (myPack.jar).
    * copy into TOMCAT_HOME\lib\apps the JDBC driver for MySQL.
    * copy my project files (jsp, html, images, etc.) and its structure into 'myproj' directory.
    I haven't include anything into the CLASSPATH because so far I've read that Tomcat will automatically include all the classes that are inside the directories TOMCAT_HOME\myproj\WEB-INF\classes and TOMCAT_HOME\lib\apps.
    I really don't have a clue about what I'm doing wrong. I'd apreciate if anyone can help me out with this one ;) ... I thank you in advance!

    Hi, it's me again!.
    Since nobody replied to me I'm replying myself :D
    Ok, seriously is just to let you know that I have solved my problem and I would like to tell you how I solved it ... somebody might be doing the same mistake than I was doing and could found this helpful. I just forgot to mention that I was using Tomcat 3.3.
    Well, first of all let me tell you that there was nothing wrong with the previous configuration that I post in my first message. Everything is ok except that in the TOMCAT_HOME\webapps\myproj\WEB-INF\classes directory I was putting my classes as a jar file, so I deleted it and instead I put the directory myPack with its unpacked class files. THIS SOLVED MY PROBLEM!!!
    First I was trying to do some complicated things editing bat and xml files, but as a matter of fact I found it's quite simple. Furthermore, I was really surprised by the performance of Tomcat. I'm relly happy for that !! ;)
    Hope it works for you,
    Ernesto

  • Where Can I Find the JSP Class files on OC4J

    Hi,
    I am using OC4J 1.0.2.2 and I need to find the ".class" file generated for each JSP I created. I've looked under the "WEB-INF" directory under the "application" directory and the "persistence" directory under application-deployments and didn't find them. Any help would be appreciated. Thank you.

    your jsp class are compiled in a file named namejsp.jsp.jspCache in the application-deployments\your app\persistence ...
    but this file is not readable.
    To hav your jsp like .class you have to delete your directory applications-deployments\your app
    and open the file orion-web.xml and add the following:
    development="true" under the tag jsp-cahce-dirctory
    restart the server and then your jsp are created like .class

  • How can I find characteristic via class and class type

    hi all ,
    i have knew a class and class type , how should i find corresponding characteristic , i mean which table should i access .
    just like cl04 , if you enter class and class type , you should get some characteristics. these characteristics are what i want .
    please guide me .
    best regards
    Kevin

    Use
    INOB Table
    INOB-OBJEK = Material No.
    OBTAB = MARA
    Get CUOBJ and KLART(class type)
    KSSK   Table
    OBJEK = INOB-CUOBJ
    MAFID = 'O'
    KLART = INOB-KLART
    GET CLIENT
    from KLAH with KSSK-CLIENT
    Get class no.
    Call the function module CLAF_CLASSIFICATION_OF_OBJECTS with the following input parameters
    Class            =  
    Class Type     =  
    Object
    Object table
    U get Object Data table , it have ur Characteristic value from AUSP table.

  • Where can i find the different class names to change the style sheet

    Hi experts,
    i m making a WAD but i need change somethings in the stylesheet, for example, in my query i have some exceptions, i need this exceptions to works some functions of the broadcaster, but i dont need show the exceptions in the report, so, i need a class name to change the stylesheet to dont show the colors of these exceptions when the report is executed, i have seen this function in a report but i dont remember how to do it.....
    for example this works to change a hier from horizontal to   vertical
    <STYLE>
      .SAPBEXHLevel0 {writing-mode: tb-rl;
                                    filter: fliph flipv };
      .SAPBEXHLevel1 { writing-mode: tb-rl;
                                    filter: fliph flipv };
      .SAPBEXHLevel2 {writing-mode: tb-rl;
                                    filter: fliph flipv };
    .SAPBEXHLevel3 {writing-mode: tb-rl;
                                    filter: fliph flipv };
    </STYLE>
    some like this, was the class name to change the colors, please help

    not answered

  • Where can I find IVI-C class compliant header files

    I have installed the IVI files from IVI foundation website but the installation only includes all the files for IVI-COM not IVI-C.
    I'm looking for the class compliant header files, IVIdmm.h, IVIscope.h, IVIspecana.h etc the ones in the include directory are all for COM, ie  IVIdmmTypeLib.h
    I asked the question on the IVI foundation forum and they said IVI-C has nothing to do with them it was being maintained by National Instruments.
    So does NI have a download for these files?
    Solved!
    Go to Solution.

    I think someone at the ivi foundation is lying but of course NI has them.
    http://www.ni.com/download/ivi-compliance-package-4.5/3065/en/

  • Where can I find documentation for  class HttpJspBase?

    Is it part of package javax.servlet.jsp?

    Is it part of package javax.servlet.jsp?No. HttpJspBase is Tomcat specific, not part of the standard servlet or JSP packages. See http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper/docs/api/org/apache/jasper/runtime/HttpJspBase.html for documentation.

  • Can't find class because of try catch block ?!

    Hello,
    I'm using the JNI to use a java library from my c++ code.
    JNI can't find the "Comverse10" class below, but when i put the try catch block in createMessage in comment, FindClass succeeds ?!
    Unfortunatly i need the code inside the try block ;-)
    I tried a few things, but none of them worked:
    - let createMessage throw the exception (public void createMessage throws ElementAlreadyExistsException ), so there isn't a try catch block in createMessage => result: the same
    - make a "wrapper" class Comverse that has a Comverse10 object as attribute and just calls the corresponding Comverse10.function. Result: Comvers could be found, but not constructed (NewObject failed).
    Can someone tell me what is going on ?!
    Thank you,
    Pieter.
    //Comverse10 class
    public class Comverse10 {
    MultimediaMessage message;
    /** Creates a new instance of Comverse10 */
    public Comverse10() {
    public void createMessage() {
    TextMediaElement text1 = new TextMediaElement("Pieter");
    text1.setColor(Color.blue);
    SimpleSlide slide1 = new SimpleSlide();
    //if i put this try catch block in comment, it works ?!
    try{
    slide1.add(text1);
    catch(com.comverse.mms.mmspade.api.ElementAlreadyExistsException e){}
    MessageContent content = new MessageContent();
    content.addSlide(slide1);
    this.message = new MultimediaMessage();
    message.setContent(content);
    message.setSubject("Mijn subjectje");
    for those of you who are intersted: here's my C++ code:
    //creation of JVM
    HRESULT Java::CreateJavaVMdll()
         HRESULT HRv = S_OK;
    char classpath[1024];
         jint res;
         if(blog)     this->oDebugLog->Printf("CreateJavaVMdll()");
         strcpy(classpath,"-Djava.class.path="); /*This tells jvm that it is getting the class path*/
         strcat(classpath,getenv("PATH"));
         strcat(classpath,";D:\\Projects\\RingRing\\MMSComposer;C:\\Progra~1\\j2sdk1~1.1_0\\lib");     //;C:\\Comverse\\MMS_SDK\\SDK\\lib\\mail.jar;C:\\Comverse\\MMS_SDK\\SDK\\lib\\activation.jar;C:\\Comverse\\MMS_SDK\\SDK\\lib\\mmspade.jar
         //------Set Options for virtual machine
         options[0].optionString = "-Djava.compiler=NONE"; //JIT compiler
         options[1].optionString = classpath;                                        //CLASSPATH
         //------Set argument structure components
         vm_args.options = options;
         vm_args.nOptions = 2;
         vm_args.ignoreUnrecognized = JNI_TRUE;
         vm_args.version = JNI_VERSION_1_4;
         /* Win32 version */
         HINSTANCE hVM = LoadLibrary("C:\\Program Files\\j2sdk1.4.1_01\\jre\\bin\\client\\jvm.dll");
         if (hVM == NULL){
              if(blog) oDebugLog->Printf("Can't load jvm.dll");
              return E_FAIL;
         if(blog) oDebugLog->Printf("jvm.dll loaded\n");
         LPFNDLLFUNC1 func = (LPFNDLLFUNC1)GetProcAddress(hVM, "JNI_CreateJavaVM");
         if(!func){
              if(blog)     oDebugLog->Printf("Can't get ProcAddress of JNI_CreateJavaVM");
              FreeLibrary(hVM);     hVM = NULL;
              return E_FAIL;
         if(blog)     oDebugLog->Printf("ProcAddress found");
         res = func(&jvm,(void**)&env,&vm_args);
         if (res < 0) {
    if(blog)     oDebugLog->Printf("Can't create JVM with JNI_CreateJavaVM %d\n",res);
    return E_FAIL;
         if(blog)     oDebugLog->Printf("JVM created");
         return HRv;
    //finding Comverse10 class:
    HRESULT CALLAS MMSComposer::InitializeJNI(void)
         HRESULT HRv=E_FAIL;
         DWORD T=0;
         try
              if(blog)     oDebugLog->Printf("\nInitializeJNI()");
              bJVM = FALSE;
              jni = new Java(oDebugLog);
              if(jni->CreateJavaVMdll()!=S_OK){
                   if(blog)     oDebugLog->Printf("CreateJavaVMdll() failed");     
                   return HRv;
              jclass jcls = jni->env->FindClass("Comverse10");
              if (jcls == 0) {
    if(blog)     oDebugLog->Printf("Can't find Comverse10 class");
                   jclass jcls2 = jni->env->FindClass("test");
                   if (jcls2 == 0) {
                        if(blog)     oDebugLog->Printf("Can't find test class");
                        return HRv;
                   if(blog)     oDebugLog->Printf("test class found %08x",jcls2);
    return HRv;
              if(blog)     oDebugLog->Printf("Comverse10 class found %08x",jcls);
              jmethodID mid = jni->env->GetMethodID(jcls , "<init>", "()V");
              if (mid == 0) {
                   if(blog)     oDebugLog->Printf("Can't find Comverse10() constructor");
    return HRv;
              if(blog)     oDebugLog->Printf("Comverse10() constructor found");
              jobject jobj = jni->env->NewObject(jcls,mid);
              if(jobj==0)
                   if(blog)     oDebugLog->Printf("Can't construct a Comverse10 object");
    return HRv;
              if(blog)     oDebugLog->Printf("Comverse10 object constucted");
              //Create Global reference, so java garbage collector won't delete it
              jni->jobj_comv = jni->env->NewGlobalRef(jobj);
              if(jni->jobj_comv==0)
                   if(blog)     oDebugLog->Printf("Can't create global reference to Comverse10 object");
    return HRv;
              if(blog)     oDebugLog->Printf("global reference to Comverse10 object %08x created",jni->jobj_comv);
              bJVM=TRUE;
              HRv=S_OK;
         }     catch( IDB * bgError ) { throw bgError->ErrorTrace("InitializeJNI::~InitializeJNI",HRv, 0, T); }
              catch(...) { throw IDB::NewErrorTrace("InitializeJNI::~InitializeJNI",HRv, 0, T ); }
              return HRv;

    >
    I would guess that the real problem is that that the
    exception you are catching is not in the class path
    that you are defining.Thanks jschell, that was indeed the case.
    I don't have the docs, but I would guess that
    FindClass() only returns null if an exception is
    thrown. And you are not checking for the exception.
    Which would tell you the problem.Ok, i'll remember that. But what with exceptions thrown in my java code, the documents say
    // jthrowable ExceptionOccurred(JNIEnv *env);
    // Determines if an exception is being thrown. The exception stays being thrown until either the native code calls ExceptionClear(), or the Java code handles the exception
    so, what if the java code throws an exception and catches it, will i be able to see that in my c++ code with ExceptionOccurred ?
    or
    should the java method be declared to throw the exception (and not catch it inside the method)
    Again, thank you for your help, it's greatly appreciated !

  • Can't find "Delegate Class Name" for JDBC Helper Service

    Hi,
    I downloaded WLServer 6.1 with sp1 and WLPortal 4.0, installed them on Solaris 7 using default DB cloudscape -- everything was fine. Now, I'm trying to configure database to Oracle 8.1.7.
    In "Configure the JDBC Helper Service" section of document "Configuring WebLogic Portal for Oracle Databases" (http://e-docs.bea.com/wlp/docs40/deploygd/oraclnew.htm), step 2 requires to enter value of "com.bea.p13n.util.jdbc.internal.OracleJDriverJdbcHelperDelegate" to "Delegate Class Name". But, I can't find this "Delegate Class Name" variable. The available varialbles on the Configuration tab on my screen are: Maximum Number of Retries, Maximum Wait Time (milliseconds), Use CLOBs for Read?, Use CLOBs for Write?. And the Configuration tab is the only available tag for JDBC Helper Service. Did I download a different version from other people? I downloaded it within 3 months.
    Can anyone help?
    Thanks in advance,
    Jane

    Thanks Steve.
    I had my own jndi.properties file that's why it was working with ejb bean I created in the AM and not with the sdo web service.
    I didn't know I had to add the jndi properties to the connection.xml maybe you can update the documentation.
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <ns2:References xmlns:ns2="http://xmlns.oracle.com/adf/jndi">
    <Reference className="oracle.jbo.client.svc.Service"
    name="{/test/model/common/}DepartmentModuleService">
    <Factory className="oracle.jbo.client.svc.ServiceFactory"/>
    <RefAddresses>
    <StringRefAddr addrType="serviceInterfaceName">
    <Contents>test.model.common.serviceinterface.DepartmentModuleService</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="serviceEndpointProvider">
    <Contents>ADFBC</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="jndiName">
    <Contents>test.model.common.DepartmentModuleServiceBean</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="serviceSchemaName">
    <Contents>DepartmentModuleService.xsd</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="serviceSchemaLocation">
    <Contents>test/model/common/serviceinterface/</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="jndiFactoryInitial">
    <Contents>oracle.j2ee.rmi.RMIInitialContextFactory</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="jndiProviderURL">
    <Contents>ormi://localhost:23791/SvcInterfaceDeploy_MiddleTier</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="jndiSecurityPrincipal">
    <Contents>fmwadmin</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="jndiSecurityCredentials">
    <Contents>welcome</Contents>
    </StringRefAddr>
    <StringRefAddr addrType="serviceSchemaName">
    <Contents>HRAppService.xsd</Contents>
    </StringRefAddr>
    </RefAddresses>
    </Reference>
    </ns2:References>
    thanks edwin

  • Compiler can't find other classes

    I've got this bad problem that's been bugging me all weekend, and I can't work out how to fix it. A few months ago I was able to write classes that use other classes I've defined no problem. I just started using my compiler again, and now when I want to use different classes I've written, the compiler says that it can't find the other class:
    D:\uni\2005 Sem2\cse12ipj\assignment\HabitatModule.java:12: cannot find symbol
    symbol: class Module
    public class HabitatModule extends Module
    ^
    1 error
    Tool completed with exit code 1
    I've compiled the Module class and it doesn't have any errors. I'm guessing that there's something wrong with the classpath variable. Is that right? I'm using java 5.0.

    This is the base class. It compiles fine.
    public abstract class Module
    private char type;
    private String axisCode;
    private Module moduleList;
    abstract int getSpareCapacity();
    When I compile this next class, the compiler on my PC says that the class Module can't be found:
    D:\uni\2005 Sem2\cse12ipj\assignment\Habitat.java:12: cannot find symbol
    symbol: class Module
    public class Habitat extends Module
    ^
    1 error
    Tool completed with exit code 1
    public class Habitat extends Module
    private class Person
    private String name;
    private int id;
    private String speciality;
    private int maxPeople;
    private int nrPeople;
    private char subType;
    private Person personList;
    private String purpose;
    public Habitat(int maxPeople, char subType, String purpose)
    this.maxPeople = maxPeople;
    nrPeople = 0;
    this.subType = subType;
    this.purpose = purpose;
    public int getSpareCapacity()
    return maxPeople - nrPeople;
    If I compile it on any other machine, it's fine. I was looking on the web, and the CLASSPATH doesn't have to be changed for classes in the same directory.

Maybe you are looking for

  • BIOS-GPT grub cannot find the root device in LVM setup

    Greetings Arch Linux Community, Recently I started my journey of installing Arch Linux on my VMware Workstation. I successfully installed the non-LVM instance not long before I noticed the advantages of LVM, then I just started a new Arch Linux setup

  • How can Oracle Portal 11g improve ROI for a utility company

    I want to prepare a presentation regarding Oracle Portal 11g for a group of senior management in my company which sells electricity for commercial building. So i need to know from where i can find related papers that gives some practical examples for

  • Activation of node SAP DB tcode RZ20

    Hi! I would like to set up System Monitoring for the satellite system with SAP DB. When I access to tcode RZ20 in satellite system I unfortunately cannot see the SAP DB node under: SAP CCMS Monitor --> Templates --> Database --> SAP DB. Does some one

  • Micro SIM information

    Hi guys, I'm interested about Micro SIM. I cannot get the spec from ETSI, on their website it seems not released. For my understanding, it's king of (U)SIM card just small in size (plastic) But I can see some picture of thsi product, there are just 6

  • Start up disc is full how do I free up space?

    I have deleted films, music and photo's but still not enough free space.