that gets me past the classnotfound problem, thanks. I used mysql-ds.xml for the template, wrote my own. JBoss says it likes it, no problems in server.log I can connect to it with IntialContext using the java:/MyDS in my own classes
Now all I need to do is find out why my -schema.sql comes out empty. Is this JBoss DataSource problem part of all that classloader magic one has to master to use JBoss? Is there anything that can be done in maven properties or goals, anybody have any experience with that? ----- Original Message ----- From: "Richard Burgess" <[EMAIL PROTECTED]> To: "Maven Users List" <[EMAIL PROTECTED]> Sent: Wednesday, October 01, 2003 2:34 AM Subject: Re: maven, xdoclet, hibernate > I've seen this error appear when trying to use hibernate configured to > use a JBoss Datasource in a stand alone JVM. > > Try telling the hibernate plugin to use a direct connection to the > database by specifying the hibernate driver class, url, username and > password properties. Put the following in your project.properties (or > build.properties, or wherever): > > > # hibernate properties > hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect > hibernate.connection.driver_class=com.mysql.jdbc.Driver > hibernate.connection.url=jdbc:mysql://localhost/test > hibernate.connection.username=tester > hibernate.connection.password= > > # use the hibernate props specified in here for maven hibernate goals > maven.hibernate.properties=project.properties > > Richard > > On Wed, 2003-10-01 at 10:21, khote wrote: > > I have all the basic stuff working with maven, xdoclet, and hibernate. > > I'm using a mysql database, JBoss 3.2.1, and I have installed the latest > > hibernate just in case. > > > > However when I try to run the hibernate:schema-export goal I get > > > > Could not obtain initial context > > javax.naming.NoInitialContextException: Cannot instantiate class: > > org.jnp.interfaces.NamingContextFactory [Root exception is > > java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory] > > > > > > so where is org.jnp.interfaces? it's in jnp-client.jar. I see that file in > > ibiblio in the jboss directory > > so I set jnp-client.3.2.1 as a dependency in my project.xml > > I see it's in JBoss/client. I copy that into JBoss/server/default/lib, just > > in case. > > > > I still get that error. > > Is there some other place that jnp-client needs to be to make this plugin > > work? > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]