Hi Vlad,
The auto deployment compile the beans and creates the wrapper code for the
beans. In addition
it tries to create the associated Database tables. You need a datasource. I
just plugged my
stuff in for Oracle. The first and the last four items are all that I
changed.
from data-sources.xml. I cloned the example and made this entry.
<data-source
name=" Krypton data-source"
class="com.evermind.sql.ConnectionDataSource"
location="jdbc/DefaultDS"
pooled-location="jdbc/DefaultPooledDS"
xa-location="jdbc/xa/DefaultXADS"
ejb-location="jdbc/DefaultEJBDS"
url="jdbc:oracle:thin:@krypton:1521:krypton"
connection-driver="oracle.jdbc.driver.OracleDriver"
username="teal"
password="teal"
/>
I had a couple of problems due to table name length- previous post but at
least it deployed.
That's all I know.
Eric :-)
p.s. good luck
Vlad Petric wrote:
> What I did
> -unpacked orion in d:\orion
> -copied tools.jar in d:\orion
> -added <application name="ejbsamples" path="../demo/ejb" /> in
> server.xml
> -removed deactivated=true from <user username="admin"
> password="123"> in principals.xml
> -set CLASSPATH to
> .;d:\orion\orion.jar;d:\orion\ejb.jar;d:\orion\jndi.jar
> -ran java -jar orion.jar in d:\orion
>
> what I get is:
>
> ===============
> Auto-deploying ejbsamples...
> Auto-deploying usermanager... Error compiling
> file:/D:/orion/demo/ejb/usermanage
> r/: Error finding a suitable DataSource: No default XADataSource and no
> source s
> pecified
> Auto-deploying product... Error compiling
> file:/D:/orion/demo/ejb/product/: Erro
> r finding a suitable DataSource: No default XADataSource and no source
> specified
>
> Auto-deploying cart... done.
> Auto-deploying product... Error initializing server: Error
> auto-deploying applic
> ation-client at product: No location specified and no suitable instance
> of the t
> ype 'Product' found for the ejb-ref MyProduct
> ==============================
>
> The errors are there because the lack of a suitable DataSource, of
> course. What puzzels me is the lack of a message telling me that the
> webservice had been started, or something like that.
> http://localhost simply doesn't work.
>
> I tried the cart demo afterwards. I went to d:\orion\demo\ejb\cart, ran
> java CartClient, which gives me the following error message:
>
> Communication error: java:comp/ResourceFinder not found
>
> Then I tried to shutdown the server (I know that theoretically I should
> not need to do this):
>
> D:\orion>java -jar shutdown.jar ormi://127.0.0.1 admin 123
> Error: java:comp/ServerAdministrator not found
>
> Could someone please tell me what the <beep> have I done wrong ?
>
> Vlad Petric