File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Error creating form bean ... NPE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Error creating form bean ... NPE" Watch "Error creating form bean ... NPE" New topic

Error creating form bean ... NPE

Matt Tyson

Joined: Jun 29, 2006
Posts: 5
I'm getting this error from struts:

18:37:52,281 ERROR [RequestUtils] Error creating form bean of class webview.struts.form.QueueViewForm

I've tried recreating the project with a different package structure.

Here's the struts-config.xml (relavant parts, rest is empty):

<form-bean name="QueueViewForm" type="webview.struts.form.QueueViewForm" />



<action path="/QueueViewSetup"
scope="request" validate="true" input="/webpages/queueView/queueView.jsp" />


...And here's the very ambitious jsp:

<html:form action="/">


...And here's the form bean:

package webview.struts.form;

import org.apache.struts.action.ActionForm;

public class QueueViewForm extends ActionForm {


... And the action:

package webview.struts.action;
import org.apache.struts.action.Action;

public class QueueViewSetup extends Action {


Any suggestions? I've deployed a number of struts apps and never seen this. I'm in a new environment, and can't seem to get rid of it.

Thanks guys.
Matt Tyson

Joined: Jun 29, 2006
Posts: 5
Ok... got it. Didn't have my classes under WEB-INF/classes
I agree. Here's the link:
subject: Error creating form bean ... NPE
It's not a secret anymore!