I've solved this problem by swichting from BMP to CMP using JAWS to map the
fields. Now I'm able to create entries in the
mySQL db and to query them, but when i try to set some values, then the
following exception occurs on the server:
[Default] java.rmi.ServerException: Store failed; nested exception is:
java.lang.ClassCastException:
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager$PersistenceContext
[Default] java.lang.ClassCastException:
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager$PersistenceContext
[Default] at
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.storeEntity(JAWSPersistenceManager.java:732)
[Default] at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:250)
[Default] at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:82)
[Default] at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:88)
[Default] at
org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:151)
[Default] at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:129)
[Default] at java.lang.reflect.Method.invoke(Native Method)
[Default] at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
[Default] at sun.rmi.transport.Transport$1.run(Transport.java:142)
[Default] at java.security.AccessController.doPrivileged(Native
Method)
[Default] at
sun.rmi.transport.Transport.serviceCall(Transport.java:139)
[Default] at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443)
[Default] at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:643)
[Default] at java.lang.Thread.run(Thread.java:484)
I've build the version of jboss 2.0 on my own with the latest sources from
cvs.
Does anybody know whats i'm doing wrong?
Tilmann Ludwig
Rickard �berg
<[EMAIL PROTECTED]> An: jBoss
<[EMAIL PROTECTED]>
Gesendet von: Kopie:
<[EMAIL PROTECTED] Thema: Re: [jBoss-User]
InvocationTargetException using MySQL
-dogs.com>
22.05.00 15:19
Bitte antworten an
"jBoss"
Hi!
[EMAIL PROTECTED] wrote:
>
> Im trying to use MySQL in jboss 2.0 with jdk 1.3. on Windows NT 4.0,
using
> the mysql-Driver from mysql_uncomp.jar, Version 1.2b.
>
> The jboss-server is creating the datasource using mysql without problems.
>
> But when I try to create an entity bean with BMP, the following exception
> occurs on the client in the create-
BMP is not yet implemented.
/Rickard
--
Rickard �berg
@home: +46 13 177937
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]