Hi all,
I'm fairly new to JSP and my Java is a bit sharper, but here is the problem I have. When called from a tester class on the console, the class "Catalog" compiles and runs fine. However, when I try to put this into a JSP Page, it throws an InstantiationException. By the API's explanation, this occurs when the class being instantiated is abstract, or is an interface. Clearly, this is not the case, as it works fine from the command line. Can anyone provide insight as to why this is happening? How can I fix this?
I am using JRun 3.1 on a Win2k box.
I'm fairly new to JSP and my Java is a bit sharper, but here is the problem I have. When called from a tester class on the console, the class "Catalog" compiles and runs fine. However, when I try to put this into a JSP Page, it throws an InstantiationException. By the API's explanation, this occurs when the class being instantiated is abstract, or is an interface. Clearly, this is not the case, as it works fine from the command line. Can anyone provide insight as to why this is happening? How can I fix this?
I am using JRun 3.1 on a Win2k box.
Code:
java.lang.InstantiationException: Catalog
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Unknown Source)
at allaire.jrun.jsp.JRunJSPStaticHelpers.createBean(../jsp/JRunJSPStaticHelpers.java:246)
at allaire.jrun.jsp.JRunJSPStaticHelpers.getAndSetBean(../jsp/JRunJSPStaticHelpers.java:196)
at jrun__CatTest2ejspc._jspService(jrun__CatTest2ejspc.java:46)
at allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:39)
at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:228)
at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:196)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416)
at allaire.jrun.session.JRunSessionService.service(../session/JRunSessionService.java:1082)
at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270)
at allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDispatcher.java:89)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542)
at allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364)
at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115)
at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)