portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Watler <wat...@wispertel.net>
Subject Re: hi ate douma
Date Mon, 01 May 2006 20:16:21 GMT
Chandra,

Are you intending to use the HSQLDB? If not, please check your
build.properties configuration.

This error is caused by an inability to login to or query the database
configured there.

Randy

On Mon, 2006-05-01 at 07:48 -0700, chandra sekhar wrote:
> Hi ate,
>   I am a student and i am trying to configure Jetspeed 2 with Apache Tomcat 5.5.16. I
am getting the following error ( Error creating bean with name 'JetspeedDS'), i have pasted
the error below. I saw one of ur forums and you had got the same problem previously. May i
know how u were able to clear this. following the error i have pasted my webapps/jetspeed/WEB-INF/assembly/boot/datasource.xml
> and
>   conf/Catalina/localhost/jetspeed.xml
>   Can you please let me know how u cleared this error. 
>   Thank you in advance.
>    
>   org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'JetspeedDS' defined in ServletContext resource [/WEB-INF/assembly/boot/d
> atasource.xml]: Initialization of bean failed; nested exception is org.apache.oj
> b.broker.metadata.MetadataException: Could not get the metadata from the given d
> atasource
> org.apache.ojb.broker.metadata.MetadataException: Could not get the metadata fro
> m the given datasource
>         at org.apache.ojb.broker.metadata.JdbcMetadataUtils.fillJCDFromDataSourc
> e(JdbcMetadataUtils.java:277)
>         at org.apache.jetspeed.components.rdbms.ojb.ConnectionRepositoryEntry.af
> terPropertiesSet(ConnectionRepositoryEntry.java:283)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBean
> Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1072)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBean
> Factory.createBean(AbstractAutowireCapableBeanFactory.java:343)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBean
> Factory.createBean(AbstractAutowireCapableBeanFactory.java:260)
>         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> (AbstractBeanFactory.java:221)
>         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> (AbstractBeanFactory.java:145)
>         at org.springframework.beans.factory.support.DefaultListableBeanFactory.
> preInstantiateSingletons(DefaultListableBeanFactory.java:291)
>         at org.springframework.context.support.AbstractApplicationContext.refres
> h(AbstractApplicationContext.java:317)
>         at org.springframework.web.context.support.AbstractRefreshableWebApplica
> tionContext.refresh(AbstractRefreshableWebApplicationContext.java:131)
>         at org.apache.jetspeed.components.SpringComponentManager.start(SpringCom
> ponentManager.java:206)
>    
>    
>   my webapps/jetspeed/WEB-INF/assembly/boot/datasource.xml
>   <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
> <beans> 
>   <bean id="JetspeedDS" class="org.apache.jetspeed.components.rdbms.ojb.ConnectionRepositoryEntry">
>     <property name="jndiName">
>       <value>java:comp/env/jdbc/jetspeed</value>
>     </property>
>     <property name="driverClassName">
>       <value>org.hsqldb.jdbcDriver</value>
>     </property>
>     <property name="url">
>       <value>jdbc:hsqldb:hsql://127.0.0.1:9001</value>
>      </property>
>      <property name="username">
>        <value>sa</value>
>      </property>
>      <property name="password">
>        <value></value>
>      </property>
>   </bean>  
>   <beans>
>    
>   and
>   conf/Catalina/localhost/jetspeed.xml is
>    
>   <Context path="/jetspeed" docBase="jetspeed" crossContext="true">
>     <Realm className="org.apache.catalina.realm.JAASRealm"
>          appName="Jetspeed"
>          userClassNames="org.apache.jetspeed.security.impl.UserPrincipalImpl"
>          roleClassNames="org.apache.jetspeed.security.impl.RolePrincipalImpl"
>          useContextClassLoader="false"
>          debug="0"/>
>   
>  <Resource name="jdbc/jetspeed" auth="Container"
>             factory="org.apache.commons.dbcp.BasicDataSourceFactory"
>             type="javax.sql.DataSource" username="sa" password=""
>             driverClassName="org.hsqldb.jdbcDriver" url="jdbc:hsqldb:hsql://127.0.0.1:9001"
>             maxActive="100" maxIdle="30" maxWait="10000"/> 
>   </Context>
>    
>   bye,
>   Chandra Shekar.
>    
>    
> 
> 		
> ---------------------------------
> Blab-away for as little as 1ยข/min. Make  PC-to-Phone Calls using Yahoo! Messenger with
Voice.
> 		
> ---------------------------------
> Get amazing travel prices for air and hotel in one click on Yahoo! FareChase 


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message