You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Bon <bo...@unipattern.com> on 2008/10/30 08:01:41 UTC
Set jetspeed as root context?
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--tp20241729p20241729.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: Set jetspeed as root context?
Posted by Bon <bo...@unipattern.com>.
Hi bluenog9,
thank you for your answer,
I did add the the Resource setting in the ROOT.xml, but it also didn't
work,
then I rename the jetspeed applaction floder to ROOT in folder webapps,
and I can use the root link of my j2 as http://hostname/ and my portal
is worked,
but I'm not sure do I right? just change the jetspeed application folder
name in tomcat is well,
and what is the right procedure about that to set the j2 as the root
context in portal?
Best Regards,
Bon
bluenog9 wrote:
>
> 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--tp20241729p20260534.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org
Re: Set jetspeed as root context?
Posted by bluenog9 <bl...@gmail.com>.
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: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org