Ok, thank you, i will try that :) -----Original Message----- From: Mikko Wuokko [mailto:[EMAIL PROTECTED] Sent: terça-feira, 28 de Novembro de 2006 10:21 To: Jetspeed Users List Subject: Re: Create User Remotly
Hi. Means that that .jar file is needed only at build time and should not be included in the .war bundle. It will create a clash of a duplicate jars/classes. Just like portlet-api should not be included in the portlet war-file as it should be provided by the portal. If you use Eclipse for example to create the .war you can use the jetspeed-api-2.0.jar as a library or set it NOT to be included in the .war. -Mikko Ruben Fragoso wrote: > What do you mean? if i remove the the jetspeed-api-2.0.jar that > containes the definition of these classes > > org.apache.jetspeed.CommonPortletServices; > org.apache.jetspeed.security.UserManager; > > Then my portlet does not compile at all, please elaborate :) > > Thank you in advance > > Ruben > > > -----Original Message----- > From: David Sean Taylor [mailto:[EMAIL PROTECTED] > Sent: segunda-feira, 27 de Novembro de 2006 18:54 > To: Jetspeed Users List > Subject: Re: Create User Remotly > > > Ruben Fragoso wrote: >> Now my problem is that i cannot get my portlet started because this >> code >> line: >> >> userManager = (UserManager) >> getPortletContext().getAttribute(CommonPortletServices.CPS_USER_MANAGE >> R_COMP >> ONENT); >> >> It is throwing this exception: >> >> Failed to load portlet com.testing.CustomJSPPortlet: >> java.lang.ClassCastException: >> org.apache.jetspeed.security.impl.UserManagerImpl >> >> Anyone here was able to create a custom portlet to work with the >> UserManager in J2 ? >> > Make sure you don't have the jetspeed-api jar, or any other jetspeed-* > jar in your portlet application. > > --------------------------------------------------------------------- > 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] > --------------------------------------------------------------------- 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]
