Could this part of the warning have anything to do with it?

Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create 
> PoolableConnectionFactory (Io exception: The Network Adapter could not

> establish the connection)
>         at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource
.java:1225)
>         at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.ja
va:880)
>         at
org.apache.ojb.broker.metadata.JdbcMetadataUtils.fillJCDFromDataSource(J
dbcMetadataUtils.java:261)
>         ... 44 more
> Caused by: java.sql.SQLException: Io exception: The Network Adapter  


Can you ping the database server from the Solaris server?

-----Original Message-----
From: Song Chao [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 20, 2007 7:51 PM
To: Jetspeed Users List
Subject: Re: Deploying Issue On Sloaris: Could not get the metadata from
the given datasource

Thank you for your reply. But I'm not using derby. I'm using Oracle for
Jetspeed. And both in the testing server and the product server, the
database remains the same. In fact, the oracle instance is actually in
the product server which the tomcat instance has been copied to.

My issue seems not relative to database connection. Because the error
messages indicate that "Could not get the metadata from the given
datasource". I guess something wrong in Tomcat side or OS side (such as
access privilieges). But I'm not sure.

2007/11/20, Ford, Jennifer M. <[EMAIL PROTECTED]>:
> Did you use the standard Derby database with your installation or an
external database?   If you used Derby, it's probably not going to work
to just pick it up and move it because the indexing on the database will
be different on the new machine.  Just a thought.
>
> ________________________________
>
> From: Song Chao [mailto:[EMAIL PROTECTED]
> Sent: Tue 11/20/2007 2:42 AM
> To: Jetspeed Users List
> Subject: Deploying Issue On Sloaris: Could not get the metadata from 
> the given datasource
>
>
>
> Hi all,
>    I have just copy the whole tomcat instance from developing server 
> (Win Xp) to the production server (Solaris) without changing any 
> configuration, because all database resource needn't any change.
>   In the production server, while tomcat started succesfully (with jdk

> 1.5), jetspeed didn't intialize. And in the log file 'catalina.out', 
> some error messages were shown. I can't figure out the reason.
>    Any suggestion? Thanks.
>
>
> Error message:
> org.springframework.beans.factory.BeanCreationException: Error 
> creating bean with name 'PlatformConfigurator' defined in 
> ServletContext resource [/WEB-INF/assembly/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.fillJCDFromDataSource(J
dbcMetadataUtils.java:277)
>         at
org.apache.jetspeed.components.rdbms.ojb.DatabasePlatformConfigurator.in
it(DatabasePlatformConfigurator.java:70)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
>         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1241
)
>         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1206)
>         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172)
>         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBean(AbstractAutowireCapableBeanFactory.java:428)
>         at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec
t(AbstractBeanFactory.java:251)
>         at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
etSingleton(DefaultSingletonBeanRegistry.java:156)
>         at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:248)
>         at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:160)
>         at
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons(DefaultListableBeanFactory.java:287)
>         at
org.springframework.context.support.AbstractApplicationContext.refresh(A
bstractApplicationContext.java:352)
>         at
org.apache.jetspeed.components.SpringComponentManager.start(SpringCompon
entManager.java:237)
>         at
org.apache.jetspeed.engine.JetspeedEngine.start(JetspeedEngine.java:122)
>         at
org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:159
)
>         at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:1105)
>         at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
>         at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3951)
>         at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4225
)
>         at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:759)
>         at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>         at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>         at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
608)
>         at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
:535)
>         at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
>         at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
>         at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31
0)
>         at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.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(StandardService.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(NativeMethodAccessorImpl.jav
a:39)
>         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
>         at 
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
> Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create 
> PoolableConnectionFactory (Io exception: The Network Adapter could not

> establish the connection)
>         at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource
.java:1225)
>         at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.ja
va:880)
>         at
org.apache.ojb.broker.metadata.JdbcMetadataUtils.fillJCDFromDataSource(J
dbcMetadataUtils.java:261)
>         ... 44 more
> Caused by: java.sql.SQLException: Io exception: The Network Adapter 
> could not establish the connection
>         at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:11
2)
>         at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:14
6)
>         at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:25
5)
>         at
oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
>         at
oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:439
)
>         at
oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
>         at
oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.j
ava:35)
>         at
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
>         at
org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverC
onnectionFactory.java:38)
>         at
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableCon
nectionFactory.java:294)
>         at
org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicD
ataSource.java:1247)
>         at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource
.java:1221)
>         ... 46 more
> FATAL: Jetspeed: init() failed:
> org.apache.jetspeed.exception.JetspeedException: Jetspeed 
> Initialization exception!
>         at
org.apache.jetspeed.engine.JetspeedEngine.start(JetspeedEngine.java:144)
>         at
org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:159
)
>         at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:1105)
>         at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
>         at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3951)
>         at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4225
)
>         at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:759)
>         at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>         at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>         at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
608)
>         at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
:535)
>         at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
>         at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
>         at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31
0)
>         at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.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(StandardService.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(NativeMethodAccessorImpl.jav
a:39)
>         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         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.BeanCreationException:
> Error creating bean with name 'PlatformConfigurator' defined in 
> ServletContext resource [/WEB-INF/assembly/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
>         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.initializeBean(AbstractAutowireCapableBeanFactory.java:1175)
>         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBean(AbstractAutowireCapableBeanFactory.java:428)
>         at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec
t(AbstractBeanFactory.java:251)
>         at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
etSingleton(DefaultSingletonBeanRegistry.java:156)
>         at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:248)
>         at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:160)
>         at
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons(DefaultListableBeanFactory.java:287)
>         at
org.springframework.context.support.AbstractApplicationContext.refresh(A
bstractApplicationContext.java:352)
>         at
org.apache.jetspeed.components.SpringComponentManager.start(SpringCompon
entManager.java:237)
>         at
org.apache.jetspeed.engine.JetspeedEngine.start(JetspeedEngine.java:122)
>         ... 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(J
dbcMetadataUtils.java:277)
>         at
org.apache.jetspeed.components.rdbms.ojb.DatabasePlatformConfigurator.in
it(DatabasePlatformConfigurator.java:70)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
>         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1241
)
>         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1206)
>         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172)
>         ... 36 more
> Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create 
> PoolableConnectionFactory (Io exception: The Network Adapter could not

> establish the connection)
>         at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource
.java:1225)
>         at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.ja
va:880)
>         at
org.apache.ojb.broker.metadata.JdbcMetadataUtils.fillJCDFromDataSource(J
dbcMetadataUtils.java:261)
>         ... 44 more
> Caused by: java.sql.SQLException: Io exception: The Network Adapter 
> could not establish the connection
>         at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:11
2)
>         at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:14
6)
>         at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:25
5)
>         at
oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
>         at
oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:439
)
>         at
oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
>         at
oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.j
ava:35)
>         at
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
>         at
org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverC
onnectionFactory.java:38)
>         at
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableCon
nectionFactory.java:294)
>         at
org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicD
ataSource.java:1247)
>         at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource
.java:1221)
>         ... 46 more
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to