MySQL « JBoss « Java Enterprise Q&A





1. jboss mysql connection validation    stackoverflow.com

when I put

<check-valid-connection-sql>select 1</check-valid-connection-sql>
in jboss datasourse config I get this exception:
java.lang.IllegalArgumentException: id to load is required for loading
org.hibernate.event.LoadEvent.<init>(LoadEvent.java:74)
org.hibernate.event.LoadEvent.<init>(LoadEvent.java:56)
org.hibernate.impl.SessionImpl.get(SessionImpl.java:839)
org.hibernate.impl.SessionImpl.get(SessionImpl.java:835)
org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:182)
org.jboss.seam.persistence.EntityManagerProxy.find(EntityManagerProxy.java:87)
com.klikmee.tc.providers.ProviderProxy.parseTransactionId(ProviderProxy.java:137)
com.klikmee.tc.providers.ProviderProxy.cancel(ProviderProxy.java:382)
com.klikmee.tc.providers.ProviderProxy.cancel(ProviderProxy.java:359)
com.klikmee.tc.servlets.DatecsTerminalCommunicatorServlet$RequestProcessor.processReverseTransaction(DatecsTermin 

2. ClassCastException using MySQL ReplicationDriver in a JBoss app?    stackoverflow.com

Can anyone help me with this? I've read through http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-replication-connection.html and created a JBoss datasource with

<connection-url>jdbc:mysql:replication://sys1:3306,sys2:3306,sys3:3306/mydb</connection-url>
<driver-class>com.mysql.jdbc.ReplicationDriver</driver-class>
In my JBoss code, when I execute the following (on a slave node)
Context initCtx ...

3. What can be wrong regarding this jboss and mysql setup?    stackoverflow.com

I have a deployed version of my project, running Jboss and mysql. This works perfectly. I had the development project on my local machine running with jboss and mysql. This was running ...

4. cannot commit with autocommit set    stackoverflow.com

Hi I got the following error when I deploy my application on jboss. I have use

"session.connection().commit();" (The method connection() from the type Session is ...

5. How to fetch the latest versions of mysql, jboss servers in ubuntu    stackoverflow.com

This fetches revision 5.1 only:

sudo apt-get install mysql-server
but the latest community server version is 5.5.9 Similarly how would I fetch the 5.1 version of the JBoss application server. Also, how would I list ...

6. What's the best way to handle resizing of thumbnails for dynamic images?    stackoverflow.com

I have a web app that lets users upload images. The images then appear as thumbnails on the app, and when a user clicks on the thumbnail it shows the ...

7. Installing alfresco 3.4 on jboss with mysql    stackoverflow.com

I am trying to install alfresco 3.4 into an already existent jboss instance but the documentation I have followed appears to be incorrect. First issue is the docs mention an extensions ...