<!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="https://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;">
How to configure MySQL Database with Jboss Portal Bundle 2.7.4 in wondows Platform
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/vaibhavnigam">hira magin</a> in <i>Datasource Configuration</i> - <a href="https://community.jboss.org/message/798205#798205">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>How to configure  MySQL Database with Jboss Portal Bundle 2.7.4 in wondows Platform</p><p>Any One Can Help me . I am new in jboss portal I follow this step to configure database with jboss portal but it gives ERROR </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><h3 class="post-title entry-title"> JBOSS Portal Installation </h3><p class="post-header">  </p><h1 class="title" style="font-weight: normal; font-family: verdana;"><span style="font-size: 85%;">Chapter 1. Download</span></h1><p><span style="font-family: verdana; font-size: 85%;"><span>Download JBoss portal from </span><a class="jive-link-external-small" href="http://www.jboss.org/jbossportal/download/index.html" target="_blank">http://www.jboss.org/jbossportal/download/index.html</a><span>.</span><br/>Package: JBoss Portal + JBoss AS 4.2.3<br/><span>Direct download link: </span><a class="jive-link-external-small" href="http://downloads.sourceforge.net/jboss/jboss-portal-2.7.2-bundled.zip" rel="nofollow" target="_blank">http://downloads.sourceforge.net/jboss/jboss-portal-2.7.2-bundled.zip</a><br/></span><span style="font-size: 85%;"><br/>Chapter 2. Installation</span></p><h2 style="font-weight: normal; font-family: verdana;"><span style="font-size: 85%;">2.1 Folder structure (προτεινόμενη)</span></h2><p><span style="font-family: verdana; font-size: 85%;">Extract jboss-portal-2.7.2-bundled.zip to a desired folder (for example C:\server\jboss). Το τελικό path του portal είναι C:\server\jboss\jboss-portal-2.7.2-bundled\jboss-portal-2.7.2<br/></span></p><h2 style="font-weight: normal; font-family: verdana;"><span style="font-size: 85%;">2.2 Database</span></h2><p><span style="font-family: verdana; font-size: 85%;">Δημιουργούμε μια βάση δεδομένων (for example jboss).<br/><em>All database tables will be created for you at runtime.</em><br/></span></p><h2 style="font-weight: normal; font-family: verdana;"><span style="font-size: 85%;">2.3 JDBC connector</span></h2><p><span style="font-family: verdana; font-size: 85%;"><span>Download MySQL JDBC connector from </span><a class="jive-link-external-small" href="http://dev.mysql.com/downloads/connector/j/5.1.html" rel="nofollow" target="_blank">http://dev.mysql.com/downloads/connector/j/5.1.html</a><br/>Το αρχείο mysql-connector-java-5.1.7-bin.jar πρέπει να τοποθετηθεί στο path $JBOSS_HOME/server/default/lib (C:\server\jboss\jboss-portal-2.7.2-bundled\jboss-portal-2.7.2\server\default\lib)<br/></span></p><h2 style="font-weight: normal; font-family: verdana;"><span style="font-size: 85%;">2.4 JBoss and MySQL Configuration</span></h2><ol><li><span style="font-size: 85%;">Copy  C:\server\jboss\jboss-portal-2.7.2-bundled\jboss-portal-2.7.2\setup\portal-mysql5-ds.xml (for PHP5) to C:\server\jboss\jboss-portal-2.7.2-bundled\jboss-portal-2.7.2\server\default\deploy</span></li><li><span style="font-size: 85%;">Copy  C:\server\jboss\jboss-portal-2.7.2-bundled\jboss-portal-2.7.2\docs\examples\jca\mysql-ds.xml to C:\server\jboss\jboss-portal-2.7.2-bundled\jboss-portal-2.7.2\server\default\deploy</span></li><li><span style="font-size: 85%;">Rename  C:\server\jboss\jboss-portal-2.7.2-bundled\jboss-portal-2.7.2\server\default\deploy\portal-hsqldb-ds.xml to portal-hsqldb-ds.xml-rename (ώστε να διαβαστούν το αντίστοιχο mysql)</span></li><li><span style="font-size: 85%;">Rename  C:\server\jboss\jboss-portal-2.7.2-bundled\jboss-portal-2.7.2\server\default\deploy\hsqldb-ds.xml to hsqldb-ds.xml-rename (ώστε να διαβαστούν το αντίστοιχο mysql)</span></li></ol><h2 style="font-weight: normal; font-family: verdana;"><span style="font-size: 85%;">2.5 Configure portal-mysql5-ds.xml and mysql-ds.xml</span></h2><p><span style="font-family: verdana; font-size: 85%;">Τροποποίηση αυτών των αρχείων για τη σωστή σύνδεση στη βάση δεδομένων (XAMMP),<br/></span></p><ol style="font-family: verdana;"><li><span style="font-size: 85%; font-weight: normal;">portal-mysql5-ds.xml: Replace</span> <span style="font-size: 85%;"><span class="b"> </span>       PortalDS<br/>  jdbc:mysql://localhost:3306/jbossportal?useServerPrepStmts=false&jdbcCompliantTruncation=false<br/>  com.mysql.jdbc.Driver<br/>  portal<br/>  portalpassword</span><span class="e"><p style="margin-left: 1em;"><span style="font-size: 85%;"><span class="m"> with </span></span><span style="font-size: 85%;">      PortalDS<br/>  jdbc:mysql://localhost/jboss?useServerPrepStmts=false&jdbcCompliantTruncation=false<br/>  com.mysql.jdbc.Driver<br/>  root<br/>  </span></p></span></li><li><span style="font-size: 85%;">mysql-ds.xml: Replace<br/><br/>MySqlDS<br/>  jdbc:mysql://mysql-hostname:3306/jbossdb<br/>  com.mysql.jdbc.Driver<br/>  x<br/>  y<br/>with<br/>MySqlDS<br/>  jdbc:mysql://localhost/jboss<br/>  com.mysql.jdbc.Driver<br/>  root<br/>  </span></li></ol><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><h2 style="font-weight: normal; font-family: verdana;"><span style="font-size: 85%;">2.6 Deploy JBoss portal</span></h2><p><span style="font-family: verdana; font-size: 85%;">Run from console C:\server\jboss\jboss-portal-2.7.2-bundled\jboss-portal-2.7.2\bin\run.bat -b 0.0.0.0 </span></p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/798205#798205">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Datasource Configuration at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2077">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>