Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-12 Thread Bobby Mitch
Perhaps you mean to use this Struts-core 2.1.3 jar with this 2.1.2 Xwork jar ?

http://people.apache.org/builds/struts/nightlies/2.x/struts2-core-2.1.3-SNAPSHOT-20080912.jar

http://maven2.opensymphony.com/com/opensymphony/xwork/2.1.2-SNAPSHOT/ 

--- On Fri, 9/12/08, Jeromy Evans <[EMAIL PROTECTED]> wrote:
From: Jeromy Evans <[EMAIL PROTECTED]>
Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is 
not "file")
To: "Struts Users Mailing List" 
Date: Friday, September 12, 2008, 3:56 AM



Bobby Mitch wrote:
> hi,
> thanks for the explanations.
>
> "Which means if you work from a snapshot version of xwork it's
fixed 
> (which is a 2.1 stream though, which you don't want)."
>
> What do you mean here ?
>   

I didn't realise you could move to 2.1.x.  It's not a trivial migration

normally. A link to the migration guide is provided below.

There's two options.
1. build it from source, which is pretty easy as all the dependencies 
are resolved automatically.  This is your most reliable option.

*Actually, there is no second option.  I can't find xwork-2.1.2-SNAPSHOT 
for download anywhere.

2. download the snapshot jars from the following locations:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/struts/struts2-core/2.1.3-SNAPSHOT/
or
(and parent directory/plugins for the necessary plugins)
and then download the xwork-2.1.2-SNAPSHOT binary fromahhhI 
don't know. I can't find it anywhere.

I'd just check out the source.  
http://struts.apache.org/2.x/docs/building-the-framework-from-source.html

Migration guide:
http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




  

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-12 Thread Bobby Mitch
hi,
thanks for the explanations.

"Which means if you work from a snapshot version of xwork it's fixed 
(which is a 2.1 stream though, which you don't want)."

What do you mean here ?
I do not mind using Struts 2.1 or xwork 2.1

I prefer working with a jar that has been fixed rather than a jar that has not 
been fixed
and that i have to modify and compile myself

Can you tell me exactly which version of xwork i should use 
with Struts 2.x (whatever the version of Struts,
as long as it is 2.x.x ) ?

I will use any version of Struts 2 that compiles with a version of 
xwork that contains a fix for my problem (Uri scheme exception which
prevents me from using validation).

Thanks





--- On Thu, 9/11/08, Jeromy Evans <[EMAIL PROTECTED]> wrote:
From: Jeromy Evans <[EMAIL PROTECTED]>
Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is 
not "file")
To: "Struts Users Mailing List" 
Date: Thursday, September 11, 2008, 9:32 PM

Bobby Mitch wrote:
> The Xwork issue is this one :
> http://jira.opensymphony.com/browse/XW-649
>
> They have not fixed it yet ...
>
> Can someone fix it with the changes described below on the method 
>  private static void parseValidators() { ...}
> of the class com.opensymphony.xwork2.validator.ValidatorFactory   ?
>
> And then recompiled the source and send me the newly compiled
xwork-2.0.4.jar ?
>
> By the way, I saw that they turned it into an interface in the latest
version :
>
http://svn.opensymphony.com/svn/xwork/trunk/src/java/com/opensymphony/xwork2/validator/ValidatorFactory.java
>
> Thanks for your help.
>
>   

Hi Bobby,

Musachy provided the link to the issue in the S2 issue tracker (WW-2653) 
which includes a comment that was committed to xwork in revision 1874 on 
9 June 08.

Which means if you work from a snapshot version of xwork it's fixed 
(which is a 2.1 stream though, which you don't want).
For 2.0.x, you could check out the latest 2.0.x tag yourself, apply the 
same minor change, build it into a jar and it'll be fixed for you.  Then 
you could contribute back the patch for everyone else.  That's how we 
all got involved in Struts2 and Xwork ourselves.

So you could have this all complete and closed yourself within an hour 
instead of waiting around for someone to volunteer to do it for you...

regards,
 Jeromy Evans





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




  

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-11 Thread Bobby Mitch
The Xwork issue is this one :
http://jira.opensymphony.com/browse/XW-649

They have not fixed it yet ...

Can someone fix it with the changes described below on the method 
 private static void parseValidators() { ...}
of the class com.opensymphony.xwork2.validator.ValidatorFactory   ?

And then recompiled the source and send me the newly compiled xwork-2.0.4.jar ?

By the way, I saw that they turned it into an interface in the latest version :
http://svn.opensymphony.com/svn/xwork/trunk/src/java/com/opensymphony/xwork2/validator/ValidatorFactory.java

Thanks for your help.



--- On Thu, 9/11/08, Musachy Barroso <[EMAIL PROTECTED]> wrote:
From: Musachy Barroso <[EMAIL PROTECTED]>
Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is 
not "file")
To: "Struts Users Mailing List" , [EMAIL PROTECTED]
Date: Thursday, September 11, 2008, 7:54 AM

A fix in the code I meant: https://issues.apache.org/struts/browse/WW-2653 . 
Grabbing the latest xwork from trunk or release branch and building it, should 
fix your problem.


On Thu, Sep 11, 2008 at 10:49 AM, Bobby Mitch <[EMAIL PROTECTED]> wrote:

What exactly is the fix for this problem then ?

Thanks



--- On Thu, 9/11/08, Musachy Barroso <[EMAIL PROTECTED]> wrote:

From: Musachy Barroso <[EMAIL PROTECTED]>

Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is 
not "file")

To: "Struts Users Mailing List" 

Date: Thursday, September 11, 2008, 6:03 AM



The fix in this case is known.



musachy



On Wed, Sep 10, 2008 at 9:30 PM, Struts Two <[EMAIL PROTECTED]> wrote:



> Do not give up, the game is not still over . (you can still do sth

> about it)

>

> As an alternative, you can import the source code of xwork into ur

> workspace and remove xwork the jar file, run your code in debug mode, find

> the culprit, fix it. Then you can replace the class file in xwork jar file

> with the one fixed. That is what I usually do on the last resort, and it

is

> garuanteed to work.

>

>

>

> - Original Message 

> From: Bobby Mitch <[EMAIL PROTECTED]>

> To: Struts Users Mailing List 

> Sent: Wednesday, September 10, 2008 5:01:14 PM

> Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI

scheme

> is not "file")

>

> Thanks.

> Applying the workaround with Struts 2.0.11.1 and XWorks 2.0..4, and

> modifying struts.xml by adding the interceptor-ref tag does not work:

>

> 22:58:02,671 ERROR [[default]] Servlet.service() for servlet default threw

> exception

> java.lang.IllegalArgumentException: URI scheme is not "file"

>     at java.io.File.(Unknown Source)

>     at

>

com..opensymphony.xwork2.validator.ValidatorFactory.parseValidators(ValidatorFactory.java:314)

>     at

>

com.opensymphony.xwork2.validator.ValidatorFactory.(ValidatorFactory.java:224)

>     at

>

com.opensymphony.xwork2.validator.AnnotationValidationConfigurationBuilder.processRequiredFieldValidatorAnnotation(AnnotationValidationConfigurationBuilder.java:575)

>     at

>

com.opensymphony.xwork2.validator.AnnotationValidationConfigurationBuilder.processAnnotations(AnnotationValidationConfigurationBuilder..java:149)

>     at

>

com.opensymphony.xwork2.validator.AnnotationValidationConfigurationBuilder.buildAnnotationClassValidatorConfigs(AnnotationValidationConfigurationBuilder.java:783)

>     at

>

com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildClassValidatorConfigs(AnnotationActionValidatorManager.java:254)

>     at

>

com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildValidatorConfigs(AnnotationActionValidatorManager.java:340)

>     at

>

com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators(AnnotationActionValidatorManager.java:69)

>     at

>

com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:138)

>     at

>

com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:113)

>     at

>

com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:100)

>     at

>

com.opensymphony.xwork2.validator.ValidationInterceptor.doBeforeInvocation(ValidationInterceptor.java:142)

>     at

>

com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:148)

>     at

>

org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48)

>     at

>

com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)

>     at

>

com.opensymphony.xwork2.Defau

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-11 Thread Bobby Mitch
I found the JIRA issue for this problem :
http://jira.opensymphony.com/browse/XW-649

Can someone fix it ?

--- On Thu, 9/11/08, Musachy Barroso <[EMAIL PROTECTED]> wrote:
From: Musachy Barroso <[EMAIL PROTECTED]>
Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is 
not "file")
To: "Struts Users Mailing List" 
Date: Thursday, September 11, 2008, 7:32 PM

Not sure, it probably should.

On Thu, Sep 11, 2008 at 7:03 PM, Gabriel Belingueres
<[EMAIL PROTECTED]>wrote:

> replaceAll(" ", "%20") ?
> Why not URL-encode it? [1]
>
> [1] http://java.sun.com/j2se/1.5.0/docs/api/java/net/URLEncoder.html
>
> 2008/9/11 Bobby Mitch <[EMAIL PROTECTED]>:
> > Well,
> > I am willing to try then.
> >
> > Can someone send me that xwork-2.0.4.jar version, recompiled with the
> modifications described here on the parseValidators method of the
> ValidatorFactory class ?
> > So that I can replace the xwork jar that ships with it
> struts-2.0.11.1.jar
> >
> > Anyways, has this modification been reported on more recent versions
of
> Xwork ?
> >
> > Thanks
> >
> >
> >
> > --- On Thu, 9/11/08, Musachy Barroso <[EMAIL PROTECTED]> wrote:
> > From: Musachy Barroso <[EMAIL PROTECTED]>
> > Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI
> scheme is not "file")
> > To: "Struts Users Mailing List"
,
> [EMAIL PROTECTED]
> > Date: Thursday, September 11, 2008, 8:28 AM
> >
> > I think it is:
> >
> > java.lang.IllegalArgumentException: URI scheme is not
"file"
> > at java.io.File.(Unknown Source)
> > at
com.opensymphony.xwork2.validator.ValidatorFactory.parseValidators(
> >
> >
> > The code used to be this:
> >
> > URL u = urls.next();
> > File f = new File(new URI(u.toExternalForm().replaceAll("
",
> > "%20")));
> >
> > which would fail because the container was returning some weird urls
> there,
> > and it was changed to:
> >
> >  try {
> > URI uri = new URI(u.toExternalForm().replaceAll(" ",
> > "%20"));
> > if (uri.isOpaque() &&
> > "file".equalsIgnoreCase(uri.getScheme())) {
> >File f = new File(uri);
> >  .
> >
> > I think that is the problem you are having, or I am terribly missing
> > something here.
> >
> >
> > On Thu, Sep 11, 2008 at 11:19 AM, Bobby Mitch
<[EMAIL PROTECTED]> wrote:
> >
> >> That is not the same error.
> >>
> >> --- On Thu, 9/11/08, Musachy Barroso <[EMAIL PROTECTED]>
wrote:
> >> From: Musachy Barroso <[EMAIL PROTECTED]>
> >> Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error
(URI
> > scheme
> >> is not "file")
> >> To: "Struts Users Mailing List"
,
> > [EMAIL PROTECTED]
> >> Date: Thursday, September 11, 2008, 7:54 AM
> >>
> >> A fix in the code I meant:
> > https://issues.apache.org/struts/browse/WW-2653.
> >> Grabbing the latest xwork from trunk or release branch and
building it,
> >> should fix your problem.
> >>
> >> On Thu, Sep 11, 2008 at 10:49 AM, Bobby Mitch
<[EMAIL PROTECTED]>
> > wrote:
> >>
> >> > What exactly is the fix for this problem then ?
> >> > Thanks
> >> >
> >> > --- On Thu, 9/11/08, Musachy Barroso
<[EMAIL PROTECTED]> wrote:
> >> > From: Musachy Barroso <[EMAIL PROTECTED]>
> >> > Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation
error (URI
> >> scheme
> >> > is not "file")
> >> > To: "Struts Users Mailing List"
> > 
> >> > Date: Thursday, September 11, 2008, 6:03 AM
> >> >
> >> > The fix in this case is known.
> >> >
> >> > musachy
> >> >
> >> > On Wed, Sep 10, 2008 at 9:30 PM, Struts Two
> > <[EMAIL PROTECTED]>
> >> wrote:
> >> >
> >> > > Do not give up, the game is not still over . (you
can still
> > do
> >> sth
> >> > > about it)
> >> > >
> >> > > As an alternative, you can import the source code of
xwork into
> > ur
> >> > > workspace and remove xwork the jar file, run your code
in debug
> > mode,
> >> > find
> >> > > the culprit, fix it. Then you can replace the class
file in
> > xwork jar
> >> > file
> >> >

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-11 Thread Bobby Mitch
Well,
I am willing to try then.

Can someone send me that xwork-2.0.4.jar version, recompiled with the 
modifications described here on the parseValidators method of the 
ValidatorFactory class ?
So that I can replace the xwork jar that ships with it struts-2.0.11.1.jar

Anyways, has this modification been reported on more recent versions of Xwork ?

Thanks



--- On Thu, 9/11/08, Musachy Barroso <[EMAIL PROTECTED]> wrote:
From: Musachy Barroso <[EMAIL PROTECTED]>
Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is 
not "file")
To: "Struts Users Mailing List" , [EMAIL PROTECTED]
Date: Thursday, September 11, 2008, 8:28 AM

I think it is:

java.lang.IllegalArgumentException: URI scheme is not "file"
at java.io.File.(Unknown Source)
at com.opensymphony.xwork2.validator.ValidatorFactory.parseValidators(


The code used to be this:

URL u = urls.next();
File f = new File(new URI(u.toExternalForm().replaceAll(" ",
"%20")));

which would fail because the container was returning some weird urls there,
and it was changed to:

 try {
 URI uri = new URI(u.toExternalForm().replaceAll(" ",
"%20"));
 if (uri.isOpaque() &&
"file".equalsIgnoreCase(uri.getScheme())) {
File f = new File(uri);
 .

I think that is the problem you are having, or I am terribly missing
something here.


On Thu, Sep 11, 2008 at 11:19 AM, Bobby Mitch <[EMAIL PROTECTED]> wrote:

> That is not the same error.
>
> --- On Thu, 9/11/08, Musachy Barroso <[EMAIL PROTECTED]> wrote:
> From: Musachy Barroso <[EMAIL PROTECTED]>
> Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI
scheme
> is not "file")
> To: "Struts Users Mailing List" ,
[EMAIL PROTECTED]
> Date: Thursday, September 11, 2008, 7:54 AM
>
> A fix in the code I meant:
https://issues.apache.org/struts/browse/WW-2653.
> Grabbing the latest xwork from trunk or release branch and building it,
> should fix your problem.
>
> On Thu, Sep 11, 2008 at 10:49 AM, Bobby Mitch <[EMAIL PROTECTED]>
wrote:
>
> > What exactly is the fix for this problem then ?
> > Thanks
> >
> > --- On Thu, 9/11/08, Musachy Barroso <[EMAIL PROTECTED]> wrote:
> > From: Musachy Barroso <[EMAIL PROTECTED]>
> > Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI
> scheme
> > is not "file")
> > To: "Struts Users Mailing List"

> > Date: Thursday, September 11, 2008, 6:03 AM
> >
> > The fix in this case is known.
> >
> > musachy
> >
> > On Wed, Sep 10, 2008 at 9:30 PM, Struts Two
<[EMAIL PROTECTED]>
> wrote:
> >
> > > Do not give up, the game is not still over . (you can still
do
> sth
> > > about it)
> > >
> > > As an alternative, you can import the source code of xwork into
ur
> > > workspace and remove xwork the jar file, run your code in debug
mode,
> > find
> > > the culprit, fix it. Then you can replace the class file in
xwork jar
> > file
> > > with the one fixed. That is what I usually do on the last
resort, and
> it
> > is
> > > garuanteed to work.
> > >
> > >
> > >
> > > - Original Message 
> > > From: Bobby Mitch <[EMAIL PROTECTED]>
> > > To: Struts Users Mailing List 
> > > Sent: Wednesday, September 10, 2008 5:01:14 PM
> > > Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error
(URI
> > scheme
> > > is not "file")
> > >
> > > Thanks.
> > > Applying the workaround with Struts 2.0.11.1 and XWorks 2.0..4,
and
> > > modifying struts.xml by adding the interceptor-ref tag does not
work:
> > >
> > > 22:58:02,671 ERROR [[default]] Servlet.service() for servlet
default
> > threw
> > > exception
> > > java.lang.IllegalArgumentException: URI scheme is not
> "file"
> > > at java.io.File.(Unknown Source)
> > > at
> > >
> >
> >
>
>
com..opensymphony.xwork2.validator.ValidatorFactory.parseValidators(ValidatorFactory.java:314)
> > > at
> > >
> >
> >
>
>
com.opensymphony.xwork2.validator.ValidatorFactory.(ValidatorFactory.java:224)
> > > at
> > >
> >
> >
>
>
com.opensymphony.xwork2.validator.AnnotationValidationConfigurationBuilder.processRequiredFieldValidatorAnnotation(AnnotationValidationConfigurationBuilder.java:575)
> > > at
> > >
> >
> >
>
>
com.opensymphony.xwork2.validator.AnnotationValidationConfigurationBuilder.processAnnotations(AnnotationVal

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-11 Thread Bobby Mitch
That is not the same error.

--- On Thu, 9/11/08, Musachy Barroso <[EMAIL PROTECTED]> wrote:
From: Musachy Barroso <[EMAIL PROTECTED]>
Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is 
not "file")
To: "Struts Users Mailing List" , [EMAIL PROTECTED]
Date: Thursday, September 11, 2008, 7:54 AM

A fix in the code I meant: https://issues.apache.org/struts/browse/WW-2653 .
Grabbing the latest xwork from trunk or release branch and building it,
should fix your problem.

On Thu, Sep 11, 2008 at 10:49 AM, Bobby Mitch <[EMAIL PROTECTED]> wrote:

> What exactly is the fix for this problem then ?
> Thanks
>
> --- On Thu, 9/11/08, Musachy Barroso <[EMAIL PROTECTED]> wrote:
> From: Musachy Barroso <[EMAIL PROTECTED]>
> Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI
scheme
> is not "file")
> To: "Struts Users Mailing List" 
> Date: Thursday, September 11, 2008, 6:03 AM
>
> The fix in this case is known.
>
> musachy
>
> On Wed, Sep 10, 2008 at 9:30 PM, Struts Two <[EMAIL PROTECTED]>
wrote:
>
> > Do not give up, the game is not still over . (you can still do
sth
> > about it)
> >
> > As an alternative, you can import the source code of xwork into ur
> > workspace and remove xwork the jar file, run your code in debug mode,
> find
> > the culprit, fix it. Then you can replace the class file in xwork jar
> file
> > with the one fixed. That is what I usually do on the last resort, and
it
> is
> > garuanteed to work.
> >
> >
> >
> > - Original Message 
> > From: Bobby Mitch <[EMAIL PROTECTED]>
> > To: Struts Users Mailing List 
> > Sent: Wednesday, September 10, 2008 5:01:14 PM
> > Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI
> scheme
> > is not "file")
> >
> > Thanks.
> > Applying the workaround with Struts 2.0.11.1 and XWorks 2.0..4, and
> > modifying struts.xml by adding the interceptor-ref tag does not work:
> >
> > 22:58:02,671 ERROR [[default]] Servlet.service() for servlet default
> threw
> > exception
> > java.lang.IllegalArgumentException: URI scheme is not
"file"
> > at java.io.File.(Unknown Source)
> > at
> >
>
>
com..opensymphony.xwork2.validator.ValidatorFactory.parseValidators(ValidatorFactory.java:314)
> > at
> >
>
>
com.opensymphony.xwork2.validator.ValidatorFactory.(ValidatorFactory.java:224)
> > at
> >
>
>
com.opensymphony.xwork2.validator.AnnotationValidationConfigurationBuilder.processRequiredFieldValidatorAnnotation(AnnotationValidationConfigurationBuilder.java:575)
> > at
> >
>
>
com.opensymphony.xwork2.validator.AnnotationValidationConfigurationBuilder.processAnnotations(AnnotationValidationConfigurationBuilder..java:149)
> > at
> >
>
>
com.opensymphony.xwork2.validator.AnnotationValidationConfigurationBuilder.buildAnnotationClassValidatorConfigs(AnnotationValidationConfigurationBuilder.java:783)
> > at
> >
>
>
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildClassValidatorConfigs(AnnotationActionValidatorManager.java:254)
> > at
> >
>
>
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildValidatorConfigs(AnnotationActionValidatorManager.java:340)
> > at
> >
>
>
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators(AnnotationActionValidatorManager.java:69)
> > at
> >
>
>
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:138)
> > at
> >
>
>
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:113)
> > at
> >
>
>
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:100)
> > at
> >
>
>
com.opensymphony.xwork2.validator.ValidationInterceptor.doBeforeInvocation(ValidationInterceptor.java:142)
> > at
> >
>
>
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:148)
> > at
> >
>
>
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48)
> > at
> >
>
>
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
> > at
> >
>
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> > at
> >
>
&

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-11 Thread Bobby Mitch
What exactly is the fix for this problem then ?
Thanks

--- On Thu, 9/11/08, Musachy Barroso <[EMAIL PROTECTED]> wrote:
From: Musachy Barroso <[EMAIL PROTECTED]>
Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is 
not "file")
To: "Struts Users Mailing List" 
Date: Thursday, September 11, 2008, 6:03 AM

The fix in this case is known.

musachy

On Wed, Sep 10, 2008 at 9:30 PM, Struts Two <[EMAIL PROTECTED]> wrote:

> Do not give up, the game is not still over . (you can still do sth
> about it)
>
> As an alternative, you can import the source code of xwork into ur
> workspace and remove xwork the jar file, run your code in debug mode, find
> the culprit, fix it. Then you can replace the class file in xwork jar file
> with the one fixed. That is what I usually do on the last resort, and it
is
> garuanteed to work.
>
>
>
> - Original Message 
> From: Bobby Mitch <[EMAIL PROTECTED]>
> To: Struts Users Mailing List 
> Sent: Wednesday, September 10, 2008 5:01:14 PM
> Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI
scheme
> is not "file")
>
> Thanks.
> Applying the workaround with Struts 2.0.11.1 and XWorks 2.0..4, and
> modifying struts.xml by adding the interceptor-ref tag does not work:
>
> 22:58:02,671 ERROR [[default]] Servlet.service() for servlet default threw
> exception
> java.lang.IllegalArgumentException: URI scheme is not "file"
> at java.io.File.(Unknown Source)
> at
>
com..opensymphony.xwork2.validator.ValidatorFactory.parseValidators(ValidatorFactory.java:314)
> at
>
com.opensymphony.xwork2.validator.ValidatorFactory.(ValidatorFactory.java:224)
> at
>
com.opensymphony.xwork2.validator.AnnotationValidationConfigurationBuilder.processRequiredFieldValidatorAnnotation(AnnotationValidationConfigurationBuilder.java:575)
> at
>
com.opensymphony.xwork2.validator.AnnotationValidationConfigurationBuilder.processAnnotations(AnnotationValidationConfigurationBuilder..java:149)
> at
>
com.opensymphony.xwork2.validator.AnnotationValidationConfigurationBuilder.buildAnnotationClassValidatorConfigs(AnnotationValidationConfigurationBuilder.java:783)
> at
>
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildClassValidatorConfigs(AnnotationActionValidatorManager.java:254)
> at
>
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildValidatorConfigs(AnnotationActionValidatorManager.java:340)
> at
>
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators(AnnotationActionValidatorManager.java:69)
> at
>
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:138)
> at
>
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:113)
> at
>
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:100)
> at
>
com.opensymphony.xwork2.validator.ValidationInterceptor.doBeforeInvocation(ValidationInterceptor.java:142)
> at
>
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:148)
> at
>
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48)
> at
>
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
> at
>
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
> at
>
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
>
>
> I guess it is game over until a new working release comes out 
>
>
> --- On Wed, 9/10/08, Struts Two <[EMAIL PROTECTED]> wrote:
> From: Struts Two <[EMAIL PROTECTED]>
> Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI
scheme
> is not "file")
> To: "Struts Users Mailing List" 
> Date: Wednesday, September 10, 2008, 9:09 AM
>
> I believe the issue should be fixed on 2.1.2 (for Websphere at least), but
> it
> still remains an issue for Struts 2.0.11.2 (for Websphere users). See the
> email
> below:
>
> - Original Message 
> From: Rene Gielen <[EMAIL PROTECTED]>
> To: Struts Users Mailing List 
> Sent: Wednesday, July 16, 2008 2:40:38 AM
> Subject: [ANN] Struts 2.0.11.2 General Availability Release with Important
> Secur

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-10 Thread Bobby Mitch
Thanks.
Applying the workaround with Struts 2.0.11.1 and XWorks 2.0.4, and modifying 
struts.xml by adding the interceptor-ref tag does not work:

22:58:02,671 ERROR [[default]] Servlet.service() for servlet default threw 
exception
java.lang.IllegalArgumentException: URI scheme is not "file"
    at java.io.File.(Unknown Source)
    at 
com.opensymphony.xwork2.validator.ValidatorFactory.parseValidators(ValidatorFactory.java:314)
    at 
com.opensymphony.xwork2.validator.ValidatorFactory.(ValidatorFactory.java:224)
    at 
com.opensymphony.xwork2.validator.AnnotationValidationConfigurationBuilder.processRequiredFieldValidatorAnnotation(AnnotationValidationConfigurationBuilder.java:575)
    at 
com.opensymphony.xwork2.validator.AnnotationValidationConfigurationBuilder.processAnnotations(AnnotationValidationConfigurationBuilder.java:149)
    at 
com.opensymphony.xwork2.validator.AnnotationValidationConfigurationBuilder.buildAnnotationClassValidatorConfigs(AnnotationValidationConfigurationBuilder.java:783)
    at 
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildClassValidatorConfigs(AnnotationActionValidatorManager.java:254)
    at 
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildValidatorConfigs(AnnotationActionValidatorManager.java:340)
    at 
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators(AnnotationActionValidatorManager.java:69)
    at 
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:138)
    at 
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:113)
    at 
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValidatorManager.java:100)
    at 
com.opensymphony.xwork2.validator.ValidationInterceptor.doBeforeInvocation(ValidationInterceptor.java:142)
    at 
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:148)
    at 
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48)
    at 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
    at 
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
    at 
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
    at 
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
    at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)


I guess it is game over until a new working release comes out ...


--- On Wed, 9/10/08, Struts Two <[EMAIL PROTECTED]> wrote:
From: Struts Two <[EMAIL PROTECTED]>
Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is 
not "file")
To: "Struts Users Mailing List" 
Date: Wednesday, September 10, 2008, 9:09 AM

I believe the issue should be fixed on 2.1.2 (for Websphere at least), but it
still remains an issue for Struts 2.0.11.2 (for Websphere users). See the email
below: 

- Original Message 
From: Rene Gielen <[EMAIL PROTECTED]>
To: Struts Users Mailing List 
Sent: Wednesday, July 16, 2008 2:40:38 AM
Subject: [ANN] Struts 2.0.11.2 General Availability Release with Important
Security Fix
Apache Struts 2.0..11.2 is now available from
.
This release is a fast track security fix release, including a security
fixed version 2.0.5 of XWork, which corrects a serious vulnerability in
ParametersInterceptor allowing malicious users to remotely change server
side context objects. For more information about the exploit, visit our
security bulletins page at
.
IMPORTANT ADDITIONAL NOTES:
There are two known issues with this release:
1. the integrated XWork 2.0.5 jar may cause problems when used in a
combination of WebSphere 6.1 runtime environments with validation
configuration via XML files.
Possible Workarounds:
- use annotation based validation definition instead XML based
- stay with Struts 2.0..11.1 including XWork 2.0.4, applying the
  following exclude rule to your parameter interceptor refs in
  struts.xml
  
  .*[[^\\p{Graph}][#:=]].*
  
2. the filtering mechanism implemeted in XWork's ParametersInterceptor
to fix the described security issue does not completely avoid any
possible malicious parameter name.
Possible Workaround:
- apply the following exclude rule to your parameter interceptor refs in
  struts.xml to avoid the usage of backslash characters in parameter
  names
  
  .*\\.*
  
Both issues will be addressed in a soon upcoming XWork 2..0.6 release,
followed by a new Struts 2.0 GA release including this new XWork version.
* All developers are advised to either update Struts 2 applications to
Struts 2.0.11.2 or manually excha

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-10 Thread Bobby Mitch
ok,
well for your information I asked about that problem in the JBoss problem, 
thinking that the problem could come from JBoss, and I just posted the question 
on the XWORK forum
where i hope they will help me fix it.

http://forums.opensymphony.com/thread.jspa?threadID=454261
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4175490#4175490

It seems that it is a problem related to xwork, not Struts 2 itself.

What do you think ?


--- On Tue, 9/9/08, Jeromy Evans <[EMAIL PROTECTED]> wrote:
From: Jeromy Evans <[EMAIL PROTECTED]>
Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is 
not "file")
To: "Struts Users Mailing List" 
Date: Tuesday, September 9, 2008, 11:10 PM

Bobby Mitch wrote:
> yes, but i wrote that with this XML file or without this XML file, that is
with annotations only (@Validation etc), i still get the same error.
> So i do not see the point of me trying to change that file.
> And I want this to work with annotations too.
>
> Thanks anyway for helping. 
>   

If you have the default ValidationInterceptor in your stack, it will 
still attempt to read any validation XML file it detects for the invocation.
(even if using annotations).  So at least ensure they're all removed.  
It is possible the problem is occurring in the default validators file. 
Anyway, I'm just guessing.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




  

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-09 Thread Bobby Mitch
yes, but i wrote that with this XML file or without this XML file, that is with 
annotations only (@Validation etc), i still get the same error.
So i do not see the point of me trying to change that file.
And I want this to work with annotations too.

Thanks anyway for helping. 

--- On Tue, 9/9/08, Jeromy Evans <[EMAIL PROTECTED]> wrote:
From: Jeromy Evans <[EMAIL PROTECTED]>
Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is 
not "file")
To: "Struts Users Mailing List" 
Date: Tuesday, September 9, 2008, 4:59 PM

Bobby Mitch wrote:
> hi, thanks again for helping.
> What XML file exactly are you talking about ? The decriptor file
strugs-tag.tld from the 
>   

The validators XML file you provided in your original email:


   http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>


Try removing the doctype, or changing the PUBLIC reference to one that 
points to a local copy of xwork-validator-1.0.2.dtd using the file 
protocol, or register this URI in an XML catalogue.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




  

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-09 Thread Bobby Mitch
hi, thanks again for helping.
What XML file exactly are you talking about ? The decriptor file strugs-tag.tld 
from the 

struts2-core-2.x.x.x file ?
I tried 3 versions already, here are the first lines of each 

version : struts-2.0.11.1
http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";>

version : struts-2.0.11.2
http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd";>


version : struts-2.1.2
http://java.sun.com/xml/ns/j2ee"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="2.0" 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd";>

Or are you talking about one of the descriptor tag files present in the xwork 
jar ?
xwork-2.x.x

So that would be xwork-2.x.dtd

I always get some URI scheme is not "file" error.
Here is an extract of the stack trace again :

Caused by: java.lang.RuntimeException: java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetException
    at 
com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:480)
    at 
com.opensymphony.xwork2.inject.ContainerImpl$7.call(ContainerImpl.java:517)
    at 
com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:565)
    at 
com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:515)
    at 
com.opensymphony.xwork2.config.impl.LocatableFactory.create(LocatableFactory.java:32)
    at 
com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:135)
    ... 105 more
Caused by: java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetException
    at 
com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:425)
    at 
com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:477)
    ... 110 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at 
com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:404)
    ... 111 more
Caused by: java.lang.IllegalArgumentException: URI scheme is not "file"
    at java.io.File.(Unknown Source)
    at 
com.opensymphony.xwork2.validator.DefaultValidatorFactory.parseValidators(DefaultValidatorFactory.java:101)
    at 
com.opensymphony.xwork2.validator.DefaultValidatorFactory.(DefaultValidatorFactory.java:43)
    ... 116 more

--- On Tue, 9/9/08, Jeromy Evans <[EMAIL PROTECTED]> wrote:
From: Jeromy Evans <[EMAIL PROTECTED]>
Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is 
not "file")
To: "Struts Users Mailing List" 
Date: Tuesday, September 9, 2008, 4:56 AM

Bobby Mitch wrote:
> Any other suggestion, anyone ?
> Thanks for helping.
>   

Did you try my suggestion of changing the doctype to point to a local 
file? Or a local catalog?
Or perhaps even removing the doctype?

It appears to be failing to parse the XML and the only URI present is in 
the doctype.

java.lang.IllegalArgumentException: URI scheme is not "file"
at java.io.File.(Unknown Source)
at
com.opensymphony.xwork2.validator.ValidatorFactory.parseValidators(ValidatorFactory.java:323)



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




  

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-09 Thread Bobby Mitch
Any other suggestion, anyone ?
Thanks for helping.

--- On Tue, 9/9/08, Don Brown <[EMAIL PROTECTED]> wrote:
From: Don Brown <[EMAIL PROTECTED]>
Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is 
not "file")
To: "Struts Users Mailing List" , [EMAIL PROTECTED]
Date: Tuesday, September 9, 2008, 12:27 AM

Sorry, I was thinking of another JBoss issue with the tld file, not
the validators file.

Don

On Tue, Sep 9, 2008 at 3:31 PM, Bobby Mitch <[EMAIL PROTECTED]> wrote:
> hi,
> where do you suggest that i modify the order of the elements ?
> I checked the library struts2-core-2.1.2.jar, there is a struts-2.0.tld
descriptor tagfile inside of it but there is not much inside of it.
>
> Or maybe i should use a different version of Struts 2 ? Some other library
?
> Thanks for helping.
>
> --- On Sun, 9/7/08, Don Brown <[EMAIL PROTECTED]> wrote:
> From: Don Brown <[EMAIL PROTECTED]>
> Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI
scheme is not "file")
> To: "Struts Users Mailing List" 
> Date: Sunday, September 7, 2008, 10:53 PM
>
> There was a JBoss issue that I found once I added JBoss 4.2 testing
> with the tld.  Not sure if that fix is in 2.1.2, but it will be in
> 2.1.3.  If you need, you can just unzip the Struts jar, fix the order
> of the elements that is causing the problem, and zip it back up.
>
> Don
>
> On Mon, Sep 8, 2008 at 3:38 PM, Jeromy Evans
> <[EMAIL PROTECTED]> wrote:
>> Bobby Mitch wrote:
>>>
>>> Well,
>>> I upgraded to the beta version and I am getting errors in the
>>> struts-tags.tld file that i extracted from struts2-core-2.1.2.tld
and
> put
>>> under WEB-INF/
>>>
>>
>> Upgrading to 2.1.2 is a major effort, so I don't recommend that
(too
>> late...).  You'll have to read the release notes and migration
guide
> on the
>> download page.
>> Downgrading to 2.0.11.1 sounds reasonable if there's an actual
> explanation
>> for it.
>>
>> I'm not familiar with the exception but I recommend one of these
> approaches:
>> - change the DOCTYPE to reference a SYSTEM URI.  It appears to not
like
> that
>> there's a URI using http. Perhaps change it to FILE and point to a
> local
>> copy.
>> - create an XML catalog file so the URI's are all registered on
the
> local
>> machine (so it doesn't have to validate using an external file).
>> Here's the tutorial I follow:
>> http://www.sagehill.net/docbookxsl/WriteCatalog.html
>> (it relates to DocBook XML but the principle applies)
>>
>> Hope that helps.
>> Jeromy Evans
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>



  

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-08 Thread Bobby Mitch
hi,
where do you suggest that i modify the order of the elements ?
I checked the library struts2-core-2.1.2.jar, there is a struts-2.0.tld 
descriptor tagfile inside of it but there is not much inside of it.

Or maybe i should use a different version of Struts 2 ? Some other library ?
Thanks for helping.

--- On Sun, 9/7/08, Don Brown <[EMAIL PROTECTED]> wrote:
From: Don Brown <[EMAIL PROTECTED]>
Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is 
not "file")
To: "Struts Users Mailing List" 
Date: Sunday, September 7, 2008, 10:53 PM

There was a JBoss issue that I found once I added JBoss 4.2 testing
with the tld.  Not sure if that fix is in 2.1.2, but it will be in
2.1.3.  If you need, you can just unzip the Struts jar, fix the order
of the elements that is causing the problem, and zip it back up.

Don

On Mon, Sep 8, 2008 at 3:38 PM, Jeromy Evans
<[EMAIL PROTECTED]> wrote:
> Bobby Mitch wrote:
>>
>> Well,
>> I upgraded to the beta version and I am getting errors in the
>> struts-tags.tld file that i extracted from struts2-core-2.1.2.tld and
put
>> under WEB-INF/
>>
>
> Upgrading to 2.1.2 is a major effort, so I don't recommend that (too
> late...).  You'll have to read the release notes and migration guide
on the
> download page.
> Downgrading to 2.0.11.1 sounds reasonable if there's an actual
explanation
> for it.
>
> I'm not familiar with the exception but I recommend one of these
approaches:
> - change the DOCTYPE to reference a SYSTEM URI.  It appears to not like
that
> there's a URI using http. Perhaps change it to FILE and point to a
local
> copy.
> - create an XML catalog file so the URI's are all registered on the
local
> machine (so it doesn't have to validate using an external file).
> Here's the tutorial I follow:
> http://www.sagehill.net/docbookxsl/WriteCatalog.html
> (it relates to DocBook XML but the principle applies)
>
> Hope that helps.
> Jeromy Evans
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




  

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-07 Thread Bobby Mitch
Well,
I upgraded to the beta version and I am getting errors in the struts-tags.tld 
file that i extracted from struts2-core-2.1.2.tld and put under WEB-INF/

I then reference it in my JSP using <%@ taglib prefix="s" uri="/struts-tags" %>
I did not have that problem with the version struts-2.0.11.2

It does not validate. What do i need to do to validate it ?
Also I am not sure it will fix things because i am still seeing the error "URI 
scheme is not "file""

I am downgrading to 2.0.11.1 now since you're telling me there is no such 
problem in this version.

thanks.

--- On Sun, 9/7/08, Struts Two <[EMAIL PROTECTED]> wrote:
From: Struts Two <[EMAIL PROTECTED]>
Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is 
not "file")
To: "Struts Users Mailing List" 
Date: Sunday, September 7, 2008, 2:58 PM

In my case, I have downgraded to 2.0.11.1 and it works fine ( I had some issues
running the beta code on Websphere). I know ,for sure, that you will not be
getting the exception in 2.0.11.1. 



- Original Message 
From: Bobby Mitch 
To: Struts Users Mailing List 
Sent: Sunday, September 7, 2008 4:45:07 PM
Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is
not "file")

Hi, thanks for your reply. I am using this version : struts-2.0.11.2.
I will try the version 2.1.2 and i hope it will work. I will let you know.

In the mean time, if you or other people have any other suggestion, please
don't hesitate.
Thanks.


--- On Sun, 9/7/08, Struts Two <[EMAIL PROTECTED]> wrote:
From: Struts Two <[EMAIL PROTECTED]>
Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is
not "file")
To: "Struts Users Mailing List" 
Date: Sunday, September 7, 2008, 8:21 AM

What version of Struts are you using? If you are using struts version 2.0.12,
then this is a known issue (for websphere users). From what I understand,The
fix
for this problem is not included in xwork-2.0.5. However, if you are using
struts 2.1.2 you are not supposed to see this error.



- Original Message 
From: Bobby Mitch 
To: user@struts.apache.org
Sent: Sunday, September 7, 2008 6:17:45 AM
Subject: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not
"file")

Hi,
I am using JBoss RC 1 and Struts 2 and I am facing a problem when trying to use
an XML validation file.
The error message i get is :
Code:

java.lang.IllegalArgumentException: URI scheme is not "file"
at java.io.File.(Unknown Source)
at
com.opensymphony.xwork2.validator.ValidatorFactory.parseValidators(ValidatorFactory.java:323)
    


It looks like it is not happy with the XML validation file.
Here is the content of that file :
Code:


   http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>   



    
    
    You must enter a name
    
    
 
  

I made some research and found out that someone already had the same error :
http://www.nabble.com/Simple-validation-does-not-work-td18894126.html
My code looks almost exactly like his.
He "solved" the problem by switching back to JBoss 4.0.5 which is not
a convenient solution for me
since i want to stick with JBoss 5.

I also tried without an XML file for validation, using annotations only. And it
turns out that I have the same problem.

Here is the complete stack trace :



Code:

07:15:07,378 INFO [ActionValidatorManagerFactory] Detected
AnnotationActionValidatorManager, initial
izing it...
07:15:13,239 ERROR [[default]] Servlet.service() for servlet default threw
exception
java.lang.IllegalArgumentException: URI scheme is not "file"
at java.io.File.(Unknown Source)
at
com.opensymphony.xwork2.validator.ValidatorFactory.parseValidators(ValidatorFactory.java:323)
at
com.opensymphony.xwork2.validator.ValidatorFactory.(ValidatorFactory.java:230)
at
com.opensymphony.xwork2.validator.ValidatorFileParser.addValidatorConfigs(ValidatorFileParser.jav
a:192)
at
com.opensymphony.xwork2.validator.ValidatorFileParser.parseActionValidatorConfigs(ValidatorFilePa
rser.java:72)
at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.loadFile(AnnotationActionValid
atorManager.java:361)
at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildClassValidatorConfigs(Ann
otationActionValidatorManager.java:252)
at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildValidatorConfigs(Annotati
onActionValidatorManager.java:340)
at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators(AnnotationAction
ValidatorManager.java:69)
at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValid
atorManager.java:138)
at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValid
atorManager.java:113)
at
com.opensymphony.xw

Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-07 Thread Bobby Mitch
Hi, thanks for your reply. I am using this version : struts-2.0.11.2.
I will try the version 2.1.2 and i hope it will work. I will let you know.

In the mean time, if you or other people have any other suggestion, please 
don't hesitate.
Thanks.


--- On Sun, 9/7/08, Struts Two <[EMAIL PROTECTED]> wrote:
From: Struts Two <[EMAIL PROTECTED]>
Subject: Re: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is 
not "file")
To: "Struts Users Mailing List" 
Date: Sunday, September 7, 2008, 8:21 AM

What version of Struts are you using? If you are using struts version 2.0.12,
then this is a known issue (for websphere users). From what I understand,The fix
for this problem is not included in xwork-2.0.5. However, if you are using
struts 2.1.2 you are not supposed to see this error.



----- Original Message 
From: Bobby Mitch 
To: user@struts.apache.org
Sent: Sunday, September 7, 2008 6:17:45 AM
Subject: JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not
"file")

Hi,
I am using JBoss RC 1 and Struts 2 and I am facing a problem when trying to use
an XML validation file.
The error message i get is :
Code:

java.lang.IllegalArgumentException: URI scheme is not "file"
at java.io.File.(Unknown Source)
at
com.opensymphony.xwork2.validator.ValidatorFactory.parseValidators(ValidatorFactory.java:323)
    


It looks like it is not happy with the XML validation file.
Here is the content of that file :
Code:


   http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>   



    
    
    You must enter a name
    
    
 
  

I made some research and found out that someone already had the same error :
http://www.nabble.com/Simple-validation-does-not-work-td18894126.html
My code looks almost exactly like his.
He "solved" the problem by switching back to JBoss 4.0.5 which is not
a convenient solution for me
since i want to stick with JBoss 5.

I also tried without an XML file for validation, using annotations only. And it
turns out that I have the same problem.

Here is the complete stack trace :



Code:

07:15:07,378 INFO [ActionValidatorManagerFactory] Detected
AnnotationActionValidatorManager, initial
izing it...
07:15:13,239 ERROR [[default]] Servlet.service() for servlet default threw
exception
java.lang.IllegalArgumentException: URI scheme is not "file"
at java.io.File.(Unknown Source)
at
com.opensymphony.xwork2.validator.ValidatorFactory.parseValidators(ValidatorFactory.java:323)
at
com.opensymphony.xwork2.validator.ValidatorFactory.(ValidatorFactory.java:230)
at
com.opensymphony.xwork2.validator.ValidatorFileParser.addValidatorConfigs(ValidatorFileParser.jav
a:192)
at
com.opensymphony.xwork2.validator.ValidatorFileParser.parseActionValidatorConfigs(ValidatorFilePa
rser.java:72)
at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.loadFile(AnnotationActionValid
atorManager.java:361)
at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildClassValidatorConfigs(Ann
otationActionValidatorManager.java:252)
at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildValidatorConfigs(Annotati
onActionValidatorManager.java:340)
at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators(AnnotationAction
ValidatorManager.java:69)
at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValid
atorManager.java:138)
at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValid
atorManager.java:113)
at
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValid
atorManager.java:100)
at
com.opensymphony.xwork2.validator.ValidationInterceptor.doBeforeInvocation(ValidationInterceptor.
java:142)
at
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:14
8)
at
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationV
alidationInterceptor.java:48)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.jav
a:86)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
at
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorIntercept
or.java:123)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at
com.op

JBoss 5 RC1 and Struts 2 : Simple validation error (URI scheme is not "file")

2008-09-07 Thread Bobby Mitch
Hi,
I am using JBoss RC 1 and Struts 2 and I am facing a problem when trying to use 
an XML validation file.
The error message i get is :
Code:

java.lang.IllegalArgumentException: URI scheme is not "file"
at java.io.File.(Unknown Source)
at 
com.opensymphony.xwork2.validator.ValidatorFactory.parseValidators(ValidatorFactory.java:323)
    


It looks like it is not happy with the XML validation file.
Here is the content of that file :
Code:


   http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>    


    
    
    You must enter a name
    
    
 
  

I made some research and found out that someone already had the same error :
http://www.nabble.com/Simple-validation-does-not-work-td18894126.html
My code looks almost exactly like his.
He "solved" the problem by switching back to JBoss 4.0.5 which is not a 
convenient solution for me
since i want to stick with JBoss 5.

I also tried without an XML file for validation, using annotations only. And it 
turns out that I have the same problem.

Here is the complete stack trace :



Code:

07:15:07,378 INFO [ActionValidatorManagerFactory] Detected 
AnnotationActionValidatorManager, initial
izing it...
07:15:13,239 ERROR [[default]] Servlet.service() for servlet default threw 
exception
java.lang.IllegalArgumentException: URI scheme is not "file"
at java.io.File.(Unknown Source)
at 
com.opensymphony.xwork2.validator.ValidatorFactory.parseValidators(ValidatorFactory.java:323)
at 
com.opensymphony.xwork2.validator.ValidatorFactory.(ValidatorFactory.java:230)
at 
com.opensymphony.xwork2.validator.ValidatorFileParser.addValidatorConfigs(ValidatorFileParser.jav
a:192)
at 
com.opensymphony.xwork2.validator.ValidatorFileParser.parseActionValidatorConfigs(ValidatorFilePa
rser.java:72)
at 
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.loadFile(AnnotationActionValid
atorManager.java:361)
at 
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildClassValidatorConfigs(Ann
otationActionValidatorManager.java:252)
at 
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.buildValidatorConfigs(Annotati
onActionValidatorManager.java:340)
at 
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.getValidators(AnnotationAction
ValidatorManager.java:69)
at 
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValid
atorManager.java:138)
at 
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValid
atorManager.java:113)
at 
com.opensymphony.xwork2.validator.AnnotationActionValidatorManager.validate(AnnotationActionValid
atorManager.java:100)
at 
com.opensymphony.xwork2.validator.ValidationInterceptor.doBeforeInvocation(ValidationInterceptor.
java:142)
at 
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:14
8)
at 
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationV
alidationInterceptor.java:48)
at 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.jav
a:86)
at 
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
at 
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
at 
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
at 
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorIntercept
or.java:123)
at 
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
at 
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
at 
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
at 
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:
186)
at 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.jav
a:86)
at 
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
at 
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
at 
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
at 
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterce
ptor.java:105)
at 
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
at 
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
at 
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profi