aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes JSP + bean on Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JSP + bean on Tomcat" Watch "JSP + bean on Tomcat" New topic
Author

JSP + bean on Tomcat

Vladimir Kositsky
Ranch Hand

Joined: Nov 03, 2000
Posts: 116
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

Joined: Nov 03, 2000
Posts: 116
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

Joined: Nov 03, 2000
Posts: 116
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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP + bean on Tomcat
 
Similar Threads
JSP+bean
unable to compile class for jsp
[JBoss 6.0.0 M2 (soon)] EJB 3.1 and JSF : NoInterfaceProxy error
Tomcat settings
Deployment Environment