RE: Class not found problem with simple jsp

2006-10-09 Thread Caldarale, Charles R
> From: Divick Kishore [mailto:[EMAIL PROTECTED] > Subject: Re: Class not found problem with simple jsp > > I am still wondering why at all should a class without > a package cannot be loaded by tomcat? Because packages are required by the spec. Quoting from JSP.11.2: "

Re: Class not found problem with simple jsp

2006-10-09 Thread David Smith
If I remember right, classes in packages has been a requirement since tomcat 3.3. Overall it's just better coding practice to use packages. There have been cases -- notably servlets that could get away without a package, but that's as far as it goes. --David Divick Kishore wrote: >>It's hi

Re: Class not found problem with simple jsp

2006-10-09 Thread Divick Kishore
>>It's highly recommended that all classes be in packages. This may be your problem. Wow that solves my problem. I thought that running without package would be more simpler but it turned up other way round. I am still wondering why at all should a class without a package cannot be loaded by to

RE: Class not found problem with simple jsp

2006-10-09 Thread Caldarale, Charles R
> From: Divick Kishore [mailto:[EMAIL PROTECTED] > Subject: Class not found problem with simple jsp > > I have a directory structure like this : > > webapps/wm/test.jsp > webapps/WEB-INF/web.xml > webapps/WEB-INF/classes/DBTest.class Is that really your structure? Or did you leave out the wm d

Re: Class not found problem with simple jsp

2006-10-09 Thread David Smith
It's highly recommended that all classes be in packages. This may be your problem. Add 'package mycompany.myproject ;' to your class source, recompile, and then place the resulting .class file in WEB-INF/classes/mycompany/myproject. Restart your webapp and see if that resolves the issue.