portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dahl, Sandra" <SD...@TDIinc.com>
Subject RE: jetspeed tutorial error during build
Date Tue, 08 Sep 2009 14:53:51 GMT
Yes, everything appears ok for the build however, jetexpress will not start. I deleted the
jetexpress folders in webapps and work directories before the build. An error is logged when
tomcat is first launched in eclipse but after researching the problem for several hours, I
found the error goes away when  eclipse is restarted after the build target=all. Here is the
error that goes away by restarting eclipse:
2009-09-08 07:45:20,398 [main] ERROR org.apache.jetspeed.engine.JetspeedEngine - 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
2009-09-08 07:45:20,398 [main] ERROR org.apache.jetspeed.engine.JetspeedServlet - Jetspeed:
init() failed:
org.apache.jetspeed.exception.JetspeedException: Jetspeed Initialization exception!
        at org.apache.jetspeed.engine.JetspeedEngine.start(JetspeedEngine.java:142)
        at org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:208)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4045)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4351)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
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.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
        at org.apache.jetspeed.components.SpringComponentManager.start(SpringComponentManager.java:297)
        at org.apache.jetspeed.engine.JetspeedEngine.start(JetspeedEngine.java:119)
        ... 18 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.DatabasePlatformConfigurator.init(DatabasePlatformConfigurator.java:70)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
        ... 32 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.createDataSource(BasicDataSource.java:1150)
        at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
        at org.apache.ojb.broker.metadata.JdbcMetadataUtils.fillJCDFromDataSource(JdbcMetadataUtils.java:261)
        ... 40 more
Caused by: java.lang.NullPointerException
        at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)
        at sun.jdbc.odbc.JdbcOdbcDriver.knownURL(JdbcOdbcDriver.java:476)
        at sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(JdbcOdbcDriver.java:307)
        at java.sql.DriverManager.getDriver(DriverManager.java:253)
        at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1143)
        ... 42 more


After eclipse is restarted, the browser shows: HTTP Status 404 - /jetexpress/portal and there
are no errors in the log files. Here are the logs.
Catalina.log:
Sep 8, 2009 7:34:56 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance in production environments
was not found on the java.library.path: C:\Java\jdk1.6.0_13\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\apache-maven-2.2.1\bin;C:\Program
Files\apache-ant-1.7.1\bin;C:\Java\jdk1.6.0_13\bin;C:\WINDOWS\system32;I:;I:\Bin;C:\CT Media\Shared
Files;C:\CT Media\Client\Bin; C:\Program Files\Microsoft SQL Server\80\Tools\Binn;C:\TDIProjects\Liberation
6000 Development\C++\CURL\curl-7.10.3;C:\TDIProjects\boost_1_33_0;C:\Program Files\Sleepycat
Software\Berkeley DB 4.3.28\bin\debug;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program
Files\Dialogic\CT Media\Shared Files\;C:\Program Files\Intel\DMIX;C:\mysql\bin;C:\Program
Files\Sleepycat Software\Berkeley DB 4.3.28\bin;C:\Program Files\Sleepycat Software\Berkeley
DB 4.3.28\bin\debug;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program
Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program
Files\Microsoft Visual Studio\VC98\bin;C:\Program Files\Object Connect\Smalltalk MT 5.5\TDI\VSS\SymposiumACM\dll
Sep 8, 2009 7:34:56 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Sep 8, 2009 7:34:56 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 262 ms
Sep 8, 2009 7:34:56 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Sep 8, 2009 7:34:56 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
Sep 8, 2009 7:34:57 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Sep 8, 2009 7:34:57 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Sep 8, 2009 7:34:57 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16  config=null
Sep 8, 2009 7:34:57 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1467 ms

Localhost.log:
Sep 8, 2009 7:34:56 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Sep 8, 2009 7:34:57 AM org.apache.catalina.core.ApplicationContext log
INFO: JetspeedContainerServlet: starting initialization of Portlet Application at: j2-admin
Sep 8, 2009 7:34:57 AM org.apache.catalina.core.ApplicationContext log
INFO: JetspeedContainerServlet: Could not yet start portlet application at: j2-admin. Starting
back ground thread to start when the portal comes online.
Sep 8, 2009 7:34:57 AM org.apache.catalina.core.ApplicationContext log
INFO: JetspeedContainerServlet: initialization done for Portlet Application at: j2-admin
Sep 8, 2009 7:34:57 AM org.apache.catalina.core.ApplicationContext log
INFO: JetspeedContainerServlet: attemping to start Portlet Application at: /j2-admin
Sep 8, 2009 7:34:57 AM org.apache.catalina.core.ApplicationContext log
INFO: JetspeedContainerServlet: Could not yet start portlet application at: j2-admin. Starting
back ground thread to start when the portal comes online.
Sep 8, 2009 7:34:57 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Sep 8, 2009 7:34:57 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()

There is nothing in the other log files.

Thanks for your help!
Sandi

-----Original Message-----
From: David Sean Taylor [mailto:d.taylor@onehippo.com]
Sent: Thursday, September 03, 2009 3:32 PM
To: Jetspeed Developers List
Subject: Re: jetspeed tutorial error during build

Looks like everything BUILT SUCCESSFUL

Have you tried starting up Tomcat ....

There are several log files of interest (if it fails to start) under
Tomcat's logs directory:

jetspeed*.log, look for any files > 0 bytes
localhost.2009-09-03.log (assuming you are running today)
catalina.2009-09-03.log


Confidentiality Notice:
The information contained in this communication, including attachments, is privileged and
confidential.  It is intended only for the exclusive use of the addressee.  If the reader
is not the intended recipient, or the employee, or the agent responsible for delivering it
to the intended recipient, you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  If you have received this communication
in error, please notify us by return email or telephone immediately.  Thank you.

---------------------------------------------------------------------
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