thanx, i finally got it working. My mistake was that i took out the references to
the other drivers from jboss.conf and jboss.properties file. When i put them back in
it finally worked.
-- tony
Pranab Dhar wrote:
> Here is an example of jboss.properties
> # System properties
> # These will be loaded and set by jBoss
> #java.rmi.server.useLocalHostName=true
> java.rmi.server.hostname=localhost
> #java.rmi.server.codebase=http://localhost:8080/
> jdbc.drivers=org.hsql.jdbcDriver,jdbc.idbDriver,postgresql.Driver
>
> jboss.conf example
>
> <MLET CODE = "org.jboss.jdbc.JdbcProvider"
> ARCHIVE="jboss.jar,idb.jar,hsql.jar,postgresql.jar"
> CODEBASE="../lib/ext/">
> </MLET>
> ......
> <MLET CODE = "org.jboss.jdbc.DataSourceImpl"
> ARCHIVE="jboss.jar,jdbc2_0-stdext.jar" CODEBASE="../lib/ext/">
> <ARG TYPE="java.lang.String"
> VALUE="jdbc:postgresql://localhost:5432/testdb">
> <ARG TYPE="java.lang.String" VALUE="jdbc/postgresql">
> <ARG TYPE="java.lang.String" VALUE="postgresql.Driver">
> <ARG TYPE="java.lang.String" VALUE="pkd">
> <ARG TYPE="java.lang.String" VALUE="pkd">
> </MLET>
>
> Anthony Robins wrote:
> >
> > no luck
> > -- tony
> >
> > Pranab Dhar wrote:
> >
> > > Try putting the jdbc driver in jboss.properties.
> > > PKD
> > >
> > > Anthony Robins wrote:
> > > >
> > > > I've actually got to the point where i get
> > > >
> > > > java.sql.SQLException: No suitable driver
> > > > at java.sql.DriverManager.getConnection(DriverManager.java:477)
> > > > at java.sql.DriverManager.getConnection(DriverManager.java:137)
> > > > at org.jboss.jdbc.DataSourceImpl.getConnection(DataSourceImpl.ja
> > > > at org.jboss.jdbc.DataSourceImpl.getConnection(DataSourceImpl.ja
> > > > at org.jboss.jdbc.DataSourceImpl.startService(DataSourceImpl.jav
> > > > at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.
> > > > at org.jboss.util.ServiceMBeanSupport.preRegister(ServiceMBeanSu
> > > > at java.lang.reflect.Method.invoke(Native Method)
> > > > at javax.management.MBeanServer.preRegisterInvoker(MBeanServer.j
> > > > at javax.management.MBeanServer.createMBean(MBeanServer.java:721
> > > > at javax.management.loading.MLet.getMBeansFromURL(MLet.java:385)
> > > > at javax.management.loading.MLet.getMBeansFromURL(MLet.java:208)
> > > > at org.jboss.Main.run(Main.java, Compiled Code)
> > > > at org.jboss.Main$1.run(Main.java:81)
> > > > at java.security.AccessController.doPrivileged(Native Method)
> > > > at org.jboss.Main.main(Main.java:77)
> > > >
> > > > and i configured jboss.conf to be
> > > >
> > > > <MLET CODE = "org.jboss.jdbc.DataSourceImpl"
>ARCHIVE="jboss.jar,cloudscape.jar" CODEBASE="../lib/ext/">
> > > > <ARG TYPE="java.lang.String"
>VALUE="jdbc:cloudscape:CloudscapeDB;create=true">
> > > > <ARG TYPE="java.lang.String" VALUE="CloudscapeDB">
> > > > <ARG TYPE="java.lang.String" VALUE="com.cloudscape.core.JDBCDriver">
> > > > <ARG TYPE="java.lang.String" VALUE="">
> > > > <ARG TYPE="java.lang.String" VALUE="">
> > > > </MLET>
> > > >
> > > > I have cloudscape.jar in my classpath and put it into lib\ext. No success so
>far.
> > > >
> > > > -- tony
> > > >
> > > > Jeremiah Johnson wrote:
> > > >
> > > > > Tony,
> > > > >
> > > > > I have been meaning to try the example with Cloudscape. If you don't find
>anything, then maybe I can help you with it. I have to finish up a CGI, then I am
>going to move on to trying Oracle, Cloudscape, and PostgreSQL (the three that I need
>to use...).
> > > > >
> > > > > Check Bugzilla #133 in a couple days if you don't get it working.
> > > > > http://www.telkel.com/bugzilla/show_bug.cgi?id=133
> > > > >
> > > > > Others, please let me know if #133 isn't the correct spot for this.
> > > > >
> > > > > - jeremiah
> > > > >
> > > > > ------Original Message------
> > > > > From: Anthony Robins <[EMAIL PROTECTED]>
> > > > > To: [EMAIL PROTECTED]
> > > > > Sent: July 10, 2000 7:20:31 PM GMT
> > > > > Subject: [jBoss-User] Using Cloudscape with JBoss
> > > > >
> > > > > Hi,
> > > > >
> > > > > I'm new to jboss and am trying to deploy an example bean with
> > > > > Cloudscape.
> > > > > I have found emails going around that i need to edit jboss.conf. I'm
> > > > > not sure
> > > > > how to do that. Do you have examples on this.
> > > > >
> > > > > thanx
> > > > > --tony
> > > > >
> > > > > --
> > > > > --------------------------------------------------------------
> > > > > To subscribe: [EMAIL PROTECTED]
> > > > > To unsubscribe: [EMAIL PROTECTED]
> > > > > Problems?: [EMAIL PROTECTED]
> > > > >
> > > > > ______________________________________________
> > > > > FREE Personalized Email at Mail.com
> > > > > Sign up at http://www.mail.com/?sr=signup
> > > > >
> > > > > --
> > > > > --------------------------------------------------------------
> > > > > To subscribe: [EMAIL PROTECTED]
> > > > > To unsubscribe: [EMAIL PROTECTED]
> > > > > Problems?: [EMAIL PROTECTED]
> > > >
> > > > --
> > > > --------------------------------------------------------------
> > > > To subscribe: [EMAIL PROTECTED]
> > > > To unsubscribe: [EMAIL PROTECTED]
> > > > Problems?: [EMAIL PROTECTED]
> > >
> > > --
> > > --------------------------------------------------------------
> > > To subscribe: [EMAIL PROTECTED]
> > > To unsubscribe: [EMAIL PROTECTED]
> > > Problems?: [EMAIL PROTECTED]
> >
> > --
> > --------------------------------------------------------------
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Problems?: [EMAIL PROTECTED]
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]