Hello all,
can anyone post some hints on setting up for using mySQL?
I used the information posted under bug #133 regarding msSQL to setup
the mm-jdbc driver which loads just fine. Where I'm failing is a
correct setup in jaws.xml, ejb-jar.xml. In jaws.xml I set
<datasource>MySQL</datasource> // same name as in jboss.conf
<type-mapping>mySQL</type-mapping>
<enterprise-beans>
<entity>
<ejb-name>FeedBackFormEJB</ejb-name>
<table-name>FeedBackFormEJBTable</table-name>
<create-table>true</create-table>
<remove-table>false</remove-table>
<tuned-updates>false</tuned-updates>
<read-only>false</read-only>
<time-out>300</time-out>
<cmp-field>
<field-name>id</field-name>
<column-name>id</column-name>
<sql-type>VARCHAR(256)</sql-type>
<jdbc-type>VARCHAR</jdbc-type>
</cmp-field>
<cmp-field>
<field-name>test</field-name>
<column-name>test</column-name>
<sql-type>VARCHAR(256)</sql-type>
<jdbc-type>VARCHAR</jdbc-type>
</cmp-field>
</entity>
</enterprise-beans>
When I deploy the ejb, the following exception occurs:
[Container factory] Deploying FeedBackFormEJB
[JAWS] Initializing JAWS plugin for FeedBackFormEJB
at
org.jboss.ejb.plugins.jaws.deployment.JawsCMPField.propertyChange(JawsCMPField.java:210)[Container
factory] java.lang.NullPointerException
at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:230)
at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:157)
at
java.beans.beancontext.BeanContextChildSupport.firePropertyChange(BeanContextChildSupport.java:212)
at
org.jboss.ejb.plugins.jaws.deployment.JawsEjbJar.setTypeMapping(JawsEjbJar.java:72)
at
org.jboss.ejb.plugins.jaws.deployment.JawsEjbJar.importXml(JawsEjbJar.java:131)
at
org.jboss.ejb.plugins.jaws.deployment.JawsFileManager.load(JawsFileManager.java:157)
at
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.init(JAWSPersistenceManager.java:159)
Interesting to me though, the bean is deployed to hypersonic instead and
runs. Do I have to
insert a <resource-ref>?
thanks,
jan
--
NCBBS GmbH Tel +49 40 39834550
Behringstr. 28a Fax +49 40 39834555
22765 Hamburg email [EMAIL PROTECTED]
Germany http://www.ncbbs.de
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]