You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nicolas De Loof <ni...@capgemini.com> on 2004/11/29 11:03:50 UTC
[SOLVED] Re: IllegalAccessException using trivial formbean
Solved !
I used a struts-1.2.6 jar i compiled myself. Replacing it with binary dist makes my app work.
Don't know where I failed building struts jar...
Nico.
>
> Heloo,
>
> I'm getting strange troubles on my webapp and I've set a minimalist webapp to test it :
>
> 1 action "/logon" & 1 for "LogonForm" with 2 fields "username" & "password".
> Struts 1.2.6 without any plugin
>
> - If I use DynaForm for my formbean, my (trivial) jsp runs fine and displays the HTML form.
>
> - If I try to use a java class as formbean, I get :
>
> java.lang.IllegalAccessException: Class org.apache.struts.config.FormBeanConfig can not access a member of class
> com.capgemini.map.webapp.beans.LogonForm with modifiers ""
> at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:57)
> at java.lang.Class.newInstance0(Class.java:302)
> at java.lang.Class.newInstance(Class.java:261)
> at org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:212)
>
> Notice my formbean is a simple POJO extending ActionForm !
>
> I really don't know where to search (I've allready re-installed eclipse and JDK)
>
> Please, HELP !
>
> Nico.
>
>
>
>
> login.jsp :
> <!DOCTYPE html
> PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %>
> <html:html>
> <div class="login">
> <html:form action="logon" method="post">
> login : <html:text property="username"/>
> <br />
> password : <html:password property="password"/>
> <br />
> <input type="submit" value="Login"/>
> </html:form>
> </div>
> </html:html>
>
>
> This message contains information that may be privileged or confidential and is the property of the Capgemini Group.
It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not
authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you
receive this message in error, please notify the sender immediately and delete all copies of this message.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org