This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes Problem in JSP compilation with Weblogic 6.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Problem in JSP compilation with Weblogic 6.1" Watch "Problem in JSP compilation with Weblogic 6.1" New topic
Author

Problem in JSP compilation with Weblogic 6.1

sahababu shah
Greenhorn

Joined: Apr 14, 2003
Posts: 1
Hi I have written a simple JSP page which is using a simple javabean using the <jsp:useBean> tag.I am using weblogic6.1 and kept the .jsp file under the DefaultWebApp folder and the corresponding class file(which is actually the bean)in
DefaultWebApp\
WEB-INF\
classes folder which is the right place.Now while I am trying to run the jsp using the URL http://localhost:7001/DefaultWebApp/hello.jsp it is throwing the servlet exception which shows the compilation error and that is basically due to not getting the bean class.
Could anyone show me some wayout?
Thanks in advance
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Your javabean is in the default package (ie no package) right? JSPs that use JavaBeans which do not have a package declaration (i.e. are in the default package) will not compile in WebLogic. Add a package declaration for your JavaBeans, add the necessary import statement, and recompile the JSP.
This is one of the few undocumented areas of the JSP Specifications and each Container handles it in their own way. Some Containers implicitly make the default package visible, others do not. For portability purposes (and maintainability) it is recommended that you always put your classes in a package.
 
 
subject: Problem in JSP compilation with Weblogic 6.1
 
Similar Threads
Running JSP in Weblogic 8.1 afer creating a NEW Domain.
New to Weblogic
what things in what serial?
how to deploy a .war file?
How to work with simple JSP files for deployment