Re: RE: Cannot find bean under name org.apache.struts.taglib.html.BEAN

2002-12-11 Thread aduprat . struts
I'm sure each property of the form has a getter in the for bean cause it was working 
in struts 1.0 without any module...

can it be becuse i put  in place of  ?


Message d'origine
>Sujet: RE: Cannot find bean under name org.apache.struts.taglib.html.BEAN
>Date: Wed, 11 Dec 2002 11:35:05 -0600
>De: "James Childers" <[EMAIL PROTECTED]>
>A: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>
>
>> Then i have another problem : 
>> Generated page comes with an error : 
>> javax.servlet.ServletException: Cannot find bean under name 
>> org.apache.struts.taglib.html.BEAN
>
>Check your form bean and make sure it has getters/setters for each element in the 
> tag. If it is getting thrown during validation this may be 
>what is causing your problem. 
>
>-= J
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>

-
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
Minitel: 3615 NETCOURRIER (0,15 € TTC/min)


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Cannot find bean under name org.apache.struts.taglib.html.BEAN

2002-12-11 Thread aduprat . struts
Hello all.

I'm back with my modules problems.
Someone taold me that hmtl:form is bugged in struts 1.1 and that it is for this reason 
i can find any action when in a module witch is not the default one.
So i transformed my  in 

Then i have another problem : 
Generated page comes with an error : 
javax.servlet.ServletException: Cannot find bean under name 
org.apache.struts.taglib.html.BEAN

What's wrong now...
I'm quite desappointed with use of struts 1.1 :-(

Thanks to help me becoming happy with struts again.

Alexandre.

-
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
Minitel: 3615 NETCOURRIER (0,15 € TTC/min)


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: struts 1.1. modules examples.

2002-12-04 Thread aduprat . struts
What do you mean with : 
"where you need to modify the "config" initialization parameter to be a 
comma-delimited list of all the config files for all the modules"

I declared my module as this : 


config
/WEB-INF/struts-config.xml


config/ActiviteReduite
/WEB-INF/struts-activiteReduite.xml



Im i right for a defaut module and one names "ActiviteReduite" ?

thanks for help.
Message d'origine
>Date: Tue, 3 Dec 2002 08:51:48 -0800 (PST)
>De: "Craig R. McClanahan" <[EMAIL PROTECTED]>
>A: Struts Users Mailing List <[EMAIL PROTECTED]>
>Sujet: Re: Re: Re: struts 1.1. modules examples.
>
>
>
>On Tue, 3 Dec 2002 [EMAIL PROTECTED] wrote:
>
>> Date: Tue,  3 Dec 2002 15:31:02 CET
>> From: [EMAIL PROTECTED]
>> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
>> To: [EMAIL PROTECTED]
>> Subject: Re: Re: Re: struts 1.1. modules examples.
>>
>> Tahnks for help.
>> I've seen the struts 1.1 migrating article But there is no example dealing with 
>struts config.xml file.
>> I'm currently downloading an eval version of camino in order to see how it worswith 
>modules...
>>
>>
>
>In principle, you should have to make zero changes to a struts-config.xml
>file to use it for a module, as opposed to a stand-alone application.  The
>only change required is to your web.xml, where you need to modify the
>"config" initialization parameter to be a comma-delimited list of all the
>config files for all the modules.
>
>Craig
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>

-
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
Minitel: 3615 NETCOURRIER (0,15 € TTC/min)


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Re: Re: struts 1.1. modules examples.

2002-12-03 Thread aduprat . struts
Tahnks for help.
I've seen the struts 1.1 migrating article But there is no example dealing with 
struts config.xml file.
I'm currently downloading an eval version of camino in order to see how it worswith 
modules...


Message d'origine
>De: "Dan Tran" <[EMAIL PROTECTED]>
>A: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Sujet: Re: Re: struts 1.1. modules examples.
>Date: Mon, 2 Dec 2002 20:55:25 -0800
>
>http://www.scioworks.com
>
>has an example of Struts module
>
>-D
>- Original Message -
>From: <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, December 02, 2002 10:04 AM
>Subject: Re: Re: struts 1.1. modules examples.
>
>
>You can get some doc here :
>http://jakarta.apache.org/struts/userGuide/building_controller.html#dd_confi
>g_modules
>
>But there are no example of what i was asking for...
>
>Message d'origine
>>Date: Mon, 02 Dec 2002 10:38:01 -0600
>>De: Hanasaki JiJi <[EMAIL PROTECTED]>
>>A: [EMAIL PROTECTED]
>>Sujet: Re: struts 1.1. modules examples.
>>
>>that rocks!  wehre can i get docs on this and the xamples?
>>
>>[EMAIL PROTECTED] wrote:
>>> Modules are struts 1.1 sub webapps.
>>> This means you can part your webapp into fragments if it's going larger.
>>> Then each developpement team can work on a part of the webapp, use as
>many struts-config as parts of the webapp etc...
>>>
>>>
>>> Message d'origine
>>>
Date: Mon, 02 Dec 2002 09:53:11 -0600
De: Hanasaki JiJi <[EMAIL PROTECTED]>
A: [EMAIL PROTECTED]
Sujet: Re: struts 1.1. modules examples.

What are "modules"?

[EMAIL PROTECTED] wrote:

>Hello all,
>
>I try to use struts 1.1 modules.
>I will be glad if somebody tells me how to find examples of :
>- how to declare an action un a struts-config.xml module file ie what is
>the pattern of the path? (path="/myModuleName/myActionName" ?)
>- how to invoque a module action (html:form
>action"/myModule/myAction.do..." ?)
>- what is the pattern for the forward argument (forward name="succes"
>path="/myModule/myJpsPage.jsp" ?)
>
>("") are only my hypothesis...
>
>thanks a lots for any advice.
>
>Alexandre.
>

--
=
= Management is doing things right; leadership is doing the =
=   right things.- Peter Drucker=
=___=
= http://www.sun.com/service/sunps/jdc/javacenter.pdf   =
=  www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone  =
=


>>>
>>>
>>> -
>>> NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs,
>Toolbar...
>>> Web/Wap : www.netcourrier.com
>>> Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
>>> Minitel: 3615 NETCOURRIER (0,15 € TTC/min)
>>>
>>
>>--
>>=
>>= Management is doing things right; leadership is doing the =
>>=   right things.- Peter Drucker=
>>=___=
>>= http://www.sun.com/service/sunps/jdc/javacenter.pdf   =
>>=  www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone  =
>>=
>>
>>
>
>-
>NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs,
>Toolbar...
>Web/Wap : www.netcourrier.com
>Téléphone/Fax : 08 92 69 00 21 (0,34 ? TTC/min)
>Minitel: 3615 NETCOURRIER (0,15 ? TTC/min)
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>

-
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
Minitel: 3615 NETCOURRIER (0,15 € TTC/min)


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Re: struts 1.1. modules examples.

2002-12-02 Thread aduprat . struts
You can get some doc here : 
http://jakarta.apache.org/struts/userGuide/building_controller.html#dd_config_modules

But there are no example of what i was asking for...

Message d'origine
>Date: Mon, 02 Dec 2002 10:38:01 -0600
>De: Hanasaki JiJi <[EMAIL PROTECTED]>
>A: [EMAIL PROTECTED]
>Sujet: Re: struts 1.1. modules examples.
>
>that rocks!  wehre can i get docs on this and the xamples?
>
>[EMAIL PROTECTED] wrote:
>> Modules are struts 1.1 sub webapps.
>> This means you can part your webapp into fragments if it's going larger.
>> Then each developpement team can work on a part of the webapp, use as many 
>struts-config as parts of the webapp etc...
>> 
>> 
>> Message d'origine
>> 
>>>Date: Mon, 02 Dec 2002 09:53:11 -0600
>>>De: Hanasaki JiJi <[EMAIL PROTECTED]>
>>>A: [EMAIL PROTECTED]
>>>Sujet: Re: struts 1.1. modules examples.
>>>
>>>What are "modules"?
>>>
>>>[EMAIL PROTECTED] wrote:
>>>
Hello all,

I try to use struts 1.1 modules.
I will be glad if somebody tells me how to find examples of : 
- how to declare an action un a struts-config.xml module file ie what is the 
>pattern of the path? (path="/myModuleName/myActionName" ?)
- how to invoque a module action (html:form action"/myModule/myAction.do..." ?)
- what is the pattern for the forward argument (forward name="succes" 
>path="/myModule/myJpsPage.jsp" ?)

("") are only my hypothesis...

thanks a lots for any advice.

Alexandre.

>>>
>>>-- 
>>>=
>>>= Management is doing things right; leadership is doing the =
>>>=   right things.- Peter Drucker=
>>>=___=
>>>= http://www.sun.com/service/sunps/jdc/javacenter.pdf   =
>>>=  www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone  =
>>>=
>>>
>>>
>> 
>> 
>> -
>> NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
>> Web/Wap : www.netcourrier.com
>> Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
>> Minitel: 3615 NETCOURRIER (0,15 € TTC/min)
>> 
>
>-- 
>=
>= Management is doing things right; leadership is doing the =
>=   right things.- Peter Drucker=
>=___=
>= http://www.sun.com/service/sunps/jdc/javacenter.pdf   =
>=  www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone  =
>=
>
>

-
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
Minitel: 3615 NETCOURRIER (0,15 € TTC/min)


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




struts 1.1. modules examples.

2002-12-02 Thread aduprat . struts
Hello all,

I try to use struts 1.1 modules.
I will be glad if somebody tells me how to find examples of : 
- how to declare an action un a struts-config.xml module file ie what is the pattern 
of the path? (path="/myModuleName/myActionName" ?)
- how to invoque a module action (html:form action"/myModule/myAction.do..." ?)
- what is the pattern for the forward argument (forward name="succes" 
path="/myModule/myJpsPage.jsp" ?)

("") are only my hypothesis...

thanks a lots for any advice.

Alexandre.

-
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
Minitel: 3615 NETCOURRIER (0,15 € TTC/min)


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Re: Modules in struts 1.1

2002-11-28 Thread aduprat . struts
Hello Eddie,

Im sorry. I did not send any response since last week.
I was working on another subject :-(

For my problem in actions not found in strut-moduel1.xml i'll try to invoque actions 
like this in my jsp : /module1/myaction.do

Then I'll try to switch modules as you do.

If you have any more advice, you can tell me.

Thanks.

Alexandre. 


Message d'origine
>Date: Wed, 20 Nov 2002 11:05:07 -0600
>De: Eddie Bush <[EMAIL PROTECTED]>
>Sujet: Re: Modules in struts 1.1
>A: Struts Users Mailing List <[EMAIL PROTECTED]>
>
>[EMAIL PROTECTED] wrote:
>
My problem is when im in my module called "module1", it seems action mapping is 
>schearching for actions in my default struts-congig.xml file?...

>>>What makes you say this?  Which build are you using?  You probably want 
>>>to be using a nightly build if you're using modules.  There was a bug 
>>>for a while that is fixed in the nightly build.
>>>
>>I'm not aware of this bug fix. I'm using struts 1.1b2.
>>
>The issue fixed centered on actions/modules with similar names - it 
>doesn't sound like this is your problem, but I highly recommend you 
>upgrade just the same.
>
>>I think action mapping is schearching for actions in my default struts-config.xml 
>file because when i put actions called in module1 in default struts-config.xml, it 
>finds them...
>>
>I don't think this is what's going on.  Globals.APPLICATION_KEY (or, in 
>recent builds Globals.MODULE_KEY) will point to the default module 
>config in application scope, and the current module config in request 
>scope - the form tag uses the one from request scope.
>
>>When i put module1 actions in struts-module1.xml, it can't find any module1 action...
>>
>Where are you executing the page from?  ... your default module?  That 
>would be a special case.  In the case that you could prepend the module 
>prefix, because Struts isn't going to attempt to do this (that's not 
>totally accurate.  It will prepend the prefix, but the prefix for the 
>default module is the empty string.), so you're safe to do it yourself. 
> I can't imagine why you'd want a page in the default module to submit 
>to a non-default module, but that's how you could go about it.
>
I also try to switch from my welcome page to my module1 and get : "Invalid 
>sub-application prefix activiteReduite was specified"
when using SwitchAction... :-(

>>>SwitchAction takes two request parameters:
>>>   - prefix: the name of the module (module1 in your example)
>>>   - page: the action you wish to invoke
>>>
>>>It sounds to me like you gave it an invalid module name.
>>>
>>Yes. I agree. My problem is i gave the right module name. Perhaps, the page 
>parameter is not good? I put a jsp page name in that parameter...
>>
>My approach to this is to use local/global forwards that set the 
>contextRelative property to true - and typically redirect instead of 
>forward (redirect="true").  Setting contextRelative="true" (and 
>specifying a path relative to the application, instead of relative to 
>the module) is another way to do this same thing.  I'm not sure why 
>SwitchAction isn't working for you - last I tried it it worked fine.  I 
>haven't messed with it for some time though.
>
What did i do wrong?

Thanks for help.

Alexandre.

>>>It sounds like you're setting things up right in your web.xml, etc.  I 
>>>don't have enough information about your two modules to formulate a 
>>>hypothesis about what is going wrong.  Could you elaborate?
>>>
>>Yes i can.
>>So, i have 2 modules : 
>>- default
>>- module1
>>
>>I have my root directory for my default module and root/module1 directory for the 
>other one.
>>
>>In my web-inf directory, I have struts-config.xml file populated with action for 
>default module and struts-module1.xml for module1 module.
>>
>>my web.xml file declares my 2 module as i wrote in my first mail.
>>
>>When trying to invoque an action in module1 i do :
>>
>>
>That should work - or you should be able to say "/myModule1Action.do"
>
>>do in need to do : 
>> ???
>>
>This shouldn't work.  Struts will prepend the module prefix itself. 
> Incidentally, this would make it rather difficult to submit to an 
>action in one non-default module from another non-default module (that I 
>can see) without possibly using a SwitchAction or defining a 
>"go-between" action that would forward to a different module.  I think 
>things could get really hairy really quick if you did things like that 
>though - I wouldn't suggest it.
>
>>Thank for trying to help me.
>>
>>Alexandre.
>>
>You haven't really gotten terribly explicit about your config yet :-)  I 
>was kind of in hopes you would give me something so that I could 
>construct a mental image of how your pieces are layed out.  Hopefully I 
>have guessed pretty well about how things are laid out.  If you continue 
>to have problems just post back again.
>
>-- 
>Eddie Bush
>
>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additiona

Re: Re: Modules in struts 1.1

2002-11-20 Thread aduprat . struts
>>
>>My problem is when im in my module called "module1", it seems action mapping is 
>schearching for actions in my default struts-congig.xml file?...
>>
>What makes you say this?  Which build are you using?  You probably want 
>to be using a nightly build if you're using modules.  There was a bug 
>for a while that is fixed in the nightly build.
>

I'm not aware of this bug fix. I'm using struts 1.1b2.
I think action mapping is schearching for actions in my default struts-config.xml file 
because when i put actions called in module1 in default struts-config.xml, it finds 
them...
When i put module1 actions in struts-module1.xml, it can't find any module1 action...


>>I also try to switch from my welcome page to my module1 and get : "Invalid 
>sub-application prefix activiteReduite was specified"
>>when using SwitchAction... :-(
>>
>SwitchAction takes two request parameters:
>- prefix: the name of the module (module1 in your example)
>- page: the action you wish to invoke
>
>It sounds to me like you gave it an invalid module name.

Yes. I agree. My problem is i gave the right module name. Perhaps, the page parameter 
is not good? I put a jsp page name in that parameter...

>
>>What did i do wrong?
>>
>>Thanks for help.
>>
>>Alexandre.
>>
>It sounds like you're setting things up right in your web.xml, etc.  I 
>don't have enough information about your two modules to formulate a 
>hypothesis about what is going wrong.  Could you elaborate?
>

Yes i can.
So, i have 2 modules : 
- default
- module1

I have my root directory for my default module and root/module1 directory for the 
other one.

In my web-inf directory, I have struts-config.xml file populated with action for 
default module and struts-module1.xml for module1 module.

my web.xml file declares my 2 module as i wrote in my first mail.

When trying to invoque an action in module1 i do :


do in need to do : 
 ???

Thank for trying to help me.

Alexandre.



>-- 
>Eddie Bush
>
>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>

-
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
Minitel: 3615 NETCOURRIER (0,15 € TTC/min)


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Modules in struts 1.1

2002-11-19 Thread aduprat . struts
Hi all,

I'm trying to use struts 1.1 modules.
I'm migrating old Struts 1.0 web application.
For the moment i have isolated a part of this application and followed the user guide 
to put it in a module. The other part is defaut ans still use struts-config.xml.

So i have : 
- struts-config.xml
- struts-module1.xml
- a directory called module1 in my web application root directory.
- my web.xml declare 2 config files : 

   config
   /WEB-INF/struts-config.xml


   config/module1
   /WEB-INF/struts-module1.xml



My problem is when im in my module called "module1", it seems action mapping is 
schearching for actions in my default struts-congig.xml file?...

I also try to switch from my welcome page to my module1 and get : "Invalid 
sub-application prefix activiteReduite was specified"
when using SwitchAction... :-(

What did i do wrong?

Thanks for help.

Alexandre.

-
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
Minitel: 3615 NETCOURRIER (0,15 € TTC/min)


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




struts 1.1 : setInput ?

2002-11-15 Thread aduprat . struts
Hi all.

We were using struts 1.0 and doing something like this : 
//If error occurs : go on tabbed pane where it is raised.
if (errors.size() != 0) {
mapping.setInput(INPUT_INFORMATIONS);
return errors;
}

It was working well in struts 1.0.

My problem is that uin struts 1.1 when i'm using the same instruction to 
programmaticaly change my input i've got this exception : 

java.lang.IllegalStateException: Configuration is frozen
at org.apache.struts.config.ActionConfig.setInput(ActionConfig.java:206)
at 
fr.unedic.simulationcalcul.produits.assurance.are.navigation.strut.liquidation.cod07.AjoutDemandeForm.validate(AjoutDemandeForm.java:337)


What is the good way?

Help me please, i'm trying to migrate in struts 1.1
Thanks in advance.

Alexandre Duprat.

-
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
Minitel: 3615 NETCOURRIER (0,15 € TTC/min)


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Re: Struts1.1 : subclass ActionServlet

2002-11-06 Thread aduprat . struts
Thanks for reponse and help Eddie.
I've found documentation for the plugins architecture. I'm testing today.
I'll let you know but i think it matches my need.

Alexandre Duprat.


Message d'origine
>Date: Tue, 05 Nov 2002 09:44:13 -0600
>De: Eddie Bush <[EMAIL PROTECTED]>
>Sujet: Re: Struts1.1 : subclass ActionServlet
>A: Struts Users Mailing List <[EMAIL PROTECTED]>
>
>Well, there could still be cases where you wish to extend ActionServlet, 
>but moreover I think folks will probably extend RequestProcessor 
>instead.  For initialization logic, ActionServlet is one spot - writing 
>a class that implements org.apache.struts.action.PlugIn is another.  The 
>interface is *very* basic, and, for an example of what types of things 
>you'll need to do, you can check the validator plugin 
>(o.a.s.validator.ValidatorPlugIn, I *think*).  If you have problems let 
>us know.
>
>1.1 docs are getting a lot more "fleshy" - and should even be accurate. 
> Yes, I'd suggest them.  Umm - last I looked at the jakarta site our 
>docs were up-to-date (or close), but you may grab a fresh nightly and 
>install the documentation war anyway (which would be the latest 
>information).
>
>If you are modifying the way the struts-config file gets loaded - like, 
>say, changing it to have some proprietary format, I think extending 
>ActionServlet may still be the way to go.  However, for nearly all other 
>initialization tasks, writing a PlugIn should suffice nicely.
>
>[EMAIL PROTECTED] wrote:
>
>>Hi.
>>Thanks for your response Eddie.
>>
>>First : I redefined init cause I did it in struts 1.0 to initialise my struts menu 
>repository. I'm not aware of the plugin architecture. Do you think i should go ahead 
>for 1.1 documentation? :-)
>>Where can i find details about this plugin architecture?
>>It can fix my problem.
>>
>>For my servlet initialisation problem. I'm on my way with struts console. I hope it 
>will help.
>>
>>Thanks again for helping a struts 1.1 newbee...
>>
>>Alexandre.
>>  
>>
>
>-- 
>Eddie Bush
>
>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>

-
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
Minitel: 3615 NETCOURRIER (0,15 € TTC/min)


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Re: Struts1.1 : subclass ActionServlet

2002-11-05 Thread aduprat . struts
Hi.
Thanks for your response Eddie.

First : I redefined init cause I did it in struts 1.0 to initialise my struts menu 
repository. I'm not aware of the plugin architecture. Do you think i should go ahead 
for 1.1 documentation? :-)
Where can i find details about this plugin architecture?
It can fix my problem.

For my servlet initialisation problem. I'm on my way with struts console. I hope it 
will help.

Thanks again for helping a struts 1.1 newbee...

Alexandre.


Message d'origine
>Date: Mon, 04 Nov 2002 11:27:49 -0600
>De: Eddie Bush <[EMAIL PROTECTED]>
>Sujet: Re: Struts1.1 : subclass ActionServlet
>A: Struts Users Mailing List <[EMAIL PROTECTED]>
>
>Why must you redefine init?  Are you aware of the plugin architechture 
>in 1.1, and why does it not fit your needs?
>
>The error looks like you made a boo-boo in your config file.  It's not 
>syntactically valid.  That's my first impression.  I've never seen the 
>security thingies in the trace - can't help you there.  Double-check 
>your config - maybe download Struts Console from 
>www.jamesholmes.com/struts/console and see if it loads right.  Struts 
>Console is a handy tool.  It simply does not know how to write an 
>invalid config file.  You may consider using it.
>
>[EMAIL PROTECTED] wrote:
>
>>Hi all,
>>
>>I'm trying to migrate my struts 1.0 application to struts 1.1.
>>I'm also using struts menu extention.
>>For this extention initialisation, I have to subclass ActionServlet in order to 
>redefine init() method.
>>
>>So, i've done it and declare my new servlet in web.xml in place of ActionServlet.
>>Tomcat (4.04) does not initilise my new servlet. :-(
>>When trying to execute in tomcat plugin under Eclipse IDE i got this Exception : 
>>
>>4 nov. 2002 13:57:56 org.apache.struts.util.PropertyMessageResources 
>>INFO: Initializing, config='org.apache.struts.action.ActionResources', 
>returnNull=true
>>4 nov. 2002 13:57:56 org.apache.commons.digester.Digester endElement
>>GRAVE: End event threw exception
>>
>>Is there any security issue in struts 1.1 i do not know.
>>Please help...
>>I would like to use struts 1.1 modules capacity...
>>
>>Thanks in advance.
>>
>>Alexandre duprat.
>>
>-- 
>Eddie Bush
>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>

-
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
Minitel: 3615 NETCOURRIER (0,15 € TTC/min)


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Struts1.1 : subclass ActionServlet

2002-11-04 Thread aduprat . struts
Hi all,

I'm trying to migrate my struts 1.0 application to struts 1.1.
I'm also using struts menu extention.
For this extention initialisation, I have to subclass ActionServlet in order to 
redefine init() method.

So, i've done it and declare my new servlet in web.xml in place of ActionServlet.
Tomcat (4.04) does not initilise my new servlet. :-(
When trying to execute in tomcat plugin under Eclipse IDE i got this Exception : 

4 nov. 2002 13:57:56 org.apache.struts.util.PropertyMessageResources 
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
4 nov. 2002 13:57:56 org.apache.commons.digester.Digester endElement
GRAVE: End event threw exception
java.lang.SecurityException: sealing violation
at java.net.URLClassLoader.defineClass(URLClassLoader.java:232)
at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:446)
at org.apache.commons.digester.Digester.endElement(Digester.java:1036)
at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
at 
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1550)
at 
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1149)
at 
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1257)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:451)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:918)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3279)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:738)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at org.apache.catalina.core.StandardService.start(StandardService.java:388)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
4 nov. 2002 13:57:57 org.apache.struts.action.ActionServlet initServlet


Is there any security issue in struts 1.1 i do not know.
Please help...
I would like to use struts 1.1 modules capacity...

Thanks in advance.

Alexandre duprat.

-
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
Minitel: 3615 NETCOURRIER (0,15 € TTC/min)


--
To unsubscribe, e-mail:   
For additional commands, e-mail: