Problem with debuging in IDEA 4.0.3

2004-05-24 Thread Paraman
Hi all,

When I tried to debug my web application in IDEA 4.0.3 with Tomcat 5.0.24, I got the 
following exception:

Fatal: Parse error in default web.xml
java.io.UTFDataFormatException: Invalid byte 2 of 2-byte UTF-8 sequence.
 at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source)
 at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
 at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
 at org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown Source)
 at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown Source)
 at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
 at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
 at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
 at org.apache.commons.digester.Digester.parse(Digester.java:1548)
 at org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:515)
 at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:623)
 at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:216)
 at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4268)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
 at org.apache.catalina.core.StandardService.start(StandardService.java:476)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2298)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
 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.start(Bootstrap.java:284)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)

However, when I directly deployed the same application under Tomcat, it ran well. I 
can't see what the problem is. Could anyone help me?

Any help is highly appreciated!

Paraman

The element

2004-05-22 Thread Paraman
Hi all,
I am puzzled about the behavior of the  element when it is nested in an 
 element. I thought it was setting the properties of the Action class, but it 
seems not working. Could you please help me clear it up? 
Thanks!

Paraman

[OT]A question about Cewolf

2004-05-20 Thread Paraman
Is it possible for me to specify the color of the bars in a chart according to their 
values?

Thanks!

Re: java.lang.IllegalArgumentException: No bean specified

2004-05-17 Thread Paraman
Hi Andrea,
Quite agree with you. As for my application, I think the first one is the best choice: 
I needn't to do any thing else.

- Original Message - 
From: "Andrea M" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 18, 2004 1:07 PM
Subject: R: java.lang.IllegalArgumentException: No bean specified


Hi Paraman
These are the two actions you're talkin' about:


  





Now I see that the first one forwards a processAreasForm to the second,
which in turn accepts evaluationForm

That's very likely to be your problem
So.. you have three options I guess
- The one you found: setting the "redirect" attribute to true you will not
forward the request so there will be no processAreasForm
- You make sure the actionforms for the two actions match (either changing
one of the two, or implementing another action that takes processAreasForm)
- You don't specify any bean in the first action


-Messaggio originale-
Da: Paraman [mailto:[EMAIL PROTECTED] 
Inviato: martedì 18 maggio 2004 3.15
A: Struts Users Mailing List
Oggetto: Re: java.lang.IllegalArgumentException: No bean specified

Richard,
Firstly I should apologize for disturbing you. I have solved this problem by
setting the 'redirect' attribute of the forward element which invoked the
executeEvaluation action to 'true'. This forward is nested in another action
called 'selectProcessAreas', thus, without setting the  'redirect'
attribute, Struts will try to mapping the request parameters of this action
to the form properties of the 'executeEvaluation' action and therefore
caused the exception.

By the way, I can not understand your meaning well. According to the struts
documentation, the 'input' attribute of an action mapping is described as
"Context-relative path of the input form to which control should be returned
if a validation error is encountered. Required if "name" is specified and
the input bean returns validation errors." Is it necessary to set it every
time I submit a form to an action, in addition to the 'name' attribute?

Regards,

Paraman
  
- Original Message - 
From: "Richard Yee" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, May 18, 2004 6:03 AM
Subject: Re: java.lang.IllegalArgumentException: No bean specified


> Paraman,
> Are you submitting a form to the action? If so, you
> don't have the name of the form-bean as the 'input'
> argument to your executeEvaluation action.
> 
> Regards,
> 
> Richard
> 


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



Re: java.lang.IllegalArgumentException: No bean specified

2004-05-17 Thread Paraman
Richard,
Firstly I should apologize for disturbing you. I have solved this problem by setting 
the 'redirect' attribute of the forward element which invoked the executeEvaluation 
action to 'true'. This forward is nested in another action called 
'selectProcessAreas', thus, without setting the  'redirect' attribute, Struts will try 
to mapping the request parameters of this action to the form properties of the 
'executeEvaluation' action and therefore caused the exception.

By the way, I can not understand your meaning well. According to the struts 
documentation, the 'input' attribute of an action mapping is described as 
"Context-relative path of the input form to which control should be returned if a 
validation error is encountered. Required if "name" is specified and the input bean 
returns validation errors." Is it necessary to set it every time I submit a form to an 
action, in addition to the 'name' attribute?

Regards,

Paraman
  
- Original Message - 
From: "Richard Yee" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, May 18, 2004 6:03 AM
Subject: Re: java.lang.IllegalArgumentException: No bean specified


> Paraman,
> Are you submitting a form to the action? If so, you
> don't have the name of the form-bean as the 'input'
> argument to your executeEvaluation action.
> 
> Regards,
> 
> Richard
> 


Re: java.lang.IllegalArgumentException: No bean specified

2004-05-16 Thread Paraman
Richard,
Thanks for your  kind help. Following is the content of my struts-config.xml and I am 
invoking the "/executeEvaluation" action.

/// struts-config.xml
///

http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>



 
 

 
 
  
   
   
  
  
  
  
  
 

 
 

 
 
  
  
  
  
  
  
  
  
  
 

 
 
  
  
   
  
  

  





  
   
  
  
   
  
  
  
   
  




 

 
 

 
 
  
 
 
  
 
 
  
 


/////
Regards,

Paraman

- Original Message - 
From: "Richard Yee" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Sunday, May 16, 2004 10:57 PM
Subject: Re: java.lang.IllegalArgumentException: No bean specified


> With the information you provided, it is hard to tell what the problem is. 
> Send the contents of your struts-config.xml and which action you are invoking.
> 
> Regards,
> 
> Richard
> 
> At 07:16 AM 5/16/2004, you wrote:
> >Hi,
> >I am writing a web application based on Struts and encountered a problem. 
> >When I ran it on Tomcat, I got the following exception:
> >java.lang.IllegalArgumentException: No bean specified
> > 
> >org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:837)
> > 
> >org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934)
> > org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
> > org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)
> > 
> >org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
> > 
> >org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
> > 
> >org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
> > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > 
> >org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
> > 
> >org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
> > 
> >org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
> > 
> >org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
> > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:810)I 
> > have correctly set the action mappings.
> >What are the possible causes of this exception?Any help is highly appreciated!
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>