Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 48339 invoked from network); 18 Feb 2000 14:08:45 -0000 Received: from ai70-147.aiinet.com (HELO dcn2h.aiinet.com) (38.195.70.147) by locus.apache.org with SMTP; 18 Feb 2000 14:08:45 -0000 Received: from columbus.rr.com (localhost [127.0.0.1]) by dcn2h.aiinet.com with ESMTP (8.8.6 (PHNE_16852)/8.7.1) id JAA04431; Fri, 18 Feb 2000 09:08:11 -0500 (EST) Sender: jeffh@dcn2h.aiinet.com Message-ID: <38AD5249.FD84F573@columbus.rr.com> Date: Fri, 18 Feb 2000 09:08:10 -0500 From: Jeff Harris X-Mailer: Mozilla 4.7 [en] (X11; U; HP-UX B.11.00 9000/778) X-Accept-Language: en MIME-Version: 1.0 To: Ron Chan CC: cocoon-users@xml.apache.org Subject: Re: XSP setup problem References: <38A7278F.56D89461@columbus.rr.com> <029401bf7997$525ccfa0$0201a8c0@pc2> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I've managed to live with it, if you can call that a resolution. Most of my classes are database beans which remain pretty static. When I was using JSP and DCP, I offloaded a lot of logic into other classes. With XSP, I've been placing all the logic into the xml file. It's not too painful to have to restart apache. I don't like having to put my servlet zone's path in the wrapper.classpath. I would consider this to be a bug in the XSP processor. Jeff Ron Chan wrote: > Jeff > > Did you get this resolved in the end? > > I'm getting the same problem > > I've not seen a reply on the mailing list > > Thanks > Ron > > ----- Original Message ----- > From: Jeff Harris > To: > Sent: Sunday, February 13, 2000 9:52 PM > Subject: XSP setup problem > > > I have been having some problems getting XSP setup properly with class > > includes. I have XSP working for the page.xml example. I started to > > write a page which included a class I had written. When the page was > > compiled, it gave an error indicating that it couldn't find my imports. > > I looked at the XSP source and it's using the java.class.path property > > for the compiler's class path. Also, I noted that there was no way to > > add additional class paths. > > > > The cause of my problem, I believe, is that the cocoon.jar file is > > listed in my jserv.properties file under wrapper.classpath. The path to > > my classes is not in that list. The path is, however, in my JServ's > > zone repositories. I tried putting the path in the wrapper.classpath > > and things worked. However, any changes to my classes were not > > reflected. When I used GnuJSP and had the path in the repository, the > > classes were automatically reloaded when they were changed. > > > > I also tried putting cocoon.jar into my zone repository. This caused > > two problems. The first was that it couldn't load the XSP library > > resources. This was solved by creating a jar of the library files and > > placing it in the wrapper.classpath. The second problem is more > > severe. It appears that JServ is trying to reload the Cocoon servlet > > when I change my class file. I get the following error when I try to > > reload my XSP page: > > > > java.lang.Error: factory already defined > > at > > org.apache.jserv.JServServletManager.load_init(JServServletManager.java, > > Compiled Code) > > at > > org.apache.jserv.JServServletManager.loadServlet(JServServletManager.java, > > Compiled Code) > > at > > org.apache.jserv.JServConnection.processRequest(JServConnection.java, > > Compiled Code) > > at org.apache.jserv.JServConnection.run(JServConnection.java, Compiled > > Code) > > at java.lang.Thread.run(Thread.java, Compiled Code) > > > > Is there any way to get the dynamic class loading functionality with > > XSP? Or am I stuck with having to restart apache every time? > > > > Jeff > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org > > For additional commands, e-mail: cocoon-users-help@xml.apache.org > > > >