• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP + bean on Tomcat

 
Vladimir Kositsky
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I am trying to run example of using bean with JSPI on Tomcat.
file structure:
ProJavaServer/sample3/
ProJavaServer/sample3/beans.html
ProJavaServer/sample3/beans.jsp
ProJavaServer/sample3/src
ProJavaServer/sample3/src/LanguageBean.java
ProJavaServer/sample3/WEB-INF
ProJavaServer/sample3/WEB-INF/classes
directory/WEB-INF/classes/LanguageBean.class
2001-05-14 10:21:27 - Ctx( /ProJavaServer ): JasperException: R( /ProJavaServer
+ /sample3/beans.jsp + null) Unable to load class LanguageBean

I can not recognize the problem, any help will be appreciated
V
 
Vladimir Kositsky
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I wiil try to ask this question in more particular way.
I'd like to try using JSP + bean with some logic for implementation. It is simple example so probably Tomcat
is good enough.
I created ProJavaServer directory and placed .jsp file, created ProJavaServer\WEB-INF\classes directory and
placed compiled bean there.
In %TOMCAT_HOME%/conf/server.xml i added:
<Context path="/ProJavaServer"<br /> docBase="c:\WORK/ProJavaServer">
</Context>
I run successfully examples that not included beans, so path and other settings hopefully installed properly.
To exclude typo i downloaded example from coreservlets.com
And it does not work.
^
C:\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fStringBean_0002ejspStrin
gBean_jsp_0.java:105: Class jsp.StringBean not found.
out.print(JspRuntimeLibrary.toString((((StringBean)pageContext.f
indAttribute("stringBean")).getMessage())));
I look for advice how to place my files to make it work.
Thanks in advance
Vladimir

 
Vladimir Kositsky
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I wiil try to ask this question in more particular way.
I'd like to try using JSP + bean with some logic for implementation. It is simple example so probably Tomcat
is good enough.
I created ProJavaServer directory and placed .jsp file, created ProJavaServer\WEB-INF\classes directory and
placed compiled bean there.
In %TOMCAT_HOME%/conf/server.xml i added:
<Context path="/ProJavaServer"<br /> docBase="c:\WORK/ProJavaServer">
</Context>
I run successfully examples that not included beans, so path and other settings hopefully installed properly.
To exclude typo i downloaded example from coreservlets.com
And it does not work.
^
C:\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fStringBean_0002ejspStrin
gBean_jsp_0.java:105: Class jsp.StringBean not found.
out.print(JspRuntimeLibrary.toString((((StringBean)pageContext.f
indAttribute("stringBean")).getMessage())));
I look for advice how to place my files to make it work.
Thanks in advance
Vladimir

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic