Greg Passmore wrote:
That is a problem. Do you have the build.properties in your home directory flagged to use tomcat 5? Deployment looks to be defaulting to tomcat 4 behavior.I'm just trying to use jetspeed out of the box, with the default HSQL server running. Should this just work? I also checked the username/password and I've got it set correctly...theres a user called admin with password 'password' just like the jetspeed.properties request. In the jetspeed XML, the driver looks fine, its set to:
<!-- Class name for HSQL JDBC driver --> <parameter> <name>driverClassName</name> <value>org.hsqldb.jdbcDriver</value> </parameter>
eha
The jetspeed.xml is in the tomcat/webapps directory, not in the jetspeed
subdirectory, is this correct? I just let maven deploy everything.
[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'
-----Original Message-----
From: Scott T. Weaver [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 11:06 AM
To: Jetspeed Developers List
Subject: Re: Help installing/building
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'Source)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSourc
e.jav
a:780)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.j
ava:5
40)
at
org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.newConn
ectio
nFromDataSource(Unknown Source)
at
org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.lookupC
onnec
tion(Unknown Source)
at
org.apache.ojb.broker.accesslayer.ConnectionManagerImpl.getConnection(U
nknow
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
at org.apache.ojb.broker.accesslayer.RsIterator.<init>(Unknown:
Source)
at
org.apache.ojb.broker.core.RsIteratorFactoryImpl.createRsIterator(Unkno
wn
Source)
at
org.apache.ojb.broker.core.PersistenceBrokerImpl.getRsIteratorFromQuery
(Unkn
own Source)
at
org.apache.ojb.broker.core.PersistenceBrokerImpl.getIteratorFromQuery(U
nknow
n Source)
at
org.apache.ojb.broker.core.PersistenceBrokerImpl.getObjectByQuery(Unkno
wn
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.getObje
ctByQ
uery(PBStore.java:239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.springframework.aop.framework.AopProxyUtils.invokeJoinpointUsingRef
lecti
on(AopProxyUtils.java:59)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicA
opPro
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(Preferenc
esImp
l.java:165)
at
org.apache.jetspeed.prefs.impl.PreferencesImpl.<init>(PreferencesImpl.j
ava:1
14)
at
org.apache.jetspeed.prefs.impl.PreferencesProviderImpl.start(Preference
sProv
iderImpl.java:107)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFa
ctory
.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:810)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFa
ctory
.createBean(AbstractAutowireCapableBeanFactory.java:249)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFa
ctory
.createBean(AbstractAutowireCapableBeanFactory.java:177)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(A
bstra
ctBeanFactory.java:159)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.pr
eInst
antiateSingletons(DefaultListableBeanFactory.java:183)
at
org.springframework.context.support.AbstractApplicationContext.refresh(
Abstr
actApplicationContext.java:268)
at
org.springframework.context.support.FileSystemXmlApplicationContext.<in
it>(F
ileSystemXmlApplicationContext.java:83)
at
org.apache.jetspeed.components.SpringComponentManager.<init>(SpringComp
onent
Manager.java:44)
at
org.apache.jetspeed.engine.SpringEngine.initComponents(SpringEngine.jav
a: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.ja
va: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.j ava: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(StandardHostDeplo yer.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(LifecycleS uppor 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.ja va:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImpl .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(BasicDataSourc e.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.testInfusingW ebXML
(TestPortletDescriptor.java:407)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImpl
.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(JUnitT estRu
nner.java:325)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnit TestR
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]
--------------------------------------------------------------------- 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]
