Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 41352 invoked from network); 28 Nov 2000 16:14:27 -0000 Received: from anaheim.apropos.com (HELO mail.apropos.com) (hidden-user@204.248.174.2) by locus.apache.org with SMTP; 28 Nov 2000 16:14:27 -0000 Received: from MSAEGESSERLPT (10.1.16.1 [10.1.16.1]) by mail.apropos.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id XJN33HAY; Tue, 28 Nov 2000 10:13:21 -0600 From: "Marc Saegesser" To: Subject: RE: EmbededTomcat question Date: Tue, 28 Nov 2000 10:14:26 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N FWIW, I rearranged some code in EmbededTomcat to get the interceptors intialized with the context manager, implemented EmbededTomcat.stop() and added a new method to create an AJP12 connector. I now have a working application that embeds the Tomcat servlet container and handles requests forwarded from IIS via the redirector. The code is still in proof of concept stage. I'll post it when I think its ready. If anyone else is using EmbededTomcat and would like to discuss these or other changes please contact me (preferably on one of the Tomcat mailing lists). Marc Saegesser -----Original Message----- From: Marc Saegesser [mailto:marc.saegesser@apropos.com] Sent: Tuesday, November 28, 2000 8:27 AM To: tomcat-user@jakarta.apache.org Subject: RE: EmbededTomcat question No, I'm talking about Tomcat and embedding a servlet container inside my application. I'm only vaguely aware of what JBoss is and I'm certainly not doing anything with it. I realize that EmbededTomcat doesn't know anything about server.xml. I didn't mention anything about server.xml in my original post. I don't want to use server.xml. My question was how can EmbededTomcat work without initializing the context manager for the interceptors. Either I'm missing the step where this happens or I'm missing the steps to make setting the context manager unimportant. In any case, I have the source. I can make it do anything I want. -----Original Message----- From: Dominique BATARD [mailto:dbatard@sf2r.fr] Sent: Tuesday, November 28, 2000 3:49 AM To: tomcat-user@jakarta.apache.org Subject: Re: EmbededTomcat question You'r talking about JBoss ? Forget it, EmbededTomcat doesn't care about server.xml. Dom ----- Original Message ----- From: "Marc Saegesser" To: Sent: Tuesday, November 28, 2000 2:43 AM Subject: EmbededTomcat question > I'm beating my head against a wall with EmbededTomcat and I'm hoping someone > here can help me out. > > Here's where I stand. I've got an application that initializes the > EmbededTomcat class. I can access a servlet using the HttpConnectionHandler > on port 8080. My servlet gets instantiated, init() gets called, doGet() > gets called and everything seems OK until I get a NullPointerException in > SessionInterceptor.beforeBody() because the context manager has not been > initialized by calling SessionInterceptor.setContextManager(). What am I > missing? > > Also, I'd like to use AjpConnectionHandler so that I can use IIS as my web > server. I don't see anything in EmbededTomcat to create an > AjpConnectionHandler endpoint, only HttpConnectionHandlers. I added a new > method, addAjpEndPoint(), to do this and it seems to work (of course I get > the same null pointer as above). Is there anything wrong with this > approach? > > BTW, shouldn't EmbededTomcat be named EmbeddedTomcat :-) > > >