You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by reda bendiar <re...@gmail.com> on 2005/02/26 15:10:59 UTC

SQLException thrown while trying to get Connection from Datasource

Hello,

the maven allClean allBuild and quickStart were done without errors.
But when i start tomcat jetspeed throws errors


My environment:
Win2000
Tomcat 5.5
Java 1.5_01
JetSpeed from CVS ( 2.0-M2-dev )


here is what i find in jetspeed.log : 
...
ERROR org.apache.jetspeed.engine.AbstractEngine -
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'java.util.prefs.PreferencesFactory' defined
in URL [file:/D:/app_servers/tomcat5.5/webapps/jetspeed/WEB-INF/assembly/jetspeed-spring.xml]:
Initialization of bean failed; nested exception is
org.apache.jetspeed.prefs.PreferencesException: Failed to initialize
prefs api.  org.springframework.transaction.CannotCreateTransactionException:
Could not create OJB transaction; nested exception is
org.apache.ojb.broker.accesslayer.LookupException: SQLException thrown
while trying to get Connection from Datasource
(java:comp/env/jdbc/jetspeed)


I tried HSQLDB and mysql but got the same problem. Anybody has an idea ?

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


Re: SQLException thrown while trying to get Connection from Datasource

Posted by reda bendiar <re...@gmail.com>.
You are right the answer is in JS2-187
Thank a lot !

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


Re: SQLException thrown while trying to get Connection from Datasource

Posted by superman <su...@talkin2u.com>.
I just solved a similar problem using xp instead of win2k and it turned out to 
be a bad jetspeed.xml file located at %tomcat%/conf/Catalina/localhost for 
tomcat 5.5.  There is an example of an appropriate jetspeed.xml file in 
%jetspeed%/portal/src/resources/jetspeed-tomcat-5.5.xml.

However, there are other issues with running jetspeed2 with tomcat 5.5.  See 
link below.
http://issues.apache.org/jira/browse/JS2-187


Hope this helps.

Chris

On Saturday 26 February 2005 09:10 am, reda bendiar wrote:
> Hello,
>
> the maven allClean allBuild and quickStart were done without errors.
> But when i start tomcat jetspeed throws errors
>
>
> My environment:
> Win2000
> Tomcat 5.5
> Java 1.5_01
> JetSpeed from CVS ( 2.0-M2-dev )
>
>
> here is what i find in jetspeed.log :
> ...
> ERROR org.apache.jetspeed.engine.AbstractEngine -
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'java.util.prefs.PreferencesFactory' defined
> in URL
> [file:/D:/app_servers/tomcat5.5/webapps/jetspeed/WEB-INF/assembly/jetspeed-
>spring.xml]: Initialization of bean failed; nested exception is
> org.apache.jetspeed.prefs.PreferencesException: Failed to initialize
> prefs api. 
> org.springframework.transaction.CannotCreateTransactionException: Could not
> create OJB transaction; nested exception is
> org.apache.ojb.broker.accesslayer.LookupException: SQLException thrown
> while trying to get Connection from Datasource
> (java:comp/env/jdbc/jetspeed)
>
>
> I tried HSQLDB and mysql but got the same problem. Anybody has an idea ?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org

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