aspose file tools*
The moose likes Struts and the fly likes Struts DOJO on WAS6.1 giving File Not Found Errors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts DOJO on WAS6.1 giving File Not Found Errors" Watch "Struts DOJO on WAS6.1 giving File Not Found Errors" New topic
Author

Struts DOJO on WAS6.1 giving File Not Found Errors

Jithesh Kozhipurath
Ranch Hand

Joined: Aug 27, 2003
Posts: 76
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


Jithesh K
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts DOJO on WAS6.1 giving File Not Found Errors