Please remove me from this list. Thanlks




"Sutra Zhou" <[EMAIL PROTECTED]> 
03/25/2007 12:19 AM
Please respond to
[email protected]


To
[email protected]
cc

Subject
Re: roller on plesk controlled site






"Cannot
create JDBC driver of class '' for connect URL '
null'"
It looks dirver class and url are all null.
Is the setting file  roller.xml is not compatible with your tomcat.

What's the version of your tomcat? 5.0.x or 5.5.x?

2007/3/25, Dmitriy <[EMAIL PROTECTED]>:
>
> Yes, I deploy it on linux server using the same
> roller.xml context that I used on my pc, only location
> has changed:
>
>
> <Resource name="jdbc/rollerdb" auth="Container"
> type="javax.sql.DataSource" />
> <ResourceParams name="jdbc/rollerdb">
> <parameter>
> <name>factory</name>
> <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
> </parameter>
> <parameter>
> <name>driverClassName</name>
> <value>com.mysql.jdbc.Driver</value>
> </parameter>
> <parameter>
> <name>url</name>
> <value>
>
> 
jdbc:mysql://mydomain/roller?autoReconnect=true&useUnicode=true&characterEncoding
> =utf-8&mysqlEncoding=utf8
> </value>
> </parameter>
> <parameter><name>username</name><value>user</value></parameter>
> <parameter><name>password</name><value>password</value></parameter>
> <parameter><name>maxActive</name><value>20</value></parameter>
> <parameter><name>maxIdle</name><value>3</value></parameter>
> <parameter><name>removeAbandoned</name><value>true</value></parameter>
> <parameter><name>maxWait</name><value>3000</value></parameter>
> </ResourceParams>
>
> --- Sutra Zhou <[EMAIL PROTECTED]> wrote:
>
> > Have you setted the jndi?
> >
> > 2007/3/24, Dmitriy <[EMAIL PROTECTED]>:
> > >
> > > I am doing war. My ISP asked to use war. I have
> > > redeployed and now get this error:
> > >
> > > INFO  2007-03-23 03:39:16,240
> > > NamingHelper:getInitialContext - JNDI
> > InitialContext
> > > properties:{}
> > > INFO  2007-03-23 03:39:16,242
> > > DatasourceConnectionProvider:configure - Using
> > > datasource: java:comp/
> > > env/jdbc/rollerdb
> > > WARN  2007-03-23 03:39:16,247
> > > SettingsFactory:buildSettings - Could not obtain
> > > connection metadata
> > > org.apache.commons.dbcp.SQLNestedException: Cannot
> > > create JDBC driver of class '' for connect URL '
> > > null'
> > >         at
> > >
> >
> org.apache.commons.dbcp.BasicDataSource.createDataSource(
> > > BasicDataSource.java:780)
> > >         at
> > >
> >
> 
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java
> > > :540)
> > >         at
> > >
> >
> org.hibernate.connection.DatasourceConnectionProvider.getConnection
> > > (DatasourceConnection
> > > Provider.java:69)
> > >         at
> > >
> >
> org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:76)
> > >         at
> > >
> >
> org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2006)
> > >         at
> > >
> >
> org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java
> > > :1289)
> > >         at
> > >
> >
> org.apache.roller.business.hibernate.HibernatePersistenceStrategy
> > > .<init>(HibernatePersis
> > > tenceStrategy.java:65)
> > >         at
> > >
> >
> org.apache.roller.business.hibernate.HibernateRollerImpl.<init>(
> > > HibernateRollerImpl.java
> > > :70)
> > >
> > > Again, that same war and config file pointing to
> > the
> > > same db works on my pc.
> > >
> > > Please let me know if this rings any bell.
> > > Thanks
> > >
> > > --- Anil Gangolli <[EMAIL PROTECTED]> wrote:
> > >
> > > >
> > > > This might happen if the you're trying to run
> > Roller
> > > > in unexploded form as a
> > > > packed .war.
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Dave" <[EMAIL PROTECTED]>
> > > > To: <[email protected]>
> > > > Sent: Thursday, March 22, 2007 8:18 PM
> > > > Subject: Re: roller on plesk controlled site
> > > >
> > > >
> > > > > On 3/22/07, Dmitriy <[EMAIL PROTECTED]>
> > wrote:
> > > > >> I don't it is related to plesk. It's just
> > > > migration
> > > > >> from windows to linux.
> > > > >>
> > > > >>  have enabled Logger for the application. The
> > log
> > > > file
> > > > >> shows the following:
> > > > >> 2007-03-22 05:02:26
> > > > StandardContext[/roller]Exception
> > > > >> sending context initialized event to listener
> > > > instance
> > > > >> of class
> > org.apache.roller.ui.core.RollerContext
> > > > >> java.lang.NullPointerException
> > > > >>         at
> > > > >>
> > > >
> > >
> >
> org.apache.roller.ui.core.RollerContext.contextInitialized(
> > > RollerContext.java:143)
> > > > >>         at
> > > > >>
> > > >
> > >
> >
> org.apache.catalina.core.StandardContext.listenerStart(
> > > StandardContext.java:3831)
> > > > >>         at
> > > > >
> > > > > That null pointer exception is occuring in
> > > > RollerContext.java at line 143.
> > > > >
> > > > > 141        // get the *real* path to
> > > > <context>/resources
> > > > > 142        String ctxPath =
> > > > mContext.getRealPath("/");
> > > > > 143
> > if(!ctxPath.endsWith(File.separator))
> > > > > 144            ctxPath += File.separator +
> > > > "resources";
> > > > > 145        else
> > > > > 146            ctxPath += "resources";
> > > > >
> > > > > It appears that the call to
> > > > ServletContext.getRealPath() on 142 is
> > > > > failing and returning null, which leads to a
> > null
> > > > pointer exception on
> > > > > line 143.
> > > > >
> > > > > It's possible that your ISP has configured
> > Tomcat
> > > > so that it is not
> > > > > possible to get the real path where the Roller
> > > > application lives.  I'm
> > > > > not sure why an ISP would do that. You might
> > want
> > > > to ask your ISP what
> > > > > restrictions they (or Plesk) place on Java web
> > > > applications.
> > > > >
> > > > > - Dave
> > > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
>
> 
____________________________________________________________________________________
> > > The fish are biting.
> > > Get more visitors on your site using Yahoo! Search
> > Marketing.
> > >
> >
> http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
> > >
> >
>
>
>
>
>
> 
____________________________________________________________________________________
> Don't get soaked.  Take a quick peek at the forecast
> with the Yahoo! Search weather shortcut.
> http://tools.search.yahoo.com/shortcuts/#loc_weather
>

Reply via email to