I am creating a simple Struts application; I am getting following exception when I invoke a struts servlet.
javax.servlet.ServletException: Exception creating bean of class java.mybank.appl.CustomerForm: {1} org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl
Following are details of my code
struts-config.xml
class is apprpritately defined and in correct package. Can anyone help what can be posible cause?
Originally posted by Merrill Higginson: See question 9 of our FAQ.
Merril,
I in fact followed and verified all the four things, the name, spelling, class file existance, and public constructor. Every thing seems to be fine. There must be some very stupid mistake I may be making.. still sturggling.
Yes it is resolved. The whole Issue was that I was using "Java" in my package name. I think this is restricted!!! I didnt know this till now though I am working in java for some long time now.
The 'java' word in package was my doubt when I first saw your question , but I didn't dare to point, coz its looks fine, Why cant we create a sub package like java.util.myutil package, If This package is in my classpath, then whts the big issue ?
I think this is restricted by "Java" people. May be because if in future they need to have some package with exactly same name then the application will break. As they keep on releasing new versions so people should not create any package in their own projects which may contradict with any probable future package of java.
Originally posted by Himanshu Kapil: I think this is restricted by "Java" people. May be because if in future they need to have some package with exactly same name then the application will break. As they keep on releasing new versions so people should not create any package in their own projects which may contradict with any probable future package of java.