<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: Looking for Examples
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/violentstormm">Marco Barber</a> in <i>Beginner's Corner</i> - <a href="http://community.jboss.org/message/563896#563896">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Here we go:</p><p>Finally I've managed it to get a working Jboss 5.1 GA with jdk1.6 and Mysql connection.</p><p>Also the Seam-bay application was deployed successfully with Mysql connection. Therefore I edited the jboss-seam-bay-ds.xml as followed:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code jive-xml"><span class="jive-xml-tag">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</span>

&lt;!DOCTYPE datasources
 PUBLIC <span class="jive-xml-quote">-//JBoss//DTD JBOSS JCA Config 1.5//EN</span>
 <span class="jive-xml-quote"><a class="jive-link-external-small" href="http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd" target="_blank">http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd</a></span>&gt;

<span class="jive-xml-tag">&lt;datasources&gt;</span>
 <span class="jive-xml-tag">&lt;local-tx-datasource&gt;</span>
 <span class="jive-xml-tag">&lt;jndi-name&gt;</span>seambayDatasource<span class="jive-xml-tag">&lt;/jndi-name&gt;</span>
 <span class="jive-xml-tag">&lt;connection-url&gt;</span>jdbc:mysql://localhost:3306/jboss<span class="jive-xml-tag">&lt;/connection-url&gt;</span>
 <span class="jive-xml-tag">&lt;driver-class&gt;</span>com.mysql.jdbc.Driver<span class="jive-xml-tag">&lt;/driver-class&gt;</span>
 <span class="jive-xml-tag">&lt;user-name&gt;</span>jboss<span class="jive-xml-tag">&lt;/user-name&gt;</span>
 <span class="jive-xml-tag">&lt;password&gt;</span>jboss<span class="jive-xml-tag">&lt;/password&gt;</span>
 <span class="jive-xml-tag">&lt;valid-connection-checker-class-name&gt;</span>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker<span class="jive-xml-tag">&lt;/valid-connection-checker-class-name&gt;</span>
<span class="jive-xml-tag">&lt;transaction-isolation&gt;</span>TRANSACTION_READ_COMMITTED<span class="jive-xml-tag">&lt;/transaction-isolation&gt;</span>
<span class="jive-xml-tag">&lt;metadata&gt;</span>
 <span class="jive-xml-tag">&lt;type-mapping&gt;</span>mySQL<span class="jive-xml-tag">&lt;/type-mapping&gt;</span>
 <span class="jive-xml-tag">&lt;/metadata&gt;</span>
 <span class="jive-xml-tag">&lt;/local-tx-datasource&gt;</span>
<span class="jive-xml-tag">&lt;/datasources&gt;</span>
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>when I start the server with the all config there are some warnings and 1 Error:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Error:</p><pre class="jive-pre"><code class="jive-code">12:31:02,033 ERROR [SchemaExport] schema export unsuccessful
org.hibernate.JDBCException: Error during import script execution at line 1
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Warnings:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">2010-09-28 12:30:50,794 WARN&#160; [org.jboss.jms.server.jbosssx.JBossASSecurityMetadataStore] (main) WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.
2010-09-28 12:30:50,814 WARN&#160; [org.jboss.annotation.factory.AnnotationCreator] (main) No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
2010-09-28 12:30:51,031 WARN&#160; [org.jboss.annotation.factory.AnnotationCreator] (main) No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
2010-09-28 12:30:58,616 WARN&#160; [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (main) WEIRDNESS IN AOP: advisor org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@4c091108
2010-09-28 12:30:58,624 WARN&#160; [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (main) WEIRDNESS IN AOP: advisor org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@4c091108
2010-09-28 12:30:58,631 WARN&#160; [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (main) WEIRDNESS IN AOP: advisor org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@4c091108
2010-09-28 12:30:58,633 WARN&#160; [org.jboss.ejb3.interceptors.aop.InjectInterceptorsFactory] (main) WEIRDNESS IN AOP: advisor org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@4c091108
2010-09-28 12:30:59,234 WARN&#160; [org.hibernate.ejb.Ejb3Configuration] (main) Persistence provider caller does not implement the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null.
2010-09-28 12:31:01,571 WARN&#160; [org.hibernate.impl.SessionFactoryObjectFactory] (main) InitialContext did not implement EventContext
2010-09-28 12:31:02,692 WARN&#160; [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main) schema_reference.4: Failed to read schema document 'jaxws-config_2.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not &lt;xsd:schema&gt;. @ *unknown*[4,76]
2010-09-28 12:31:03,182 WARN&#160; [org.jboss.xb.binding.parser.sax.SaxJBossXBParser] (main) schema_reference.4: Failed to read schema document 'jaxws-config_2.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not &lt;xsd:schema&gt;. @ *unknown*[4,76]
2010-09-28 12:31:03,460 WARNING [javax.enterprise.resource.webcontainer.jsf.config] (main) Unable to process deployment descriptor for context '/jboss-seam-bay-jboss-seam-bay'
2010-09-28 12:31:03,735 WARN&#160; [org.jboss.seam.jsf.SeamPhaseListener] (main) There should only be one Seam phase listener per application
2010-09-28 12:31:05,800 WARN&#160; [org.jboss.seam.Component] (main) Component class should be serializable: bidAction
2010-09-28 12:31:06,111 WARN&#160; [org.jboss.seam.async.QuartzDispatcher] (main) No seam.quartz.properties file. Using in-memory job store.
2010-09-28 12:31:06,115 WARN&#160; [org.jboss.seam.security.permission.PersistentPermissionResolver] (main) no permission store available - please install a PermissionStore with the name 'org.jboss.seam.security.jpaPermissionStore' if persistent permissions are required.


</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>How should I handle these messages?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Edit:</p><p>Could handle the Error by myself. It was caused by some Case-sensetive Erros in the import.sql file..</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Now Everything runs smooth until I want to place a bid..</p><p>therefore I get some strange exeptions:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">Exception during request processing:
Caused by javax.servlet.ServletException with message: "#{bidAction.confirmBid}: javax.persistence.PersistenceException: org.hibernate.exception.DataException: could not insert: [org.jboss.seam.example.seambay.Bid]"
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">Caused by javax.faces.FacesException with message: "#{bidAction.confirmBid}: javax.persistence.PersistenceException: org.hibernate.exception.DataException: could not insert: [org.jboss.seam.example.seambay.Bid]"
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">Caused by javax.faces.el.EvaluationException with message: "javax.persistence.PersistenceException: org.hibernate.exception.DataException: could not insert: [org.jboss.seam.example.seambay.Bid]"
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>what should I do?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Nachricht ge&auml;ndert durch Marco Barber</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/563896#563896">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Beginner's Corner at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>