Hi Frank,

jetspeed-layout application is designed to be locally deployed.
Even though you copied jetspeed-portal-2.2.1.jar into an external app, it is 
regarded as a different class because the classloaders are different from each 
other: One from the portal webapp to initialize the JetspeedPowerToolFactory 
component, and the other from your external layout app to use the 
JetspeedPowerToolFactory.
I think you'd better deploy it as a local app.

Woonsan


----- Original Message ----
> From: Frank Otto <[email protected]>
> To: Jetspeed Users List <[email protected]>
> Sent: Fri, April 23, 2010 4:04:26 PM
> Subject: Re: [JS 2.2.1] ClassCastException JetspeedPowerToolFactory
> 
> The first error was:

23.04.2010 15:57:01 ERROR 
> 
[org.apache.jetspeed.factory.JetspeedPortletFactory.getPortletInstance():569] 
> 
PortletFactory: Failed to load portlet 
> 
org.apache.jetspeed.portlets.layout.MultiColumnPortlet
java.lang.NoClassDefFoundError: 
> 
org/apache/jetspeed/velocity/JetspeedPowerToolFactory
     at 
> 
org.apache.jetspeed.portlets.layout.LayoutPortlet.init(LayoutPortlet.java:98)

So, 
> I have copied the jetspeed-portal-2.2.1.jar to 
> 
webapps\jetspeed-layout\WEB-INF\lib and now I get the 
> ClassCastException.

I use an own webapp for jetspeed-layout and not as 
> internal app in 
jetspeed portal.

Am 23.04.2010 15:56, schrieb Woonsan 
> Ko:
> Hi Frank,
>
> If you see that error message, "Failed to 
> load portlet ...", then you must have log lines with stack trace somewhere in 
> ERROR level.
> It would be helpful if you copy/paste the stack 
> trace.
>
> Regards,
>
> Woonsan
>
>
> 
> ----- Original Message ----
>    
>> From: Frank 
> Otto<
> href="mailto:[email protected]";>[email protected]>
>> To: 
> Jetspeed Users List<
> href="mailto:[email protected]";>[email protected]>
>> 
> Sent: Fri, April 23, 2010 3:42:15 PM
>> Subject: [JS 2.2.1] 
> ClassCastException JetspeedPowerToolFactory
>>
>> 
> Hi,
>>      
> I get following error after 
> upgrading my maven project with jetspeed
>    
>> 
> 2.2.1:
>>      
> Failed to load 
> portlet
>    
>>      
> 
> org.apache.jetspeed.portlets.layout.MultiColumnPortlet:
>    
> 
>>      
> 
> java.lang.ClassCastException:
>    
>>    
>   
> 
> org.apache.jetspeed.velocity.JetspeedPowerToolFactory
>
> I don't 
> know
>    
>> why. Has someone an 
> idea?
>>      
>
> Frank
>
> Am 
> 22.04.2010 13:00, schrieb
>    
>> Woonsan 
> Ko:
>> Hi Frank,
>>
>> Jetspeed-2.2.1 contains 
> j2-admin
>> and jetspeed-layouts, of course. :-) Please check the 
> downloads.
>>
>> Jetspeed-2.2.1 components/services are 
> backward compatible with
>> Jetspeed-2.2.0.
>> So, if your 
> portal has custom portlet apps and separate
>> psml pages from the 
> default psml pages, then I don't think there's any critical
>> problem. 
> If lucky, it would be good enough to change the version number in 
> your
>> maven project.
>> If you have customized decorators 
> and styles, then I
>> think you need to try to merge them with new ones 
> to adjust look and
>> feels.
>>
>> Kind 
> regards,
>>
>>
>> 
> Woonsan
>>
>>
>> ----- Original Message 
> ----
>>
>>
>>      
>>> 
> From: Frank Otto<
>>>        
>> 
> href="mailto:
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]>
>>  
>     
>>> To:
>>>        
> 
>> Jetspeed Users List<
>> href="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]>
>>  
>     
>>>        
>> Sent: 
> Thu, April 22, 2010 8:14:35 AM
>>      
>>> 
> Subject: Re: [ANNOUNCE] Apache
>>>        
> 
>> Portals Jetspeed Portal 2.2.1 Release
>>    
>   
>>>
>>>        
>> 
> Hi,
>>      
>>>
>>>  
>       
>> I use for my portal jetspeed 2.2.0
>> 
> (with maven). What's the best way
>>
>>      
> 
>>> to migrate
>>>        
> 
>> to 2.2.1?
>>      
> 
>>>
>>>        
>> Is 
> there no j2-admin and
>> jetspeed-layouts 
> in
>>
>>      
>>> 
> 2.2.1?
>>>
>>>        
> 
>>
>>
>> kind 
> regards,
>>
>>
>> Frank
>>
>> Am 
> 20.04.2010 21:39, schrieb
>>
>>
>>    
>   
>>> Ate Douma:
>>> The Apache Portals Jetspeed 
> Team is pleased
>>>        
>> to 
> announce
>>      
>>> version 2.2.1 of the 
> Jetspeed-2 Open Source Enterprise
>>>        
> 
>> Portal.
>>      
> 
>>>
>>> Release 2.2.1 continues 
> Jetspeed's
>>>        
>> full 
> compliance of the Portlet Specification
>>      
> 
>>> 2.0 (JSR-286), passing
>>>      
>   
>> the Portlet 2.0 TCK (Test Compatibility Kit) suite and 
> is
>>      
>>> fully
>>>  
>       
>> CERTIFIED to the Java Portlet 
> Standard.
>>      
>>> 
> This
>>>        
>> 
> release
>>      
>>> introduces the Jetui 
> client-side customization engine, as
>>>        
> 
>> well as advanced page
>>      
> 
>>> templating support and
>>>      
>   
>> improvements.
>>      
> 
>>> Highlights of new 
> features
>>>
>>>        
>> 
> are:
>>      
>>> * Jetui Client Side 
> Customization Engine
>>> * Drag and
>>>    
>     
>> Drop
>>      
>>> 
> Support of portlets
>>> * Jetspeed Toolbox 
> dockable
>>>        
>> portlet 
> selector, layout
>>      
>>> selector, and 
> skin selector
>>> *
>>>        
> 
>> Dockable Jetspeed Navigator to navigate
>>    
>   
>>> over spaces, maintenance
>>>    
>     
>> over pages, folders, links
>>    
>   
>>> * Jetspeed Spaces,
>>> 
> secured
>>>        
>> areas of the 
> portal site for workgroups and projects
>>      
> 
>>> * JAX
>>>        
>> 
> RS
>>      
>>> Services for Portal 
> Customization and Registry
>>>        
> 
>> manipulations
>>      
>>> * 
> Open ID
>>> Support
>>> * Preview
>>>  
>       
>> Portlet Mode from Jetspeed 
> Toolbox
>>      
>>> * 
> Improved
>>> LDAP
>>>        
> 
>> synchronization, authentication, and maintenance of 
> LDAP
>>      
>>>        
> 
>> credentials
>>      
>>> * CAS 
> Authentication
>>> * Dynamic PSML -
>>>    
>     
>> dynamically
>>      
> 
>>> overlay external site maps such as other web sites 
> or
>>>        
>> content repositories 
> onto
>>      
>>> the Jetspeed site map to 
> dynamically
>>>        
>> navigate of 
> external content within
>>      
>>> 
> portal
>>> * PSML
>>>        
> 
>> Templates - templacized, secured pages that overlay 
> over
>>      
>>> URL
>>>  
>       
>> addressable pages to merge template-portlets 
> such as toolbox and
>> navigator
>>      
> 
>>> into a single page
>>> * Fragment References 
> -
>>>        
>> also known as 
> Portlet
>>      
>>> Instances - allow for 
> referencing
>>>        
>> 
> preconfigured portlets with preferences from a
>>      
> 
>>> standard
>>>        
> 
>> page
>>      
>>> * Improved 
> Portlet API 2.0 Support and
>>>        
> 
>> Compliance
>>      
>>> * 
> Improved Installer to support two kinds of
>>>      
>   
>> installations (min, demo)
>>      
> 
>>> *
>>> New User Manager 
> supporting
>>>        
>> true paging 
> over large user
>> databases
>>      
> 
>>>
>>>
>>> For a full overview 
> of
>>>        
>> all the features, 
> online documentation
>>      
>>> and 
> tutorial or to download
>>>        
>> 
> the release including a binary installer which comes
>>    
>   
>>> with a bundled
>>>      
>   
>> Tomcat 6, please visit:
>>      
> 
>>> Website:
>>>
>>>
>>>  
>       
>> 
> target=_blank >http://portals.apache.org/jetspeed-2
>>    
>   
>>>
>>>        
>> 
> Features:
>>      
>>>
>>>  
>       
>> 
> href="http://portals.apache.org/jetspeed-2/features.html"; target=_blank 
> >http://portals.apache.org/jetspeed-2/features.html
>>    
>   
>>>
>>>
>>>      
>   
>> Download:
>>      
> 
>>>        
>> 
> href="http://portals.apache.org/jetspeed-2/download.html"; target=_blank 
> >http://portals.apache.org/jetspeed-2/download.html
>>    
>   
>>>
>>>
>>>      
>   
>> Installer:
>>      
> 
>>>
>>>        
>> 
> href="http://portals.apache.org/jetspeed-2/getting-started-installer.html"; 
> target=_blank 
> >http://portals.apache.org/jetspeed-2/getting-started-installer.html
>>  
>     
>>>
>>>
>>>    
>     
>> Release notes:
>>      
> 
>>>
>>>        
>> 
> href="http://portals.apache.org/jetspeed-2/release-notes.html"; target=_blank 
> >http://portals.apache.org/jetspeed-2/release-notes.html
>>  
>     
>>>
>>>        
> 
>> Ate
>>      
>>> 
> Douma
>>> On behalf of the Apache Portals
>>>  
>       
>> PMC
>>      
> 
>>>
>>>
>>>        
> 
>> 
> ---------------------------------------------------------------------
>>  
>     
>>>        
>> 
> To
>>      
>>> unsubscribe, 
> e-mail:
>>> ymailto="mailto:
>>>      
>   
>> ymailto="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]"
>> 
> href="mailto:
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]"
>>  
>     
>>>        
>> 
> href="mailto:
>> href="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]">
>> 
> ymailto="mailto:
> href="mailto:[email protected]";>[email protected]"
>> 
> href="mailto:
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]
>>  
>     
>>>
>>>        
> 
>> For additional commands, e-mail:
>>      
> 
>>> ymailto="mailto:
>>>        
> 
>> ymailto="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]"
>> 
> href="mailto:
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]"
>>  
>     
>>>        
>> 
> href="mailto:
>> href="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]">
>> 
> ymailto="mailto:
> href="mailto:[email protected]";>[email protected]"
>> 
> href="mailto:
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]
>>  
>     
>>>
>>>
>>>    
>     
>>
>>
>>
>> 
> ---------------------------------------------------------------------
>>
>> 
> To
>>
>>      
>>> unsubscribe, 
> e-mail:
>>>
>>>        
>> 
> ymailto="mailto:
>> href="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]"
>>  
>     
>>>        
>> 
> href="mailto:
>> href="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]">
>> 
> ymailto="mailto:
> href="mailto:[email protected]";>[email protected]"
>> 
> href="mailto:
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]
>>  
>     
>>>
>>>        
> 
>>
>> For
>>
>>      
> 
>>> additional
>>>        
> 
>> commands, e-mail:
>>      
>>> 
> ymailto="mailto:
>>>        
>> 
> ymailto="mailto:
> href="mailto:[email protected]";>[email protected]"
>> 
> href="mailto:
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]"
>>  
>     
>>>        
>> 
> href="mailto:
>> href="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]">
>> 
> ymailto="mailto:
> href="mailto:[email protected]";>[email protected]"
>> 
> href="mailto:
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]
>>  
>     
>>>
>>>        
> 
>>
>>
>>
>>
>>
>> 
> ---------------------------------------------------------------------
>> 
> To
>> unsubscribe, e-mail:
>> ymailto="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]"
>> 
> href="mailto:
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]
>>
>> 
> For additional commands, e-mail:
>> ymailto="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]"
>> 
> href="mailto:
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]
>>
>>
>>
>>
>>  
>     
>
> 
> ---------------------------------------------------------------------
> 
> To
>    
>> unsubscribe, e-mail:
>> 
> ymailto="mailto:
> href="mailto:[email protected]";>[email protected]"
>> 
> href="mailto:
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]
>>  
>     
> For
>    
>> additional 
> commands, e-mail:
>> ymailto="mailto:
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]"
>> 
> href="mailto:
> href="mailto:[email protected]";>[email protected]">
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]
>>  
>     
>
>
>
> 
> ---------------------------------------------------------------------
> To 
> unsubscribe, e-mail: 
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]
> 
> For additional commands, e-mail: 
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]
>
>  
>   
> 


---------------------------------------------------------------------
To 
> unsubscribe, e-mail: 
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]
For 
> additional commands, e-mail: 
> ymailto="mailto:[email protected]"; 
> href="mailto:[email protected]";>[email protected]


      

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to