Re: Cannot find my JavaBeans

2001-07-20 Thread John Baker
t to understand :-) > > > > > > Still, this must be a bug... people will want to use their own Threads > > > within a web application. > > > > > > > Charlie > > > > > > > > > -Original Message- > > > >

Re: Cannot find my JavaBeans

2001-07-19 Thread Craig R. McClanahan
On Thu, 19 Jul 2001, John Baker wrote: > On Thursday 19 July 2001 15:43 pm, you wrote: > > > -Original Message- > > > > > MyThread x = new MyThraad(); > > > x.run(); > > > > > > calls the run method (containing the class that has problems > > > being created) > > > within the current Th

Re: Cannot find my JavaBeans

2001-07-19 Thread John Baker
; > > > Still, this must be a bug... people will want to use their own Threads > > within a web application. > > > > > Charlie > > > > > > > -Original Message- > > > > From: John Baker [mailto:[EMAIL PROTECTED]] > > > &

Re: Cannot find my JavaBeans

2001-07-19 Thread Dmitri Colebatch
web application. > > > Charlie > > > > > -Original Message- > > > From: John Baker [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, July 18, 2001 12:31 PM > > > To: [EMAIL PROTECTED] > > > Subject: Re: Cannot find my JavaBeans &g

Re: Cannot find my JavaBeans

2001-07-19 Thread John Baker
On Thursday 19 July 2001 17:24 pm, you wrote: > > > My listener was part of an application and giving it a > > different ClassLoader > > is wrong. In my humble opinion :-) > > I agree since you are most likely doing context specific things in SCL that > you would want access to the classes for th

RE: Cannot find my JavaBeans

2001-07-19 Thread Cox, Charlie
Title: RE: Cannot find my JavaBeans > -Original Message- > From: John Baker [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 19, 2001 11:54 AM > To: [EMAIL PROTECTED] > Subject: Re: Cannot find my JavaBeans > > > On Thursday 19 July 2001 15:43 pm, you wr

Re: Cannot find my JavaBeans

2001-07-19 Thread John Baker
On Thursday 19 July 2001 15:43 pm, you wrote: > > -Original Message- > > > MyThread x = new MyThraad(); > > x.run(); > > > > calls the run method (containing the class that has problems > > being created) > > within the current Thread, ie no new Thread is started, This > > is when the > >

RE: Cannot find my JavaBeans

2001-07-19 Thread Cox, Charlie
Title: RE: Cannot find my JavaBeans > -Original Message- > From: John Baker [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 18, 2001 5:09 PM > To: [EMAIL PROTECTED] > Subject: Re: Cannot find my JavaBeans > > > > I don't know why it is different f

Re: Cannot find my JavaBeans

2001-07-19 Thread Michael Bierenfeld
> Well I managed to make it a very non mysterious circumstance. I just started > a Thread from an object that was a ServletContextListener. When I called > start it lost classes. When I called run it worked fine. I had no problems > replicating it. > > What is the cocoon mailing list? Hi, in th

Re: Cannot find my JavaBeans

2001-07-18 Thread John Baker
ednesday, July 18, 2001 12:31 PM > > To: [EMAIL PROTECTED] > > Subject: Re: Cannot find my JavaBeans > > > > > > On Wednesday 18 July 2001 17:15 pm, you wrote: > > > > This seems to be a bug in Tomcat. Shouldn't someone who > > actually know

RE: Cannot find my JavaBeans

2001-07-18 Thread Cox, Charlie
Title: RE: Cannot find my JavaBeans Ok, based upon previous posts, I think I might have an idea of why this happens. Tomcat uses its own classloader(AdaptiveClassLoader) to load servlets/jsps. when that servlet/jsp needs a class(abcBean) the AdaptiveClassLoader tries to load the class. If

Re: Cannot find my JavaBeans

2001-07-18 Thread John Baker
On Wednesday 18 July 2001 17:15 pm, you wrote: > > This seems to be a bug in Tomcat. Shouldn't someone who actually knows > > how it all works take a look? > > > > John > > Yep. Even the cocoon mailing list is full with entries related to tomcat > and its classpath :-). Under some misterious circu

Re: Cannot find my JavaBeans

2001-07-18 Thread Michael Bierenfeld
> This seems to be a bug in Tomcat. Shouldn't someone who actually knows how it > all works take a look? > > John > Yep. Even the cocoon mailing list is full with entries related to tomcat and its classpath :-). Under some misterious circumstances the "

Re: Cannot find my JavaBeans

2001-07-18 Thread John Baker
On Wednesday 18 July 2001 16:55 pm, you wrote: > At 05:13 PM 18/07/01, you wrote: > > OK, I'm going to have to bail at this point - I really don't have the > expertise to be able to answer this... (Out of interest, is there a cocoon > mailing list & have you tried it?) > Ideas that may or may not

Re: Cannot find my JavaBeans

2001-07-18 Thread Michael Bierenfeld
> OK, I'm going to have to bail at this point - I really don't have the > expertise to be able to answer this... (Out of interest, is there a cocoon > mailing list & have you tried it?) > Ideas that may or may not (probably the latter) be of use: > * Automate the build process with ant to add the

Re: Cannot find my JavaBeans

2001-07-18 Thread Jim Cheesman
At 05:13 PM 18/07/01, you wrote: > > Alright, I'm out of my depth here ;) Is the compile done at runtime? > > Besides which, I think you already have the solution. Include the jars in > > $TOMCAT_HOME/lib... > > > > (And which jars are we talking about here? The cocoon/servlet ones, > > presumably

Re: Cannot find my JavaBeans

2001-07-18 Thread John Baker
Ha! I've been getting this too! I posted about this last week. Here is my posting: Anyone ever experienced a problem where by if you try to run a Thread from an object implementing ServletContextListener (ie it's used to perform 'startup' stuff), the Thread is unable to find classes (complain

Re: Cannot find my JavaBeans

2001-07-18 Thread Michael Bierenfeld
> Alright, I'm out of my depth here ;) Is the compile done at runtime? > Besides which, I think you already have the solution. Include the jars in > $TOMCAT_HOME/lib... > > (And which jars are we talking about here? The cocoon/servlet ones, > presumably?) > While checking the source I found that

Re: Cannot find my JavaBeans

2001-07-18 Thread Jim Cheesman
At 04:44 PM 18/07/01, you wrote: >Hi, > >your wish is my order :-) cocoon is a servlet that generates java code >out of some sort of xml-files. The compile process is running inside the >servlet. Compile is fine but if the servlet executes the generated >class. The classpath is missing some jars t

Re: Cannot find my JavaBeans

2001-07-18 Thread Michael Bierenfeld
Hi, your wish is my order :-) cocoon is a servlet that generates java code out of some sort of xml-files. The compile process is running inside the servlet. Compile is fine but if the servlet executes the generated class. The classpath is missing some jars that where present during compile. Its r

RE: Cannot find my JavaBeans

2001-07-18 Thread Jim Cheesman
At 04:01 PM 18/07/01, you wrote: >Jim, >Thanks. I did what you suggested and it works, >BUT: >1. Do I need to add block to create virtual path to "student1" in >server.xml if it is all under \webapps anyway? The startup seems to be >creating the contextx automatically, but perhaps this is not the

Re: Cannot find my JavaBeans

2001-07-18 Thread Jim Cheesman
At 03:41 PM 18/07/01, you wrote: > > Beans, servlet code (not in jar files) > > \webapps\student1\WEB-INF\classes\chpt1\*.class > > > > With the beans and servlets in the package chpt1 (etc.) > > > > This assumes you create a webapp (and context etc.) for each student, of > > course. > > > >hi, >

RE: Cannot find my JavaBeans

2001-07-18 Thread Alan Zaitchik
Wednesday, July 18, 2001 9:36 AM > To: [EMAIL PROTECTED] > Subject: Re: Cannot find my JavaBeans > > > At 03:25 PM 18/07/01, you wrote: > >I would like to create a directory tree under \webapps which is > helpful for > >delivering a course. So it should be &g

Re: Cannot find my JavaBeans

2001-07-18 Thread Michael Bierenfeld
> Beans, servlet code (not in jar files) > \webapps\student1\WEB-INF\classes\chpt1\*.class > > With the beans and servlets in the package chpt1 (etc.) > > This assumes you create a webapp (and context etc.) for each student, of > course. > hi, hmpf. I am struggling with this problem too. I ha

Re: Cannot find my JavaBeans

2001-07-18 Thread Jim Cheesman
At 03:25 PM 18/07/01, you wrote: >I would like to create a directory tree under \webapps which is helpful for >delivering a course. So it should be >\webapps\student1, \webapps\student2, and so on, with each >\webapps\student-n having further subdirectories like chpt1, chpt2, etc, for >different p

Cannot find my JavaBeans

2001-07-18 Thread Alan Zaitchik
I would like to create a directory tree under \webapps which is helpful for delivering a course. So it should be \webapps\student1, \webapps\student2, and so on, with each \webapps\student-n having further subdirectories like chpt1, chpt2, etc, for different projects. I want to keep everything dis