i make a backup of everything (with date extension appended) e.g.
web.xml becomes web.xml.22052009

once you have a clean copy configure Datasource as applicationContext-jdbc.xml
web.xml contents:
    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>/WEB-INF/applicationContext-jdbc.xml</param-value>

applicationContext-jdbc.xml contents:
<beans>  
   <!-- Configurer that replaces ${...} placeholders with values from a 
properties file -->
    <!-- (in this case, JDBC-related settings for the dataSource definition 
below) -->
<bean id="propertyConfigurer" 
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="location" value="/WEB-INF/jdbc.properties"/>
    </bean>

    <!-- Simple local DataSource that works in any environment.
This uses the JDBC DriverManager to obtain connections, and does NOT perform 
connection pooling. Connection pooling is essential to all real-world 
applications.
This definition is good for getting started, as it introduces no dependencies 
beyond
the JDK, but DriverManagerDataSource is not intended for production usage.
reconfigure this to the DataSource you are using..for the meanwhile we'll use 
Spring-->
<bean id="dataSource" 
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
        <property name="driverClassName" value="${jdbc.driverClassName}"/>
        <property name="url" value="${jdbc.url}"/>
        <property name="username" value="${jdbc.username}"/>
        <property name="password" value="${jdbc.password}"/>
    </bean>

hth
Martin 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Fri, 22 May 2009 11:59:38 -0400
> Subject: Re: Configuring SSI in tomcat 6
> From: raghuramsriniv...@gmail.com
> To: users@tomcat.apache.org
> 
> Thanks for that...I modified the same thing but while inserting connection
> pooling in the context.xml...i am getting following error
> 
> 
> *Cannot establish a database connection. Cannot create JDBC driver of class
> '' for connect URL 'null'*
> wat exactly it mean..
> 
> On Fri, May 22, 2009 at 11:54 AM, Caldarale, Charles R <
> chuck.caldar...@unisys.com> wrote:
> 
> > > From: raghu ram srinivas [mailto:raghuramsriniv...@gmail.com]
> > > Subject: Re: Configuring SSI in tomcat 6
> > >
> > > I am not able to view the tomcat home page.
> >
> > In all the editing that's been going on, you may have damaged
> > conf/server.xml or conf/web.xml (the latter is more likely).  Compare what's
> > in the xml files with unedited versions.
> >
> > Worst case, install a clean Tomcat, verify that it's functional, then add
> > your webapp to it.
> >
> > > In the log files too I am not getting any errors.
> >
> > Stop Tomcat, empty the logs directory, and restart Tomcat.  Does the log
> > now show that Tomcat fully initialized?  This message should appear in
> > catalina.yyyy-mm-dd.log:
> >
> > May 22, 2009 8:40:10 AM org.apache.catalina.startup.Catalina start
> > INFO: Server startup in 3670 ms
> >
> > (With different times, of course.
> >
> >  - Chuck
> >
> >
> > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> > MATERIAL and is thus for use only by the intended recipient. If you received
> > this in error, please contact the sender and delete the e-mail and its
> > attachments from all computers.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> >
> >
> 
> 
> -- 
> Raghuram Srinivas

_________________________________________________________________
Windows Live™: Keep your life in sync.
http://windowslive.com/explore?ocid=TXT_TAGLM_BR_life_in_synch_052009

Reply via email to