You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Yao Chen <ei...@gmail.com> on 2008/03/25 02:58:41 UTC

Error occurs in WebSphere - validatation.js not found in /struts/template/css_xhtml

Hi,
    When I deploy struts2-showcase.war to WAS 6.1 and open in browser, it
complained some .js files not found, such as dojo.js, ntify.js. And I click
"Validation -> Client using css_xhtml" there's more .js file not
found(Validation), the same error happend when I deploy my application into
WAS. In Firebug I found validation.js but a error message like "Error 404:
SRVE0190E: File not found: /struts/css_xhtml/validation.js" in the end
of it.
    Is anybody got the same error?

Re: Error occurs in WebSphere - validatation.js not found in /struts/template/css_xhtml

Posted by Yao Chen <ei...@gmail.com>.
Yes, I'm already check my application and struts2-showcase...
I don't know why WAS can't found validataion.js in struts2-core.jar, because
I see validation.js in Firebug... and If I change container from WAS to
others like jetty or tomcat, it works fine...
BTW... My WAS version is 6.1.0.0, do I need some fixpack?


On 3/25/08, mgainty@hotmail.com <mg...@hotmail.com> wrote:
>
> all of the .js files are in the main struts jar
> did you check \WEB-INF\lib\struts2-core-2.0.11.jar?
>
> Martin
> ----- Original Message -----
> Wrom: HSCRTNHGSWZIDREXCAXZOWCONEUQZAAFX
> To: <us...@struts.apache.org>
> Sent: Monday, March 24, 2008 8:58 PM
> Subject: Error occurs in WebSphere - validatation.js not found in
> /struts/template/css_xhtml
>
>
> > Hi,
> >     When I deploy struts2-showcase.war to WAS 6.1 and open in browser,
> it
> > complained some .js files not found, such as dojo.js, ntify.js. And I
> click
> > "Validation -> Client using css_xhtml" there's more .js file not
> > found(Validation), the same error happend when I deploy my application
> into
> > WAS. In Firebug I found validation.js but a error message like "Error
> 404:
> > SRVE0190E: File not found: /struts/css_xhtml/validation.js" in the end
> > of it.
> >     Is anybody got the same error?
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: Error occurs in WebSphere - validatation.js not found in /struts/template/css_xhtml

Posted by mg...@hotmail.com.
all of the .js files are in the main struts jar
did you check \WEB-INF\lib\struts2-core-2.0.11.jar?

Martin
----- Original Message -----
Wrom: HSCRTNHGSWZIDREXCAXZOWCONEUQZAAFX
To: <us...@struts.apache.org>
Sent: Monday, March 24, 2008 8:58 PM
Subject: Error occurs in WebSphere - validatation.js not found in
/struts/template/css_xhtml


> Hi,
>     When I deploy struts2-showcase.war to WAS 6.1 and open in browser, it
> complained some .js files not found, such as dojo.js, ntify.js. And I
click
> "Validation -> Client using css_xhtml" there's more .js file not
> found(Validation), the same error happend when I deploy my application
into
> WAS. In Firebug I found validation.js but a error message like "Error 404:
> SRVE0190E: File not found: /struts/css_xhtml/validation.js" in the end
> of it.
>     Is anybody got the same error?
>


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


Re: Error occurs in WebSphere - validatation.js not found in /struts/template/css_xhtml

Posted by strutstwouser <st...@gmail.com>.
You may want to check if you've the latest Websphere patches installed, since
this could be a Websphere specific issue ; i had come across
http://www.nabble.com/Re%3A--S2-----FIXED!--Websphere-6.1-Showcase-application%2C-Response-already-committed-warning-in-logs-p9831268.html
when i faced this issue an year back, and finally got it working by patching
WAS.

-j



Rubens wrote:
> 
> In your web.xml ensure you have a filter-mapping defined for the
> /struts/...<js files>.  You need to make sure that a request to the
> Javascript and CSS files defined in the struts jar file go thru the Struts
> 2 filter.  That is, make sure you have something like this on your
> web.xml: 
> 
>     <filter-mapping> 
>         <filter-name>struts2Filter</filter-name> 
>         <url-pattern>/struts/*</url-pattern> 
>     </filter-mapping> 
> 
> 
> If the request to your struts 2 dojo javascript files do not go thru the
> Struts 2 filter, you will get 404 error when the browser attempts to
> retrieve those files. 
> 
> Rubens.
> 

-- 
View this message in context: http://www.nabble.com/Error-occurs-in-WebSphere---validatation.js-not-found-in--struts-template-css_xhtml-tp16266747p19852108.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: Error occurs in WebSphere - validatation.js not found in /struts/template/css_xhtml

Posted by Rubens <ru...@hotmail.com>.
In your web.xml ensure you have a filter-mapping defined for the
/struts/...<js files>.  You need to make sure that a request to the
Javascript and CSS files defined in the struts jar file go thru the Struts 2
filter.  That is, make sure you have something like this on your web.xml: 

    <filter-mapping> 
        <filter-name>struts2Filter</filter-name> 
        <url-pattern>/struts/*</url-pattern> 
    </filter-mapping> 


If the request to your struts 2 dojo javascript files do not go thru the
Struts 2 filter, you will get 404 error when the browser attempts to
retrieve those files. 

Rubens.
-- 
View this message in context: http://www.nabble.com/Error-occurs-in-WebSphere---validatation.js-not-found-in--struts-template-css_xhtml-tp16266747p19850157.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