<!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;">
    problem with deploying  application using JDBC postgreSQL driver
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/darko1002001">darko Grozdanovski</a> in <i>Beginner's Corner</i> - <a href="http://community.jboss.org/message/568946#568946">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>hi. i am trying to deploy this webservice on a local jboss server running windows xp.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><a class="jive-link-external-small" href="http://code.google.com/p/transitdatafeeder/w/list">http://code.google.com/p/transitdatafeeder/w/list</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>i have jboss-5.1.0.GA unpacked and able to run before i deploy the app with all the default configuration.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>i have the postgreSQL version 8.3 installed with the JDBC driver and <br/> the driver jar set in the CLASSPATH in the env variables and also the <br/> postgresql-8.4-701.jdbc3.jar copied into the lib folders of jboss. i <br/> have made a database called feedbase in postgreSQL which is needed for the project to deploy.</p><p>the database tables and everything else should be done by the app on the first run but it seems there is a problem creating the initial tables.</p><p>i wonder if it is any additional setup i need to do for postgreSQL driver to work with JBoss and also if there is something i need to do to configure hibernate.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>there are a couple of errors in the log files that prevent the <br/> successful startup of the service. this is where they start:</p><p>java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} <br/> 2010-10-28 17:50:04,656 INFO <br/> [org.hibernate.impl.SessionFactoryObjectFactory] (main) Bound factory <br/> to JNDI name: persistence.unit:unitName=#datafeeder <br/> 2010-10-28 17:50:04,656 WARN <br/> [org.hibernate.impl.SessionFactoryObjectFactory] (main) InitialContext <br/> did not implement EventContext <br/> 2010-10-28 17:50:04,671 INFO <br/> [org.hibernate.tool.hbm2ddl.SchemaValidator] (main) Running schema <br/> validator <br/> 2010-10-28 17:50:04,671 INFO <br/> [org.hibernate.tool.hbm2ddl.SchemaValidator] (main) fetching database <br/> metadata <br/> 2010-10-28 17:50:04,906 INFO <br/> [org.hibernate.tool.hbm2ddl.DatabaseMetadata] (main) table not found: <br/> address <br/> 2010-10-28 17:50:04,921 ERROR <br/> [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) <br/> Error installing to Start: name=persistence.unit:unitName=#datafeeder <br/> state=Create <br/> javax.persistence.PersistenceException: [PersistenceUnit: datafeeder] <br/> Unable to build EntityManagerFactory <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at <br/> org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java: <br/> 677) <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at <br/> org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java: <br/> 132) <br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at <br/> org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java: <br/> 301)</p><p>here are both of the logs</p><p>appreciate any help you can give me. <br/> tnx.</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/568946#568946">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>