Can't get Orion Application Client demo to work

2001-12-04 Thread Alistair McLean

I'm having problems with Application clients and JNDI.

First of all, I can't run the news-app demo provided with orion. I can
install it no problem and the web app appears to be fine. When I try the
application client I get:

C:\Java\orion\demo\news-appjava -Djava.naming.factory.initial=com.evermind.
serv
er.ApplicationClientInitialContextFactory -jar news-client.jar
Communication error: Error reading application-client descriptor: No
location sp
ecified and no suitable instance of the type 'com.evermind.ejb.NewsSession'
foun
d for the ejb-ref ejb/NewsSession


Now something even more curious. Take the Product demo (mprod-ejb.jar is a
copy of the provided orion-product.jar)

C:\Java\orion\my projects\product2java -jar mprod-ejb.jar
Enter the id (integer) of the product you want to add: 345343432
Enter the name for item 345343432: wew
Enter the cost for wew: 23
creating prod with id 345343432
adding name wew
Product added

which is fine. However, if I change the package of the source files to com
(rather the the default empty package), recompile, and simply change the
location of home/remote/ejb in the xml descriptor files and rejar, I get:

C:\Java\orion\my projects\product2java -jar mprod-ejb.jar
Communication error: Error reading application-client descriptor: No
location sp
ecified and no suitable instance of the type 'com.Product' found for the
ejb-ref
 com.MyProd

If I add an orion-application-client.xml (and an orion-ejb-jar.xml) then I
get:

C:\Java\orion\my projects\product2java -jar mprod-ejb.jar
Communication error: Error reading application-client descriptor: No EJBHome
fou
nd at com.Product as specified by ejb-ref com.MyProd

So, anyone know how to get the demos to work? I'd really appreciate it as
I'm now really confused.

Many thanks

Alistair

xml files for mprod after package renaming:

?xml version=1.0?
!DOCTYPE application-client PUBLIC -//Sun Microsystems, Inc.//DTD J2EE
Application Client 1.2//EN
http://java.sun.com/j2ee/dtds/application-client_1_2.dtd;
application-client
ejb-ref
ejb-ref-namecom.MyProd/ejb-ref-name
ejb-ref-typeEntity/ejb-ref-type
homecom.ProductHome/home
remotecom.Product/remote
/ejb-ref
/application-client


?xml version=1.0?
!DOCTYPE orion-application-client PUBLIC -//Evermind//DTD J2EE
Application-client runtime 1.2//EN
http://www.orionserver.com/dtds/orion-application-client.dtd;
orion-application-client
ejb-ref-mapping name=com.MyProd location=com.Product/
/orion-application-client



?xml version=1.0?
!DOCTYPE ejb-jar PUBLIC -//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans 1.2//EN http://java.sun.com/j2ee/dtds/ejb-jar_1_2.dtd;
ejb-jar
description/
enterprise-beans
entity
description/
ejb-namecom.MyProd/ejb-name
homecom.ProductHome/home
remotecom.Product/remote
ejb-classcom.ProductEJB/ejb-class
primkey-classjava.lang.Integer/primkey-class
reentrantTrue/reentrant
persistence-typeContainer/persistence-type
cmp-field
field-nameid/field-name
/cmp-field
cmp-field
field-namename/field-name
/cmp-field
cmp-field
field-namedescription/field-name
/cmp-field
cmp-field
field-nameprice/field-name
/cmp-field
primkey-fieldid/primkey-field
/entity
/enterprise-beans
assembly-descriptor
container-transaction
method
ejb-namecom.MyProd/ejb-name
method-name*/method-name
/method
trans-attributeNotSupported/trans-attribute
/container-transaction
/assembly-descriptor
/ejb-jar




?xml version=1.0?
!DOCTYPE orion-ejb-jar PUBLIC -//Evermind//DTD Enterprise JavaBeans 1.1
runtime//EN http://www.orionserver.com/dtds/orion-ejb-jar.dtd;
orion-ejb-jar deployment-version=1.5.2 deployment-time=ea77b9f65e
enterprise-beans
entity-deployment name=com.MyProd location=com.Product
wrapper=ProductHome_EntityHomeWrapper2 max-tx-retries=3
table=com_MyProd data-source=jdbc/SQLServerDS
primkey-mapping
cmp-field-mapping name=id persistence-name=id/
/primkey-mapping
cmp-field-mapping name=name persistence-name=name/
cmp-field-mapping name=description 
persistence-name=description/
cmp

RE: Shutdown server

2001-10-23 Thread Alistair



unsubscribe