Comments inline...
Greg Passmore wrote:
Thanks for the help guys. However, I am still hitting problems after getting
past this. I did a cvs update and I followed the instructions on the
website, doing:
Maven start.test.server
Maven -Dmaven.test.skip=true allClean allBuild
Stopped the test.server
Maven start.production.server
Maven quickStart
Then I go to http://localhost:2004/jetspeed
(I'm using tomcat 5.x)
And I get this Exception:
WARN: IOException, CatalinaPAM will only function as FileSystemPAM:
java.net.ConnectException: Connection refused: connect
You need to set up a tomcat user that has the roles "manager" and
"admin" in /conf/tomcat-users.xml. This should correspond to the
jetspeed.properties entries: autodeployment.user and
autodeployment.password.
[org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl] ERROR:
SQLException thrown while trying to get Connection from Datasource
(java:comp/env/jdbc/jetspeed)
Cannot create JDBC driver of class '' for connect URL 'null'
Make sure the jakarta-tomcat-5.0.27/conf/Catalina/localhost/jetspeed.xml
has the database connection pool configured correctly.
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null'
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
a:780)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5
40)
at
org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.newConnectio
nFromDataSource(Unknown Source)
at
org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.lookupConnec
tion(Unknown Source)
at
org.apache.ojb.broker.accesslayer.ConnectionManagerImpl.getConnection(Unknow
n Source)
at
org.apache.ojb.broker.accesslayer.StatementManager.getPreparedStatement(Unkn
own Source)
at
org.apache.ojb.broker.accesslayer.JdbcAccessImpl.executeQuery(Unknown
Source)
at
org.apache.ojb.broker.accesslayer.RsQueryObject.performQuery(Unknown Source)
at org.apache.ojb.broker.accesslayer.RsIterator.<init>(Unknown
Source)
at
org.apache.ojb.broker.core.RsIteratorFactoryImpl.createRsIterator(Unknown
Source)
at
org.apache.ojb.broker.core.PersistenceBrokerImpl.getRsIteratorFromQuery(Unkn
own Source)
at
org.apache.ojb.broker.core.PersistenceBrokerImpl.getIteratorFromQuery(Unknow
n Source)
at
org.apache.ojb.broker.core.PersistenceBrokerImpl.getObjectByQuery(Unknown
Source)
at
org.apache.ojb.broker.core.DelegatingPersistenceBroker.getObjectByQuery(Unkn
own Source)
at
org.apache.ojb.broker.core.DelegatingPersistenceBroker.getObjectByQuery(Unkn
own Source)
at
org.apache.jetspeed.components.persistence.store.ojb.pb.PBStore.getObjectByQ
uery(PBStore.java:239)
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:324)
at
org.springframework.aop.framework.AopProxyUtils.invokeJoinpointUsingReflecti
on(AopProxyUtils.java:59)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopPro
xy.java:138)
at $Proxy0.getObjectByQuery(Unknown Source)
at
org.apache.jetspeed.prefs.impl.PreferencesImpl.getNode(PreferencesImpl.java:
229)
at
org.apache.jetspeed.prefs.impl.PreferencesImpl.createPrefNode(PreferencesImp
l.java:165)
at
org.apache.jetspeed.prefs.impl.PreferencesImpl.<init>(PreferencesImpl.java:1
14)
at
org.apache.jetspeed.prefs.impl.PreferencesProviderImpl.start(PreferencesProv
iderImpl.java:107)
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:324)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:810)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.createBean(AbstractAutowireCapableBeanFactory.java:249)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.createBean(AbstractAutowireCapableBeanFactory.java:177)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:159)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInst
antiateSingletons(DefaultListableBeanFactory.java:183)
at
org.springframework.context.support.AbstractApplicationContext.refresh(Abstr
actApplicationContext.java:268)
at
org.springframework.context.support.FileSystemXmlApplicationContext.<init>(F
ileSystemXmlApplicationContext.java:83)
at
org.apache.jetspeed.components.SpringComponentManager.<init>(SpringComponent
Manager.java:44)
at
org.apache.jetspeed.engine.SpringEngine.initComponents(SpringEngine.java:108
)
at
org.apache.jetspeed.engine.AbstractEngine.init(AbstractEngine.java:134)
at org.apache.jetspeed.Jetspeed.createEngine(Jetspeed.java:64)
at
org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:137)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:10
29)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
4013)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
23)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:277)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:617)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:968)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:119)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at
org.apache.catalina.core.StandardService.start(StandardService.java:480)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
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:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:243)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
a:773)
... 69 more
-----Original Message-----
From: Jaq Marit [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 3:00 AM
To: Jetspeed Developers List
Subject: Re: Help installing/building
i get headaches with unit tests, too. i usually skip the tests with
maven -Dmaven.test.skip allClean allBuild i never got j2 working without
skipping the tests. maybe this is because j2 is still on alpha.
Quoting Greg Passmore <[EMAIL PROTECTED]>:
Hello all,
This may have come up already, but I can't find any sort of mailing list
archive or anything like that. I'm trying to install and use JetSpeed 2
for
a portal project, but am unable to do so thus far. I was unable to find
any
sort of 'release' so I checked out the source from CVS. I tried to build,
and got quite far, but failed in the tests. I got a NullPointer in
org.apache.jetspeed.tools.pamanager.TestPortletDescriptor.
Looking at the source, it appears that the 'engine' is null, and it is
unclear if this is a test problem or not.
Anyways, is there a stable revision I can checkout? Are there any
releases?
Should I just comment out this test, or is it perhaps an environmental
problem? Here is the stack:
Writing out infused web.xml for unit-test
------------- ---------------- ---------------
------------- Standard Error -----------------
java.lang.NullPointerException
at org.apache.jetspeed.Jetspeed.getRealPath(Jetspeed.java:110)
at
org.apache.jetspeed.util.descriptor.PortletApplicationWar.processWebXML(Port
letApplicationWar.java:519)
at
org.apache.jetspeed.tools.pamanager.TestPortletDescriptor.testInfusingWebXML
(TestPortletDescriptor.java:407)
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:324)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRu
nner.java:325)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
unner.java:536)
------------- ---------------- ---------------
Thanks!
-Greg
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
---------------------------------------------------------------------
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]
--
*******************************************
* Scott T. Weaver *
* <[EMAIL PROTECTED]> *
* <http://www.einnovation.com> *
* -------------------------------------- *
* Apache Jetspeed Enterprise Portal *
* Apache Pluto Portlet Container *
* *
* OpenEditPro, Website Content Management *
* <http://www.openeditpro.com> *
*******************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]