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

Reply via email to