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 Martin Dulisch <md...@web.de> on 2005/02/25 20:23:55 UTC
NoClassDefFoundError
Hello,
I am trying to run the current CVS jetspeed 2 version. I am executing
the steps in the getting started document. When I try to open the portal
in the browser an error occurs. The tomcat logs contain the following
exception.
My environment:
Mac OS 10.3.7
Tomcat 5.0.28
Java 1.4.2_05
Has someone running jetspeed 2 on Mac OS?
Thanks for help,
Martin
---------
2005-02-25 11:35:08 StandardContext[/jetspeed]Marking servlet jetspeed
as unavailable
2005-02-25 11:35:08 StandardContext[/jetspeed]Servlet /jetspeed threw
load() exception
javax.servlet.ServletException: Error instantiating servlet class
org.apache.jetspeed.engine.JetspeedServlet
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:996)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
...
----- Root Cause -----
java.lang.NoClassDefFoundError:
org/apache/jetspeed/exception/JetspeedException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
at java.lang.Class.getConstructor0(Class.java:1930)
at java.lang.Class.newInstance0(Class.java:278)
at java.lang.Class.newInstance(Class.java:261)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:987)
---------------------------------------------------------------------
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
SQLException thrown while trying to get Connection from Datasource
Posted by reda bendiar <re...@gmail.com>.
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