Re: How to use classes from another webapp/context?

2003-09-08 Thread Ulrich Mayring
Christopher Williams wrote: Easiest method: Put JSPs in WAR and stick in webapps Put classes in JAR and stick in common\lib I'd rather use a more complicated method, if that would allow me to put my classes in WARs as well :) Ulrich

Re: How to use classes from another webapp/context?

2003-09-08 Thread Ulrich Mayring
Christopher Williams wrote: Unfortunately, you do need to move classes common to multiple web apps into library files. You don't have to put the library files into common\lib, however. You can put the JARs in WEB-INF/lib inside your WAR file. Never done it myself, but it's supposed to work.

How to use classes from another webapp/context?

2003-09-05 Thread Ulrich Mayring
Hello, I know that Tomcat has seperate classloaders for each webapp, but what I would like to do is have JSPs in one webapp and the classes they use in another. I tried enabling the crossContext feature for the relevant contexts, but that didn't work, the classes weren't found. Background: we

Re: [OT] Realizing a search functionality

2003-09-05 Thread Ulrich Mayring
John Turner wrote: AFAIK, Lucene indexes files. How then, do you index a dynamic site? The only files that exist on a dynamic site are source code files. Servlets would never be indexed...how then do you index the content returned from the servlet? Can Lucene do this? Lucene is not a search

Re: How to use classes from another webapp/context?

2003-09-05 Thread Ulrich Mayring
Pradeep Gummi wrote: Hi Ulrich, I think you should get them working by placing the classes in the CATALINA_HOME/common/classes folder or the jars in the lib folder. This would share the classes in all web apps. There you would be giving the information of the catalina and system class loaders.

Re: [OT] Realizing a search functionality

2003-09-05 Thread Ulrich Mayring
John Turner wrote: Ulrich Mayring wrote: I can only recommend Lucene, it is vastly superior to any pre-packaged search engine, because you do not depend on specific features or behavior, but can customize everything to your needs. Assuming you have time, money, skills, etc. to do so, which

Re: Tomcat Manager deploy and undeploy

2003-06-10 Thread Ulrich Mayring
Phillip Qin wrote: Just move your Context../Context from server.xml to an XML file. There are two naming styles: 2. Deploy by Tomcat to webapps: - name it myapp.xml; - make myapp.war; - copy myapp.xml and myapp.war to webapps Unfortunately this doesn't work right in my mind. For if I remove

Tomcat 4.1.24 ignores context settings in server.xml

2003-06-06 Thread Ulrich Mayring
Hello, I've defined a context in server.xml, which includes a logger for my web application. When I start Tomcat, it reads these settings and logs in the specified file. If I reload the webapp from the management console, everything is still ok, Tomcat logs in the specified file. However, if

Re: Tomcat 4.1.24 ignores context settings in server.xml

2003-06-06 Thread Ulrich Mayring
Phillip Qin wrote: I guess you don't have a context.xml bundled with your war. Yes, I do, in META-INF. Ulrich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat 4.1.24 ignores context settings in server.xml

2003-06-06 Thread Ulrich Mayring
Phillip Qin wrote: As far as I understand, all the functions provided by Manager GUI are not persistent - after you shutdown Tomcat, nothing will be saved. Reload might have the same issue. So try to Deploy/Undeploy using Catalina-ant. Not quite, installing a WAR-file (via upload) is preserved