cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a custom aspect

nrai
Champ in-the-making
Champ in-the-making
hi
   I am trying to add a custom aspect to alfresco. I have deployed the CustomWizard provided with the Alfresco SDK( in the sample folder).I have followed the method of deployment given in http://wiki.alfresco.com/wiki/Packaging_And_Deploying_Extensions

But after deployment, when i click the create content link, i get the following error.



         java.lang.Error: Unresolved compilation problems: The type List is not generic; it cannot be parameterized with arguments  Syntax error, parameterized types are only available if source level is 5.0 Syntax error, annotations are only available if source level is 5.0 The type List is not generic; it cannot be parameterized with arguments  Syntax error, parameterized types are only available if source level is 5.0 aspects cannot be resolved or is not a field aspects cannot be resolved or is not a field The type ArrayList is not generic; it cannot be parameterized with arguments  Syntax error, parameterized types are only available if source level is 5.0 Syntax error, 'for each' statements are only available if source level is 5.0 Can only iterate over an array or an instance of java.lang.Iterable aspects cannot be resolved or is not a field aspects cannot be resolved or is not a field aspects cannot be resolved or is not a field



java.lang.Error: Unresolved compilation problems: The type List is not generic; it cannot be parameterized with arguments Syntax error, parameterized types are only available if source level is 5.0 Syntax error, annotations are only available if source level is 5.0 The type List is not generic; it cannot be parameterized with arguments Syntax error, parameterized types are only available if source level is 5.0 aspects cannot be resolved or is not a field aspects cannot be resolved or is not a field The type ArrayList is not generic; it cannot be parameterized with arguments Syntax error, parameterized types are only available if source level is 5.0 Syntax error, 'for each' statements are only available if source level is 5.0 Can only iterate over an array or an instance of java.lang.Iterable aspects cannot be resolved or is not a field aspects cannot be resolved or is not a field aspects cannot be resolved or is not a field
at org.alfresco.sample.CustomCreateContentWizard.(CustomCreateContentWizard.java:39)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at org.apache.myfaces.util.ClassUtils.newInstance(ClassUtils.java:274)
at org.apache.myfaces.util.ClassUtils.newInstance(ClassUtils.java:265)
at org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:49)
at org.apache.myfaces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:311)
at org.springframework.web.jsf.DelegatingVariableResolver.resolveVariable(DelegatingVariableResolver.java:110)
at org.apache.myfaces.el.ValueBindingImpl$ELVariableResolver.resolveVariable(ValueBindingImpl.java:569)
at org.apache.commons.el.NamedValue.evaluate(NamedValue.java:124)
at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:378)
at org.alfresco.web.app.servlet.FacesHelper.getManagedBean(FacesHelper.java:127)
at org.alfresco.web.bean.wizard.WizardManager.setCurrentWizard(WizardManager.java:67)
at org.alfresco.web.app.AlfrescoNavigationHandler.handleWizardOpen(AlfrescoNavigationHandler.java:546)
at org.alfresco.web.app.AlfrescoNavigationHandler.handleNavigation(AlfrescoNavigationHandler.java:107)
at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:84)
at javax.faces.component.UICommand.broadcast(UICommand.java:106)
at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:105)
at org.alfresco.web.app.servlet.AlfrescoFacesServlet.service(AlfrescoFacesServlet.java:49)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:73)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

If you could please help me to figure out where i am going wrong.

many thanks

nrai
2 REPLIES 2

marcus
Champ in-the-making
Champ in-the-making
What JRE version are you running Tomcat with?

nrai
Champ in-the-making
Champ in-the-making
am using JRE 1.5.0_06