You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Stephan Schröder <si...@gmx.de> on 2009/03/16 10:48:08 UTC

Unable to find interceptor class referenced by ref-name gwt

When deploying my HelloWorld-struts2-gwt-application i get this exception:

SCHWERWIEGEND: Exception starting filter struts2
Unable to load configuration. - interceptor-ref -
file:/D:/Programme/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/struts2gwt-helloworld/WEB-INF/classes/example.xml:15:39
	at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
	...
Caused by: Unable to find interceptor class referenced by ref-name gwt -
interceptor-ref -
file:/D:/Programme/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/struts2gwt-helloworld/WEB-INF/classes/example.xml:15:39
	at
com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:52)
	...

The gwt-interceptor is referenced in example.xml:
<action name="MessageService" class="action.MessageServiceAction"
method="getMessage">
	<interceptor-ref name="gwt"/>
</action>

The gwt-interceptor is present in the struts2gwtplugin-0.2.1.jar which is of
course added in WEB-INF/lib.
I haven't yet compiled the gwt-part to javascript, so the application won't
work as is, but the struts2-configuration should be loaded without problems.
Here is the code:
http://www.nabble.com/file/p22534621/struts2gwt-helloworld.war
struts2gwt-helloworld.war 

Regards,
Stephan
-- 
View this message in context: http://www.nabble.com/Unable-to-find-interceptor-class-referenced-by-ref-name-gwt-tp22534621p22534621.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Unable to find interceptor class referenced by ref-name gwt

Posted by Stephan Schröder <si...@gmx.de>.
> Unable to find interceptor class referenced by ref-name gwt

solved, i forgot to extend the example-package from gwt-default instead of
struts-default.



Stephan Schröder wrote:
> 
> When deploying my HelloWorld-struts2-gwt-application i get this exception:
> 
> SCHWERWIEGEND: Exception starting filter struts2
> Unable to load configuration. - interceptor-ref -
> file:/D:/Programme/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/struts2gwt-helloworld/WEB-INF/classes/example.xml:15:39
> 	at
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
> 	...
> Caused by: Unable to find interceptor class referenced by ref-name gwt -
> interceptor-ref -
> file:/D:/Programme/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/struts2gwt-helloworld/WEB-INF/classes/example.xml:15:39
> 	at
> com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:52)
> 	...
> 
> The gwt-interceptor is referenced in example.xml:
> <action name="MessageService" class="action.MessageServiceAction"
> method="getMessage">
> 	<interceptor-ref name="gwt"/>
> </action>
> 
> The gwt-interceptor is present in the struts2gwtplugin-0.2.1.jar which is
> of course added in WEB-INF/lib.
> I haven't yet compiled the gwt-part to javascript, so the application
> won't work as is, but the struts2-configuration should be loaded without
> problems. Here is the code:
>  http://www.nabble.com/file/p22534621/struts2gwt-helloworld.war
> struts2gwt-helloworld.war 
> 
> Regards,
> Stephan
> 

-- 
View this message in context: http://www.nabble.com/Unable-to-find-interceptor-class-referenced-by-ref-name-gwt-tp22534621p22536904.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org