Hi,
I downloaded the Orion server (v 1.03b) and wanted to try out
the EJB examples. Prior to this , I have already downloaded
Hypersonic SQL
I managed to get some sample servlets to talk and access
the Hypersonic SQL database server. Then I decided to try
out the EJB samples.
Along with this, I also modifed the datasource.xml as given in the
online documentation.
======================================================
<data-sources>
<data-source
name="Default 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:HypersonicSQL:test"
connection-driver="hSql.hDriver"
username="sa"
password=""
schema="database-schemas/hypersonic.xml"
/>
</data-sources>
======================================================
When I followed the instrucutions included and modified the server.xml
file, I noticed that there were some errors.
======================================================
C:\install\orion>java -jar orion.jar
Orion/1.0.3 initialized
Auto-deploying ejbsamples...
Auto-deploying usermanager... Error compiling
file:/C:/install/orion/demo/ejb/us
ermanager/: No default cmt-datasource and no source specified
Auto-deploying product... Error compiling
file:/C:/install/orion/demo/ejb/produc
t/: No default cmt-datasource and no source specified
Auto-deploying cart... done.
Auto-deploying product... Error instantiating application 'ejbsamples'
at file:/
C:/install/orion/demo/ejb/: Error auto-deploying application-client at
product:
No location specified and no suitable instance of the type 'Product'
found for the ejb-ref MyProduct
======================================================
So I modifed the server.xml to back to the original contents (without
EJB demo)
and I thought that my data source was not configured correctly
and modified it to be this
======================================================
<data-sources>
<data-source
name="Default 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:HypersonicSQL:hsql://localhost"
connection-driver="org.hsql.jdbcDriver"
username="sa"
password=""
schema="database-schemas/hypersonic.xml"
/>
</data-sources>
======================================================
However, the error still appears when I modifed back the server.xml
to include the EJB demo.
======================================================
C:\install\orion>java -jar orion.jar
Orion/1.0.3 initialized
Auto-deploying usermanager... Error compiling
file:/C:/install/orion/demo/ejb/us
ermanager/: No default cmt-datasource and no source specified
Auto-deploying product... Error compiling
file:/C:/install/orion/demo/ejb/produc
t/: No default cmt-datasource and no source specified
Auto-deploying product... Error instantiating application 'ejbsamples'
at file:/
C:/install/orion/demo/ejb/: Error auto-deploying application-client at
product:
No location specified and no suitable instance of the type 'Product'
found for the ejb-ref MyProduct
======================================================
Any help on this is very much appreciated. Or if you could point me to
a step by step tutorial / guide on developing EJB ( session and entity
bean) would be very much appreciated.
I have already downloaded the Orion server EJB Step By Step guide which
only covers on session bean in Orion server. However, I have not tried
it
yet.
Thank you.
Regards,
Yong Chee Keong