aspose file tools*
The moose likes Oracle/OAS and the fly likes a problem about ormi , client is was Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "a problem about ormi , client is was" Watch "a problem about ormi , client is was" New topic
Author

a problem about ormi , client is was

lu aimar
Greenhorn

Joined: Feb 25, 2010
Posts: 3
I have a ejb deployed in OAS 10.1.2.0.2. when i use tomcat as client to access ejb, is sucessful.
but when i use was6.0 as client to access ejb,it give me such errors:
E [Servlet Error]-[/TestReMoteEJBHome.jsp]: java.lang.NoClassDefFoundError: com.evermind.server.TransactionRecovery
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:59)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:120)
at com.evermind.server.ThreadState.getCurrentState(ThreadState.java:206)
at com.evermind.server.rmi.RMIConnection.checkServletCaller(RMIConnection.java:3726)
at com.evermind.server.rmi.RMIConnection.<init>(RMIConnection.java:214)
at com.evermind.server.rmi.RMIServer.addNode(RMIServer.java:865)
at com.evermind.server.rmi.RMIServer.getConnection(RMIServer.java:961)
at com.evermind.server.rmi.RMIInitialContextFactory.getInitialContext(RMIInitialContextFactory.java:382)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:679)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:259)
at javax.naming.InitialContext.init(InitialContext.java:235)
at javax.naming.InitialContext.<init>(InitialContext.java:209)

my client code is
Properties properties = new Properties();
properties.put(Context.PROVIDER_URL, "ormi://10.21.111.11:12404/iTreasury");
properties.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.rmi.RMIInitialContextFactory");
properties.put(Context.SECURITY_PRINCIPAL,"admin");
properties.put(Context.SECURITY_CREDENTIALS,"123456");
properties.put("dedicated.rmicontext","true");
Context ctxTask = new InitialContext(properties);
Object obj = ctxTask.lookup("WdvwTransaction");
WdvwTransactionHome home = (WdvwTransactionHome) javax.rmi.PortableRemoteObject.narrow(obj, WdvwTransactionHome.class);
instance = (WdvwTransaction) home.create();

can you give some suggestions,thank you very much!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: a problem about ormi , client is was
 
Similar Threads
a problem about ormi , client is was
a problem about ormi , client is was
EJB Security Access
RAD EJB Standalone Client
access ejb from weblogic; ejb is deployed in websphere