Hi Chris, Yes this is the same issue this end. It is strange because there is a document talking about multiple Struts 2 WARs in an EAR. So I would imagine this has to be possible.
I have set the logging level to FINEST on the Struts packages to see what was happening on boot (when the scanning should take place). I get this when the WAR is deployed on its OWN: Setting action default parent package to [convention-default] Loading action configurations Actions being loaded using package locators [action, actions, struts, struts2] Excluding actions from packages [org.apache.struts.*, org.apache.struts2.*, org.springframework.web.struts.*, org.springframework.web.struts2.*, org.hibernate.*] Ignoring URL [file:/E:/Dev/Servers/glassfish/META-INF] because it is not a valid protocol Ignoring URL [file:/E:/Dev/Servers/glassfish/META-INF] because it is not a valid protocol Processing class [com.me.actions.MainAction] in package [com.me.actions] Changed action name from [MainAction] to [main] Got actionName for class [class com.me.actions.MainAction] of [main] Created package config named [com.me.actions#convention-default#] with a namespace [] Creating action config for class [class com.me.actions.MainAction], name [Main] and package name [com.me.actions#convention-default#] in namespace [] Using final calculated namespace [] Searching for results in the Servlet container at [/WEB-INF/jsp/] with result prefix of [/WEB-INF/jsp/Main] Processing resource path [/WEB-INF/jsp/index.jsp] Searching for results in the class path at [WEB-INF/jsp/] with a result prefix of [/WEB-INF/jsp/Main] and action name [Main] Checking ConfigurationProviders for reload. Checking ConfigurationProviders for reload. And I get this when it is deployed as part of the EAR: Setting action default parent package to [convention-default] Loading action configurations Actions being loaded using package locators [action, actions, struts, struts2] Excluding actions from packages [org.apache.struts.*, org.apache.struts2.*, org.springframework.web.struts.*, org.springframework.web.struts2.*, org.hibernate.*] Ignoring URL [file:/E:/Dev/Servers/glassfish/META-INF] because it is not a valid protocol Ignoring URL [file:/E:/Dev/AAL/ANA/dist/gfdeploy/ANA-ejb_jar/META-INF/] because it is not a valid protocol Ignoring URL [file:/E:/Dev/Servers/glassfish/META-INF] because it is not a valid protocol Ignoring URL [file:/E:/Dev/AAL/ANA/dist/gfdeploy/ANA-ejb_jar/META-INF/] because it is not a valid protocol Checking ConfigurationProviders for reload. Checking ConfigurationProviders for reload. James -----Original Message----- From: Miles, Chris [mailto:chris.mi...@spsa.pnn.police.uk] Sent: 15 April 2010 11:22 To: Struts Users Mailing List Subject: RE: Struts 2 in an EAR NOT PROTECTIVELY MARKED James, Is this using the Convention plugin? If so then this is the exact same problem I have posted about. Not been able to find a solution yet. I am also using a Annotation enabled application within an WAR/EAR combo on Glassfish 2.1. Chris -----Original Message----- From: James Cook [mailto:james.c...@wecomm.com] Sent: 15 April 2010 11:12 To: Struts Users Mailing List Subject: Struts 2 in an EAR Hi All, I have a Struts 2 enabled WAR that works fine when deployed on its own, but when packaged as part of an EAR it doesn't appear to be scanning for the annotations in the WAR as I get the unable to find Action message. I am running this on Glassfish 2.1.1 and using Struts 2.1.8.1 Am I missing anything? NOT PROTECTIVELY MARKED --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org