Re: ClassNotFoundException in tomcat

2006-07-01 Thread ademar
Thank for reply. I'm sure that TestBean is visible in the class and jsp, because if write a TestBean manually and add a comment at this line testbean = (TestBean) in.readObject(); after return of testbean all works fine. Is this line that launch Exception during the cast, but i don't have an

ClassNotFoundException in tomcat

2006-07-01 Thread ademar
Hi, Why in tomcat this code launch a ClassNotFoundException ? byte[] serialized= rs.getBytes("test"); ObjectInputStream in = new ObjectInputStream( new ByteArrayInputStream( serialized ) ); testbean = (TestBean) in.readObject(); The bold line launch the exception and the cla

ClassNotFoundException in tomcat

2006-07-01 Thread ademar
Hi, Why in tomcat this code launch a ClassNotFoundException ? byte[] serialized= rs.getBytes("test"); ObjectInputStream in = new ObjectInputStream( new ByteArrayInputStream( serialized ) ); testbean = (TestBean) in.readObject(); The bold line launch the exception and the cla