File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Java Products and Servers and the fly likes Orion ejb client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Orion ejb client " Watch "Orion ejb client " New topic

Orion ejb client

rajiv mehta

Joined: Dec 30, 2003
Posts: 4
I keep on getting the following error when i try to execute the "Product" ejb example which is shipped with Orion on dos prompt .
Communication error: Cannot instantiate class: ormi://localhost:30/ejbsamples
Web based applications run successfully . using url
Do i have to relax security restrictions using policy tool if so how ???

d:\orion\demo\ejb\product>java ProductClient
I have orion.jar,admin.jar,ejb.jar on classpath. Settings for the same has been done in TaskManager of Windows2000 .Any help in this regards will be highly appreciated .
My classpaths in the enviroment

<group name="administrators">
<permission name="administration" />
<group name="guests">
<group name="users">
<permission name="rmi:login" />
<user username="admin" password="orion">
<description>The default administrator</description>
<group-membership group="administrators" />
<group-membership group="guests" />
<group-membership group="users" />
<user username="user" password="456">
<description>The default user</description>
<group-membership group="guests" />
<group-membership group="users" />
<user username="anonymous" password="">
<description>The default guest/anonyomous user</description>
<group-membership group="guests" />

below is the path for application .
<application name="ejbsamples" path="../demo/ejb" />
below is the path for rmi.xml.
<rmi-config path="./rmi.xml" />

<rmi-server host="localhost" port="30">
<log><file path="../log/rmi.log" /></log>
Given below is code fragment of ProductClient.
public class ProductClient
public static void main(String[] args)
Properties prop = new Properties();
Context context = new InitialContext(prop);
Object homeObject = context.lookup("java:comp/env/MyProduct");
ProductHome home = (ProductHome)PortableRemoteObject.narrow(homeObject, ProductHome.class);
<?xml version="1.0"?>
<!DOCTYPE application-client PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.2//EN" "">
rajiv mehta

Joined: Dec 30, 2003
Posts: 4
I get the following error when i execute following command at the dos prompt .
D:\orion>java -jar admin.jar ormi://localhost:30/ admin orion -restart
Error: javax.naming.NamingException: Connection error connecting to localhost:30
: Connection refused: connect; nested exception is: Connection refused: connect [Root exception i
s com.evermind.server.rmi.OrionRemoteException: Connection error connecting to l
ocalhost:30: Connection refused: connect; nested exception is: Connection refused: connect]
rajiv mehta

Joined: Dec 30, 2003
Posts: 4
Do i have to edit the default policies using policy tool if so how ???
I agree. Here's the link:
subject: Orion ejb client
It's not a secret anymore!