You are viewing a plain text version of this content. The canonical link for it is here.
Posted to graffito-dev@incubator.apache.org by Herman Reintke <hr...@tauri.nl> on 2005/06/12 10:59:42 UTC

Graffito deploy into Jetspeed2

LS,

Thanks to Martins suggestions I have got some further. 

I upgraded to MySQL 4.1.12a with the settings Martin suggested. 
The maven allClean and allBuild work OK.

Then I deployed a fresh jetspeed2 (head) , to a tomcat 5.0.30, and checked the correct working.

Next the maven alldeplay from the Graffito trunk directory. 
This copied the files to the c:\jetspeed directory 
After moving this to the c:\utilities\tomcat\jakarta-tomcat-5.0.30\webapps\jetspeed tried to restart the environment but got the error :

org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'gr
affitoMasterStore' defined in URL [file:/C:/Utilities/tomcat/jakarta-tomcat-5.0.30/webapps/jetspeed/
WEB-INF/assembly/graffito.xml]: Class that bean class [org.apache.portals.graffito.model.impl.Graffi
toServerImpl] depends on not found; nested exception is java.lang.NoClassDefFoundError: org/apache/p
ortals/graffito/model/Server
java.lang.NoClassDefFoundError: org/apache/portals/graffito/model/Server
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
        at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:163

This is what is in the file :

   <!--The Graffito Master Store -->
   <bean id="graffitoMasterStore"   class="org.apache.portals.graffito.model.impl.GraffitoServerImpl"  >      
          <!-- Either Alias property has to match  datasource component & set into the OJB repository.xml  
        OR Uses the other Server attributes to init the connection -->
  <property name = "alias"><value>jetspeed</value></property>
   <property name = "description"><value>The Graffito Master Server contains information about all server references. It may also contains some CMS content like documents or folder. </value></property>
   <property name = "scope"><value>/graffito</value></property>
   <property name = "title"><value>Graffito Master Server</value></property>   
   <property name = "storeClassName"><value>org.apache.portals.graffito.store.impl.ojb.GraffitoOJBStore</value></property>
  </bean>

Does anyone know how to solve this ?

Kind regards,

Herman Reintke


Re: Graffito deploy into Jetspeed2

Posted by Christophe Lombart <ch...@gmail.com>.
Herman , 

I seen in your log : 

> java.lang.NoClassDefFoundError: org/apache/portals/graffito/model/Server
>         at java.lang.ClassLoader.defineClass0(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
>         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
>         at 

This class is in graffito-api-1.0-a1-dev.jar deployed in the "tomcat
share lib" folder.
Can you check if this jar is correctly deployed in this folder ? 
In your build.properties, there is the property
org.apache.jetspeed.server.shared=${org.apache.jetspeed.server.home}/shared/lib/

Can you check also if this property is well defined in your build.properties. 

Regards,
Christophe