I hope you found the answer for this by now. As is see the exception, as long
as you class is under com.multimedia.actions, it should work. If you action
class is not registered in module. packages, then need to add an entry in
turbineresources.properties like below
module.packages=<leave the
existingone>,com.module.submodule.actionclassespackage
--- James Gardner <[EMAIL PROTECTED]> wrote:
> Hi!
> I've deployed velocity 1.4b1 on jboss 3.04 (the one that has 'jbossweb'
> (jetty??) as its web container) and as far as i can see everything is
> running fine (i can login as admin/turbine, customise, save things etc)
> however, when it comes to me trying to deploy my own VelocityPortlet,
> i'm having terrible problems just getting the classes to load... i've
> traced the error to a ClassNotFoundException
>
> This is a snippet from within
> org.apache.turbine.modules.ActionLoader.getInstance() that throws the
> exception, my problem is that an exception has ocurred further up in the
> function and i can't tell _why_ the action did not return properly, from
> my point of view i've dropped my jar'ed action (few dependancies, bar
> the VelocityAction) within the webapp's WEB-INF/lib i've added my
> package name as a 'module.packages' in the TurbineResources.properties
> file, but i still can't seem to load the class... can anyone give me
> some advice as to what i can do to load my custom VelocityAction???
> Thanks
> James Gardner
>
> ++SNIPPET FROM org.apache.turbine.modules.ActionLoader.getInstance() ++
> if (action == null)
> {
> // If we did not find a screen we should try and give
> // the user a reason for that...
> // FIX ME: The AssemblerFactories should each add it's
> own
> // string here...
> Vector packages = TurbineResources.getVector(
> TurbineConstants.MODULE_PACKAGES);
> ObjectUtils.addOnce( packages,
> GenericLoader.getBasePackage() );
>
> throw new ClassNotFoundException(
> "\n\n\tRequested Action not found: " + name + "\n" +
> "\tTurbine looked in the following modules.packages
> " +
> "path: \n\t" + packages.toString() + "\n");
> }
> else if ( cache() )
> {
> // The new instance is added to the cache
> addInstance( name, action );
> }
>
> ++SNIPPET FROM org.apache.turbine.modules.ActionLoader.getInstance() ++
>
>
>
> ++ Meaningful log entries & stack dump from WEB-INF/log/velocity.log ++
> [20:16:16,647 DEBUG] VelocityPortlet::getVelocityContent
> [20:16:16,647 DEBUG] VelocityPortlet found action MyAction context
> org.apache.velocity.VelocityContext@a5d7f2
> [20:16:16,661 ERROR]
> java.lang.ClassNotFoundException:
>
> Requested Action not found: MyAction
> Turbine looked in the following modules.packages path:
> [com.multimedia.actions, org.apache.jetspeed.modules,
> org.apache.turbine.modules]
>
> at
> org.apache.turbine.modules.ActionLoader.getInstance(ActionLoader.java:174)
> at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
> at
>
org.apache.jetspeed.portal.portlets.VelocityPortlet.getVelocityContent(VelocityPortlet.java:192)
> at
>
org.apache.jetspeed.portal.portlets.VelocityPortlet.getContent(VelocityPortlet.java:129)
> at
>
org.apache.jetspeed.portal.security.portlets.PortletWrapper.getContent(PortletWrapper.java:142)
> at sun.reflect.GeneratedMethodAccessor127.invoke(Unknown Source)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:259)
> at
>
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207)
> at
>
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:250)
> at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
> at
>
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:109)
> at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
> at
>
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:109)
> at
>
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
> at org.apache.velocity.Template.merge(Template.java:296)
> at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:492)
> at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:461)
> at
>
org.apache.turbine.services.velocity.TurbineVelocityService.decodeRequest(TurbineVelocityService.java:485)
> at
>
org.apache.turbine.services.velocity.TurbineVelocityService.handleRequest(TurbineVelocityService.java:327)
> at
>
org.apache.turbine.services.velocity.TurbineVelocity.handleRequest(TurbineVelocity.java:146)
> at
>
org.apache.jetspeed.portal.controls.VelocityPortletControl.getContent(VelocityPortletControl.java:162)
> at sun.reflect.GeneratedMethodAccessor122.invoke(Unknown Source)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:259)
> at
>
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207)
> at
>
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:250)
> at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
> at
> org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:344)
> at
>
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:153)
> at
>
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
> at org.apache.velocity.Template.merge(Template.java:296)
> at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:492)
> at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:461)
> at
>
org.apache.turbine.services.velocity.TurbineVelocityService.decodeRequest(TurbineVelocityService.java:485)
> at
>
org.apache.turbine.services.velocity.TurbineVelocityService.handleRequest(TurbineVelocityService.java:327)
> at
>
org.apache.turbine.services.velocity.TurbineVelocity.handleRequest(TurbineVelocity.java:146)
> at
>
org.apache.jetspeed.portal.controllers.VelocityPortletController.getContent(VelocityPortletController.java:138)
> at
> org.apache.jetspeed.portal.BasePortletSet.getContent(BasePortletSet.java:334)
> at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:259)
> at
>
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207)
> at
>
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:250)
> at
>
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
> at org.apache.velocity.Template.merge(Template.java:296)
> at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:492)
> at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:461)
> at
>
org.apache.turbine.services.velocity.TurbineVelocityService.decodeRequest(TurbineVelocityService.java:485)
> at
>
org.apache.turbine.services.velocity.TurbineVelocityService.handleRequest(TurbineVelocityService.java:327)
> at
>
org.apache.turbine.services.velocity.TurbineVelocity.handleRequest(TurbineVelocity.java:146)
> at
>
org.apache.jetspeed.portal.controllers.VelocityPortletController.getContent(VelocityPortletController.java:138)
> at
> org.apache.jetspeed.portal.BasePortletSet.getContent(BasePortletSet.java:334)
> at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:259)
> at
>
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207)
> at
>
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:250)
> at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
> at
>
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
> at
>
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:128)
> at
>
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
> at org.apache.velocity.Template.merge(Template.java:296)
> at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:492)
> at org.apache.velocity.app.Velocity.mergeTemplate(Velocity.java:461)
> at
>
org.apache.turbine.services.velocity.TurbineVelocityService.decodeRequest(TurbineVelocityService.java:485)
> at
>
org.apache.turbine.services.velocity.TurbineVelocityService.handleRequest(TurbineVelocityService.java:327)
> at
>
org.apache.turbine.services.velocity.TurbineVelocity.handleRequest(TurbineVelocity.java:146)
> at
>
org.apache.jetspeed.portal.controls.VelocityPortletControl.getContent(VelocityPortletControl.java:162)
> at
> org.apache.jetspeed.util.template.JetspeedTool.getPane(JetspeedTool.java:167)
> at sun.reflect.GeneratedMethodAccessor167.invoke(Unknown Source)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:259)
> at
>
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207)
> at
>
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:250)
> at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
> at
>
=== message truncated ===
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]