Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 10 Feb 2008 18:25:59 -0000 Issue 7855

user-digest-help

2008-02-10


Author LoginPost Reply

user Digest 10 Feb 2008 18:25:59 -0000 Issue 7855

Topics (messages 182398 through 182427):

Re: [Struts2.011] Best approach for limited view
 182398 by: Jeromy Evans

Re: Too Many Connection
 182399 by: Frans Thamura
 182400 by: Jeromy Evans

java.lang.NoClassDefFoundError for beanutils converter
 182401 by: hardc0d3r
 182403 by: Arpan Debroy
 182406 by: hardc0d3r
 182418 by: hardc0d3r
 182423 by: Antonio Petrelli
 182424 by: Dave Newton
 182426 by: Arpan Debroy

Re: using disabled attributes in <s:submit> tag
 182402 by: Arpan Debroy

Re: j4 and retrotranslator
 182404 by: Nils-Helge Garli Hegvik
 182405 by: Antonio Petrelli

how to know what error is displayed in jsp
 182407 by: hardc0d3r
 182408 by: Dave Newton
 182409 by: Antonio Petrelli
 182412 by: Laurie Harper

validation for <s:select> tag
 182410 by: Raghuveer Rawat

Re: What cd be wrong?
 182411 by: Nils-Helge Garli Hegvik

How to Default a value in dynamic list (s:select)
 182413 by: Raghuveer Rawat
 182414 by: Wes Wannemacher

[S2] GWT
 182415 by: hezjing
 182416 by: Frans Thamura
 182420 by: hezjing
 182421 by: Frans Thamura

Re: Struts 2 Validation issue
 182417 by: Jeromy Evans

STRUTS 2.0.9 File tag
 182419 by: Srikanth Muthyala
 182422 by: Jeromy Evans

OGNL kicks major butt!
 182425 by: stanlick.gmail.com
 182427 by: Dave Newton

Administrivia:

---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)

----------------------------------------------------------------------

Attachment: user_182398.ezm (zipped)
lbastil wrote:
> Please give me advices what would be the best approach in the struts 2 world
> to realize a limited view (authorization).
>
> In struts 1 I would have created a simple tag which is able to render it
> childs dependent on
> authorization of user, something like:
> <mytags:guard permission="write">
> ... some content ...
> </mytags:guard>
>
> Is there a better / more elegant / more flexible alternative in struts2?
>
> Thank you very much in advance
> Basti
>  
There's nothing better / more elegant / more flexible bundled with
struts 2. Your approach looks good.

I mainly use Tiles 2 for components within a page and many of these tags
include a role attribute equivalent to your permission attribute.

Attachment: user_182399.ezm (zipped)
hi there,

i am developing system using struts2, hibernate, and spring

and show off the error too many connection ,

and the error show off after there is 300 user log to the systme

can help anyone

F

Attachment: user_182400.ezm (zipped)
Hi Frans,

You need to isolate what there's too many connections to. Is it the
database, the http server or some other resource?

My wild "stab in the dark" is that you're using the Session In View
pattern with hibernate and a connection pool setup through spring. The
pool is probably exhausted and you need to increase a setting in the
pool's config (and perhaps match it in the database). It may also be
worthwhile to design out unintended/unused connections. eg. don't use
session-in-view on pages that don't need a hibernate session.

Struts 2 is probably not a contributing factor and when you've isolated
the problem you'll find better help in hibernate/spring's/others FAQ.

Apache JMeter may help too:
http://jakarta.apache.org/jmeter/

regards,
Jeromy

Frans Thamura wrote:
> hi there,
>
> i am developing system using struts2, hibernate, and spring
>
> and show off the error too many connection ,
>
> and the error show off after there is 300 user log to the systme
>
> can help anyone
>
> F
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
>
>  


Attachment: user_182401.ezm (zipped)

i get an error every time i acces a page that basically, registers a user
(insert to the database) but it still inserts the data in the database..
here is the error:

java.lang.NoClassDefFoundError: org/apache/commons/beanutils/Converter
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors (Class.java:2357)
    at java.lang.Class.getConstructor0 (Class.java:2671)
    at java.lang.Class.newInstance0 (Class.java:321)
    at java.lang.Class.newInstance (Class.java:303)
    at
org.apache.catalina.core.StandardWrapper.loadServlet (StandardWrapper.java:1055)
    at
org.apache.catalina.core.StandardWrapper.load (StandardWrapper.java:932)
    at
org.apache.catalina.core.StandardContext.loadOnStartup (StandardContext.java:3917)
    at
org.apache.catalina.core.StandardContext.start (StandardContext.java:4201)
    at
org.apache.catalina.core.ContainerBase.addChildInternal (ContainerBase.java:759)
    at
org.apache.catalina.core.ContainerBase.addChild (ContainerBase.java:739)
    at
org.apache.catalina.core.StandardHost.addChild (StandardHost.java:524)
    at
org.apache.catalina.startup.HostConfig.deployDescriptor (HostConfig.java:608)
    at
org.apache.catalina.startup.HostConfig.deployDescriptors (HostConfig.java:535)
    at
org.apache.catalina.startup.HostConfig.deployApps (HostConfig.java:470)
    at
org.apache.catalina.startup.HostConfig.start (HostConfig.java:1122)
    at
org.apache.catalina.startup.HostConfig.lifecycleEvent (HostConfig.java:310)
    at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (LifecycleSupport.java:119)
    at
org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1021)
    at
org.apache.catalina.core.StandardHost.start (StandardHost.java:718)
    at
org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1013)
    at
org.apache.catalina.core.StandardEngine.start (StandardEngine.java:442)
    at
org.apache.catalina.core.StandardService.start (StandardService.java:450)
    at
org.apache.catalina.core.StandardServer.start (StandardServer.java:709)
    at org.apache.catalina.startup.Catalina.start (Catalina.java:551)
    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:585)
    at org.apache.catalina.startup.Bootstrap.start (Bootstrap.java:294)
    at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:432)

i have read that this occurs when commons-beanutils.jar is not included in
the lib folder. I am using netbeans 5.5.1 as my ide and there is a wizard
that configures struts automatically. i checked the lib folder in WEB-INF
and all the jar files required are in the lib folder. what can be the
problem in my project?
--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_182403.ezm (zipped)
Can you share what are the jar files you have in your lib folder.

On Feb 9, 2008 11:06 AM, hardc0d3r <hardc0d3r@(protected):

>
> i get an error every time i acces a page that basically, registers a user
> (insert to the database) but it still inserts the data in the database..
> here is the error:
>
> java.lang.NoClassDefFoundError: org/apache/commons/beanutils/Converter
>     at java.lang.Class.getDeclaredConstructors0(Native Method)
>     at java.lang.Class.privateGetDeclaredConstructors (Class.java:2357)
>     at java.lang.Class.getConstructor0 (Class.java:2671)
>     at java.lang.Class.newInstance0 (Class.java:321)
>     at java.lang.Class.newInstance (Class.java:303)
>     at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java
> :1055)
>     at
> org.apache.catalina.core.StandardWrapper.load (StandardWrapper.java:932)
>     at
> org.apache.catalina.core.StandardContext.loadOnStartup(
> StandardContext.java:3917)
>     at
> org.apache.catalina.core.StandardContext.start (StandardContext.java:4201)
>     at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
> :759)
>     at
> org.apache.catalina.core.ContainerBase.addChild (ContainerBase.java:739)
>     at
> org.apache.catalina.core.StandardHost.addChild (StandardHost.java:524)
>     at
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java
> :608)
>     at
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
> :535)
>     at
> org.apache.catalina.startup.HostConfig.deployApps (HostConfig.java:470)
>     at
> org.apache.catalina.startup.HostConfig.start (HostConfig.java:1122)
>     at
> org.apache.catalina.startup.HostConfig.lifecycleEvent (HostConfig.java:310)
>     at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
> LifecycleSupport.java:119)
>     at
> org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1021)
>     at
> org.apache.catalina.core.StandardHost.start (StandardHost.java:718)
>     at
> org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1013)
>     at
> org.apache.catalina.core.StandardEngine.start (StandardEngine.java:442)
>     at
> org.apache.catalina.core.StandardService.start (StandardService.java:450)
>     at
> org.apache.catalina.core.StandardServer.start (StandardServer.java:709)
>     at org.apache.catalina.startup.Catalina.start (Catalina.java:551)
>     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:585)
>     at org.apache.catalina.startup.Bootstrap.start (Bootstrap.java:294)
>     at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:432)
>
> i have read that this occurs when commons-beanutils.jar is not included in
> the lib folder. I am using netbeans 5.5.1 as my ide and there is a wizard
> that configures struts automatically. i checked the lib folder in WEB-INF
> and all the jar files required are in the lib folder. what can be the
> problem in my project?
> --
> View this message in context:
> http://www.nabble.com/java.lang.NoClassDefFoundError-for-beanutils-converter-tp15368831p15368831.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment: user_182406.ezm (zipped)

antlr.jar
commons-beanutils.jar
commons-digester.jar
commons-fileupload.jar
commons-logging.jar
commons-validator.jar
jakarta-oro.jar
jstl.jar
mysql-connector-java-3.0.17-ga-bin.jar
standard.jar
struts.jar

xniit2003 wrote:
>
> Can you share what are the jar files you have in your lib folder.
>
> On Feb 9, 2008 11:06 AM, hardc0d3r <hardc0d3r@(protected):
>
>>
>> i get an error every time i acces a page that basically, registers a user
>> (insert to the database) but it still inserts the data in the database..
>> here is the error:
>>
>> java.lang.NoClassDefFoundError: org/apache/commons/beanutils/Converter
>>     at java.lang.Class.getDeclaredConstructors0(Native Method)
>>     at java.lang.Class.privateGetDeclaredConstructors (Class.java:2357)
>>     at java.lang.Class.getConstructor0 (Class.java:2671)
>>     at java.lang.Class.newInstance0 (Class.java:321)
>>     at java.lang.Class.newInstance (Class.java:303)
>>     at
>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java
>> :1055)
>>     at
>> org.apache.catalina.core.StandardWrapper.load (StandardWrapper.java:932)
>>     at
>> org.apache.catalina.core.StandardContext.loadOnStartup(
>> StandardContext.java:3917)
>>     at
>> org.apache.catalina.core.StandardContext.start (StandardContext.java:4201)
>>     at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
>> :759)
>>     at
>> org.apache.catalina.core.ContainerBase.addChild (ContainerBase.java:739)
>>     at
>> org.apache.catalina.core.StandardHost.addChild (StandardHost.java:524)
>>     at
>> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java
>> :608)
>>     at
>> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
>> :535)
>>     at
>> org.apache.catalina.startup.HostConfig.deployApps (HostConfig.java:470)
>>     at
>> org.apache.catalina.startup.HostConfig.start (HostConfig.java:1122)
>>     at
>> org.apache.catalina.startup.HostConfig.lifecycleEvent (HostConfig.java:310)
>>     at
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
>> LifecycleSupport.java:119)
>>     at
>> org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1021)
>>     at
>> org.apache.catalina.core.StandardHost.start (StandardHost.java:718)
>>     at
>> org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1013)
>>     at
>> org.apache.catalina.core.StandardEngine.start (StandardEngine.java:442)
>>     at
>> org.apache.catalina.core.StandardService.start (StandardService.java:450)
>>     at
>> org.apache.catalina.core.StandardServer.start (StandardServer.java:709)
>>     at org.apache.catalina.startup.Catalina.start (Catalina.java:551)
>>     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:585)
>>     at org.apache.catalina.startup.Bootstrap.start (Bootstrap.java:294)
>>     at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:432)
>>
>> i have read that this occurs when commons-beanutils.jar is not included
>> in
>> the lib folder. I am using netbeans 5.5.1 as my ide and there is a wizard
>> that configures struts automatically. i checked the lib folder in WEB-INF
>> and all the jar files required are in the lib folder. what can be the
>> problem in my project?
>> --
>> View this message in context:
>> http://www.nabble.com/java.lang.NoClassDefFoundError-for-beanutils-converter-tp15368831p15368831.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_182418.ezm (zipped)

Anyone? Please?

hardc0d3r wrote:
>
> antlr.jar
> commons-beanutils.jar
> commons-digester.jar
> commons-fileupload.jar
> commons-logging.jar
> commons-validator.jar
> jakarta-oro.jar
> jstl.jar
> mysql-connector-java-3.0.17-ga-bin.jar
> standard.jar
> struts.jar
>
> xniit2003 wrote:
>>
>> Can you share what are the jar files you have in your lib folder.
>>
>> On Feb 9, 2008 11:06 AM, hardc0d3r <hardc0d3r@(protected):
>>
>>>
>>> i get an error every time i acces a page that basically, registers a
>>> user
>>> (insert to the database) but it still inserts the data in the database..
>>> here is the error:
>>>
>>> java.lang.NoClassDefFoundError: org/apache/commons/beanutils/Converter
>>>     at java.lang.Class.getDeclaredConstructors0(Native Method)
>>>     at
>>> java.lang.Class.privateGetDeclaredConstructors (Class.java:2357)
>>>     at java.lang.Class.getConstructor0 (Class.java:2671)
>>>     at java.lang.Class.newInstance0 (Class.java:321)
>>>     at java.lang.Class.newInstance (Class.java:303)
>>>     at
>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java
>>> :1055)
>>>     at
>>> org.apache.catalina.core.StandardWrapper.load (StandardWrapper.java:932)
>>>     at
>>> org.apache.catalina.core.StandardContext.loadOnStartup(
>>> StandardContext.java:3917)
>>>     at
>>> org.apache.catalina.core.StandardContext.start (StandardContext.java:4201)
>>>     at
>>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
>>> :759)
>>>     at
>>> org.apache.catalina.core.ContainerBase.addChild (ContainerBase.java:739)
>>>     at
>>> org.apache.catalina.core.StandardHost.addChild (StandardHost.java:524)
>>>     at
>>> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java
>>> :608)
>>>     at
>>> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
>>> :535)
>>>     at
>>> org.apache.catalina.startup.HostConfig.deployApps (HostConfig.java:470)
>>>     at
>>> org.apache.catalina.startup.HostConfig.start (HostConfig.java:1122)
>>>     at
>>> org.apache.catalina.startup.HostConfig.lifecycleEvent (HostConfig.java:310)
>>>     at
>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
>>> LifecycleSupport.java:119)
>>>     at
>>> org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1021)
>>>     at
>>> org.apache.catalina.core.StandardHost.start (StandardHost.java:718)
>>>     at
>>> org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1013)
>>>     at
>>> org.apache.catalina.core.StandardEngine.start (StandardEngine.java:442)
>>>     at
>>> org.apache.catalina.core.StandardService.start (StandardService.java:450)
>>>     at
>>> org.apache.catalina.core.StandardServer.start (StandardServer.java:709)
>>>     at org.apache.catalina.startup.Catalina.start (Catalina.java:551)
>>>     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:585)
>>>     at
>>> org.apache.catalina.startup.Bootstrap.start (Bootstrap.java:294)
>>>     at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:432)
>>>
>>> i have read that this occurs when commons-beanutils.jar is not included
>>> in
>>> the lib folder. I am using netbeans 5.5.1 as my ide and there is a
>>> wizard
>>> that configures struts automatically. i checked the lib folder in
>>> WEB-INF
>>> and all the jar files required are in the lib folder. what can be the
>>> problem in my project?
>>> --
>>> View this message in context:
>>> http://www.nabble.com/java.lang.NoClassDefFoundError-for-beanutils-converter-tp15368831p15368831.html
>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>
>>
>>
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_182423.ezm (zipped)
2008/2/10, hardc0d3r <hardc0d3r@(protected)>:
>
> Anyone? Please?

Try to remove and republish your webapp. I don't see any obvious error
in your configuration.

Antonio

Attachment: user_182424.ezm (zipped)
Struts 1? Struts 2? I don't see anything Struts-related in the stack trace;
does this happen on any of the other app pages? Have you tried asking on a
NetBeans list since NetBeans configured your app?

--- hardc0d3r <hardc0d3r@(protected):
> Anyone? Please?
>
> hardc0d3r wrote:
> >
> > antlr.jar
> > commons-beanutils.jar
> > commons-digester.jar
> > commons-fileupload.jar
> > commons-logging.jar
> > commons-validator.jar
> > jakarta-oro.jar
> > jstl.jar
> > mysql-connector-java-3.0.17-ga-bin.jar
> > standard.jar
> > struts.jar
> >
> > xniit2003 wrote:
> >>
> >> Can you share what are the jar files you have in your lib folder.
> >>
> >> On Feb 9, 2008 11:06 AM, hardc0d3r <hardc0d3r@(protected):
> >>
> >>>
> >>> i get an error every time i acces a page that basically, registers a
> >>> user
> >>> (insert to the database) but it still inserts the data in the
> database..
> >>> here is the error:
> >>>
> >>> java.lang.NoClassDefFoundError: org/apache/commons/beanutils/Converter
> >>>     at java.lang.Class.getDeclaredConstructors0(Native Method)
> >>>     at
> >>> java.lang.Class.privateGetDeclaredConstructors (Class.java:2357)
> >>>     at java.lang.Class.getConstructor0 (Class.java:2671)
> >>>     at java.lang.Class.newInstance0 (Class.java:321)
> >>>     at java.lang.Class.newInstance (Class.java:303)
> >>>     at
> >>>
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java
> >>> :1055)
> >>>     at
> >>> org.apache.catalina.core.StandardWrapper.load (StandardWrapper.java:932)
> >>>     at
> >>> org.apache.catalina.core.StandardContext.loadOnStartup(
> >>> StandardContext.java:3917)
> >>>     at
> >>>
> org.apache.catalina.core.StandardContext.start (StandardContext.java:4201)
> >>>     at
> >>>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
> >>> :759)
> >>>     at
> >>> org.apache.catalina.core.ContainerBase.addChild (ContainerBase.java:739)
> >>>     at
> >>> org.apache.catalina.core.StandardHost.addChild (StandardHost.java:524)
> >>>     at
> >>> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java
> >>> :608)
> >>>     at
> >>>
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
> >>> :535)
> >>>     at
> >>> org.apache.catalina.startup.HostConfig.deployApps (HostConfig.java:470)
> >>>     at
> >>> org.apache.catalina.startup.HostConfig.start (HostConfig.java:1122)
> >>>     at
> >>>
> org.apache.catalina.startup.HostConfig.lifecycleEvent (HostConfig.java:310)
> >>>     at
> >>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
> >>> LifecycleSupport.java:119)
> >>>     at
> >>> org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1021)
> >>>     at
> >>> org.apache.catalina.core.StandardHost.start (StandardHost.java:718)
> >>>     at
> >>> org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1013)
> >>>     at
> >>> org.apache.catalina.core.StandardEngine.start (StandardEngine.java:442)
> >>>     at
> >>>
> org.apache.catalina.core.StandardService.start (StandardService.java:450)
> >>>     at
> >>> org.apache.catalina.core.StandardServer.start (StandardServer.java:709)
> >>>     at org.apache.catalina.startup.Catalina.start (Catalina.java:551)
> >>>     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:585)
> >>>     at
> >>> org.apache.catalina.startup.Bootstrap.start (Bootstrap.java:294)
> >>>     at
> org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:432)
> >>>
> >>> i have read that this occurs when commons-beanutils.jar is not included
> >>> in
> >>> the lib folder. I am using netbeans 5.5.1 as my ide and there is a
> >>> wizard
> >>> that configures struts automatically. i checked the lib folder in
> >>> WEB-INF
> >>> and all the jar files required are in the lib folder. what can be the
> >>> problem in my project?
> >>> --
> >>> View this message in context:
> >>>
>
http://www.nabble.com/java.lang.NoClassDefFoundError-for-beanutils-converter-tp15368831p15368831.html
> >>> Sent from the Struts - User mailing list archive at Nabble.com.
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: user-unsubscribe@(protected)
> >>> For additional commands, e-mail: user-help@(protected)
> >>>
> >>>
> >>
> >>
> >
> >
>
> --
> View this message in context:
>
http://www.nabble.com/java.lang.NoClassDefFoundError-for-beanutils-converter-tp15368831p15395076.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


Attachment: user_182426.ezm (zipped)
I guess you can try to add "commons-beanutils-core.jar" file and check
again..

On Feb 9, 2008 4:40 PM, hardc0d3r <hardc0d3r@(protected):

>
> antlr.jar
> commons-beanutils.jar
> commons-digester.jar
> commons-fileupload.jar
> commons-logging.jar
> commons-validator.jar
> jakarta-oro.jar
> jstl.jar
> mysql-connector-java-3.0.17-ga-bin.jar
> standard.jar
> struts.jar
>
> xniit2003 wrote:
> >
> > Can you share what are the jar files you have in your lib folder.
> >
> > On Feb 9, 2008 11:06 AM, hardc0d3r <hardc0d3r@(protected):
> >
> >>
> >> i get an error every time i acces a page that basically, registers a
> user
> >> (insert to the database) but it still inserts the data in the
> database..
> >> here is the error:
> >>
> >> java.lang.NoClassDefFoundError: org/apache/commons/beanutils/Converter
> >>     at java.lang.Class.getDeclaredConstructors0(Native Method)
> >>     at java.lang.Class.privateGetDeclaredConstructors(Class.java
> :2357)
> >>     at java.lang.Class.getConstructor0 (Class.java:2671)
> >>     at java.lang.Class.newInstance0 (Class.java:321)
> >>     at java.lang.Class.newInstance (Class.java:303)
> >>     at
> >> org.apache.catalina.core.StandardWrapper.loadServlet(
> StandardWrapper.java
> >> :1055)
> >>     at
> >> org.apache.catalina.core.StandardWrapper.load (StandardWrapper.java:932)
> >>     at
> >> org.apache.catalina.core.StandardContext.loadOnStartup(
> >> StandardContext.java:3917)
> >>     at
> >> org.apache.catalina.core.StandardContext.start(StandardContext.java
> :4201)
> >>     at
> >> org.apache.catalina.core.ContainerBase.addChildInternal(
> ContainerBase.java
> >> :759)
> >>     at
> >> org.apache.catalina.core.ContainerBase.addChild (ContainerBase.java:739)
> >>     at
> >> org.apache.catalina.core.StandardHost.addChild (StandardHost.java:524)
> >>     at
> >> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java
> >> :608)
> >>     at
> >> org.apache.catalina.startup.HostConfig.deployDescriptors(
> HostConfig.java
> >> :535)
> >>     at
> >> org.apache.catalina.startup.HostConfig.deployApps (HostConfig.java:470)
> >>     at
> >> org.apache.catalina.startup.HostConfig.start (HostConfig.java:1122)
> >>     at
> >> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
> :310)
> >>     at
> >> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
> >> LifecycleSupport.java:119)
> >>     at
> >> org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1021)
> >>     at
> >> org.apache.catalina.core.StandardHost.start (StandardHost.java:718)
> >>     at
> >> org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1013)
> >>     at
> >> org.apache.catalina.core.StandardEngine.start (StandardEngine.java:442)
> >>     at
> >> org.apache.catalina.core.StandardService.start(StandardService.java
> :450)
> >>     at
> >> org.apache.catalina.core.StandardServer.start (StandardServer.java:709)
> >>     at org.apache.catalina.startup.Catalina.start (Catalina.java:551)
> >>     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:585)
> >>     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java
> :294)
> >>     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java
> :432)
> >>
> >> i have read that this occurs when commons-beanutils.jar is not included
> >> in
> >> the lib folder. I am using netbeans 5.5.1 as my ide and there is a
> wizard
> >> that configures struts automatically. i checked the lib folder in
> WEB-INF
> >> and all the jar files required are in the lib folder. what can be the
> >> problem in my project?
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/java.lang.NoClassDefFoundError-for-beanutils-converter-tp15368831p15368831.html
> >> Sent from the Struts - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@(protected)
> >> For additional commands, e-mail: user-help@(protected)
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/java.lang.NoClassDefFoundError-for-beanutils-converter-tp15368831p15370582.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment: user_182402.ezm (zipped)
I have a problem in Internet Explorer. The disabled elements are not grayed
up.
Have anybody faced the similar situation.

On Feb 8, 2008 7:46 PM, Okan Özeren <okanozeren@(protected):

> Hi,
>
> This is a bug for old version of strust 2, but fixed on 2.0.8 version.
>
> You should create a solution with javascript. Presumably your js function
> is
> wrong.
> Probably your tag name is wrong. You should look its source code on
> browser
> for tags real name.
>
> Okan.
>
> On Feb 8, 2008 3:32 PM, Johnson nickel <saravanan@(protected):
>
> >
> > Hi all,
> >
> >       How to use enable and disable attributes in <s:submit
> > value="save" method="save" name="savebutton" disabled="true"> but it's
> not
> > working.
> >
> >  what wrong with this, i tried onclick event using html drop down
> > <select name="user_id" size="9" STYLE="width:-300px" align="left"
> > onclick="javascript:enable();"> .
> >
> > // Javascript function
> >
> > function enable()
> > {
> > formname.savebutton.disabled="true"
> > }
> >
> >   Give me a suggestion for this problem.
> >
> > Regards,
> > Johnson
> > --
> > View this message in context:
> >
> http://www.nabble.com/using-disabled-attributes-in-%3Cs%3Asubmit%3E-tag-tp15355261p15355261.html
> > Sent from the Struts - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>

Attachment: user_182404.ezm (zipped)
Yeah, I had the same problem trying to build a struts 2 portlet for
WebSphere 5.1. I found that I had to downgrade the retrotranslator
plugin to version 1.0-alpha-2, I think it was.

Nils-H

On Feb 9, 2008 12:13 AM, Brian Relph <relphie@(protected):
> Has anyone built a java 1.4 compatible struts2 application with maven2 using
> the translated jars? I installed the j4 struts2-core and xwork jars in my
> repository. But, I am still this error when installing my project using
> maven:
>
> ...
> INFO] war:war
> [INFO] Packaging webapp
> [INFO] Assembling webapp[healthe-user-claim-portlet] in
> [C:\workspaces\hin-portal-test\healthe-user-claim-portlet\target\healthe-
> user-claim-portlet-1.1.0-SNAPSHOT]
> [INFO] Processing war project
> [INFO] Webapp assembled in[266 msecs]
> [INFO] Building war:
> C:\workspaces\hin-portal-test\healthe-user-claim-portlet\target\healthe-
> user-claim-portlet-1.1.0-SNAPSHOT.war
> [INFO] source:jar
> [INFO] Building jar:
> C:\workspaces\hin-portal-test\healthe-user-claim-portlet\target\healthe-
> user-claim-portlet-1.1.0-SNAPSHOT-sources.jar
> [INFO] retrotranslator:translate-war
> [INFO]
> ----------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] java.lang.String incompatible with java.lang.Boolean
> ...
>
> Here are the relevant parts of my pom.xml:
>
> ...
> <!-- Struts 2 -->
> <dependency>
>  <groupId>org.apache.struts</groupId>
>  <artifactId>struts2-core-j4</artifactId>
>  <version>2.0.11</version>
> </dependency>
>
> <dependency>
>  <groupId>com.opensymphony</groupId>
>  <artifactId>xwork-j4</artifactId>
>  <version>2.0.4</version>
> </dependency>
>
> <dependency>
>  <groupId>org.apache.struts</groupId>
>  <artifactId>struts2-spring-plugin</artifactId>
>  <version>2.0.11</version>
>  <exclusions>
>   <exclusion>
>     <groupId>javax.servlet</groupId>
>     <artifactId>servlet-api</artifactId>
>   </exclusion>
>   <exclusion>
>     <groupId>org.apache.struts</groupId>
>     <artifactId>struts2-core</artifactId>
>   </exclusion>
>  </exclusions>
> </dependency>
> ...
> ...
> <plugin>
>  <groupId>org.codehaus.mojo</groupId>
>  <artifactId>retrotranslator-maven-plugin</artifactId>
>  <executions>
>   <execution>
>     <goals>
>      <goal>translate-war</goal>
>     </goals>
>     <configuration>
>      <classifier>jdk1.4</classifier>
>      <attach>true</attach>
>     </configuration>
>   </execution>
>  </executions>
> </plugin>
> ...
>
> Any suggestions?
> --
> Brian
>

Attachment: user_182405.ezm (zipped)
2008/2/9, Brian Relph <relphie@(protected)>:
> <dependency>
>  <groupId>org.apache.struts</groupId>
>  <artifactId>struts2-core-j4</artifactId>
>  <version>2.0.11</version>
> </dependency>
>
> <dependency>
>  <groupId>com.opensymphony</groupId>
>  <artifactId>xwork-j4</artifactId>
>  <version>2.0.4</version>
> </dependency>

Are retrotranslated packages deployed in the repository? I thought
that the deployment was made only for 2.1.x package (I remember it
since I did it :-) )

Antonio

Attachment: user_182407.ezm (zipped)

in a form or action class, you can set an ActionError or ActionMessage. i am
wondering if there is a way in jsp that i can know what error occurred in
the validation. for example, the username field is left blank so i will add
it to the errors. i want to be able to highlight that field so that the user
can notice it immediately..
--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_182408.ezm (zipped)
What version of Struts?

--- hardc0d3r <hardc0d3r@(protected):

>
> in a form or action class, you can set an ActionError or ActionMessage. i
> am
> wondering if there is a way in jsp that i can know what error occurred in
> the validation. for example, the username field is left blank so i will add
> it to the errors. i want to be able to highlight that field so that the
> user
> can notice it immediately..
> --
> View this message in context:
>
http://www.nabble.com/how-to-know-what-error-is-displayed-in-jsp-tp15371901p15371901.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


Attachment: user_182409.ezm (zipped)
2008/2/9, hardc0d3r <hardc0d3r@(protected)>:
>
> in a form or action class, you can set an ActionError or ActionMessage. i am
> wondering if there is a way in jsp that i can know what error occurred in
> the validation. for example, the username field is left blank so i will add
> it to the errors. i want to be able to highlight that field so that the user
> can notice it immediately..

Use <html:messages>:
http://struts.apache.org/1.3.8/struts-taglib/tlddoc/html/messages.html

Antonio

Attachment: user_182412.ezm (zipped)
Antonio Petrelli wrote:
> 2008/2/9, hardc0d3r <hardc0d3r@(protected)>:
>> in a form or action class, you can set an ActionError or ActionMessage. i am
>> wondering if there is a way in jsp that i can know what error occurred in
>> the validation. for example, the username field is left blank so i will add
>> it to the errors. i want to be able to highlight that field so that the user
>> can notice it immediately..
>
> Use <html:messages>:
> http://struts.apache.org/1.3.8/struts-taglib/tlddoc/html/messages.html
>
> Antonio

Or, even easier if you just want to highlight fields that have errors,
is to use one of the errorStyle/errorStyleClass/errorStyleId attributes
to associate appropriate CSS rules with that input.

http://struts.apache.org/1.3.8/struts-taglib/tagreference.html#text

L.


Attachment: user_182410.ezm (zipped)
Hi, I need help for mandatory field validation for s:select.
I am trying to do client side xml validation.

jsp code for country list:

<s:select name="user.country" headerKey="-1" headerValue="Select Country"
                  list="countryList" listKey="code"
listValue="name" required="true" />

I tried with below validation code but it is not working.. Not sure what
will be other approach..

<field name="user.country">
    <field-validator type="fieldexpression">
       <param name="expression"><![CDATA[user.country ==
'-1']]></param>
        <message key="required.country"></message>
    </field-validator>
  </field>

Thanks a lot...

Attachment: user_182411.ezm (zipped)
Have you remembered the "oldName" hidden field in the edit form? And
have you tried downloading the source for the tutorial and see if you
get the same behaviour with it?

Nils-H

On Feb 8, 2008 8:28 PM, Sam Karl <samckarl@(protected):
> Hi,
>
>      I'm new to struts and portlets. I tried out the this tutorial as a
> start.
>
>       http://struts.apache.org/2.x/docs/struts-2-portlet-tutorial.html
>
> After implementing all functionalities described in that tutorial, the
> "editBookMark" option doesn't work. I get the following exception when I
> try to edit the newly added link
>
> javax.portlet.PortletException: Error executing action editBookmark
>
> Caused by: java.lang.IllegalArgumentException: Null object: Preference key
>
>
>
> My EditBookmarkAction class does implement PortletPreferencesAware and has a
> setter for the preference and everything. So I'm guessing the reason is the
> edit action class gets called before it loads the jsp if that makes sense.
> But I'm not sure how to fix it :) Or is it a different issue? Could any one
> shed some light on that?
>
>
> Thanks,
> Sam
>

Attachment: user_182413.ezm (zipped)
Hi, How to make a value as default value in a dynamic list s:select?
Below code display a List of Countries sorted by Country Name so country
name with letter a comes first but I want USA as default country.
How to do that?

<s:select name="user.country" headerKey="-1" headerValue="Select Country"
                  list="countryList" listKey="code"
listValue="name" required="true" />

Thanks...

Attachment: user_182414.ezm (zipped)
Use the 'value=""' attribute. Assuming the name/value is USA/USA, then
the following might work -

<s:select name="user.country" headerKey="-1"
 headerValue="Select Country" list="countryList" listKey="code"  
 listValue="name" required="true" value="USA" />

I believe 'value=' can take an OGNL expression if you want it a bit more
dynamic.

-Wes

On Sat, 2008-02-09 at 15:48 -0500, Raghuveer Rawat wrote:
> Hi, How to make a value as default value in a dynamic list s:select?
> Below code display a List of Countries sorted by Country Name so country
> name with letter a comes first but I want USA as default country.
> How to do that?
>
> <s:select name="user.country" headerKey="-1" headerValue="Select Country"
>                   list="countryList" listKey="code"
> listValue="name" required="true" />
>
> Thanks...


Attachment: user_182415.ezm (zipped)
Hi

Is there any Struts2 + GWT tutorials/articles beside
http://cwiki.apache.org/WW/struts-2-gwt.html?
I need to read more comprehensive tutorials.

What is your experience in using Struts2 + GWT?


--

Hez

Attachment: user_182416.ezm (zipped)
but the plugins is not stable

i have a good thing

www.gwt-ext.com

and i am glad if this code can integrated with struts2

F

On Feb 10, 2008 8:06 AM, hezjing <hezjing@(protected):
> Hi
>
> Is there any Struts2 + GWT tutorials/articles beside
> http://cwiki.apache.org/WW/struts-2-gwt.html?
> I need to read more comprehensive tutorials.
>
> What is your experience in using Struts2 + GWT?
>
>
> --
>
> Hez
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>



--
--
Frans Thamura
Meruvian
Redefining Civilization
Indonesia

World First Education, Online, Consulting, and Franchisee Integration Center

Mobile: +62 855 7888 699
Skype: fthamura
YM: fthamura@(protected)
GoogleTalk: frans@(protected)
MSN: fthamura@(protected)

Sun Java Champion
Oracle Ace Director
JEDI Indonesia / JENI Team
JUG Indonesia Founder

Blogs:
http://www.jroller.com/fthamura (English)
http://www.nagasakti.or.id/roller/page/fthamura (Indonesia : Motivation Blog

Linkedin: http://www.linkedin.com/in/fthamura

Attachment: user_182420.ezm (zipped)
Which Struts2's AJAX plugin is stable?
The Dojo plugin is a stable one (I saw many Dojo plugin questions in
the mailing list)?


On Feb 10, 2008 9:13 AM, Frans Thamura <frans@(protected):
> but the plugins is not stable
>
> i have a good thing
>
> www.gwt-ext.com
>
> and i am glad if this code can integrated with struts2
>
> F
>
>
> On Feb 10, 2008 8:06 AM, hezjing <hezjing@(protected):
> > Hi
> >
> > Is there any Struts2 + GWT tutorials/articles beside
> > http://cwiki.apache.org/WW/struts-2-gwt.html?
> > I need to read more comprehensive tutorials.
> >
> > What is your experience in using Struts2 + GWT?
> >
> >
> > --
> >
> > Hez
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
>
>
> --
> --
> Frans Thamura
> Meruvian
> Redefining Civilization
> Indonesia
>
> World First Education, Online, Consulting, and Franchisee Integration Center
>
> Mobile: +62 855 7888 699
> Skype: fthamura
> YM: fthamura@(protected)
> GoogleTalk: frans@(protected)
> MSN: fthamura@(protected)
>
> Sun Java Champion
> Oracle Ace Director
> JEDI Indonesia / JENI Team
> JUG Indonesia Founder
>
> Blogs:
> http://www.jroller.com/fthamura (English)
> http://www.nagasakti.or.id/roller/page/fthamura (Indonesia : Motivation Blog
>
> Linkedin: http://www.linkedin.com/in/fthamura
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>



--

Hez

Attachment: user_182421.ezm (zipped)
On Feb 10, 2008 8:43 PM, hezjing <hezjing@(protected):
> Which Struts2's AJAX plugin is stable?

gwt is not 1.0, is it stable?

F

Attachment: user_182417.ezm (zipped)
If <s:property> if failing to show any data this can only mean the data
is blank (unlikely) or the object is not available on the Value Stack.
If we look at your two use cases:
Case 1.data is posted to your application, the params are set in your
action and your action is invoked. Your code in the action validates
the values and sets an actionError. You return a result and the JSP is
rendered including the user data and validation data. Everything is fine.

Case 2. data is posted to your application, the params are set in your
action and the xml validation interceptor is invoked. The interceptor
validates the values, sets an actionError and returns the input result.
The JSP is rendered including the validation data but the user data is
blank.

The key difference is that in case 2 your action is never invoked so the
user data is never prepared/loaded for the JSP. Clearly you need some
way to ensure the user data is loaded without actually invoking action.
One such approach is to use the "Prepare Interceptor" [1] that is
typically invoked prior to validation.

The key issue to understand is that if validation fails within the
interceptor your action is instantiated but not invoked. You have to
ensure that when your result calls the getter the data is available to it.

Hope that helps,
Jeromy Evans

[1] http://struts.apache.org/2.x/docs/prepare-interceptor.html
[2] http://struts.apache.org/2.x/docs/interceptors.html

dfaulcon wrote:
> I have an interesting problem that I'm dealing with in regards to struts 2
> validation. I have XML validation setup throughout my application that
> appear to work fine. The validation returns the appropriate error messages
> when needed. However I have a user object that is created when a person
> logs into this application. This object contains their login, business,
> etc. When any page loads the business name and login are displayed at the
> top of the page. The code snippet below shows how I'm displaying the user
> information using the property tag:
>      <s:property value="user.getBusiness()"/><br />
>   User: <s:property value="user.getLogin()"/> </td>
>
> However when a user is returned to that page due to an error caught by the
> validation logic the "user" information is never displayed. In my action
> form the "user" object has getter and setter methods defined. If I validate
> any data in the action class and set the actionError the error message is
> displayed along with the user object information. Is there anything I
> missed why the "user" object information will now show up when  XML
> validation is used? Thanks.
>
>  


Attachment: user_182419.ezm (zipped)
Hi,

Can anybody tell me how to disable the manual typing of file name for File
tag, only allow 'Browse" button. Thanks.

Regards,
 
Srikanth



Attachment: user_182422.ezm (zipped)
Srikanth Muthyala wrote:
> Can anybody tell me how to disable the manual typing of file name for File
> tag, only allow 'Browse" button. Thanks.
>
>  
Unfortunately you don't have much control over it. Perhaps you could add
an onkeypress event listener that blocks typed input.
See here:
http://www.quirksmode.org/dom/inputfile.html

Attachment: user_182425.ezm (zipped)
This might be old hat for some of you, but I recently had a scenario where
OGNL made the solution sweet!

Check it out! <http://strutsschool.com//util/blog.action>


--
Scott
stanlick@(protected)

Attachment: user_182427.ezm (zipped)
--- stanlick@(protected):
> This might be old hat for some of you, but I recently had a scenario where
> OGNL made the solution sweet!
>
> Check it out! <http://strutsschool.com//util/blog.action>

I might classify that as type conversion rather than OGNL, since there isn't
any OGNL involved.

Dave

©2008 gg3721.com - Jax Systems, LLC, U.S.A.