RMIC compiles

import java.rmi.*;
import java.rmi.server.UnicastRemoteObject;
public class ATMFactoryImpl extends UnicastRemoteObject implements ATMFactory
private String name;
public ATMFactoryImpl(String s) throws RemoteException
super();
name = s;
* getATM() returns a remote reference to an ATM instance
public ATM getATM() throws RemoteException
System.out.println("Returning an ATM instance");
ATMImpl oneATM = new ATMImpl("anATM");
return oneATM;
Chad Salinas ' readme file for the Final Project in CS160
The final project includes the following 19 source files:
1. Chad Salinas Account.java - the account implementation class
2. Chad Salinas AccountInfo.java - the data class containing the pin and acctnum from the client request
3. Chad Salinas ATM.java - the interface to the ATMImpl.java
4. Chad Salinas ATMFactory.java - interface to the ATMFactoryImpl , returns remote reference to ATMImpl instance
5. Chad Salinas ATMFactoryImpl.java - implements the ATMFactory interface to the ATMImpl
6. Chad Salinas ATMImpl.java - implements interface to the ATM
7. Chad Salinas ATMServer.java - server creates an ATMFactoryImpl instance, registers it with the registry
8. Chad Salinas BankServer.java - hosts the remote bank and security service
9. Chad Salinas Client.java - drives the ATM system
10. Chad Salinas ATMListenerInf.java - interface to the Client, listens to the atm for transaction notifications
11. Chad Salinas TransactionNotification.java - create the TransactionNotification object
12. Chad Salinas Bank.java - implementation class where accounts are created and reside
13. Chad Salinas Security.java - implementation class authenticates and authorizes banking transactions
14. Chad Salinas BankInf.java - interface to the Bank
15. Chad Salinas SecurityInf.java - interface to the Security service, returns remote reference to Security instance
16. Chad Salinas AccountInf.java - interface front ends Account like ATM front ends ATMImpl
17. Chad Salinas AccountException.java - User defined exception class to throw insufficient funds exception
18. Chad Salinas ATMException.java - User defined exception class to throw insufficient cash-on-hand exception
19. Chad Salinas SecurityException.java - User defined exception class to throw authentication and authorization exceptions
The following 6 files comprise the implementation .class files
that need to rmic'd after comiling the source:
ATMImpl.class
ATMFactoryImpl.class
Bank.class
Security.class
Account.class
Client.class
Test the program using the following steps:
Compile the source files with:
javac cscie160\project\*.java
rmic to get the client stubs and server skels with:
rmic cscie160.project.ATMImpl
rmic cscie160.project.ATMFactoryImpl
rmic cscie160.project.Bank
rmic cscie160.project.Security
rmic cscie160.project.Account
rmic cscie160.project.Client
start rmiregistry
start rmiregisty
start the BankServer with:
java cscie160.project.BankServer
start the ATM server in another cmd window with:
java cscie160.project.ATMServer
start the Client in another cmd window:
java cscie160.project.Client
Design Considerations:
Additional account attributes - I decided to make account number, PIN, and account permissions attributes of
an account. I could just have easily created a special security object to
contain these data members. However, the implemntation, with respect to data structure
and accessing an element would be equivalent to what I have already done with
accounts. I put the accounts in an ArrayList an iterate the list to get the element.
Authenticate, Authorize, and grab the account - I decided that since I grab an account in
ATMImpl, I may as well call the security service with the client-supplied AccountInfo instance
and the Bank-supplied account instance as opposed to grabbing the account and/or bank again in
the security instance.
Account constructors - I expanded the account constructors to create PIN and permissions when an
account is created.
Transfer - A transfer is not exactly a withdrawl and a deposit, because a withdrawl connotes taking cash from
ant ATM whereas a transfer transaction should not decrease an ATM's cash-on-hand.
Transaction Notification - I call tn.toString for all transactions including getBalances. The idea is to see the
transaction details even in the case of a failure.
What to expect:
Everything comiles, rmic's, and executes as it should!
Chad Salinas

Is there a question in there someplace?

Similar Messages

  • 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

  • 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

  • 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.

  • 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

  • Rmic Compiling issues.

    I have been having multiple issues trying to compile stubs/skeletons using the rmic command on a program that I wrote under both Windows 98 and XP, both with java 1.5.
    To simplify things, I tried using a HelloWorld example from the internet as well, but to no avail. I am generally confused about the topic, having found several of the tutorials vague on the topic of making stubs.
    To simplify things, I'll describe my problem with the HelloWorld program. I all server files in the Java/bin directory with rmic.exe , and changed the directory to that.
    rmic Hello  , rmic Hello.java, rmic Hello.class all produce a class not found.
    I set classpath to the /java/bin directory and retried, that produced no change.
    I have tried using JCreator's rmi function, but that doesn�t seem to produce results. It seems that the command gets truncated when the program does it.
    Lastly, i tried
    rmic "C:\program Files\...\bin\Hello"  and variants of that. It simply produces an exception in the rmic.
    If anybody can give me a simple solution, I would appreciate it.

    Hi this is ankur
    well the possible problem with ur application seems that the Hello.java class must be in some package . Remove the package <package anme >;
    line from this file and then try compiling. And if this is not the problem then plz send the detailed exception or error.

  • 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>

  • Ejb compilation err when deplying to j2ee

    when i tried to deply some ejbs to j2ee server using the gui deploytool, i got an err: ejb compilation error. can someone explain why is it so?

    hello, kpseal:), glad you are still around.
    i use ibm websphere studio to create the stateless ejb with one method that println helloWorld. there was no error. i have deployed it to jboss/tomcat with great success, and it also runs well within websphere test enviroment; however i cannot deploy it in j2ee server, using the deploytool, actually not just this particular ejb, all has failed. the error is an rmic compilation failure. the following is whats in the log file:
    rmic compilation failed.
         at com.sun.ejb.codegen.GeneratorDriver.compileAndRmic(GeneratorDriver.java:169)
         at com.sun.ejb.codegen.GeneratorDriver.preDeploy(GeneratorDriver.java:888)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployEjbs(JarInstallerImpl.java:707)
         at com.sun.enterprise.tools.deployment.backend.JarInstallerImpl.deployApplication(JarInstallerImpl.java:221)
         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:355)
         at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:255)
         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)
    and on the console, it says:
    Home_Stub.java:23: Class org.omg.stub.javax.ejb._EJBHome_Stub already defined in
    null.
    public class EJBHomeStub extends Stub implements EJBHome {
    ^
    1 error
    rmic compilation failed...

  • Unable to Deploy EJB (RMIC Failure)

    Hi, I'm experiencing a problem using the J2EE Application Server to deploy one of the J2EE 1.4 Tutorial EJB Examples (ConverterAPP). I'm getting an RMIC compilation failure during RMI-IIOP Code compilation. The error is : java.lang.NullPointerException at sun.rmi.rmic.Main.doCompile(Main.java:479). This error is also happening when I start the server and it attempts to autodeploy MEjbapp. Any ideas? The trace is:
    [#|2003-12-23T07:17:26.578-0700|INFO|j2ee-appserver1.4|javax.enterprise.system.tools.deployment|_ThreadID=12;|DPL5109: EJBC - START of EJBC for [ConverterApp]|#]
    Remote message: Processing beans ....
    [#|2003-12-23T07:17:26.649-0700|INFO|j2ee-appserver1.4|javax.enterprise.system.tools.deployment|_ThreadID=12;|DPL5108: EJBC - Generated code for remote home and EJBObject implementations for [ConverterApp]|#]
    Remote message: Compiling wrapper code ....
    Remote message: Compiling RMI-IIOP code ....
    rmic compilation failed
         at com.sun.ejb.codegen.IASEJBC.compileAndRmic(IASEJBC.java:275)
         at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:1144)
         at com.sun.enterprise.deployment.backend.EJBCompiler.preDeployApp(EJBCompiler.java:326)
         at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:196)
         at com.sun.enterprise.deployment.backend.AppDeployer.runEJBC(AppDeployer.java:277)
         at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:163)
         at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:105)
         at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:128)
         at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:79)
         at com.sun.enterprise.deployment.phasing.DeploymentService.executePhases(DeploymentService.java:216)
         at com.sun.enterprise.deployment.phasing.DeploymentService.deploy(DeploymentService.java:152)
         at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:270)
         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:266)
         at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:268)
         at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:212)
         at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:218)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:808)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:781)
         at sun.reflect.GeneratedMethodAccessor76.invoke(Unknown Source)
         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.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:38)
         at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:92)
         at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:69)
         at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:284)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:306)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:200)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:258)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:256)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:210)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:578)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:196)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:648)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:498)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:649)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: com.sun.ejb.codegen.JavaCompilerException: java.lang.NullPointerException
         at com.sun.ejb.codegen.Compiler.compile(Compiler.java:76)
         at com.sun.ejb.codegen.IASEJBC.compileAndRmic(IASEJBC.java:269)
         ... 80 more
    Caused by: java.lang.NullPointerException
         at sun.rmi.rmic.Main.doCompile(Main.java:479)
         at sun.rmi.rmic.Main.compile(Main.java:130)
         at com.sun.ejb.codegen.RMICompiler.nativeCompile(RMICompiler.java:137)
         at com.sun.ejb.codegen.RMICompiler.internal_compile(RMICompiler.java:73)
         at com.sun.ejb.codegen.Compiler.compile(Compiler.java:67)
         ... 81 more
    [#|2003-12-23T07:17:29.963-0700|WARNING|j2ee-appserver1.4|javax.enterprise.system.tools.deployment|_ThreadID=12;|Deployment Error
    com.sun.enterprise.deployment.backend.IASDeploymentException: Fatal Error from EJB Compiler -- rmic compilation failed

    Never mind - reinstalled J2EE and problem is gone.

  • Any Professional can help me(Prom in rmic)

    i have prob compiling my servlet server using rmic...
    actually i have one inface DaytimeServer below
    import java.util.Date;
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    public interface DaytimeServer extends Remote
    public Date getDate() throws RemoteException;
    and i am implements this interface to class DaytimeServlet.java
    below
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import com.oreilly.servlet.RemoteHttpServlet;
    public class DaytimeServlet extends RemoteHttpServlet implements DaytimeServer{
    public Date getDate()
    return new Date();
    public void init(ServletConfig config)throws ServletException
    super.init(config);
    public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
    if("object".equals(req.getParameter("format")))
    ObjectOutputStream out=new ObjectOutputStream(res.getOutputStream());
    out.writeObject(getDate());
    else
    PrintWriter out=res.getWriter();
    out.println(getDate().toString());
    public void doPost(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException
    doGet(req,res);
    public void destroy()
    super.destroy();
    i have compile this file using
    "javac DaytimeServlet.java"
    i get a class file....
    now i am creating Stub and Skeleting using Daytimeservlet class using rmic like
    ""rmic DaytimeServlet"
    but here problem occur......
    i am getting Skeleten java file but during Stub i am getting error.....i am not able to get problem....bcoz these file ie creating by rmic compiler.....
    Getting error during Stub class like "line no 98 required identifier , not {"
    like this ....
    i am using linux System....
    anybody can help me why i am getting this problem....
    why i am not able to get Stub file..
    Please help
    it urgent

    thanx for reply
    actually my concept is as..........
    i have one remote servle program......and one client servlet program...
    i want to access remote servlet methos to client servlet program....
    in above program......i am trying to creater stub and skeleton classes of remote servlet class......
    thats why i am using "rmic with servlet"
    now u just tell me is it possible ya its possible....
    or give some other clue....
    its very urgent.....
    ple reply me

  • Got IOP00110227 from rmic

    Hi,
    I upgraded to java 1.6 and I got the following stack trace wenn calling rmic.
    The build is successful, anyway.
    Do I something wrong? Any ideas?
    The class com.sun.corba.se.impl.presentation.rmi.bcel.StubFactoryFactoryBCELImpl is not included
    in the source code delivery of jdk.
    Well, is it debug information only, but somehow worrying.
    Greetings
    Jaro
    fileset: Setup scanner in dir C:\project\scjd\prj\code\classes with patternSet{ includes: [**/Remote*Impl.class] excludes: [] }
         [rmic] suncertify\rmi\RemoteDBSubcontractorImpl.class added as suncertify/rmi/RemoteDBSubcontractorImpl_Stub.class doesn't exist.
         [rmic] RMI Compiling 1 class to C:\project\scjd\prj\code\classes
         [rmic] Using SUN rmic compiler
         [rmic] Compilation arguments:
         [rmic] '-d'
         [rmic] 'C:\project\scjd\prj\code\classes'
         [rmic] '-classpath'
         [rmic] 'C:\project\scjd\prj\code\classes;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-antlr.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-bcel.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-bsf.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-log4j.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-oro.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-regexp.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-resolver.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-commons-logging.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-commons-net.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-icontract.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-jai.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-javamail.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-jdepend.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-jmf.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-jsch.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-junit.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-launcher.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-netrexx.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-nodeps.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-starteam.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-stylebook.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-swing.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-trax.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-vaj.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-weblogic.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-xalan1.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-xslp.jar;C:\Programme\eclipse3.1\eclipse\configuration\org.eclipse.osgi\bundles\8\1\.cp\lib\remoteAnt.jar;C:\Programme\Java\jdk1.6.0\lib\tools.jar;C:\Programme\eclipse3.1\eclipse\plugins\org.eclipse.swt.win32.win32.x86_3.1.0.jar'
         [rmic] '-v1.2'
         [rmic]
         [rmic] The ' characters around the executable and arguments are
         [rmic] not part of the command.
         [rmic] File to be compiled:    suncertify.rmi.RemoteDBSubcontractorImpl
         [rmic] 15.01.2007 23:20:07 com.sun.corba.se.spi.orb.ORB$2 run
         [rmic] FEIN: "IOP00110227: (BAD_PARAM) ORBDynamicStubFactoryFactoryClass property had value com.sun.corba.se.impl.presentation.rmi.bcel.StubFactoryFactoryBCELImpl, which could not be loaded by the ORB ClassLoader"
         [rmic] org.omg.CORBA.BAD_PARAM:   vmcid: SUN  minor code: 227  completed: No
         [rmic] at com.sun.corba.se.impl.logging.ORBUtilSystemException.errorInSettingDynamicStubFactoryFactory(Unknown Source)
         [rmic] at com.sun.corba.se.impl.logging.ORBUtilSystemException.errorInSettingDynamicStubFactoryFactory(Unknown Source)
         [rmic] at com.sun.corba.se.spi.orb.ORB$2.run(Unknown Source)
         [rmic] at java.security.AccessController.doPrivileged(Native Method)
         [rmic] at com.sun.corba.se.spi.orb.ORB.<clinit>(Unknown Source)
         [rmic] at com.sun.corba.se.impl.logging.UtilSystemException.get(Unknown Source)
         [rmic] at com.sun.corba.se.impl.util.Utility.<clinit>(Unknown Source)
         [rmic] at sun.rmi.rmic.RMIGenerator.sourceFileForClass(RMIGenerator.java:196)
         [rmic] at sun.rmi.rmic.RMIGenerator.<init>(RMIGenerator.java:277)
         [rmic] at sun.rmi.rmic.RMIGenerator.generate(RMIGenerator.java:115)
         [rmic] at sun.rmi.rmic.Main.doCompile(Main.java:546)
         [rmic] at sun.rmi.rmic.Main.compile(Main.java:148)
         [rmic] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [rmic] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         [rmic] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         [rmic] at java.lang.reflect.Method.invoke(Unknown Source)
         [rmic] at org.apache.tools.ant.taskdefs.rmic.SunRmic.execute(SunRmic.java:53)
         [rmic] at org.apache.tools.ant.taskdefs.Rmic.execute(Rmic.java:529)
         [rmic] at org.apache.tools.ant.Task.perform(Task.java:364)
         [rmic] at org.apache.tools.ant.Target.execute(Target.java:341)
         [rmic] at org.apache.tools.ant.Target.performTasks(Target.java:369)
         [rmic] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
         [rmic] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
         [rmic] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
         [rmic] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
         [rmic] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
         [rmic] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
         [rmic] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
         [rmic] Caused by: java.lang.ClassNotFoundException: com.sun.corba.se.impl.presentation.rmi.bcel.StubFactoryFactoryBCELImpl
         [rmic] at java.net.URLClassLoader$1.run(Unknown Source)
         [rmic] at java.security.AccessController.doPrivileged(Native Method)
         [rmic] at java.net.URLClassLoader.findClass(Unknown Source)
         [rmic] at java.lang.ClassLoader.loadClass(Unknown Source)
         [rmic] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         [rmic] at java.lang.ClassLoader.loadClass(Unknown Source)
         [rmic] at com.sun.corba.se.impl.orbutil.ORBClassLoader.loadClass(Unknown Source)
         [rmic] ... 26 more

    Same exact issue!! Ive seen some others with similar issues with LORAX and itunes

  • RMI Compiling fails with

    Hi,
    I wrote an very small RMI program. It only demonstrate the function of rmi. But if I want to compile the necessery sources with the rmic-compiler, I get the follow output:
    <cmd>
    D:\Projekte\Eclipse\Arbeit\RmiTest>rmic de.lindcom.rmivoodoo.server.VoodooImpl
    error: Class de.lindcom.rmivoodoo.server.VoodooImpl not found.
    1 error
    </cmd>
    The class VoodooImpl:
    package de.lindcom.rmivoodoo.server;
    import java.rmi.RemoteException;
    import java.rmi.server.UnicastRemoteObject;
    import de.lindcom.rmivoodoo.rmi.Voodoo;
    import de.lindcom.rmivoodoo.rmi.VoodooResponse;
    public class VoodooImpl
        extends UnicastRemoteObject
        implements Voodoo {
        private String spell;
        protected VoodooImpl()
            throws RemoteException { 
        public void setSpell(String spell)
            throws RemoteException {
            this.spell = spell;
        public String getSpell()
            throws RemoteException {
            return spell;       
        public VoodooResponse doVoodoo()
            throws RemoteException {
            VoodooResponseImpl vri = new VoodooResponseImpl();
            vri.setSpell(spell);
            vri.setSuccess(true);
            return vri;      
    }The project itself works on an other pc. Maybe some PATH-variables are wrong:
    JAVA_HOME=C:\Programme\Java\jdk1.5.0_06
    Path=C:\WINNT\system32;C:\WINNT;C:\Programme\Java\jdk1.5.0_06\bin
    But these paths are correct. Where is the problem?!
    Thanks for help
    Michael

    Hi,
    thanks. You're right. I added a dot to the classpath and it worked!
    Gr��e
    Michael

  • Error while runing ejbc

    Hi,
    I am getting this error while i deploy my application on Sun1 7.0 /Linux Platform. It works fine in Windows. Any help ? Please
    18/Feb/2003:14:33:20] FINE ( 9447): [EJBC] rmic com.siptech.pdf.ejb.session.PDFSessionBean_RemoteHomeImpl...
    [18/Feb/2003:14:33:20] FINE ( 9447): [EJBC] rmic com.siptech.pdf.ejb.session.PDFSessionBean_EJBObjectImpl...
    [18/Feb/2003:14:33:20] FINE ( 9447): [EJBC] rmic com.siptech.pdf.ejb.config.session.ConfigSessionBean_RemoteHomeImpl...
    [18/Feb/2003:14:33:20] FINE ( 9447): [EJBC] rmic com.siptech.pdf.ejb.config.session.ConfigSessionBean_EJBObjectImpl...
    18/Feb/2003:14:33:20] FINE ( 9447): JDK Directory: /home/sunone/appserver7/jdk
    [18/Feb/2003:14:33:20] INFO ( 9361): CORE3282: stdout: Remote message: Compiling RMI-IIOP code ....
    [18/Feb/2003:14:33:31] SEVERE ( 9447): DPL5102: EJBC - rmic compilation failed
    [18/Feb/2003:14:33:31] WARNING ( 9447): DPL5035:Error while running ejbc
    com.iplanet.ias.deployment.backend.IASDeploymentException: Fatal Error from EJB Compiler -- -- rmic compilation failed: com.iplanet.ias.ejb.codegen.JavaCompilerException: RMI compiler returned an error: {0}
         at com.iplanet.ias.deployment.backend.EJBCompiler.wrapException(EJBCompiler.java:589)
         at com.iplanet.ias.deployment.backend.EJBCompiler.compile(EJBCompiler.java:186)
         at com.iplanet.ias.deployment.backend.AppDeployer.runEJBC(AppDeployer.java:215)
         at com.iplanet.ias.deployment.backend.AppDeployer.deploy(AppDeployer.java:98)
         at com.iplanet.ias.deployment.backend.AppDeployer.doRequest(AppDeployer.java:50)
         at com.iplanet.ias.admin.server.core.mbean.config.ManagedServerInstance.deployJ2EEApplicationArchiveOrDirectory(ManagedServerInstance.java:743)
         at com.iplanet.ias.admin.server.core.mbean.config.ManagedServerInstance.deployJ2EEApplication(ManagedServerInstance.java:666)
         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.iplanet.ias.admin.server.core.jmx.Introspector.invokeMethodOn(Introspector.java:188)
         at com.iplanet.ias.admin.server.core.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:137)
         at com.iplanet.ias.admin.server.core.jmx.ASMBeanServerImpl.invoke(ASMBeanServerImpl.java:222)
         at com.iplanet.ias.admin.servermodel.controllers.SOMRequestDispatcher.invoke(SOMRequestDispatcher.java:88)
         at com.iplanet.ias.admin.servermodel.controllers.AppServerInstanceController.doDeploy(AppServerInstanceController.java:2244)
         at com.iplanet.ias.admin.servermodel.controllers.AppServerInstanceController.deployApplication(AppServerInstanceController.java:1099)
         at com.iplanet.ias.admin.servermodel.AppServerInstance.deployApplication(AppServerInstance.java:249)
         at com.iplanet.ias.admin.server.gui.jato.DeployEARApplicationViewBean.add(DeployEARApplicationViewBean.java:111)
         at com.iplanet.ias.admin.server.gui.jato.IASViewBean.handleOkRequest(IASViewBean.java:235)
         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.iplanet.jato.view.command.DefaultRequestHandlingCommand.execute(DefaultRequestHandlingCommand.java:183)
         at com.iplanet.jato.view.RequestHandlingViewBase.handleRequest(RequestHandlingViewBase.java:299)
         at com.iplanet.jato.view.ViewBeanBase.dispatchInvocation(ViewBeanBase.java:811)
         at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandlerInternal(ViewBeanBase.java:749)
         at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandler(ViewBeanBase.java:596)
         at com.iplanet.jato.ApplicationServletBase.dispatchRequest(ApplicationServletBase.java:772)
         at com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.java:446)
         at com.iplanet.jato.ApplicationServletBase.doPost(ApplicationServletBase.java:324)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
         at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
         at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.StandardW

    Hi,
    I am getting this error while i deploy my application on Sun1 7.0 /Linux Platform. It works fine in Windows. Any help ? Please
    18/Feb/2003:14:33:20] FINE ( 9447): [EJBC] rmic com.siptech.pdf.ejb.session.PDFSessionBean_RemoteHomeImpl...
    [18/Feb/2003:14:33:20] FINE ( 9447): [EJBC] rmic com.siptech.pdf.ejb.session.PDFSessionBean_EJBObjectImpl...
    [18/Feb/2003:14:33:20] FINE ( 9447): [EJBC] rmic com.siptech.pdf.ejb.config.session.ConfigSessionBean_RemoteHomeImpl...
    [18/Feb/2003:14:33:20] FINE ( 9447): [EJBC] rmic com.siptech.pdf.ejb.config.session.ConfigSessionBean_EJBObjectImpl...
    18/Feb/2003:14:33:20] FINE ( 9447): JDK Directory: /home/sunone/appserver7/jdk
    [18/Feb/2003:14:33:20] INFO ( 9361): CORE3282: stdout: Remote message: Compiling RMI-IIOP code ....
    [18/Feb/2003:14:33:31] SEVERE ( 9447): DPL5102: EJBC - rmic compilation failed
    [18/Feb/2003:14:33:31] WARNING ( 9447): DPL5035:Error while running ejbc
    com.iplanet.ias.deployment.backend.IASDeploymentException: Fatal Error from EJB Compiler -- -- rmic compilation failed: com.iplanet.ias.ejb.codegen.JavaCompilerException: RMI compiler returned an error: {0}
         at com.iplanet.ias.deployment.backend.EJBCompiler.wrapException(EJBCompiler.java:589)
         at com.iplanet.ias.deployment.backend.EJBCompiler.compile(EJBCompiler.java:186)
         at com.iplanet.ias.deployment.backend.AppDeployer.runEJBC(AppDeployer.java:215)
         at com.iplanet.ias.deployment.backend.AppDeployer.deploy(AppDeployer.java:98)
         at com.iplanet.ias.deployment.backend.AppDeployer.doRequest(AppDeployer.java:50)
         at com.iplanet.ias.admin.server.core.mbean.config.ManagedServerInstance.deployJ2EEApplicationArchiveOrDirectory(ManagedServerInstance.java:743)
         at com.iplanet.ias.admin.server.core.mbean.config.ManagedServerInstance.deployJ2EEApplication(ManagedServerInstance.java:666)
         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.iplanet.ias.admin.server.core.jmx.Introspector.invokeMethodOn(Introspector.java:188)
         at com.iplanet.ias.admin.server.core.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:137)
         at com.iplanet.ias.admin.server.core.jmx.ASMBeanServerImpl.invoke(ASMBeanServerImpl.java:222)
         at com.iplanet.ias.admin.servermodel.controllers.SOMRequestDispatcher.invoke(SOMRequestDispatcher.java:88)
         at com.iplanet.ias.admin.servermodel.controllers.AppServerInstanceController.doDeploy(AppServerInstanceController.java:2244)
         at com.iplanet.ias.admin.servermodel.controllers.AppServerInstanceController.deployApplication(AppServerInstanceController.java:1099)
         at com.iplanet.ias.admin.servermodel.AppServerInstance.deployApplication(AppServerInstance.java:249)
         at com.iplanet.ias.admin.server.gui.jato.DeployEARApplicationViewBean.add(DeployEARApplicationViewBean.java:111)
         at com.iplanet.ias.admin.server.gui.jato.IASViewBean.handleOkRequest(IASViewBean.java:235)
         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.iplanet.jato.view.command.DefaultRequestHandlingCommand.execute(DefaultRequestHandlingCommand.java:183)
         at com.iplanet.jato.view.RequestHandlingViewBase.handleRequest(RequestHandlingViewBase.java:299)
         at com.iplanet.jato.view.ViewBeanBase.dispatchInvocation(ViewBeanBase.java:811)
         at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandlerInternal(ViewBeanBase.java:749)
         at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandler(ViewBeanBase.java:596)
         at com.iplanet.jato.ApplicationServletBase.dispatchRequest(ApplicationServletBase.java:772)
         at com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.java:446)
         at com.iplanet.jato.ApplicationServletBase.doPost(ApplicationServletBase.java:324)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
         at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
         at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.StandardW

  • RMI-IIOP client - CORBA Server

    I already have a CORBA server in C++ which has already been written. I am trying to develop an RMI-IIOP client which would talk to this CORBA Server.
    The CORBA server has several interfaces that I would like to use with my RMI-IIOP client. How do I proceed?? Can somebody give me an example of an RMI-IIOP client? Basically my question is: how do I take the IDL and build an RMI-IIOP client with it???

    Hello
    I already have a CORBA server in C++ which has already
    been written. I am trying to develop an RMI-IIOP
    client which would talk to this CORBA Server.
    The CORBA server has several interfaces that I would
    like to use with my RMI-IIOP client. How do I
    proceed?? Can somebody give me an example of an
    RMI-IIOP client? Basically my question is: how do I
    take the IDL and build an RMI-IIOP client with it???The steps to do are the following:
    * Creating the Remote interface
    * Using the rmic compiler to genarate the IDL and the client stub.
    * Generating stub and skeleton of the C++ server using that IDL (the one you already made is no longer compatible)
    * Bulding up the new C++ server
    * Using a nameservice (tnameserver for example) and binding your server to that.
    * Writing the RMI-IIOP client
    I proceeded like this (using Visibroker 4.5 on the server side) and I was able to do it... but as you can see from my last post, I wasn't able to pass Strings from the client to the server.
    Bye

Maybe you are looking for