I think you are missing the database resource setting in the ROOT.xml, add it
to the ROOT. Something like this...
<Resource name="jdbc/jetspeed" auth="Container"
factory="org.apache.commons.dbcp.BasicDataSourceFactory"
type="javax.sql.DataSource" username="derbydba"
password="derbyAdmin"
driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
url="jdbc:derby:C:/servers/apache-tomcat-6.0.16/database/derby/mydb;create=true"
maxActive="100" maxIdle="30" maxWait="10000"/>
regards
bluenog9
Bon wrote:
>
> Hi all,
>
> What should I do to set the jetspeed as my tomcat server's root
> context?
> I try to create ROOT.xml in my tomcat's conf/Catalina/localhost,
> and set the value of attribute docBase to 'jetspeed', then I startup
> my tomcat,
> and in the tomcat console there is some error happened as following
> message:
>
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'PlatformConfigurator' defined in ServletContext resource
> [/WEB-INF/assem
> bly/boot/datasource.xml]: Invocation of init method failed; nested
> exception is
> org.apache.ojb.broker.metadata.MetadataException: Could not get the
> metadata from the given datasource
> Caused by: org.apache.ojb.broker.metadata.MetadataException: Could not get
> the metadata from the given datasource
> at
> org.apache.ojb.broker.metadata.JdbcMetadataUtils.fillJCDFromDataSourc
> e(JdbcMetadataUtils.java:277)
> at
> org.apache.jetspeed.components.rdbms.ojb.DatabasePlatformConfigurator
> .init(DatabasePlatformConfigurator.java:70)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> Factory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1241)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1206)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBean
> Factory.createBean(AbstractAutowireCapableBeanFactory.java:428)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
> ject(AbstractBeanFactory.java:251)
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
> y.getSingleton(DefaultSingletonBeanRegistry.java:156)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> (AbstractBeanFactory.java:248)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean
> (AbstractBeanFactory.java:160)
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory...
>
> anyone can tell me what should I do to set the jetspeed as tomcat's
> root context?
>
> Best regards,
> Bon
>
>
--
View this message in context:
http://www.nabble.com/Set-jetspeed-as-root-context--tp20241729p20249772.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]