This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I'm running Tomcat 3.2.3 on windows NT. I'm trying to instantiate a class using the jsp:useBean tag. It seems to work fine with other classes I have made but this one keeps giving me a ServletException: cannot create bean of class . . . Anyone of you smart people know what might cause this?
!_I_Know_Kung_Fu_!
Andrew Shafer
Ranch Hand
Joined: Jan 19, 2001
Posts: 338
posted
0
I thought I could be cute and just instantiate the class, but now I get a ServletException being caused by a java.lang.SecurityException: sealing violation So there must be some deeper problem, I'll keep digging.
Andrew: ...instantiate a class using the jsp:useBean tag... FYI... If you are using the type attribute you cannot instantiate a bean. Hopefully you are using the class attribute of the usebean tag. just thought I will mention it... regds. - satya
Also, if you declared a constructor in your bean class with any number of arguments and forgot to explicitly define one no-argument constructor, then the JSP engine won't be able to instantiate a bean if the bean is not already in the desired scope.
Tony Alicea Senior Java Web Application Developer, SCPJ2, SCWCD