Mysql, Jboss connecting problem

Hello,
I am having problem with mysql database. I am trying to run AccountEJB application from SUN with mysql as my backend.
PLEASE DO NOT FORGET I AM NOT EXPERT IN JBOSS OR EJB BUT I AM TRYING TO LEAN WITH A EXAMPLE.
HERE IS MY SETUP UP TO THIS POINT.
I am running jboss-3.03.0_tomcat-4.0.3
I am including
1. AccountBean
2. ejb-jar.xml
3. web.xml
4. jboss.xml
6. mysql-service.xml ( I add my database name, username, password and i copy it to ..server/default/deploy dir.)
I only modified mysql-service.xml. Do i have to modify any other jboss files. Some people are saying i have to modify "standardjaws.xml, standardjbosscmp.xml"
My AccountBean code is
Please take a look at "setEntityContext" and "makeConnection" that is where problem comes.
Here is the error
10:43:19,950 INFO [Engine] AccountServlet: init
10:43:19,950 INFO [STDOUT] AccountServlet: init()
10:43:20,101 INFO [STDOUT] Got context
10:43:20,311 INFO [STDOUT] Got referance
10:43:20,371 INFO [STDOUT] Got referance to home object
10:43:20,501 INFO [STDOUT] setEntityContext call....
10:43:20,501 INFO [STDOUT] makeConnection call...
10:43:20,501 INFO [STDOUT] Something went wrong within makeConnction call ....
javax.naming.NameNotFoundException: MySqlDS not bound
10:43:20,501 INFO [STDOUT] Came back from makeConnction call ...
10:43:20,501 INFO [STDOUT] ejbCreate call
10:43:20,501 INFO [STDOUT] insertRow call...
10:43:20,511 ERROR [STDERR] Caught an exception.
10:43:20,511 ERROR [STDERR] java.rmi.ServerException: ejbCreate: null; nested ex
ception is:
javax.ejb.EJBException: ejbCreate: null
package com.ps.impl;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import java.sql.*;
import javax.sql.*;
import javax.ejb.*;
import javax.naming.*;
import java.util.*;
import java.rmi.*;
public class AccountBean implements EntityBean
private EntityContext context;
private String id;
private String firstName;
private String lastName;
private double balance;
private Connection con;
//private String dbName = "java:/MySqlDS";
public void debit (double amount)
if (balance - amount < 0)
else
balance = balance - amount;
public void credit (double amount)
balance = balance + amount;
public String getFirstName()
return firstName;
public String getLastName()
return lastName;
public double getBalance()
return balance;
public String ejbCreate(String id, String firstName, String lastName, double balance)
throws CreateException
System.out.println("ejbCreate call");
if (balance < 0.00) {
throw new CreateException
("A negative initial balance is not allowed.");
try {
insertRow(id, firstName, lastName, balance);
} catch (Exception ex) {
throw new EJBException("ejbCreate: " +
ex.getMessage());
this.id = id;
this.firstName = firstName;
this.lastName = lastName;
this.balance = balance;
return id;
public void ejbPostCreate(String id, String firstname, String lastname, double blance)
public String ejbFindByPrimaryKey(String primaryKey)
throws FinderException
System.out.println("ejbFindPrimaryKey call...");
boolean result;
try {
result = selectByPrimaryKey(primaryKey);
} catch (Exception ex) {
throw new EJBException("ejbFindByPrimaryKey: " +
ex.getMessage());
if (result) {
return primaryKey;
else {
throw new ObjectNotFoundException
("Row for id " + primaryKey + " not found.");
public Collection ejbFindByLastName(String lastName)
throws FinderException
System.out.println("ejbFindByLastName call...");
Collection result;
try {
result = selectByLastName(lastName);
} catch (Exception ex) {
throw new EJBException("ejbFindByLastName " +
ex.getMessage());
if (result.isEmpty()) {
throw new ObjectNotFoundException("No rows found.");
else {
return result;
public Collection ejbFindInRange(double low, double high)
throws FinderException
System.out.println("ejbFindRange call ....");
Collection result;
try {
result = selectInRange(low, high);
} catch (Exception ex) {
throw new EJBException("ejbFindInRange: " +
ex.getMessage());
if (result.isEmpty()) {
throw new ObjectNotFoundException("No rows found.");
else {
return result;
public void ejbActivate()
System.out.println("ejbActivate call ...");
id = (String)context.getPrimaryKey();
public void ejbLoad()
System.out.println("ejbLoad call ...");
try {
loadRow();
} catch (Exception ex) {
throw new EJBException("ejbLoad: " +
ex.getMessage());
public void ejbPassivate()
id = null;
public void ejbRemove()
System.out.println("ebjRemove call ...");
try {
deleteRow(id);
} catch (Exception ex) {
throw new EJBException("ejbRemove: " +
ex.getMessage());
public void ejbStore()
System.out.println("ejbStore call ...");
try {
storeRow();
} catch (Exception ex) {
throw new EJBException("ejbLoad: " +
ex.getMessage());
public void setEntityContext(EntityContext context)
this.context = context;
System.out.println("setEntityContext call....");
try {
makeConnection();
System.out.println("Came back from makeConnction call ...");
} catch (Exception ex) {
throw new EJBException("Unable to connect to database " +
ex.getMessage());
public void unsetEntityContext()
System.out.println("unsetEntityContext call ...");
try {
con.close();
} catch (SQLException ex) {
throw new EJBException("unsetEntityContext: " + ex.getMessage());
/*********************** Database Routines *************************/
private void makeConnection() throws NamingException, SQLException
System.out.println("makeConnection call...");
try
InitialContext ic = new InitialContext();
DataSource ds = (DataSource) ic.lookup("java:/MySqlDS");
con = ds.getConnection();
catch (Exception ex)
System.out.println("Something went wrong within makeConnction call .... " + ex);
private void insertRow (String id, String firstName, String lastName,
double balance) throws SQLException {
System.out.println("insertRow call...");
String insertStatement =
"insert into account values ( ? , ? , ? , ? )";
PreparedStatement prepStmt =
con.prepareStatement(insertStatement);
prepStmt.setString(1, id);
prepStmt.setString(2, firstName);
prepStmt.setString(3, lastName);
prepStmt.setDouble(4, balance);
prepStmt.executeUpdate();
prepStmt.close();
private void deleteRow(String id) throws SQLException {
System.out.println("deleteRow call ...");
String deleteStatement =
"delete from account where id = ? ";
PreparedStatement prepStmt =
con.prepareStatement(deleteStatement);
prepStmt.setString(1, id);
prepStmt.executeUpdate();
prepStmt.close();
private boolean selectByPrimaryKey(String primaryKey)
throws SQLException {
System.out.println("selectByPrimaryKey call...");
String selectStatement =
"select id " +
"from account where id = ? ";
PreparedStatement prepStmt =
con.prepareStatement(selectStatement);
prepStmt.setString(1, primaryKey);
ResultSet rs = prepStmt.executeQuery();
boolean result = rs.next();
prepStmt.close();
return result;
private Collection selectByLastName(String lastName)
throws SQLException {
System.out.println("selectByLastName call...");
String selectStatement =
"select id " +
"from account where lastname = ? ";
PreparedStatement prepStmt =
con.prepareStatement(selectStatement);
prepStmt.setString(1, lastName);
ResultSet rs = prepStmt.executeQuery();
ArrayList a = new ArrayList();
while (rs.next()) {
String id = rs.getString(1);
a.add(id);
prepStmt.close();
return a;
private Collection selectInRange(double low, double high)
throws SQLException {
System.out.println("selectInRange call ....");
String selectStatement =
"select id from account " +
"where balance between ? and ?";
PreparedStatement prepStmt =
con.prepareStatement(selectStatement);
prepStmt.setDouble(1, low);
prepStmt.setDouble(2, high);
ResultSet rs = prepStmt.executeQuery();
ArrayList a = new ArrayList();
while (rs.next()) {
String id = rs.getString(1);
a.add(id);
prepStmt.close();
return a;
private void loadRow() throws SQLException {
System.out.println("loadRow call ....");
String selectStatement =
"select firstname, lastname, balance " +
"from account where id = ? ";
PreparedStatement prepStmt =
con.prepareStatement(selectStatement);
prepStmt.setString(1, this.id);
ResultSet rs = prepStmt.executeQuery();
if (rs.next()) {
this.firstName = rs.getString(1);
this.lastName = rs.getString(2);
this.balance = rs.getDouble(3);
prepStmt.close();
else {
prepStmt.close();
throw new NoSuchEntityException("Row for id " + id +
" not found in database.");
private void storeRow() throws SQLException {
System.out.println("storeRow call ...");
String updateStatement =
"update account set firstname = ? ," +
"lastname = ? , balance = ? " +
"where id = ?";
PreparedStatement prepStmt =
con.prepareStatement(updateStatement);
prepStmt.setString(1, firstName);
prepStmt.setString(2, lastName);
prepStmt.setDouble(3, balance);
prepStmt.setString(4, id);
int rowCount = prepStmt.executeUpdate();
prepStmt.close();
if (rowCount == 0) {
throw new EJBException("Storing row for id " + id + " failed.");
2. ejb-jar.xml
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<enterprise-beans>
<entity>
<description>Entity Bean ( BMP )</description>
<display-name>Account</display-name>
<ejb-name>Account</ejb-name>
<home>com.ps.AccountHome</home>
<remote>com.ps.Account</remote>
<ejb-class>com.ps.impl.AccountBean</ejb-class>
<persistence-type>Bean</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>False</reentrant>
</entity>
</enterprise-beans>
</ejb-jar>
3. web.xml
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<description>Empty web.xml file for Web Application</description>
<servlet>
<servlet-name>AccountServlet</servlet-name>
<servlet-class>com.ps.AccountServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>AccountServlet</servlet-name>
<url-pattern>/accountservlet</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<mime-mapping>
<extension>html</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>txt</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
4. jboss.xml (i am not sure this is righ maybe this is the problem)
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS//EN" "http://www.jboss.org/j2ee/dtd/jboss.dtd">
<jboss>
<resource-managers>
<resource-manager res-class="">
<res-name>MySqlDS</res-name>
<res-jndi-name>java:/MySqlDS</res-jndi-name>
</resource-manager>
</resource-managers>
</jboss>
5. mysql-service.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- ===================================================================== -->
<!-- -->
<!-- JBoss Server Configuration -->
<!-- -->
<!-- ===================================================================== -->
<server>
<!-- ==================================================================== -->
<!-- New ConnectionManager setup for mysql using 2.0.11 driver -->
<!-- Build jmx-api (build/build.sh all) and view for config documentation -->
<!-- ==================================================================== -->
<mbean code="org.jboss.resource.connectionmanager.LocalTxConnectionManager" name="jboss.jca:service=LocalTxCM,name=MySqlDS">
<!-- Include a login module configuration named MySqlDbRealm.
Update your login-conf.xml, here is an example for a
ConfiguredIdentityLoginModule:
<application-policy name = "MySqlDbRealm">
<authentication>
<login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule" flag = "required">
<module-option name = "principal">yourprincipal</module-option>
<module-option name = "userName">yourusername</module-option>
<module-option name = "password">yourpassword</module-option>
<module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=MySqlDS</module-option>
</login-module>
</authentication>
</application-policy>
NOTE: the application-policy name attribute must match SecurityDomainJndiName, and the
module-option name = "managedConnectionFactoryName"
must match the object name of the ConnectionManager you are configuring here.
-->
<!--uncomment out this line if you are using the MySqlDbRealm above
<attribute name="SecurityDomainJndiName">MySqlDbRealm</attribute>
-->
<depends optional-attribute-name="ManagedConnectionFactoryName">
<!--embedded mbean-->
<mbean code="org.jboss.resource.connectionmanager.RARDeployment" name="jboss.jca:service=LocalTxDS,name=MySqlDS">
<attribute name="JndiName">MySqlDS</attribute>
<attribute name="ManagedConnectionFactoryProperties">
<properties>
<config-property name="ConnectionURL" type="java.lang.String">jdbc:mysql://localhost:3306/pac</config-property>
<config-property name="DriverClass" type="java.lang.String">org.gjt.mm.mysql.Driver</config-property>
<!--set these only if you want only default logins, not through JAAS -->
<config-property name="UserName" type="java.lang.String">t100</config-property>
<config-property name="Password" type="java.lang.String">t200</config-property>
</properties>
</attribute>
<!--Below here are advanced properties -->
<!--hack-->
<depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper</depends>
</mbean>
</depends>
<depends optional-attribute-name="ManagedConnectionPool">
<!--embedded mbean-->
<mbean code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" name="jboss.jca:service=LocalTxPool,name=MySqlDS">
<attribute name="MinSize">0</attribute>
<attribute name="MaxSize">50</attribute>
<attribute name="BlockingTimeoutMillis">5000</attribute>
<attribute name="IdleTimeoutMinutes">15</attribute>
<!--criteria indicates if Subject (from security domain) or app supplied
parameters (such as from getConnection(user, pw)) are used to distinguish
connections in the pool. Choices are
ByContainerAndApplication (use both),
ByContainer (use Subject),
ByApplication (use app supplied params only),
ByNothing (all connections are equivalent, usually if adapter supports
reauthentication)-->
<attribute name="Criteria">ByContainer</attribute>
</mbean>
</depends>
<depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager</depends>
<depends optional-attribute-name="JaasSecurityManagerService">jboss.security:name=JaasSecurityManager</depends>
<attribute name="TransactionManager">java:/TransactionManager</attribute>
<!--make the rar deploy! hack till better deployment-->
<depends>jboss.jca:service=RARDeployer</depends>
</mbean>
</server>

In /JBoss/server/default/conf/standardjaws.xml.
Set
<datasource>java:/mySqlDS</datasource>
<type-mapping>mySql</type-mapping>
In /JBoss/server/default/conf/standardjbosscmp-jdbc.xml.
Set
<defaults>
<datasource>java:/mySqlDS</datasource>
<datasource-mapping>mySql</datasource-mapping></defaults>

Similar Messages

  • Dreamweaver MySQL recordset connection problem

    Hi,
    I'm trying to create a recordset for the first time in
    Dreamweaver MX but am having problems getting the connection with
    the database to work.
    I have set up a MySQL database on my server (which I have
    checked and is OK), checked that PHP is running and have connected
    Dreamweaver to the server successfully ( in "Edit Sites" the
    "remote info" & "testing server" tests show a successful
    connection).
    When I try to connect to the database I get this sequence of
    events:
    1. Dialigue box: "Retrieving information from public_html"
    2. Dialigue box: "Waiting for server" (with progress bar)
    3. Dialigue box: "Dreamweaver cannot determine the remote
    server time. The Select Newer and Synchronise commands will not be
    available."
    4. Spinning ball for a few minutes (I'm using Mac OSX)
    5. back to "Waiting for server" dialogue box which remains
    for ages, eventually I click "cancel"
    6. "An unexpected error occurred"
    If anyone can shed any light on what I might be missing I
    would appreciate it greatly.
    Thanks - Zaphodz

    I am a newby to databases and am having a similar problem
    with asp and my remote sql database. My hosting provider told me to
    use this script:
    <%
    Dim DBName,DBUser,DBPass,objRS,objConn
    DBName="cham_members"
    DBUser="cham_member"
    DBPass="mypassword"
    Set objConn=Server.CreateObject("ADODB.Connection")
    objConn.ConnectionString="DRIVER={MySQL ODBC 3.51
    Driver};Server=localhost;Database="&DBName&";UID="&DBUser&";pwd="&DBPass&";"
    objConn.Open
    Set objRS=Server.CreateObject("ADODB.Recordset")
    %>
    Since that code doesn't work with DreamWeaver's Databases
    panel Custom Connection String dialogue box I came up with this
    one:
    DRIVER={MySQL ODBC 3.51
    Driver};Server=localhost;Database=cham_members;UID=cham_member;PWD=mypassword;objConn.Ope n
    Set objRS=Server.CreateObject(ADODB.Recordset)
    It connected but doesn't show my tables. I followed all the
    advice I found here;
    1. Connect using the "Use passive FTP"
    2. Corrected a few illegal hyphens in my database.
    3. Tried MySQL 127.0.0.1:3306 which would not connect at all
    4. Remove Connection Scripts. No change.
    5. I have been running DreamWeaver 7.01 update.
    I noticed the database connection names come up in the
    "Connections" folder so I opened the file it had just created and
    pasted in the script my hosting company gave me. Still no luck. I
    am determined to learn to create dynamic websites so I really
    appreciate your help.
    Thanks, Ann Y.

  • Running a CMP EJB with MySql DB Connection Problem

    I have created a CMP EJB in JDev connecting to a MySql table. I am able to see the connection in JDev just fine (everything is correctly configured for MySql). However, when I try to run it in the Embedded OC4J Server I get the following error:
    ****************************** Start of message output *************************************
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\JDev9i\jdk\bin\javaw.exe -ojvm -classpath C:\JDev9i\j2ee\home\oc4j.jar com.evermind.server.OC4JServer -config C:\JDev9i\jdev\system\oc4j-config\server.xml
    Error instantiating application at file:/C:/JDeveloper/jdev/system/oc4j-config/applications/bc4j.ear: Unable to find/read assembly info for C:\JDeveloper\jdev\system\oc4j-config\applications/bc4j (IO error: unable to find bc4j)
    Error initializing data-source 'jdbc/MySqlCoreDS': DriverManagerDataSource driver 'org.gjt.mm.mysql.Driver' not found
    Copying default deployment descriptor from archive at F:\JavaProjects\Questionaire\QuestionsEJB\classes/META-INF/orion-ejb-jar.xml to deployment directory C:\JDev9i\jdev\system\oc4j-config\application-deployments\current-workspace-app\classes...
    Auto-deploying file:/F:/JavaProjects/Questionaire/QuestionsEJB/classes/ (No previous deployment found)... SQL error: No suitable driver
    Warning: Error creating table: No suitable driver
    done.
    Oracle9iAS (9.0.2.0.0) Containers for J2EE initialized
    ************************ End of message output ************************************
    I have updated the data-sources.xml to include the datasource:
         <data-source
              class="com.evermind.sql.DriverManagerDataSource"
              name="MySqlDS"
              location="jdbc/MySqlCoreDS"
              xa-location="jdbc/xa/MySqlXADS"
              ejb-location="jdbc/MySqlDS"
              connection-driver="org.gjt.mm.mysql.Driver"
              username="root"
              password="yes"
              url="jdbc:mysql://localhost:3306/questionaire?ultradevhack=true"
              inactivity-timeout="30"
         />
    What else to I need to do to get this working?
    Thanks,
    Karl

    I have created a CMP EJB in JDev connecting to a MySql table. I am able to see the connection in JDev just fine (everything is correctly configured for MySql). However, when I try to run it in the Embedded OC4J Server I get the following error:
    Error initializing data-source 'jdbc/MySqlCoreDS': DriverManagerDataSource driver 'org.gjt.mm.mysql.Driver' not foundMake sure that you create a Library in JDeveloper containing the MySQL JAR files and add this library to your project before launching starting the embedded OC4J instance.
    Rob

  • MySQL database connections problems !!!!!

    Hello there,
    I hope someone could light the way lol
    i'm new to php and i was hoping that DW CS4 could help me with most of the code but...... i can't even connect to MySQL....
    DW doesn't seem to be able to see MySQL 5.1 and i have PHP 5.31 ... my server is IIS 7.5 on windows 7 ultimate,,,,
    IIS/MySQL/PHP are all running fine i cant test them with hand coded *.php page so the only conclusion i have is that DW CS4
    is not compatible with my set-up...
    so my question is which version of MySQL and PHP do i have to use ???
    I would prefer not to use appache but iff i have no choice.... (took me 2 weeks to configure lol)
    Thx
    Webgau

    Have you uncommented the "extension=php_mysql.dll" line under DYNAMIC EXTENSIONS in your php.ini file? Does the MySQL module show up if you run  <?php phpinfo(); ?>  ?

  • MySql with JBoss connection refused

    hello,
    I am using MYSql with JBOSS, but while running starting JBOSS it
    gives
    Connection refused error:
    MySqlDB] at java.net.PlainSocketImpl.socketCon
    MySqlDB] at java.net.PlainSocketImpl.doConnect
    MySqlDB] at java.net.PlainSocketImpl.connectTo
    MySqlDB] at java.net.PlainSocketImpl.connect(U
    MySqlDB] at java.net.Socket.<init>(Unknown Sou
    MySqlDB] at java.net.Socket.<init>(Unknown Sou
    MySqlDB] at org.gjt.mm.mysql.MysqlIO.<init>(My
    MySqlDB] at org.gjt.mm.mysql.jdbc2.IO.<init>(I
    MySqlDB] at org.gjt.mm.mysql.jdbc2.Connection.
    159)
    MySqlDB] at org.gjt.mm.mysql.Connection.connec
    MySqlDB] at org.gjt.mm.mysql.jdbc2.Connection.
    va:89)
    MySqlDB] at org.gjt.mm.mysql.Driver.connect(Dr
    MySqlDB] at java.sql.DriverManager.getConnecti
    MySqlDB] at java.sql.DriverManager.getConnecti
    MySqlDB] at org.opentools.minerva.jdbc.xa.wrap
    nnection(XADataSourceImpl.java:118)
    MySqlDB] at org.opentools.minerva.jdbc.xa.wrap
    nnection(XADataSourceImpl.java:151)
    MySqlDB] at org.opentools.minerva.jdbc.xa.XACo
    (XAConnectionFactory.java:246)
    MySqlDB] at org.opentools.minerva.pool.ObjectP
    ol.java:819)
    MySqlDB] at org.opentools.minerva.pool.ObjectP
    a:569)
    MySqlDB] at org.opentools.minerva.pool.ObjectP
    a:521)
    MySqlDB] at org.opentools.minerva.jdbc.xa.XAPo
    APoolDataSource.java:165)
    MySqlDB] at org.jboss.jdbc.XADataSourceLoader.
    der.java:330)
    MySqlDB] at org.jboss.util.ServiceMBeanSupport
    ava:93)
    MySqlDB] at java.lang.reflect.Method.invoke(Na
    MySqlDB] at com.sun.management.jmx.MBeanServer
    java:1628)
    MySqlDB] at com.sun.management.jmx.MBeanServer
    java:1523)
    MySqlDB] at org.jboss.util.ServiceControl.star
    MySqlDB] at java.lang.reflect.Method.invoke(Na
    MySqlDB] at com.sun.management.jmx.MBeanServer
    java:1628)
    MySqlDB] at com.sun.management.jmx.MBeanServer
    java:1523)
    MySqlDB] at org.jboss.Main.<init>(Main.java:21
    MySqlDB] at org.jboss.Main$1.run(Main.java:121
    MySqlDB] at java.security.AccessController.doP
    MySqlDB] at org.jboss.Main.main(Main.java:117)
    I used the following tag in in JBOSS.jacml
    <!-- MYSQL -->
    <mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=MySqlDB">
    <attribute name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl</attribute>
    <attribute name="PoolName">MySqlDB</attribute>
    <attribute name="URL">jdbc:mysql://192.168.0.6/AccountingDb:3333</attribute>
    <attribute name="Properties">DatabaseName=AccountingDb</attribute>
    <attribute name="JDBCUser"></attribute>
    <attribute name="Password"></attribute>
    <attribute name="MinSize">0</attribute>
    <attribute name="MaxSize">10</attribute>
    <attribute name="GCEnabled">false</attribute>
    <attribute name="GCMinIdleTime">1200000</attribute>
    <attribute name="GCInterval">120000</attribute>
    <attribute name="InvalidateOnError">false</attribute>
    <attribute name="TimestampUsed">false</attribute>
    <attribute name="Blocking">true</attribute>
    <attribute name="LoggingEnabled">false</attribute>
    <attribute name="IdleTimeoutEnabled">false</attribute>
    <attribute name="IdleTimeout">1800000</attribute>
    <attribute name="MaxIdleTimeoutPercent">1.0</attribute>
    </mbean>
    <!-- END MYSQL -->
    and JDBC tag is
    <!-- JDBC -->
    <mbean code="org.jboss.jdbc.JdbcProvider" name="DefaultDomain:service=JdbcProvider">
    <attribute name="Drivers">org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,com.pervasive.jdbc.v2.Driver,org.gjt.mm.mysql.Driver</attribute>
    </mbean>
    plz help me out
    thanks
    bhuwan

    I am just use that ...But it works...!!
    MySQL is Runing good ...
    the problem is that you must reset the defaultDS,
    to be Mysql.
    So,Jboss must have only one DefaultDS,
    In My Setup...
    1.standardjaws.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <jaws>
    <datasource>java:/mySQL</datasource>
    2.jboss.jcml (must changed as followed)
    <!-- JDBC -->
    <mbean code="org.jboss.jdbc.JdbcProvider" name="DefaultDomain:service=JdbcProvider">
    <attribute name="Drivers">org.gjt.mm.mysql.Driver</attribute>
    </mbean>
    <mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=mySQL">
    <attribute name="PoolName">mySQL</attribute>
    <attribute name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl</attribute>
    <attribute name="Properties"></attribute>
    <attribute name="URL">jdbc:mysql://localhost/j2ee</attribute>
    <attribute name="GCMinIdleTime">1200000</attribute>
    <attribute name="JDBCUser" />
    <attribute name="MaxSize">10</attribute>
    <attribute name="Password" />
    <attribute name="GCEnabled">false</attribute>
    <attribute name="InvalidateOnError">false</attribute>
    <attribute name="TimestampUsed">false</attribute>
    <attribute name="Blocking">true</attribute>
    <attribute name="GCInterval">120000</attribute>
    <attribute name="IdleTimeout">1800000</attribute>
    <attribute name="IdleTimeoutEnabled">false</attribute>
    <attribute name="LoggingEnabled">false</attribute>
    <attribute name="MaxIdleTimeoutPercent">1.0</attribute>
    <attribute name="MinSize">0</attribute>
    </mbean>

  • PHP and MySQL Connection problem

    I am trying to make a PHP MySQL on a remote server connection in Dreamwesaver CS3.
    When I enter the information (host, user, password, etc.) and hit TEST, I get the following error message.
    "Access Denied. The file may not exist, or there could be a permission problem. Make sure you have proper authorization on the server and the server is properly configured."
    I know the user, password, etc. work, as I can access the MySQL database with other software.
    I checked with my host and they say there are no permission problems on their end.
    I have checked the settings on the Test Server page in Site Setup and everything looks correct and works there.
    I have not seen this particular problem described in other forum postings (although there are a LOT of postings on this topic!).
    Any help would be appreciated.

    I thought my testing server was the remote server and is always on as far as I know. I don't know how to turn it on or off.
    Is there some other testing server that I should be aware of?
    Frank
    Date: Wed, 3 Jun 2009 15:43:02 -0600
    From: [email protected]
    To: [email protected]
    Subject: PHP and MySQL Connection problem
    I know you are using remote, but is your testing server on? if not turn that on and see if that does it. it just happened to me working on remote server and could not get mysql conn to work, until I turn on my testing (developer server), then I was able to connect to mysql and the tables that I created in phpmyadmin remotly was downloaded.
    >

  • DW CS3 to MySql connection problem

    I have DW CS3 on Windows Vista. I have installed the Apache
    web server and MySql. I've associated the Apache server for testing
    and it works fine for page displays, so when I make a change to a
    page and hit F12 it is uploaded to the test environment and
    displayed in a browser.
    MySql is up and running, I can log onto it with the MySql
    admin client and see my database (just a testing one).
    When I try to test the sql connection I get the message "An
    unidentified error has occurred" and I don't have access to the
    data.
    When I try to test a PHP page it is treated as a file object
    and not processed, just loaded for editing.
    I don't know what I've set up wrong, any help
    appreciated.

    Was this issue resolved?
    I have the same problem now. DW was working fine the one day and the next when I started it it had this connection problem.
    I am testing on my local PC. My sites is at http://localhost/
    All my connection are working because if I go to http://localhost/index.php I can see my site and if I go to http://localhost/register.php I can even register a new user. It will include the new user details in the data base and everything is working fine. So there is nothing wrong with the connection.
    In DW I do have http://localhost/ on the Local Info screen. As I said, all was working fine on the current setup the one day and the next day it did not want to work.
    Seems like a very common problem.
    I want to buy CS4 and surely hope that the problem has been fixed by now.

  • DW CS4 MySQL Connection Problem

    I know this one has been covered before but i've been trawling through posts for the past 2 days and still haven't solved my problem.
    I remember from using MX Studio and Ultradev that setting up a connection could prove challenging. It seems that CS4 is just as user-unfriendly in this regard. I know that the settings i'm using for the connection must be correct as i'm using them to successfully connect to the database and display its records using a hand-coded page. I've tried disabling Kaspersky and Windows Firewall but to no avail. I noticed one difference between the php script that dw attempted to make and mine is that i'm using mysqli whereas the dw version just refers to mysql. When I click on the Select button to try and select the database i just get  "An unidentified error has occurred" - about as much use as a chocolate fireguard - well done to the dw development team for that pearl of wisdom. Is dw trying to find my databse somewhere where it's not located? I noticed that C:/InetPub and its subfolders are marked "read only" but when you uncheck this, it reverts to read only - i don't know if this may have something to do with my inability to set up a connection. I managed to manually set up MySQL, PHP and Apache without problems but this has got me beat. Is it bad design in dw or am i just stupid? Don't answer that! Any help would be greatly appreciated as i know there's a lot of good stuff in dw if i could only make a connection (and i'm on a 30 day trial with this) Why should something that looks so easy be so difficult! Thanks, Mark

    Hi PZ,
             You're correct! I just managed to get my connection to work. I looked in my php.ini file and it only had extension=php_mysqli.dll at the bottom of the page (the dll file to which this refers was in the ext folder). So, I just added extension=php_mysql.dll to the end of the php.ini file then downloaded the PHP 5.2.13 zip package from http://www.php.net/downloads.php and then copied the file php_mysql.dll into the ext folder. I got the clue about mysqli not being supported after i'd carried out a Site > Advanced > Remove Connection scripts - that at least gave me a message "Your PHP Server doesn't have the MySQL module loaded or you cant use the mysql(p) connect functions" - before i did this i just got a useless "An unidentified error has occurred" which left me no further forward. Thanks for your help!

  • MySQL connectivity Problem URGENT plz

    Hi
    plz can any one help me... its urgent
    i need java to connect to MySQL database.with mm.mysql.Driver
    the following sample code is just copied from the site and made changes in hostname, dbname and username.
    classpath has been given correctly for the mm.mysql.Driver package (mysql.jar).
    Thanx in advance....
    Result
    compilation --> success
    while executing i get the following Error.
    java.sql.SQLException: General Error: null
         at org.git.mm.mysql.connection.<init>(Connection.java)
         at org.git.mm.mysql.Driver.connect(Driver.java)
         at java.sql.DriverManager.getConnection(DriverManager.java: 515)
         at java.sql.DriverManager.getConnection(DriverManager.java: 197)
         at JDBCDemoCreate.getConnection(JDBCDemoCreate.java: 36)
         at JDBCDemoCreate.<init>(JDBCDemoCreate.java: 14)
    java.lang.NullPointerException
         at JDBCDemoCreate.<init>(JDBCDemoCreate.java: 17)
         at JDBCDemoCreate.main(JDBCDemoCreate.java: 47)
    Here is the code. can any one try this !
    // JDBCDemoCreate.java
    1.     import java.util.*;
    2.     import java.sql.*;
    3.
    4.     public class JDBCDemoCreate {
    5.
    6.     private static final String hostname = "hostname";
    7.     private static final String port = "3306";
    8.     private static final String database = "dbname";
    9.     private static final String username = "username";
    10.     private static final String password = "";
    11.
    12.     public JDBCDemoCreate() {
    13.
    14.          Connection c = getConnection();
    15.
    16.          try {
    17.               Statement s = (Statement)c.createStatement();
    18.               s.executeUpdate("CREATE TABLE rich ( id int primary key, name char(25) )");
    19.          } catch ( Exception e ) {
    20.               e.printStackTrace();
    21.          }
    22.
    23.     }
    24.
    25.     private Connection getConnection() {
    26          // Register the driver using Class.forName()
    27.          try {
    28.               Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    29.          } catch ( Exception e ) {
    30.               e.printStackTrace();
    31.          }
    32.
    33.          // ask the DriverManager for a connection to the database
    34.          Connection conn = null;
    35.          try {
    36.               conn = DriverManager.getConnection("jdbc:mysql://" + hostname +
    37.                                                                      ":"+ port +"/" + database +
    38.                                                                      "?user=" + username +
    39.                                                                      "&password=" + password );
    40.          } catch (Exception e) {
    41.               e.printStackTrace();
    42.          }
    43.          return conn;
    44.     }
    45.     
    46.     public static void main( String[] args ) {
    47.          new JDBCDemoCreate();
    48.     }
    49.}

    Hi!
    You can try with this code coz, i worked with this code only and then i can talk to the database.
    Connection con;
    Class.forName("org.gjt.mm.mysql.Driver";
    con = DriverManager.getConnection("jdbc:mysql:///db?user=root&password=");
    Try it out!
    Queries regarding this is welcome. Either in this forum itself or u can contact in the mail, the id is
    [email protected]
    Regards,
    dinesh

  • Java DB connectivity problems

    I need troubleshooting techniques how to deal with database connectivity problems.
    I am using netbean6m10, Java6.0_1b6 and my program reads these properties before opening the database.
    lsfbvol.db.url="jdbc:derby:/etsdDB/ds8300DB;create=yes"
    lsfbvol.db.driver=org.apache.derby.jdbc.EmbeddedDriver
    For debugging purposes, I printed the driver to ensure it was read properly and it was.
    DB Driver=org.apache.derby.jdbc.EmbeddedDriver
    Below is the captured exception. Please advice.
    Thanks
    Arsi
    java.sql.SQLException: No suitable driver found for "jdbc:derby:/etsdDB/ds8300DB;create=yes
    at java.sql.DriverManager.getConnection(DriverManager.java:602)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    ---SQLException Caught---
    SQLState: 08001
    Severity: 0
    Message: No suitable driver found for "jdbc:derby:/etsdDB/ds8300DB;create=yes
    at loadDB.MatchGroup.dbConnect(MatchGroup.java:458)
    at loadDB.RxProps.dbCreateTable(RxProps.java:308)
    at loadDB.RxProps.init(RxProps.java:122)
    at loadDB.RxProps.<init>(RxProps.java:97)
    at loadDB.File2DB.<init>(File2DB.java:58)
    at ds8300.Main.main(Main.java:33)
    Java Result: 1
    BUILD SUCCESSFUL (total time: 3 seconds)

    Thanks for the response.
    This is a working program under MySQL and modified for a good practice to learn the new Java DB included in jdk6. Actually, all I changed was my property file which contained all the properties for URL and Driver for the DB.
    My URL was pointing to my working-directory which happend to be my flash-card. I changed it to my C drive but still is having same problem.
    About my driver not being loaded. My understanding was under jdk6 there was no need to load the driver for embeded Java DB because was already included into the system.
    Not sure what to try next. Please advice.
    Thanks. Arsi

  • MySQL gateway connection

    Looks like plenty of folks here have similar problems getting the dg4odbc gateway working for MySQL. Hope someone that's tackled this can help me out.
    Our configuration is such that we have our gateway machine separate from our Oracle database, and the MySQL machine is yet another server. We have installed and configured the gateway along with the unixODBC gateway and the MySQL connector. Running ./isql from the gateway successfully connects to the MySQL database and returns rows from specified tables.
    Our difficulty is with setting up the listener.ora (on the gateway) and tnsnames.ora (on the Oracle host). Here are the contents of those files:
    listenter.ora:
    SID_LIST_LISTENER =
        (SID_DESC =
          (PROGRAM = dg4odbc)
          (ORACLE_HOME=/db01/app/oracle/product/gateways)
          (SID_NAME = myodbc3)
          (ENVS=LD_LIBRARY_PATH=/opt/unixODBC/lib:/opt/mysql/myodbc5/lib:/usr/local/lib:/db01/app/oracle/product/gateways/lib)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
          (ADDRESS = (PROTOCOL = TCP)(HOST = gw_host)(PORT = 1521))
      )tnsnames.ora:
    dg4odbc =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = gw_host)(PORT = 1521))
        (CONNECT_DATA = (SID= myodbc3))
        (HS=OK)
      )Listener status on the gateway is:
    -bash-3.00$ lsnrctl status
    LSNRCTL for Solaris: Version 11.1.0.6.0 - Production on 26-APR-2010 15:07:08
    Copyright (c) 1991, 2007, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Solaris: Version 11.1.0.6.0 - Production
    Start Date                26-APR-2010 14:41:51
    Uptime                    0 days 0 hr. 25 min. 17 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /db01/app/oracle/product/gateways/network/admin/listener.ora
    Listener Log File         /db01/app/oracle/diag/tnslsnr/ozone4/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=gw_host)(PORT=1521)))
    Services Summary...
    Service "myodbc3" has 1 instance(s).
      Instance "myodbc3", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfullyCan anyone see anything obvious in this configuration that's out of whack?
    I logged into sqlplus and create a public database link:
    SQL> create public database link mysql
      2   connect to user_name identified by password
      3  using 'dg4odbc';Executing a query via the link gives the following:
    SQL> select * from block@mysql;
    select * from block@mysql
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-02063: preceding line from MYSQLAnyone seen this before or have any ideas for me? I've read through the docs and this forum and just cannot see where the problem lies.
    Earl
    P.S. tnsping from the Oracle database to the gateway gives this:
    merc@: tnsping dg4odbc
    TNS Ping Utility for Linux: Version 10.2.0.4.0 - Production on 26-APR-2010 15:15:07
    Copyright (c) 1997,  2007, Oracle.  All rights reserved.
    Used parameter files:
    /opt/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = gw_host)(PORT = 1521))) (CONNECT_DATA = (SID= myodbc3)) (HS=OK))
    OK (0 msec)

    >
    Maybe it is sufficient to get the part where the libodbc.so library is loaded, so check where you'll find it in the strace file and provide this info until the error is visible in the traceHopefully this is what you wanted from truss.
    23074/1:     stat("/opt/unixODBC/lib/libodbc.so", 0xFFFFFFFF7FFFD4A0) = 0
    23074/1:     resolvepath("/opt/unixODBC/lib/libodbc.so", "/opt/unixODBC/lib/libodbc.so.1.0.0", 1023) = 34
    23074/1:     open("/opt/unixODBC/lib/libodbc.so", O_RDONLY)     = 9
    23074/1:     mmap(0x00100000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 9, 0) = 0xFFFFFFFF7A400000
    23074/1:     mmap(0x00100000, 1826816, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFFFFFFFF7A200000
    23074/1:     mmap(0xFFFFFFFF7A200000, 719355, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 9, 0) = 0xFFFFFFFF7A200000
    23074/1:     mmap(0xFFFFFFFF7A3AE000, 55864, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 9, 712704) = 0xFFFFFFFF7A3AE000
    23074/1:     mmap(0xFFFFFFFF7A3BC000, 1552, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFFFFFFFF7A3BC000
    23074/1:     munmap(0xFFFFFFFF7A2B0000, 1040384)          = 0
    23074/1:     memcntl(0xFFFFFFFF7A200000, 75448, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
    23074/1:     close(9)                         = 0
    23074/1:     stat("/opt/unixODBC/lib/libdl.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
    23074/1:     stat("/opt/mysql/myodbc5/lib/libdl.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
    23074/1:     stat("/usr/local/lib/libdl.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
    23074/1:     stat("/db01/app/oracle/product/gateways/lib/libdl.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
    23074/1:     stat("/opt/unixODBC/lib/libthread.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
    23074/1:     stat("/opt/mysql/myodbc5/lib/libthread.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
    23074/1:     stat("/usr/local/lib/libthread.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
    23074/1:     stat("/db01/app/oracle/product/gateways/lib/libthread.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
    23074/1:     stat("/opt/unixODBC/lib/libc.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
    23074/1:     stat("/opt/mysql/myodbc5/lib/libc.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
    23074/1:     stat("/usr/local/lib/libc.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
    23074/1:     stat("/db01/app/oracle/product/gateways/lib/libc.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
    23074/1:     stat("/opt/unixODBC/lib/libgcc_s.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
    23074/1:     stat("/opt/mysql/myodbc5/lib/libgcc_s.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
    23074/1:     stat("/usr/local/lib/libgcc_s.so.1", 0xFFFFFFFF7FFFD230) = 0
    23074/1:     resolvepath("/usr/local/lib/libgcc_s.so.1", "/usr/local/lib/libgcc_s.so.1", 1023) = 28
    23074/1:     open("/usr/local/lib/libgcc_s.so.1", O_RDONLY)     = 9
    23074/1:     mmap(0xFFFFFFFF7A400000, 32768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 9, 0) = 0xFFFFFFFF7A400000
    23074/1:     close(9)                         = 0
    23074/1:     stat("/db01/app/oracle/product/gateways/lib/libgcc_s.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
    23074/1:     stat("/lib/64/libgcc_s.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
    23074/1:     stat("/usr/lib/64/libgcc_s.so.1", 0xFFFFFFFF7FFFD230) Err#2 ENOENT
    23074/1:     munmap(0xFFFFFFFF7A200000, 719355)          = 0
    23074/1:     munmap(0xFFFFFFFF7A3AE000, 58892)          = 0
    23074/1:     munmap(0xFFFFFFFF7A400000, 32768)          = 0
    23074/1:     write(7, "   h o a e r r : 2 8 5 0".., 14)     = 14
    23074/1:     time()                              = 1273255397
    23074/1:     write(7, " E x i t i n g   h g o l".., 40)     = 40
    23074/1:     write(7, " F a i l e d   t o   l o".., 81)     = 81
    23074/1:     time()                              = 1273255397
    23074/1:     write(7, " E x i t i n g   h g o l".., 49)     = 49
    23074/1:     time()                              = 1273255397
    23074/1:     write(7, " E x i t i n g   h g o i".., 126)     = 126
    23074/1:     getpid()                         = 23074 [5550]
    23074/1:     open("/proc/23074/map", O_RDONLY)          = 9
    23074/1:     fstat(9, 0xFFFFFFFF7FFFD1F8)               = 0
    23074/1:     open("/dev/zero", O_RDWR)               = 12
    23074/1:     mmap(0x00000000, 14872, PROT_READ|PROT_WRITE, MAP_PRIVATE, 12, 0) = 0xFFFFFFFF7AC00000
    23074/1:     pread(9, "\0\0\001\0\0\0\0\0\0\0\0".., 14872, 0) = 7488
    23074/1:     close(9)                         = 0
    23074/1:     munmap(0xFFFFFFFF7AC00000, 7592)          = 0
    23074/1:     write(7, " h o s t m s t r :      ".., 41)     = 41
    23074/1:     write(14, "\0 *\0\006\0\0\0\0\080\0".., 42)     = 42
    23074/1:     read(14, "\0 n\0\006\0\0\0\0\0 H\0".., 8208)     = 110
    23074/1:     getpid()                         = 23074 [5550]
    23074/1:     open("/proc/23074/map", O_RDONLY)          = 9
    23074/1:     fstat(9, 0xFFFFFFFF7FFFD4D8)               = 0
    23074/1:     open("/dev/zero", O_RDWR)               = 13
    23074/1:     mmap(0x00000000, 15080, PROT_READ|PROT_WRITE, MAP_PRIVATE, 13, 0) = 0xFFFFFFFF7A400000
    23074/1:     pread(9, "\0\0\001\0\0\0\0\0\0\0\0".., 15080, 0) = 7592
    23074/1:     close(9)                         = 0
    23074/1:     munmap(0xFFFFFFFF7A400000, 7696)          = 0
    23074/1:     write(7, " h o s t m s t r :      ".., 44)     = 44
    23074/1:     getpid()                         = 23074 [5550]
    23074/1:     open("/proc/23074/map", O_RDONLY)          = 9
    23074/1:     fstat(9, 0xFFFFFFFF7FFFD358)               = 0
    23074/1:     open("/dev/zero", O_RDWR)               = 15
    23074/1:     mmap(0x00000000, 15288, PROT_READ|PROT_WRITE, MAP_PRIVATE, 15, 0) = 0xFFFFFFFF7A300000
    23074/1:     pread(9, "\0\0\001\0\0\0\0\0\0\0\0".., 15288, 0) = 7696
    23074/1:     close(9)                         = 0There appear to be errors there but I have no idea how to read this output. Thanks again for your help.
    Earl

  • PHP MySQL data display problem

    I am having trouble getting data to display on my web page.In Dreamweaver CS3, I created a new page.
    Selected PHP as the type.
    Saved it.
    Connected a database and created a recordset (all using Dreamweavers menus. I did not write any code).
    NOTE: The database is on a remote server.
    The TEST button displayed the records from the recordset with no problem.
    On the new page, I then typed some text.
    Then dragged some fields from the Bindings tab to the page.
    I saved it and then went to preview it in my browser.
    The page comes up completely blank. Not even the text shows.
    I then saved the page as an HTML page.
    When I preview this in my browser, the text shows, but the fields and data do not.
    I then tried creating a dynamic table (again, using the Dreamweaver menus.).
    A similar thing happens, ie. If I save it as an HTML, the text shows and the column labels and border shows, but no data.
    Nothing shows if I save it as a PHP file.
    I can view the data online using files created by PHPMagic, so I know the data is there and retrievable.
    It is just in pages created in Dreamweaver that don’t work.
    What am I doing wrong?

    My web server supports PHP. I can disply PHP pages created by other software packages, just not the Dreamweaver ones.
    Frank
    Date: Thu, 4 Jun 2009 19:04:03 -0600
    From: [email protected]
    To: [email protected]
    Subject: PHP MySQL data display problem
    To view php pages - or pages with PHP code in them - in a browser, the page must be served up by a Web server that supports PHP. You can set up a testing server on your local machine for this purpose. Look for WAMP (Windows), MAMP (Mac), or XXAMP for some easily installed packages.
    Mark A. Boyd
    Keep-On-Learnin'
    This message was processed and edited by Jive.
    It shall not be considered an accurate representation of my words.
    It might not even have been intended as a reply to your message.
    >

  • Error in Mysql database connectivity

    hello,
    there is problem in Mysql database connectivity.
    when i connect JSP program to Mysql database it gives error :
    Server configuration denied access to data source
    please help me asap
    kuldip jain
    [email protected]

    i m also working on Mysql Java but on Window 2000 platform
    here is the Java code which successfully runing on my machine
    import java.sql.*;
    public class TestMySql
         public static void main(String[] Args)
              try
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    Connection C = DriverManager.getConnection(
    "jdbc:mysql://server2:3306/Db?user=root");
    Statement Stmt = C.createStatement();
    ResultSet RS = Stmt.executeQuery("SELECT * from T1");
    while (RS.next()) {
                             System.out.println(RS.getString(1));
    catch (Exception E)
    System.out.println("SQLException: " + E.getMessage());

  • Mysql not connecting

    Hi all
    I have downloaded the J connector, both 5.0.8 and 5.1.13 but they both gives me problems.
    if i try:
    private static String url="jdbc:mysql://localhost:3306/mydb;create=true"; private static Connection conn=null; private Statement stm=null; public static void main(String[] args){ createConnection(); } private static void createConnection(){ try{ Class.forName("com.mysql.jdbc.Driver").newInstance(); //connect conn=DriverManager.getConnection(url); System.out.println("Connected!"); } catch(Exception except){ except.printStackTrace(); } }
    i get the following:
    com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
    ** BEGIN NESTED EXCEPTION **
    java.net.ConnectException
    MESSAGE: Connection refused
    STACKTRACE:
    java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:433)
    at java.net.Socket.connect(Socket.java:529)
    at java.net.Socket.connect(Socket.java:477)
    at java.net.Socket.<init>(Socket.java:374)
    at java.net.Socket.<init>(Socket.java:216)
    at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)
    at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:271)
    at com.mysql.jdbc.Connection.createNewIO(Connection.java:2771)
    at com.mysql.jdbc.Connection.<init>(Connection.java:1555)
    at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:193)
    at conn.Conn.createConnection(Conn.java:28)
    at conn.Conn.main(Conn.java:18)

         private static String url="jdbc:mysql://localhost:3306/mydb;create=true";
    java.net.ConnectException
    MESSAGE: Connection refusedMySQL is not running in 'localhost' on port 3306.

  • Custom mySQL  - updating path / problem with pre-installed mySQL

    I've got a custom mySQL installation setup and humming along on a 10.6.4 server. The problem is although I've updated the paths to search on usr/local/mysql/bin, when I try to access by using the shortcut mysql i get this error: Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' . To be clear, mySQL is working fine - it's just the shortcut that's not.
    This makes me think that the shell is looking first at the default [not enabled] apple mysql install. So something in my paths must be wiggy.
    I had this working perfectly on my 10.4 Xserve but the no one, I'm at a loss.
    Has anyone else run into this - any tips? I'm not going to be running the Apple install of mySQL.

    Actually, my problem is not with the socket location but with the data directory location. But I think is caused by the same path problem to data as yours was with socket. I have posted this question to the Mac OS X Technologies > Unix forum. If you could take a look, I would appreciate it.
    Thanks.

Maybe you are looking for

  • How to pass parameters to a function ?

    I defined successfully a function like CREATE OR REPLACE FUNCTION my_func (inparm IN TEST.COL1%TYPE) RETURN NUMBER When I try to call this function with EXEC my_func 1; I am getting an error: ORA-06550 resp. PLS-00103 Found "0" when expection of of :

  • Need help restoring file

    This is a weird one. When working with Dreamweaver (CS6), I sometimes get a message "This file has been modified outside Dreamweaver. Do you want to reload it?" It happens a lot if I do a search-and-replace with another program, like TextWrangler. If

  • Oracle 10g BPEL developers guide

    Hi, I am new to thw world of oracle 10g.I urgently need the developer's guide for BPEL 10g. Please provide me the links for Oracle 10g BPEL developers guide. You can also send me it, if you have it, to my email id: [email protected] Thanks & Regards

  • Approval Preview when the workflow is finished

    Hello, We have implemented the BADI to get multiple level approvals in Shopping Carts. When we display the approvers via Approval Preview the system works fine if the workflow is in process, but when the workflow is finished we donu2019t display anyt

  • Should I disable apple ie dav

    should I disable apple ie dav