Weblogic rmic compiler

Hello, I'm trying to use the weblogic rmic compiler to generate stub/skeleton code, but no output can be generated. I don't get any error messages either so I assume the command completed successfully. I checked the whole filesystem but could not see any generated files. I'm using weblogic 8.1 on windows 2000. The command I type in a DOS window is "java weblogic.rmic MyClassImpl".
Could someone experienced in WebLogic please shed some light on this?
Thanks.

I encountered the same problem. Check out the following discussion http://newsgroups.bea.com/cgi-bin/dnewsweb?utag=&group=weblogic.developer.interest.rmi&xrelated=134&cmd_thread_next.x=22&cmd_thread_next.y=13.
pf

Similar Messages

  • Weblogic.rmic and ant integration issue

    I am trying to call weblogic.rmic compiler through a ant script and was
    sucessful in doing so and generating the stubs and skelton for my RMI
    implementation.
    But i also want to pass a system property value (in the example i am passing
    file=stdout using -D to java) to weblogic.rmi compiler and don't know how to
    do that.
    Any help will be greatly appreciated...
    Thanks
    Kunjan Jhaveri
    781-372-3965
    [email protected]
    PS: Script enclosed.
    <target name="local.genStubs" depends="local.compile">
    <java classname="weblogic.rmic" fork="yes" failonerror="yes">
    <jvmarg value="-Dfile=stdout" />
    <arg value="-classpath" />
    <arg value="${WL_HOME}${file.separator}lib${file.separator}weblogic.jar" />
    <arg value="-d" />
    <arg value="${SRCDIR}${file.separator}build${file.separator}classes" />
    <arg value="com.ehealthdirect.ee.kernel.EEMutexManagerImpl" />
    <classpath>
    <pathelement
    path="${WL_HOME}${file.separator}lib${file.separator}weblogic.jar" />
    </classpath>
    </java>
    </target>

    As far as I know, rmic doesn't know anything about a "file" system property. Is
    there some reason you expect this to do something special?
    Kunjan Jhaveri wrote:
    I am trying to call weblogic.rmic compiler through a ant script and was
    sucessful in doing so and generating the stubs and skelton for my RMI
    implementation.
    But i also want to pass a system property value (in the example i am passing
    file=stdout using -D to java) to weblogic.rmi compiler and don't know how to
    do that.
    Any help will be greatly appreciated...
    Thanks
    Kunjan Jhaveri
    781-372-3965
    [email protected]
    PS: Script enclosed.
    <target name="local.genStubs" depends="local.compile">
    <java classname="weblogic.rmic" fork="yes" failonerror="yes">
    <jvmarg value="-Dfile=stdout" />
    <arg value="-classpath" />
    <arg value="${WL_HOME}${file.separator}lib${file.separator}weblogic.jar" />
    <arg value="-d" />
    <arg value="${SRCDIR}${file.separator}build${file.separator}classes" />
    <arg value="com.ehealthdirect.ee.kernel.EEMutexManagerImpl" />
    <classpath>
    <pathelement
    path="${WL_HOME}${file.separator}lib${file.separator}weblogic.jar" />
    </classpath>
    </java>
    </target>

  • How I can compile a ejb3 class to a idl file by the weblogic.rmic command.

    Now, I want create a idl file from a ejb3 class by the weblogic.rmic command.
    I had written a sample case. but when I compile, I get a [Class not found] error, why?
    Who can guide me or provide me with a sample?
    There is a my sample code, below.
    [Java Class/Source Path Diagram]
    Ejb3ToIdlApp\
    |---ejbModule
    | |---hello
    | | |---Hello.java (*Class implents)
    | | IHello.java (*Interface)
    | |---META-INF
    | |--- MANIFEST.MF
    | weblogic-ejb-jar.xml
    |---build
    |---classes
    |---hello
    | |---Hello.class
    | IHello.class
    |---META-INF
    |--- MANIFEST.MF
    weblogic-ejb-jar.xml
    [Interface]
    // IHello.java
    package hello;
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    public interface IHello extends Remote {
    String sayHello() throws RemoteException;
    [Java Class]
    // Hello.java
    package hello;
    import java.rmi.RemoteException;
    public class Hello implements IHello {
    private String name;
    public Hello(String s) throws RemoteException {
    this.name = s;
    @Override
    public String sayHello() throws RemoteException {
    return "Hello ! From " + name;
    * @param args
    public static void main(String[] args) {
    int i = 0;
    try {
    for(i = 0; i < 10; i++) {
    Hello obj = new Hello("MutiHelloServer" + i);
    //Context.rebind("//sample/MutiHelloServer" + i, obj);
    } catch(Exception e) {
    System.out.println("Hello Error: " + e.getMessage());
    e.printStackTrace();
    [MANIFEST.MF]
    Manifest-Version: 1.0
    Class-Path:
    [weblogic-ejb-jar.xml]
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-ejb-jar xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-ejb-jar" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd http://xmlns.oracle.com/weblogic/weblogic-ejb-jar http://xmlns.oracle.com/weblogic/weblogic-ejb-jar/1.3/weblogic-ejb-jar.xsd">
    <!--weblogic-version:12.1.1-->
    </wls:weblogic-ejb-jar>
    [EJB Jar]
    ejbModule.jar (* Exported from a sample, above)
    [Command Environment]
    SET WEBLOGIC_SERVER=C:\Oracle\Middleware\wlserver_12.1\server
    SET JAVA_HOME=C:\Program Files\Java\jdk1.7.0_09
    SET CLASSPATH=.;%JAVA_HOME%\jre\lib;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;%WEBLOGIC_SERVER%\lib;%WEBLOGIC_SERVER%\lib\weblogic.jar;
    java weblogic.rmic -idl ejbModule.hello.Hello
    [execution result]
    Class not found : ejbModule.hello.Hello
    ejbModule.hello.Hello
    Help!

    Thanks for your replay.
    Before I set the classpath, I had met the ClassNotFound problem.
    My command : java -cp %WEBLOGIC_SERVER%\lib\weblogic.jar weblogic.rmic -idl ejbModule.hello.Hello
    I was afraid to lost the class that the weblogic.rmic is required, I set the classpath(java library path/class ,weblogic library path/class).
    I think the class what is not found is like my class(hello), not the class of the weblogic or java.
    Now I don't know what is requred by weblogic.rmic. Is it a class or source of "Hello", and the package name of "Hello" is requred?
    After the idl option is cut, when I execute the Command[java weblogic.rmic *---idl--* ejbModule.hello.Hello], I got the other error, below.
    (*the Hello class is in ejbModule.jar)
    C:\CORBA\test>java weblogic.rmic ejbModule.hello.Hello
    java.lang.ClassNotFoundException: ejbModule.hello.Hello
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at weblogic.rmi.rmic.Remote2Java.loadClassUsingSystemClasspath(Remote2Ja
    va.java:765)
    at weblogic.rmi.rmic.Remote2Java.loadClass(Remote2Java.java:757)
    at weblogic.rmi.rmic.Remote2Java.checkIsNotInterface(Remote2Java.java:73
    6)
    at weblogic.rmi.rmic.Remote2Java.outputs(Remote2Java.java:518)
    at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:262
    at weblogic.rmic.runBody(rmic.java:64)
    at weblogic.utils.compiler.Tool.run(Tool.java:158)
    at weblogic.utils.compiler.Tool.run(Tool.java:115)
    at weblogic.rmic.main(rmic.java:142)
    ejbModule.hello.Hello must be a remote interface implementation and should exist in the classpath
    -----------------------

  • Error starting WebLogic rmic

    Hi ,
    I unable to generate the stub/skeleton in my java classes using rmic. With help of below code in build.xml file
    <taskdef name="rmic" classname="org.apache.tools.ant.taskdefs.Rmic"/>
       <rmic  base="${build.dest}" includes="**/*.class"  classpathref="compilation-classpath" compiler="weblogic" iiop="true"/>
    Below is the Error facing in cmd prompt
    Error starting WebLogic rmic
    BUILD FAILED
    C:\OPOM_CRM\CRMModule\crm\build.xml:190: Error starting WebLogic rmic:
            at org.apache.tools.ant.taskdefs.rmic.WLRmic.execute(WLRmic.java:84)
            at org.apache.tools.ant.taskdefs.Rmic.execute(Rmic.java:548)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    In advance thanks for the help..
    Regards
    Basha

    Hi.
    Try posting your question on weblogic.developer.interest.portal.
    Thanks,
    Michael
    Allen Gu wrote:
    I have installed WebLogic Portal 4.0 using wlportal400_with_sp1_win.exe
    downloaded from http://www.bea.com, but when I tried to run it from Start
    menu, I got the following error:
    Starting WebLogic Server ....
    The WebLogic Server did not start up properly.
    Exception raised:
    java.lang.IllegalAccessError: try to access method
    weblogic/management/internal/
    Helper.preloadMBeanInfos()V from class weblogic/management/Admin
    at weblogic.management.Admin.initialize(Admin.java:210)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:362)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:202)
    at weblogic.Server.main(Server.java:35)
    Reason: Fatal initialization exception
    Press any key to continue . . .
    What could have gone wrong?
    Thanks,
    Allen--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Adding weblogic.rmic to ANT Script

    Hi !
    Any examples to illustrate adding the weblogic.rmic to the Ant build ???
    All that I know is that i can use rmic which is one of the built-in tasks.
    Would i have to use exec instead.
    I'm referring to this URL.. http://jakarta.apache.org/ant/manual/
    Click on built-in tasks.
    Refer to Rmic and Exec.
    Thanks in advance,
    kulkis

    Try this:
    <target name="rmi" depends="compile">
    <echo message="========== RMI compilation of the given classes" />
    <!-- Compile the rmi stubs and skeletons -->
    <!-- rmic base="${classes}" classname ="fi.sonera.ccbs.framework.mvc.rmi.RMICommandImpl"
    sourcebase="${stubs}" /-->
    <java classname="weblogic.rmic">
         <arg value="-d"/>
         <arg value="-iiop"/>
         <arg value="${classes}"/>
         <arg value="fi.sonera.ccbs.framework.mvc.rmi.RMICommandImpl"/>
    </java>
    </target>
    Don Ferguson <[email protected]> wrote:
    Actually, I believe the examples exec a separate VM. I've written ant
    tasks to run
    rmic/ejbc within the ant vm, but unfortunately those are not yet available
    for public
    consumption.
    Andy Piper wrote:
    "kulkis" <[email protected]> writes:
    Hi ! Any examples to illustrate adding the weblogic.rmic to the Ant
    build ???
    All that I know is that i can use rmic which is one of the built-intasks. Would
    i have to use exec instead.
    I'm referring to this URL.. http://jakarta.apache.org/ant/manual/
    Click on built-in
    tasks. Refer to Rmic and Exec.The examples in WLS 6.1 do this. I don't know whether they made the
    beta - but you could pull it down and take a look.
    andy

  • Weblogic.rmic - no IDL for business remote

    Hi,
    I managed to access a Weblogic EJB via RMI/IIOP and Corba. The IDLs were created with weblogic.ejbc. But weblogic.ejbc warns that it is deprecated and weblogic.rmic should be used.
    So I tried that.
    weblogic.rmic -idl -idlVerbose MyHome MyRemote
    Unfortunately, weblogic.rmic does not generate IDLs for my business remote and home, only for spec classes like javax\ejb\RemoveEx.idl.
    I tried (the wrong, I guess) sample command line from
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/client/corba_idl.html#wp1065917
    which uses the EJB class as argument, but this does not generate anything useful.
    How should I call weblogic.rmic to get IDLs for Home and Remote Interfaces?
    Thanks,
    Juergen

    Hi Weber, I have same issue. When I run C:\projects\workspace\SimpleEJB\build>java -cp C:\Bea\wlserver_10.3\server\lib\weblogic.jar; weblogic.appc -help from cmd wondow. It shows below contents, no idl option in it:
    Usage: java weblogic.appc [options] <ear, jar, war or rar file or directory>
    where options include:
    -help Print the standard usage message.
    -version Print version information.
    -output <file> Specifies an alternate output archive or
    directory. If not set, output will be
    placed in the source archive or directory.
    -plan <file> Specifies an optional deployment plan.
    -forceGeneration Force generation of EJB and JSP classes.
    Without this flag the classes may not be
    regenerated if it is determined to be
    unnecessary.
    -quiet Turns off output except for errors
    -lineNumbers Add JSP line numbers to generated class
    files to aid in debugging.
    -library <file> Comma-separated list of libraries. Each
    library may optionally set its name and
    versions, if not already set in its
    manifest, using the following syntax: <file>
    [@name=<string>@libspecver=<version>
    @libimplver=<version|string>]
    -librarydir <dir> Registers all files in specified directory
    as libraries.
    -writeInferredDescriptors Write out the descriptors with inferred
    information including annotations.
    -manifest <file> Include manifest information from specified
    manifest file.
    -clientJarOutputDir <dir> Specifies a directory to put generated
    client jars.
    -keepgenerated Keep the generated .java files.
    -verbose Compile with verbose output.
    -classpath <path> Classpath to use.
    -source <source> Source version.
    -target <target> Target version.
    -advanced Print advanced usage options.

  • WebLogic.ejbc vs weblogic.rmic

    [att1.html]

    Aseem Rastogi <[email protected]> writes:
    See examples/iiop/ejb/stateless/cppclient for an example of how to get
    this to work. You have to jump through hoops with VisiBroker.
       I have deployed a stateless EJB in WLS6.1sp1 / NT and I am trying to write a CPP
    Visibroker 4.5 client to acces it...
    The steps i took:
    While doing the ejbc i have given the option -idl by using
    java weblogic.ejbc -iiop -idl -idlDirectory d:\idls -idlVerbose -compiler javac
    d:\lib\my.jar -d d:\testjava\my.jar
    This file generates two IDL files xHome.idl and x.idl, x.idl contains the business method
    of my bean
    and xHome contains the ejbCreate method...
    According to documentation i can use weblogic.rmic to get these same idls however when i
    run
    java weblogic.rmic -idl -idlVerbose -idlDirectory .\idls xBean
    It creates an idl which has no business method in it but has all private variables
    defined in my bean....
    I am confused which idl file i should be using....??? as i understand if there is no
    business method in IDL my client can't call those methods on EJB..The first two are the right ones.
    I thought of going another step and try using both the idls one by one and see but
    while compiling the idl by command
    idl2cpp -I . -namespace -gen_included_files -root_dir .\corba x.idl
    i get
    idl2cpp: (warning)::CORBA::Environment declared ("orb.idl", line 28) but never defined
    idl2cpp: (warning)(references to it will be permitted, but no code will be generated for
    this definition)
    idl2cpp:IDL native type ::CORBA::AbstractBase has no known translation; generated code
    will not be valid
    ******************This is a VisiBroker bug - but I think you can safely ignore them.
    The orb.idl i am using is from VisibrokerFor C++ 4.5
    i tried compiling the orb.idl alone but got the same things..
    has anyone else seen this behaviour or i am doing smthg wrong.???andy

  • Weblogic.appc compiler for Weblogic 9 and higher version

    We had problem precompiling the jsp's using weblogic.jspc compiler after migrating the project from 8.1 to 9.2. From the edocs weblogic documentation we see that jspc compiler is deprecated from weblogic 9 onwards and they recommend using weblogic.appc for precompiling the jsp's.
    Please note if you are passing runtime expression values in the name attribute of the jsp param tag, you will have to explicitly enabke "<rtexprvalue-jsp-param-name>" to true in weblogic.xml deployment descriptor (format shown below).
    <weblogic-web-app>
    <jsp-descriptor>
    <rtexprvalue-jsp-param-name>true</rtexprvalue-jsp-param-name>
    </jsp-descriptor>
    </weblogic-web-app>
    Below is the edocs link which has JSP descriptors information for Weblogic 9,2
    http://e-docs.bea.com/wls/docs92/webapp/weblogic_xml.html#wp1038491
    - - Tarun

    The solution given in the below link worked for me .
    http://a-developer-life.blogspot.com/2010/11/injecting-into-ejb3-with-google-guice.html?showComment=1328674836129#c7251888680841418914

  • AppServer Startup error rmic compilation

    Hi all,
    I am trying to get the AppServer started. I am always timing out on the rmic compliation step. I've found a post that says delete the generatedcode/ folder but that doesn't work (or makes sense). Attached is my server log. If anyone has seen something like this or can point me in the right direction that would be very much appreciated. Thanks in advance:
    Starting Sun Java System Application Server Platform Edition 8.0 (build b57-fcs) ...
    [#|2005-07-15T10:05:13.361-0500|INFO|sun-appserver-pe8.0|javax.enterprise.system.core|_ThreadID=10;|CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.4.2_04] from [Sun Microsystems Inc.]|#]
    [#|2005-07-15T10:05:13.812-0500|INFO|sun-appserver-pe8.0|javax.enterprise.system.tools.admin|_ThreadID=10;|ADM0020:Following is the information about the JMX MBeanServer used:|#]
    [#|2005-07-15T10:05:13.942-0500|INFO|sun-appserver-pe8.0|javax.enterprise.system.tools.admin|_ThreadID=10;|ADM0001:MBeanServer initialized successfully|#]
    [#|2005-07-15T10:05:14.263-0500|INFO|sun-appserver-pe8.0|javax.enterprise.resource.jms|_ThreadID=10;|JMS5029: Successfully attached to an existing Message Queue broker. Instance Name = imqbroker|#]
    [#|2005-07-15T10:05:14.673-0500|INFO|sun-appserver-pe8.0|javax.enterprise.system.container.web|_ThreadID=10;|Creating virtual server server|#]
    [#|2005-07-15T10:05:14.673-0500|INFO|sun-appserver-pe8.0|javax.enterprise.system.core|_ThreadID=10;|S1AS AVK Instrumentation disabled|#]
    [#|2005-07-15T10:05:14.673-0500|INFO|sun-appserver-pe8.0|javax.enterprise.system.core.security|_ThreadID=10;|SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.|#]
    [#|2005-07-15T10:05:15.685-0500|INFO|sun-appserver-pe8.0|javax.enterprise.system.core.transaction|_ThreadID=10;|JTS5014: Recoverable JTS instance, serverId = [100]|#]
    [#|2005-07-15T10:05:16.426-0500|INFO|sun-appserver-pe8.0|javax.enterprise.system.core|_ThreadID=10;|Satisfying Optional Packages dependencies...|#]
    [#|2005-07-15T10:05:16.536-0500|INFO|sun-appserver-pe8.0|javax.enterprise.resource.resourceadapter|_ThreadID=10;|RAR7008 : Initialized monitoring registry and listeners|#]
    [#|2005-07-15T10:05:16.947-0500|INFO|sun-appserver-pe8.0|javax.enterprise.system.core|_ThreadID=10;|CORE5100:Loading system apps|#]
    [#|2005-07-15T10:05:16.967-0500|INFO|sun-appserver-pe8.0|javax.enterprise.system.core|_ThreadID=10;|Selecting file [C:\Sun\AppServer\lib\install\applications\MEjbApp.ear] for autodeployment|#]
    [#|2005-07-15T10:05:16.967-0500|INFO|sun-appserver-pe8.0|javax.enterprise.system.core|_ThreadID=10;|Selecting file [C:\Sun\AppServer\lib\install\applications\__ejb_container_timer_app.ear] for autodeployment|#]
    [#|2005-07-15T10:05:16.967-0500|INFO|sun-appserver-pe8.0|javax.enterprise.system.tools.admin|_ThreadID=10;|[AutoDeploy] Selecting file [ C:\Sun\AppServer\lib\install\applications\MEjbApp.ear ] for autodeployment.|#]
    [#|2005-07-15T10:05:17.738-0500|INFO|sun-appserver-pe8.0|javax.enterprise.system.tools.deployment|_ThreadID=10;|DPL5109: EJBC - START of EJBC for [MEjbApp]|#]
    [#|2005-07-15T10:05:17.788-0500|INFO|sun-appserver-pe8.0|javax.enterprise.system.tools.deployment|_ThreadID=10;|Processing beans ...|#]
    [#|2005-07-15T10:05:17.818-0500|INFO|sun-appserver-pe8.0|javax.enterprise.system.tools.deployment|_ThreadID=10;|Compiling RMI-IIOP code ...|#]
    [#|2005-07-15T10:07:58.329-0500|WARNING|sun-appserver-pe8.0|javax.enterprise.system.tools.deployment|_ThreadID=10;|DPL5201: rmic compilation failed...
    com.sun.ejb.codegen.ProcessExecutorException: Process timed out.
    Timeout was 160,000 msecs
    Attempted command: C:\Sun\AppServer\jdk\bin\java.exe -classpath C:\Sun\AppServer\lib\commons-launcher.jar;C:\Sun\AppServer\lib\activation.jar;C:\Sun\AppServer\lib\admin-cli.jar;C:\Sun\AppServer\lib\appserv-admin.jar;C:\Sun\AppServer\lib\appserv-cmp.jar;C:\Sun\AppServer\lib\appserv-ext.jar;C:\Sun\AppServer\lib\appserv-jstl.jar;C:\Sun\AppServer\lib\appserv-rt.jar;C:\Sun\AppServer\lib\appserv-upgrade.jar;C:\Sun\AppServer\lib\commons-logging.jar;C:\Sun\AppServer\lib\j2ee-svc.jar;C:\Sun\AppServer\lib\j2ee.jar;C:\Sun\AppServer\lib\jax-qname.jar;C:\Sun\AppServer\lib\jaxr-api.jar;C:\Sun\AppServer\lib\jaxr-impl.jar;C:\Sun\AppServer\lib\jaxrpc-api.jar;C:\Sun\AppServer\lib\jaxrpc-impl.jar;C:\Sun\AppServer\lib\jsf-api.jar;C:\Sun\AppServer\lib\jsf-impl.jar;C:\Sun\AppServer\lib\mail.jar;C:\Sun\AppServer\lib\relaxngDatatype.jar;C:\Sun\AppServer\lib\saaj-api.jar;C:\Sun\AppServer\lib\saaj-impl.jar;C:\Sun\AppServer\lib\xsdlib.jar;C:/Sun/AppServer/jdk/lib/tools.jar;C:/Sun/AppServer/lib/install/applications/jmsra/imqjmsra.jar;C:/Sun/AppServer/imq/lib/jaxm-api.jar;C:/Sun/AppServer/imq/lib/fscontext.jar;C:/Sun/AppServer/lib/ant/lib/ant.jar;C:/Sun/AppServer/pointbase/lib/pbclient.jar;C:/Sun/AppServer/pointbase/lib/pbembedded.jar;C:/Sun/AppServer/pointbase/lib/pbclient.jar;C:/Sun/AppServer/pointbase/lib/pbembedded.jar;C:\Sun\AppServer\domains\domain1\lib\classes;C:\Sun\AppServer\domains\domain1\generated\ejb\j2ee-apps\MEjbApp;C:\Sun\AppServer\domains\domain1\applications\j2ee-apps\MEjbApp\mejb_jar;C:\Sun\AppServer\domains\domain1\generated\ejb\j2ee-apps\MEjbApp;C:\Sun\AppServer\domains\domain1\generated\ejb\j2ee-apps\MEjbApp -Djava.ext.dirs=C:/Sun/AppServer/jdk/jre/lib/ext;C:/Sun/AppServer/domains/domain1/lib/ext sun.rmi.rmic.Main -iiop -poa -alwaysgenerate -keepgenerated -g -classpath C:\Sun\AppServer\lib\commons-launcher.jar;C:\Sun\AppServer\lib\activation.jar;C:\Sun\AppServer\lib\admin-cli.jar;C:\Sun\AppServer\lib\appserv-admin.jar;C:\Sun\AppServer\lib\appserv-cmp.jar;C:\Sun\AppServer\lib\appserv-ext.jar;C:\Sun\AppServer\lib\appserv-jstl.jar;C:\Sun\AppServer\lib\appserv-rt.jar;C:\Sun\AppServer\lib\appserv-upgrade.jar;C:\Sun\AppServer\lib\commons-logging.jar;C:\Sun\AppServer\lib\j2ee-svc.jar;C:\Sun\AppServer\lib\j2ee.jar;C:\Sun\AppServer\lib\jax-qname.jar;C:\Sun\AppServer\lib\jaxr-api.jar;C:\Sun\AppServer\lib\jaxr-impl.jar;C:\Sun\AppServer\lib\jaxrpc-api.jar;C:\Sun\AppServer\lib\jaxrpc-impl.jar;C:\Sun\AppServer\lib\jsf-api.jar;C:\Sun\AppServer\lib\jsf-impl.jar;C:\Sun\AppServer\lib\mail.jar;C:\Sun\AppServer\lib\relaxngDatatype.jar;C:\Sun\AppServer\lib\saaj-api.jar;C:\Sun\AppServer\lib\saaj-impl.jar;C:\Sun\AppServer\lib\xsdlib.jar;C:/Sun/AppServer/jdk/lib/tools.jar;C:/Sun/AppServer/lib/install/applications/jmsra/imqjmsra.jar;C:/Sun/AppServer/imq/lib/jaxm-api.jar;C:/Sun/AppServer/imq/lib/fscontext.jar;C:/Sun/AppServer/lib/ant/lib/ant.jar;C:/Sun/AppServer/pointbase/lib/pbclient.jar;C:/Sun/AppServer/pointbase/lib/pbembedded.jar;C:/Sun/AppServer/pointbase/lib/pbclient.jar;C:/Sun/AppServer/pointbase/lib/pbembedded.jar;C:\Sun\AppServer\domains\domain1\lib\classes;C:\Sun\AppServer\domains\domain1\generated\ejb\j2ee-apps\MEjbApp;C:\Sun\AppServer\domains\domain1\applications\j2ee-apps\MEjbApp\mejb_jar;C:\Sun\AppServer\domains\domain1\generated\ejb\j2ee-apps\MEjbApp;C:\Sun\AppServer\domains\domain1\generated\ejb\j2ee-apps\MEjbApp -d C:\Sun\AppServer\domains\domain1\generated\ejb\j2ee-apps\MEjbApp @C:\Documents and Settings\jgmeindl\Local Settings\Temp\e51bda_1051b0726fa0000_37277.s1a
    Output from command:
         at com.sun.ejb.codegen.ProcessRunner.makeTimeoutException(ProcessExecutor.java:348)
         at com.sun.ejb.codegen.ProcessExecutor.execute(ProcessExecutor.java:140)
         at com.sun.ejb.codegen.Compiler.runProcess(Compiler.java:155)
         at com.sun.ejb.codegen.RMICompiler.nativeExternalCompile(RMICompiler.java:86)
         at com.sun.ejb.codegen.RMICompiler.internal_compile(RMICompiler.java:49)
         at com.sun.ejb.codegen.Compiler.compile(Compiler.java:57)
         at com.sun.ejb.codegen.IASEJBC.compileAndRmic(IASEJBC.java:214)
         at com.sun.ejb.codegen.IASEJBC.doCompile(IASEJBC.java:834)
         at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:565)
         at com.sun.enterprise.deployment.backend.EJBCompiler.preDeployApp(EJBCompiler.java:360)
         at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:208)
         at com.sun.enterprise.deployment.backend.AppDeployer.runEJBC(AppDeployer.java:292)
         at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:173)
         at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:105)
         at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:124)
         at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:74)
         at com.sun.enterprise.deployment.phasing.DeploymentService.executePhases(DeploymentService.java:233)
         at com.sun.enterprise.deployment.phasing.DeploymentService.deploy(DeploymentService.java:150)
         at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:275)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:287)
         at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:280)
         at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:221)
         at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:228)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:823)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:792)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
         at $Proxy1.invoke(Unknown Source)
         at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:282)
         at com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentService(AutoDeployer.java:471)
         at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployApplication(AutoDeployer.java:367)
         at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployApplication(AutoDeployer.java:346)
         at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:167)
         at com.sun.enterprise.server.SystemAppLifecycle.deployToTarget(SystemAppLifecycle.java:180)
         at com.sun.enterprise.server.SystemAppLifecycle.deploySystemApps(SystemAppLifecycle.java:155)
         at com.sun.enterprise.server.SystemAppLifecycle.onStartup(SystemAppLifecycle.java:77)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:295)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:220)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:172)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
    |#]

    I know no1 has replied yet but I thought I'd update my status regarding the problem.
    I have managed to deploy and test a very simple application using struts and a stateless session ejb, HOWEVER this only worked when I put the code for the ejb interaction in the jsp file, rather than in an action class. This obviously is not a good way to do it (takes the point out of using struts) and would probably prevent certain functionality.
    I'm presuming it did not fail since the server does not read the jsp till after deployment, so with the same code in the action class it would interpret that and fail on deployment.
    Does any one know why having the jndi lookup code in an action class would cause the rmic in deployment to fail? I've hit a complete standstill and have no more ways to debug.
    The only thought I have is regarding the home and remote interfaces - the jsp accesses this directly from the ejb jar (the war does not contain the classes - same jvm) however in order for the action classes to use the interfaces they need them bundled in the war file. I have done this, however any ideas on why this might be a problem? I would really appreciate some expert advice here, cheers, Andy

  • Help!  weblogic.rmic _WLStub vs. regular _Stub

    Hello,
    I have WL6.0 sp1. I want to run weblogic.rmic on a Remote class, in
    order to get the _WLStub classes.  Am I missing lots of weblogic
    classes? What jars are these in, I don't see them anywhere in
    weblogic.jar or in ./lib --
    weblogic.rmi.extensions.server.Stub
    weblogic.rmi.internal.AbstractStub
    weblogic.rmi.extensions.server.RemoteReference
    Running normal java 1.3 rmic works okay. But running
    "java weblogic.rmic" yields hundreds of these following errors --- what
    am I doing wrong?
    \WLStub4h3k3fu254q3x295u1k5i1l6u2o2g1j.java:14: cannot resolve symbol
    symbol : class AbstractStub
    location: package internal
    public class WLStub4h3k3fu254q3x295u1k5i1l6u2o2g1j extends
    weblogic.rmi.internal.AbstractStub
    ^
    Thanks for your help!
    John Eiden
    Minneapolis, Minnesota

    Hmmm.... I see all three of these classes in my weblogic.jar file for WLS
    6.0 SP1
    John Eiden wrote:
    Hello,
    I have WL6.0 sp1. I want to run weblogic.rmic on a Remote class, in
    order to get the _WLStub classes.  Am I missing lots of weblogic
    classes? What jars are these in, I don't see them anywhere in
    weblogic.jar or in ./lib --
    weblogic.rmi.extensions.server.Stub
    weblogic.rmi.internal.AbstractStub
    weblogic.rmi.extensions.server.RemoteReference
    Running normal java 1.3 rmic works okay. But running
    "java weblogic.rmic" yields hundreds of these following errors --- what
    am I doing wrong?
    \WLStub4h3k3fu254q3x295u1k5i1l6u2o2g1j.java:14: cannot resolve symbol
    symbol : class AbstractStub
    location: package internal
    public class WLStub4h3k3fu254q3x295u1k5i1l6u2o2g1j extends
    weblogic.rmi.internal.AbstractStub
    ^
    Thanks for your help!
    John Eiden
    Minneapolis, Minnesota

  • Rmic compilation error

    rmic compilation failed.
         at com.sun.ejb.codegen.GeneratorDriver.compileAndRmic(GeneratorDriver.java:261)
         at com.sun.ejb.codegen.GeneratorDriver.preDeploy(GeneratorDriver.java:872)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployEjbs(JarInstallerImpl.java:709)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployApplication(JarInstallerImpl.java:216)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployApplication(JarInstallerImpl.java:124)
         at org.omg.stub.com.sun.enterprise.tools.deployment.backend._JarInstallerImpl_Tie._invoke(Unknown Source)
         at com.sun.corba.ee.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:334)
         at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:272)
         at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:84)
         at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:99)
    rmic compilation failed.
         at com.sun.ejb.codegen.GeneratorDriver.compileAndRmic(GeneratorDriver.java:261)
         at com.sun.ejb.codegen.GeneratorDriver.preDeploy(GeneratorDriver.java:872)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployEjbs(JarInstallerImpl.java:709)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployApplication(JarInstallerImpl.java:216)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployApplication(JarInstallerImpl.java:124)
         at org.omg.stub.com.sun.enterprise.tools.deployment.backend._JarInstallerImpl_Tie._invoke(Unknown Source)
         at com.sun.corba.ee.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:334)
         at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:272)
         at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:84)
         at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:99)
    rmic compilation failed.
         at com.sun.ejb.codegen.GeneratorDriver.compileAndRmic(GeneratorDriver.java:261)
         at com.sun.ejb.codegen.GeneratorDriver.preDeploy(GeneratorDriver.java:872)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployEjbs(JarInstallerImpl.java:709)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployApplication(JarInstallerImpl.java:216)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployApplication(JarInstallerImpl.java:124)
         at org.omg.stub.com.sun.enterprise.tools.deployment.backend._JarInstallerImpl_Tie._invoke(Unknown Source)
         at com.sun.corba.ee.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:334)
         at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:272)
         at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:84)
         at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:99)
    rmic compilation failed.
         at com.sun.ejb.codegen.GeneratorDriver.compileAndRmic(GeneratorDriver.java:261)
         at com.sun.ejb.codegen.GeneratorDriver.preDeploy(GeneratorDriver.java:872)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployEjbs(JarInstallerImpl.java:709)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployApplication(JarInstallerImpl.java:216)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployApplication(JarInstallerImpl.java:124)
         at org.omg.stub.com.sun.enterprise.tools.deployment.backend._JarInstallerImpl_Tie._invoke(Unknown Source)
         at com.sun.corba.ee.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:334)
         at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:272)
         at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:84)
         at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:99)
    rmic compilation failed.
         at com.sun.ejb.codegen.GeneratorDriver.compileAndRmic(GeneratorDriver.java:261)
         at com.sun.ejb.codegen.GeneratorDriver.preDeploy(GeneratorDriver.java:872)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployEjbs(JarInstallerImpl.java:709)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployApplication(JarInstallerImpl.java:216)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployApplication(JarInstallerImpl.java:124)
         at org.omg.stub.com.sun.enterprise.tools.deployment.backend._JarInstallerImpl_Tie._invoke(Unknown Source)
         at com.sun.corba.ee.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:334)
         at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:272)
         at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:84)
         at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:99)
    how can i fix those errors... anybody..please help!!!!

    Hi
    I get exactly the same error message.
    Did you manage to fix it?
    If so, can you tell me how!
    Appreciated.

  • 求助 用weblogic.rmic编译生成idl文件失败,请高手帮助.

    我写了一个Remote接口,在接口的基础上编写一个EJB类,用weblogic.rmic编译生成idl文件,出现类没找到异常。找不到出错原因。请高手帮助。
    现把代码贴出.
    [Java Class/Source Path Diagram]
    Ejb3ToIdlApp\
    |---ejbModule
    | |---hello
    | | |---Hello.java (*Class implents)
    | | IHello.java (*Interface)
    | |---META-INF
    | |--- MANIFEST.MF
    | weblogic-ejb-jar.xml
    |---build
    |---classes
    |---hello
    | |---Hello.class
    | IHello.class
    |---META-INF
    |--- MANIFEST.MF
    weblogic-ejb-jar.xml
    [Interface]
    // IHello.java
    package hello;
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    public interface IHello extends Remote {
    String sayHello() throws RemoteException;
    [Java Class]
    // Hello.java
    package hello;
    import java.rmi.RemoteException;
    public class Hello implements IHello {
    private String name;
    public Hello(String s) throws RemoteException {
    this.name = s;
    @Override
    public String sayHello() throws RemoteException {
    return "Hello ! From " + name;
    * @param args
    public static void main(String[] args) {
    int i = 0;
    try {
    for(i = 0; i < 10; i++) {
    Hello obj = new Hello("MutiHelloServer" + i);
    //Context.rebind("//sample/MutiHelloServer" + i, obj);
    } catch(Exception e) {
    System.out.println("Hello Error: " + e.getMessage());
    e.printStackTrace();
    [MANIFEST.MF]
    Manifest-Version: 1.0
    Class-Path:
    [weblogic-ejb-jar.xml]
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-ejb-jar xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-ejb-jar" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd http://xmlns.oracle.com/weblogic/weblogic-ejb-jar http://xmlns.oracle.com/weblogic/weblogic-ejb-jar/1.3/weblogic-ejb-jar.xsd">
    <!--weblogic-version:12.1.1-->
    </wls:weblogic-ejb-jar>
    [EJB Jar]
    ejbModule.jar (* Exported from a sample, above)
    [Command Environment]
    SET WEBLOGIC_SERVER=C:\Oracle\Middleware\wlserver_12.1\server
    SET JAVA_HOME=C:\Program Files\Java\jdk1.7.0_09
    SET CLASSPATH=.;%JAVA_HOME%\jre\lib;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;%WEBLOGIC_SERVER%\lib;%WEBLOGIC_SERVER%\lib\weblogic.jar;
    java weblogic.rmic -idl ejbModule.hello.Hello
    [execution result]
    Class not found : ejbModule.hello.Hello
    ejbModule.hello.Hello

    自己 回复下吧 。
    又重新检查了下 , 原来 要转到的供应商在这个门店没有采购信息记录。是下午的检查这个地方的时候眼花了吧。
    哎。
    让我纠结了俩小时。

  • Bug in weblogic.rmic: produces incorrect IDL in factory decls.

    My EJB when producing IDL produces incorrect IDL: One of the outputs
    is java/net/URL.idl but when I try to compile it using Inprise
    visibroker
    4.0 for C++, I get the following parse error:
    /opt/inprise/vbrokercpp/bin/idl2cpp -no_servant -idl_strict
    -I/opt/inprise/vbrokercpp/idl -tie -namespace -no_pretty_print -Iidl
    -src_suffix cpp -root_dir cpp/java/lang idl/java/lang/ClassLoader.idl
    idl/java/net/URL.idl: 76:syntax error after )
    idl/java/net/URL.idl: 76:expected a[n]: ;
    idl/java/net/URL.idl: 76:instead of raises
    idl/java/net/URL.idl: 78:syntax error after )
    idl/java/net/URL.idl: 78:expected a[n]: ;
    idl/java/net/URL.idl: 78:instead of raises
    idl/java/net/URL.idl: 82:java::net::URLStreamHandler not found (expected
    type name)
    idl/java/net/URL.idl: 83:syntax error after )
    idl/java/net/URL.idl: 83:expected a[n]: ;
    idl/java/net/URL.idl: 83:instead of raises
    idl/java/net/URL.idl: 84:java::net::URLStreamHandler not found (expected
    type name)
    idl/java/net/URL.idl: 88:syntax error after )
    idl/java/net/URL.idl: 88:expected a[n]: ;
    idl/java/net/URL.idl: 88:instead of raises
    6 errors
    This is an error in the IDL: factory methods are trying to raise
    exceptions; however this is disallowed by the OMG IDL specification
    version 2.3:
    <init_dcl> ::= "factory" <identifier>"(" [ <init_param_decls> ]
    <init_param_decls> ::= <init_param_decl> { , <init_param_decl> }
    <init_param_decl> ::= <init_param_attribute> <param_type_spec>
    <simple_declarator>
    <init_param_attribute> ::= "in"
    As you can see, when using the keyword "factory" there is no "raises"
    clause allowed by the grammar.
    This is one of a few instances of the problem (this problem only
    occurred
    in one file but for several methods):
    factory
    create__CORBA_WStringValue__CORBA_WStringValue__CORBA_WStringValue( in
    ::CORBA::WStringValue arg0, in ::CORBA::WStringValue arg1, in
    ::CORBA::WStringValue arg2) raises (::java::net::MalformedURLEx);
    -Kim.

    the difference here is Thread-based security vs. Object-based security. WLS opts for the Thread-based model. this model was also
    backed up by the original revisions of the JAAS spec. it's just something to take into consideration when designing applications.
    .paul
    Marcel Stremming wrote:
    I have a SessionBean Method :
    public void contextTest() throws RemoteException {
    try {
    System.out.println("Principal 1: " + ctx.getCallerPrincipal());
    Properties h = new Properties();
    h.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
    h.put(Context.PROVIDER_URL, "t3://localhost:7001");
    h.put(Context.SECURITY_PRINCIPAL, "toto");
    h.put(Context.SECURITY_CREDENTIALS, "test");
    Context new_ctx = new InitialContext(h);
    System.out.println("Principal 2: " + ctx.getCallerPrincipal());
    } catch (Exception e) {e.printStackTrace(); }
    When principal "titi" invokes this Method it produces the following output:
    Principal 1: titi
    Principal 2: toto
    As You can see the Method just replaced the Caller Context's principal stored in the ctx field without even touching it. Since
    my Servlets run on the same JVM and use PassByReference calling this Method twice results in :
    Principal 1: titi
    Principal 2: toto
    Principal 1: toto
    Principal 2: toto
    I think this is a Bug because it makes it quiet difficult to open two Context's at the same time.
    I would like to read some opinions.

  • RMIC compiling the server to get the stub and skelton problem

    i have this problem
    i'm new to RMI
    and i tried to simulate the same interfaces and class in the RMI java tutorial and when i tried to use rmic to create the stub and skeleton i didnt get any thing
    my RMI server application is called
    c:\samplestep\ServerAPP\ServerEngine.java
    and i complied this java file with
    c:\samplestep\ServerAPP>javac ServerEngine.java and it works well
    i have d:\jdk1.3
    and i have D:\ORANT\jdev(which is Oracle JDeveloper IDE)
    my classpath system variable (windows 2000 professional)
    Looks like this
    D:\jdk1.3\bin;D:\jdk1.3\jre\lib\rt.jar; some other paths;
    c:\samplestep\ServerAPP;
    D:\ORANT\jdk\bin;D:\ORANT\jdk\jre\lib\rt.jar
    and at the command line prompt i wrote
    c:\samplestep\ServerAPP>rmic -d c:\samplestep\ServerAPP -classpath c:\samplestep\ServerAPP\ServerEngine
    and the result was the help associated to the rmic command
    and no stub or skelton class are generated
    could any one help me please(required urgently)
    my email is [email protected]

    Hi Batal,
    Did you follow all the steps required to create a RMIServer and RMI Client.
    Step1: Define an interface(IRMIInterface) that extends Remote
    Step2 : Define a class(RMIServer) that implements extends UnicastRemovetObject and extends IRMIInterface
    Step3 : Compile the IRMIInterface.
    Step4: Compile the RMIServer.
    Step5: Try RMI compile.
    If you have tried all these, just verify whether the class files are there, before you do rmi compile.
    You could have got some errors while compiling, why cant you post them
    LathaDhamo

  • Rmic compile, Class not found error

    I am using JDK1.3, I have a pakege foo.myrmi, and in myrmi, I have MyRmiRemote inteface and MyRmiImpl class, then I use javac to compile the two classes, and the two classes are generated in the folder foo\myrmi, then I use:
    rmic MyRmiImpl
    get error: Class MyRmiImpl not found.
    then I go under the foo directory, try:
    rmic -d . myrmi.MyRmiImpl (same with the packege name of the class)
    got error: Class myrmi.MyRmiImpl
    code impletment is not a problem, because I use the sample code from book.
    someone helps!!
    Thanks!
    fred

    go to the directory above foo and try
    rmic -classpath . foo.myrmi.MyRmiImpl

Maybe you are looking for

  • Scenario IDoc-XI-FlatFile

    Hi, I am trying to Push Idoc from SAP R/34.7 to Flat File thru XI.Message Type is HRMD_ABA.The Idoc is forwarding successfully from SAP R/3,But I am not able see the details and Idoc in XI at all even though in sxmb_moni as well as at Message Display

  • Can't login to local NON-admin accounts-Directory Access set to server

    I have a strange problem on a set of laptops that I cannot resolve and am hoping someone can help me. Here is the issue: I have a set of building laptops (PowerPC, OSX.4.11) that seemingly will not "search locally" in the authentication process. The

  • How to clear the items in BSID

    Hi SDNers, In case of CustomerA, no of entries fetched from BSID is 246709 . Because of this a standard piece of code takes a looong time to execute. In case of Customer B, no of entries fetched from BSID is just 512. Because of this less entries sta

  • Want to have two sites on .Mac made with iWeb

    I have two folders on my iDisk in the Sites folder with different names. How do I get two different URL's for each website. So with two folders each titled different can I use the folder names like http://web.mac.com/foldername/welcome.html http://we

  • How can I get iPhoto to find missing files?

    I lost a hard drive that had thousands of photos on it. I recovered the photos from a different drive, not using time capsule. iPhoto still has the thumbnails and the only way I can find out whats missing is by double clicking the photo, then it asks