You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dave Newton <ne...@yahoo.com> on 2007/04/16 15:03:18 UTC

[OT] Re: Force clean / reload a webapp

--- piloupy GOTTAPIL <pi...@gmail.com> wrote:
> What you said was right : I need to recompile the
> classes to make it work correctly. eclipse is 
> configured to rebuild automatically, but it
> seems to only work with a standard java application.

If you set the build output directory to
WEB-INF/classes you shouldn't need to build a WAR file
during development.

d.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: [OT] Re: Force clean / reload a webapp

Posted by piloupy GOTTAPIL <b7...@yopmail.com>.
No, validator-rules.xml isn't in my WEB-INF directory. It's in the
struts-core.jar file at location
org.apache.struts.validator.validator-rules.xml.

Here is the plugin declaration in my struts-config.xml :

<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
  <set-property property="pathnames"
    value="/org/apache/struts/validator/validator-rules.xml,
/WEB-INF/validation.xml" />
</plug-in>

As I said earlier, it's strange, because I don't always have these
errors, though I didn't make any change. For example, right now, as I
type these words, I don't have any error in eclipse.

But with or without these errors, the form's constraints are taken account.

piloupy

On 4/17/07, Nuwan Chandrasoma <my...@gmail.com> wrote:
> hi,
>
> Are you sure you have the validator-rules.xml in your WEB-INF directory?
>
> Thanks,
>
> Nuwan.
>
>
> ----- Original Message -----
> From: "piloupy GOTTAPIL" <b7...@yopmail.com>
> To: "Struts Users Mailing List" <us...@struts.apache.org>
> Sent: Tuesday, April 17, 2007 8:20 AM
> Subject: Re: [OT] Re: Force clean / reload a webapp
>
>
> > There's no problem in my Java Build Path. I have no error and no
> > warning on my WEB-INF/src. I only have errors and warnings on my
> > WEB-INF directory :
> >
> > ERRORS :
> > Severity and Description Path Resource Location Creation Time Id
> > Validation rule "email" doesn't exist. /WEB-INF validation.xml line
> > 28 1176797654656 31572
> > Validation rule "required" doesn't exist. /WEB-INF validation.xml line
> > 16 1176797654656 31569
> > Validation rule "required" doesn't exist. /WEB-INF validation.xml line
> > 19 1176797654656 31570
> > Validation rule "required" doesn't exist. /WEB-INF validation.xml line
> > 22 1176797654656 31571
> >
> > For theses errors, I really don't know why they are here. I've
> > included the right libraries and my site's working. Moreover, when I
> > open the WEB-INF/validation.xml, the errors disappear (sometimes),
> > sometimes, they don't. dunno why ^^;
> >
> > WARNINGS :
> > Severity and Description Path Resource Location Creation Time Id
> > The file cannot be validated as the host "struts.apache.org" is
> > currently unreachable. /WEB-INF tiles-defs.xml line
> > 5 1176735959046 31518
> >
> > The warning is on the URL line :
> >
> > <!DOCTYPE tiles-definitions PUBLIC
> >  "-//Apache Software Foundation//DTD Tiles Configuration 1.3//EN"
> >  "http://struts.apache.org/dtds/tiles-config_1_3.dtd">
> >
> > I don't know what to do for this warning. The dtd file is perfectly
> > reacheable from the struts website, and this file is in my
> > struts-tiles library.
> >
> > I indeed use WTP and Subclipse.
> >
> > piloupy
> >
> > On 4/16/07, Dave Newton <ne...@yahoo.com> wrote:
> >> --- piloupy GOTTAPIL wrote:
> >> > That's how I configured eclipse in the Build Path.
> >> > WEB-INF/src --(compile_to)--> WEB-INF/classes.
> >> >
> >> > But eclipse doesn't seem to rebuild the classes. I
> >> > think it's because the element that needs these
> >> files
> >> > is tomcat, and not a simple java application.
> >>
> >> It shouldn't matter; are there any items in your
> >> "Problems" view or warnings in the java build path
> >> dialog box? Are you using something like MyEclipse or
> >> WTP?
> >>
> >> I have no issues with automatically building my web
> >> apps.
> >>
> >> d.
> >>
> >>
> >> __________________________________________________
> >> Do You Yahoo!?
> >> Tired of spam?  Yahoo! Mail has the best spam protection around
> >> http://mail.yahoo.com
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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


Re: [OT] Re: Force clean / reload a webapp

Posted by Nuwan Chandrasoma <my...@gmail.com>.
hi,

Are you sure you have the validator-rules.xml in your WEB-INF directory? 

Thanks,

Nuwan.


----- Original Message ----- 
From: "piloupy GOTTAPIL" <b7...@yopmail.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Tuesday, April 17, 2007 8:20 AM
Subject: Re: [OT] Re: Force clean / reload a webapp


> There's no problem in my Java Build Path. I have no error and no
> warning on my WEB-INF/src. I only have errors and warnings on my
> WEB-INF directory :
> 
> ERRORS :
> Severity and Description Path Resource Location Creation Time Id
> Validation rule "email" doesn't exist. /WEB-INF validation.xml line
> 28 1176797654656 31572
> Validation rule "required" doesn't exist. /WEB-INF validation.xml line
> 16 1176797654656 31569
> Validation rule "required" doesn't exist. /WEB-INF validation.xml line
> 19 1176797654656 31570
> Validation rule "required" doesn't exist. /WEB-INF validation.xml line
> 22 1176797654656 31571
> 
> For theses errors, I really don't know why they are here. I've
> included the right libraries and my site's working. Moreover, when I
> open the WEB-INF/validation.xml, the errors disappear (sometimes),
> sometimes, they don't. dunno why ^^;
> 
> WARNINGS :
> Severity and Description Path Resource Location Creation Time Id
> The file cannot be validated as the host "struts.apache.org" is
> currently unreachable. /WEB-INF tiles-defs.xml line
> 5 1176735959046 31518
> 
> The warning is on the URL line :
> 
> <!DOCTYPE tiles-definitions PUBLIC
>  "-//Apache Software Foundation//DTD Tiles Configuration 1.3//EN"
>  "http://struts.apache.org/dtds/tiles-config_1_3.dtd">
> 
> I don't know what to do for this warning. The dtd file is perfectly
> reacheable from the struts website, and this file is in my
> struts-tiles library.
> 
> I indeed use WTP and Subclipse.
> 
> piloupy
> 
> On 4/16/07, Dave Newton <ne...@yahoo.com> wrote:
>> --- piloupy GOTTAPIL wrote:
>> > That's how I configured eclipse in the Build Path.
>> > WEB-INF/src --(compile_to)--> WEB-INF/classes.
>> >
>> > But eclipse doesn't seem to rebuild the classes. I
>> > think it's because the element that needs these
>> files
>> > is tomcat, and not a simple java application.
>>
>> It shouldn't matter; are there any items in your
>> "Problems" view or warnings in the java build path
>> dialog box? Are you using something like MyEclipse or
>> WTP?
>>
>> I have no issues with automatically building my web
>> apps.
>>
>> d.
>>
>>
>> __________________________________________________
>> Do You Yahoo!?
>> Tired of spam?  Yahoo! Mail has the best spam protection around
>> http://mail.yahoo.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>

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


Re: [OT] Re: Force clean / reload a webapp

Posted by piloupy GOTTAPIL <b7...@yopmail.com>.
There's no problem in my Java Build Path. I have no error and no
warning on my WEB-INF/src. I only have errors and warnings on my
WEB-INF directory :

ERRORS :
Severity and Description	Path	Resource	Location	Creation Time	Id
Validation rule "email" doesn't exist.	/WEB-INF	validation.xml	line
28	1176797654656	31572
Validation rule "required" doesn't exist.	/WEB-INF	validation.xml	line
16	1176797654656	31569
Validation rule "required" doesn't exist.	/WEB-INF	validation.xml	line
19	1176797654656	31570
Validation rule "required" doesn't exist.	/WEB-INF	validation.xml	line
22	1176797654656	31571

For theses errors, I really don't know why they are here. I've
included the right libraries and my site's working. Moreover, when I
open the WEB-INF/validation.xml, the errors disappear (sometimes),
sometimes, they don't. dunno why ^^;

WARNINGS :
Severity and Description	Path	Resource	Location	Creation Time	Id
The file cannot be validated as the host "struts.apache.org" is
currently unreachable.	/WEB-INF	tiles-defs.xml	line
5	1176735959046	31518

The warning is on the URL line :

<!DOCTYPE tiles-definitions PUBLIC
  "-//Apache Software Foundation//DTD Tiles Configuration 1.3//EN"
  "http://struts.apache.org/dtds/tiles-config_1_3.dtd">

I don't know what to do for this warning. The dtd file is perfectly
reacheable from the struts website, and this file is in my
struts-tiles library.

I indeed use WTP and Subclipse.

piloupy

On 4/16/07, Dave Newton <ne...@yahoo.com> wrote:
> --- piloupy GOTTAPIL wrote:
> > That's how I configured eclipse in the Build Path.
> > WEB-INF/src --(compile_to)--> WEB-INF/classes.
> >
> > But eclipse doesn't seem to rebuild the classes. I
> > think it's because the element that needs these
> files
> > is tomcat, and not a simple java application.
>
> It shouldn't matter; are there any items in your
> "Problems" view or warnings in the java build path
> dialog box? Are you using something like MyEclipse or
> WTP?
>
> I have no issues with automatically building my web
> apps.
>
> d.
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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


Re: [OT] Re: Force clean / reload a webapp

Posted by Dave Newton <ne...@yahoo.com>.
--- piloupy GOTTAPIL wrote:
> That's how I configured eclipse in the Build Path.
> WEB-INF/src --(compile_to)--> WEB-INF/classes.
> 
> But eclipse doesn't seem to rebuild the classes. I
> think it's because the element that needs these
files
> is tomcat, and not a simple java application.

It shouldn't matter; are there any items in your
"Problems" view or warnings in the java build path
dialog box? Are you using something like MyEclipse or
WTP?

I have no issues with automatically building my web
apps.

d.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: [OT] Re: Force clean / reload a webapp

Posted by piloupy GOTTAPIL <b7...@yopmail.com>.
> If you set the build output directory to
> WEB-INF/classes you shouldn't need to build a WAR file
> during development.

That's how I configured eclipse in the Build Path. WEB-INF/src
--(compile_to)--> WEB-INF/classes.

But eclipse doesn't seem to rebuild the classes. I think it's because
the element that needs these files is tomcat, and not a simple java
application.

And concerning my problem earlier, silly me, I've forgot to include
the struts-config.xml, tiles-defs.xml and validation.xml files in the
ant script to generate the war file :-)

Thank you, all of you for your help. I was struggled with this problem
for nearly a week... T_T

Thanks Martin for your concern, but as I'm working for a company, I
think I'm not authorized to show in detail my source code. I'm sure
you understand.

Best regards,

piloupy

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