Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts DOJO on WAS6.1 giving File Not Found Errors

 
Jithesh Kozhipurath
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am running a web application using struts2 (2.2.1.1) and Dojo to implement AJAX capabilities on this site.
The web.xml has this filter configuration,

<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>

<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

And the application when deployed in Tomcat is working pretty fine and AJAX features are working well.
But the same when I run in WAS 6.1 (6.1.0.0), it throws some exceptions on the browser end that it can not find some of the DOJO java script files.

These are the errors shown on the Firebug.

missing ; before statement
Error 404: SRVE0190E: File not found: /struts/dojo/struts_dojo.js
missing ; before statement
Error 404: SRVE0190E: File not found: /struts/ajax/dojoRequire.js
missing ; before statement
Error 404: SRVE0190E: File not found: /struts/utils.js
missing ; before statement
Error 404: SRVE0190E: File not found: /struts/xhtml/validation.js
missing ; before statement
Error 404: SRVE0190E: File not found: /struts/css_xhtml/validation.js

The jar files I have on this web app are,
struts.jar
struts2-core-2.2.1.1.jar
struts2-dojo-plugin-2.2.1.1.jar
struts2-tiles-plugin-2.1.6.jar
and some of the other commons jar files, xwork, jstl and few other supporting jar files.

Reading through some of the older posts I tried adding com.ibm.ws.webcontainer.invokefilterscompatibility=true in the Custom Properties of the application server. But that also did'nt work for me.

Kindly provide solution details if someone faced the similar problem before.

Many thanks !!

Regards,
Jithesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic