portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Corak, Tarkan" <tarkan.co...@cassini.de>
Subject AW: Jetspeed2 default portal server deployment error
Date Tue, 05 Sep 2006 07:15:11 GMT
Hi,

Which database server are you using? I had the same error with an Oracle database. Jetspeed
cannot find the JDBC classes. I solved the problem by putting the Oracle specific jar file
to $TOMCAT_HOME/shared/lib. Try this by copiing the jar file for your database.



Von: chamila
Gesendet: Mo 04.09.2006 14:01
An: jetspeed-dev@jakarta.apache.org
Betreff: Jetspeed2 default portal server deployment error


Hi,

I am a newbie to jetspeed2.I have built and deployed the default 
portal server acccoding to the Getting started  Guide on the
 Jetspeed2 web site.
I have used tomcat 5.5.17 on fedora core 5 platform.

When I am deploying default portal application I got the 
following error on tomcat console.

I am a newbie to jetspeed2.I have built and deployed the default 
portal server acccoding to the Getting started  Guide on the
 Jetspeed2 web site.
I have used tomcat 5.5.17 on fedora core 5 platform.

When I am deploying default portal application I got the 
following error on tomcat console.

org.springframework.beans.factory.BeanCreationException:
 Error creating bean with name 'JetspeedDS' defined in ServletCont
ext resource [/WEB-INF/assembly/boot/datasource.xml]: Initializati
on of bean failed; nested exception is org.apache.ojb.broker.metada
ta.MetadataException: Could not get the metadata from the given dat
asource
org.apache.ojb.broker.metadata.MetadataException: Could not get the
 metadata from the given datasource
        at org.apache.ojb.broker.metadata.JdbcMetadataUtils.fillJCD
FromDataSource(JdbcMetadataUtils.java:277)
        at org.apache.jetspeed.components.rdbms.ojb.ConnectionRepos
itoryEntry.afterPropertiesSet(ConnectionRepositoryEntry.java:283)
        at org.springframework.beans.factory.support.AbstractAutowir
eCapableBe
anFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java
:1072)
        at org.springframework.beans.factory.support.AbstractAutowi
reCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.
java:343)
        at org.springframework.beans.factory.support.AbstractAutowire
CapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
260)
        at org.springframework.beans.factory.support.AbstractBean
Factory.getBean(AbstractBeanFactory.java:221)
        at org.springframework.beans.factory.support.AbstractBean
Factory.getBean(AbstractBeanFactory.java:145)
        at org.springframework.beans.factory.support.DefaultListable
Bean
Factory.preInstantiateSingletons(DefaultListableBeanFactory.java:291)
        at org.springframework.context.support.AbstractApplicationCont
ext.refresh(AbstractApplicationContext.java:317)
        at org.springframework.web.context.support.AbstractRefreshable
WebApplicationContext.refresh(AbstractRefreshableWebApplicationContext
.java:131)
        at
org.apache.jetspeed.components.SpringComponentManager.start(
SpringComponentManager.java:206)
        at org.apache.jetspeed.engine.JetspeedEngine.start(Jetspeed
Engine.java:140)
        at org.apache.jetspeed.engine.JetspeedServlet.init(Jetspeed
Servlet.java:147)
        at org.apache.catalina.core.StandardWrapper.loadServlet(Standar
dWrapper.java:1105)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper
.java:932)
        at org.apache.catalina.core.StandardContext.loadOnStartup(
StandardContext.java:3917)
        at org.apache.catalina.core.StandardContext.start(StandardContext
.java:4201)
        at org.apache.catalina.core.ContainerBase.addChildInternal(
ContainerBase.java:759)
        at org.apache.catalina.core.ContainerBase.addChild(Container
Base.java:739)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost
.java:524)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig
.java:809)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig
.java:698)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig
.java:472)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java
:1122)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(Host
Config.java:310)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase
.java:1021)
        at org.apache.catalina.core.StandardHost.start(StandardHost.
java:718)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.
java:1013)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine
.java:442)
        at org.apache.catalina.core.StandardService.start(StandardServi
ce.java:450)
        at org.apache.catalina.core.StandardServer.start(StandardServer
.java:709)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
orImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegating
MethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
 JDBC driver of class '' for connect URL 'null'
        at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource
(BasicDataSource.java:780)
        at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(
BasicDataSource.java:540)
        at org.apache.ojb.broker.metadata.JdbcMetadataUtils.fillJC
DFromDataSource(JdbcMetadataUtils.java:261)
        ... 38 more
Caused by: java.sql.SQLException: No suitable driver
        at java.sql.DriverManager.getDriver(DriverManager.java:243)
        at org.apache.tomcat.dbcp.dbcp.BasicDataSource.
createDataSource(BasicDataSource.java:773)
        ... 40 more
FATAL: Jetspeed: init() failed:
org.apache.jetspeed.exception.JetspeedException: Jetspeed Init
ialization exception!
        at org.apache.jetspeed.engine.JetspeedEngine.start(Jet
speedEngine.java:149)
        at org.apache.jetspeed.engine.JetspeedServlet.init(Jet
speedServlet.java:147)
        at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:1105)
        at org.apache.catalina.core.StandardWrapper.load(Standa
rdWrapper.java:932)
        at org.apache.catalina.core.StandardContext.loadOnStart
up(StandardContext.java:3917)
        at org.apache.catalina.core.StandardContext.start(Stan
dardContext.java:4201)
        at org.apache.catalina.core.ContainerBase.addChildInter
nal(ContainerBase.java:759)
        at org.apache.catalina.core.ContainerBase.addChild(Cont
ainerBase.java:739)
        at org.apache.catalina.core.StandardHost.addChild(Stand
ardHost.java:524)
        at org.apache.catalina.startup.HostConfig.deployWAR(Host
Config.java:809)
        at org.apache.catalina.startup.HostConfig.deployWARs(Hos
tConfig.java:698)
        at org.apache.catalina.startup.HostConfig.deployApps(Hos
tConfig.java:472)
        at org.apache.catalina.startup.HostConfig.start(HostConf
ig.java:1122)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent
(HostConfig.java:310)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycl
eEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(Container
Base.java:1021)
        at org.apache.catalina.core.StandardHost.start(StandardHo
st.java:718)
        at org.apache.catalina.core.ContainerBase.start(Container
Base.java:1013)
        at org.apache.catalina.core.StandardEngine.start(Standard
Engine.java:442)
        at org.apache.catalina.core.StandardService.start(Standar
dService.java:450)
        at org.apache.catalina.core.StandardServer.start(Standar
dServer.java:709)
        at org.apache.catalina.startup.Catalina.start(Catalina.j
ava:551)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Me
thod)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMetho
dAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Delega
tingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap
.java:294)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.
java:432)
Caused by: org.springframework.beans.factory.BeanCreationExcepti
on: Error creating bean with name 'JetspeedDS' defined in Servlet
Context resource [/WEB-INF/assembly/boot/datasource.xml]: Initiali
zation of bean failed; nested exception is org.apache.ojb.broker.
metadata.MetadataException: Could not get the metadata from the 
given datasource
        at org.springframework.beans.factory.support.AbstractAu
towireCapableBeanFactory.createBean(AbstractAutowireCapableBeanF
actory.java:356)
        at org.springframework.beans.factory.support.AbstractAu
towireCapableBeanFactory.createBean(AbstractAutowireCapableBeanF
actory.java:260)
        at org.springframework.beans.factory.support.AbstractBean
Factory.getBean(AbstractBeanFactory.java:221)
        at org.springframework.beans.factory.support.AbstractBean
Factory.getBean(AbstractBeanFactory.java:145)
        at org.springframework.beans.factory.support.Default
ListableBean
Factory.preInstantiateSingletons(DefaultListableBeanFactory.
java:291)
        at org.springframework.context.support.Abstract
ApplicationContext.refresh(AbstractApplicationContext.java:317)
        at org.springframework.web.context.support.AbstractR
efreshableWebApplicationContext.refresh(AbstractRefreshable
WebApplicationContext.java:131)
        at org.apache.jetspeed.components.SpringComponent
Manager.start(SpringComponentManager.java:206)
        at org.apache.jetspeed.engine.JetspeedEngine.start
(JetspeedEngine.java:140)
        ... 27 more
Caused by: org.apache.ojb.broker.metadata.MetadataException:
 Could not get the metadata from the given datasource
        at org.apache.ojb.broker.metadata.JdbcMetadataUtils.
fillJCDFromDataSource(JdbcMetadataUtils.java:277)
        at org.apache.jetspeed.components.rdbms.ojb.Connection
RepositoryEntry.afterPropertiesSet(ConnectionRepositoryEntry.
java:283)
        at org.springframework.beans.factory.support.
AbstractAutowire
CapableBeanFactory.invokeInitMethods(AbstractAutowireCapable
BeanFactory.java:1072)
        at org.springframework.beans.factory.support.
AbstractAutowireCapableBeanFactory.createBean(AbstractAutowire
CapableBeanFactory.java:343)
        ... 35 more
Caused by: org.apache.tomcat.dbcp.dbcp.SQLNestedException: 
Cannot create JDBC driver of class '' for connect URL 'null'
        at org.apache.tomcat.dbcp.dbcp.BasicDataSource.create
DataSource(BasicDataSource.java:780)
        at org.apache.tomcat.dbcp.dbcp.BasicDataSource.
getConnection(BasicDataSource.java:540)
        at org.apache.ojb.broker.metadata.JdbcMetadataUtils.
fillJCDFromDataSource(JdbcMetadataUtils.java:261)
        ... 38 more
Caused by: java.sql.SQLException: No suitable driver
        at java.sql.DriverManager.getDriver(DriverManager.
java:243)
        at org.apache.tomcat.dbcp.dbcp.BasicDataSource.
createDataSource(BasicDataSource.java:773)
        ... 40 more


build.properties file
----------------------
# required portal configuration properties
org.apache.jetspeed.portal.home           = /home/chamila/PortalProject
/customized/myportal/
org.apache.jetspeed.portal.groupId        = myprojects
org.apache.jetspeed.portal.artifactId     = myportal
org.apache.jetspeed.portal.name           = My Test Portal1
org.apache.jetspeed.portal.currentVersion = 1.0

# required application server properties
org.apache.jetspeed.server.home                      =/usr/local/tomcat5.5/
org.apache.jetspeed.server.shared                    = ${org.apache.jetspeed
.server.home}/shared/lib/
org.apache.jetspeed.deploy.war.dir                   = ${org.apache.jetspeed
.server.home}/webapps/
org.apache.jetspeed.services.autodeployment.user     = admin
org.apache.jetspeed.services.autodeployment.password = pwadmin
org.apache.jetspeed.catalina.version.major           = 5.5.17


# configure MySQL Production DB
# -------------------------------------------------------------------------
org.apache.jetspeed.production.jdbc.drivers.path=/usr/local/tomcat5.5/
shared/lib/mysql.jar
org.apache.jetspeed.production.database.default.name=mysql
org.apache.jetspeed.production.database.url = jdbc:mysql://localhost/
jetspeed2db
org.apache.jetspeed.production.database.driver = com.mysql.jdbc.Driver
org.apache.jetspeed.production.database.user =jetspeed2
org.apache.jetspeed.production.database.password =jetspeed2


Thanks,
Chamila


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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message