Hello Bo,
Thank you for very helpful sample.
I decided to use jsp instead of servlets.
Several reasons:
1. My ClassCastException situation is eliminated. Although I don't
understand why.
2. I use JSP for presentation("view") layer - so any web-designer can change
presentation of data.
3. I use
Hello Bo,
BX> * can you post the code of your StatesBean? and
BX> the version of TOMCAT? because I also want to
BX> know why :-)
Tomcat 3.2.1
--
Best regards,
Andreymailto:[EMAIL PROTECTED]
Hello Bo,
Thursday, March 15, 2001, 1:31:56 PM, you wrote:
BX> Andrey Myatlyuk wrote:
>> [...]
>> I have my StatesBean loaded by SystemClassLoader. OK.
>> MyServlet by WebAppLoader. Good.
>>
>> So when WebAppLoader reloads my servlet it should ask its parents
>> about loaded class. Ang guess wh
Hello Vladimir,
Thursday, March 15, 2001, 12:25:24 PM, you wrote:
VG> What you describe should work... Unless Tomcat web-app CL doesn't
VG> adhere to standard CL delegation rules. Where did you put your classes?
VG> I think $TOMCAT_HOME/classes is automatically appended to system classpath
VG> b
I ran into the same problem and found the only good solution was to take
a look at my custom classes and strip away what was "custom" about them
and only save core Java objects to the context. When I need my custom
class, I create an instance of it and pass the references to the core
Java objects
Hello Vladimir,
Thank you for your help with classloaders. :)
I tried to put my "shared" classes in the classpath. But this approach
failed too. I cannot understand.
In this case my "shared" classes loaded by "Bootstrap class loader
(Java system classes)" and in case any references to them shou
Hello Vladimir,
Thank you for your help.
And I'm still have some questions.
Why do we need to implement "some interface"? java.io.Serializable I
think? But anyway I implemented this interface - it doesn't work. This
approach works for EJB. :)
And my question is: Is there any way to use "some s