We are trying to use the convention plugin but it does not recognize 
any of our namespaces. We have followed convention by having "actions" 
in the package name, and naming our actions *Action. We are using  
Weblogic 10.3 and think it may have something to do with weblogic jaring
up our  
class files in the war file. I've tried
 
struts.convention.action.disableJarScanning=false
And
struts.convention.action.includeJars=*_wl_cls_gen.ja*

Neither seems to make a difference. I have the config-browser-plugin 
installed and it doesn't show any namespaces other then default and 
/config-browser. I've also verified on the constants linke of the
browser-plugin that my variable setting from above was active.

My action is named EditWebFarmAction and has the following pacakge and
annotations
package com.edwardjones.framework.console.actions.webfarm;

@ParentPackage("ej-update")
@Namespace("webfarm")
@Results ({
        @Result(name = "success", location = "retrieveWebFarms",
type="chain"),
        @Result(name = "error", location = "/error.jsp"),
        @Result(name = "input", location="retrieveWebFarmForEdit",
type="chain"),
        @Result(name = "invalid.token", location = "/error.jsp")}

I have verified that the struts2-config-browser-plugin-2.1.6.jar is in
my .war file.  I also created the optional package for
struts2-config-browser-plugin-2.1.6.jar and deployed it.

struts2-spring-plugin is 2.1.6
struts2-core is 2.1.6

Other then checking through the browser-plugin we have hit the
application with warname/webfarm/edit-web-farm,
warname/webfarm/edit-web-farm.action, warname/webfarm/editWebFarm, and
warname/webfarm/editWebFarm.action. I believe the first one is correct
based on the documentation.

Here is the error message we get in the weblogic logs.
[WARN]~2009-01-26-22.53.57.073UTC~EDJ~Could not find action or result
There is no Action mapped for namespace /webfarm and action name
edit-web-farm. - [unknown
 location]
        at
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.ja
va:177)

        at
org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java
:61)
        at
org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(Strut
sAction
ProxyFactory.java:39)
        at
com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(Defa
ultActi
onProxyFactory.java:47)
        at
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:4
58)
        at
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher
.java:3
95)
        at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:
42)
        at
com.edwardjones.framework.web.FrameworkFilter.doFilter(FrameworkFilter.j
ava:205
)
        at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:
42)
        at
com.edwardjones.framework.web.EJCookieFilter.doFilter(EJCookieFilter.jav
a:172)
        at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:
42)
        at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
un(WebA
ppServletContext.java:3496)
        at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bject.j
ava:321)
        at weblogic.security.service.SecurityManager.runAs(Unknown
Source)
        at
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServ
letCont
ext.java:2180)
        at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletCont
ext.jav
a:2086)
        at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java
:1406)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
 
Any thoughts on how to get the namespaces recognized? I'd be happy to
provide additional information if needed.
 
Thanks for your help,
Paul Pennel
 
 If you are not the intended recipient of this message (including attachments), 
or if you have received this message in error, immediately notify us and delete 
it and any attachments.  If you no longer wish to receive e-mail from Edward 
Jones, please send this request to messa...@edwardjones.com.  You must include 
the e-mail address that you wish not to receive e-mail communications.  For 
important additional information related to this e-mail, visit 
www.edwardjones.com/US_email_disclosure

Reply via email to