I know the cause of the problem - my use of embedded tomcat. When I tried it
with the standalone Tomcat, it works fine. What I'm confused about, then, is
how to fix the following code to make it work like standalone Tomcat. I'm
using Tomcat 6.

I'd be very surprised if this I'm not doing something wrong and this is a
limitation of embedded Tomcat.


        public static void main(String[] args) {
                
                Bootstrap bootstrap = new Bootstrap();
                bootstrap.setCatalinaHome(path1);
                bootstrap.setCatalinaBase(path2);
                try {
                bootstrap.init(new String[] {"-config","conf/server.xml"});
                bootstrap.start();
                Thread.sleep(10000000);
        }
        catch (Exception e) {
                e.printStackTrace();
        }
        }


Also, nothing is appearing underneath
CATALINA_BASE/work/Catalina/localhost/myapp, regardless of the number of
servlets or JSPs I've deployed and accessed, and regardless of whether it's
with standalone or embedded Tomcat.




Caldarale, Charles R wrote:
> 
>> From: lightbulb432 [mailto:[EMAIL PROTECTED] 
>> Subject: RE: Reloadable attribute not working
>> 
>> There's no folders under CATALINA_BASE/conf
> 
> Not having run an embedded Tomcat, I don't know if that's normal or not.
> 
>> I'm using the invoker servlet - could that be a reason, or 
>> does it have nothing to do with this? 
> 
> Don't know - the invoker servlet should never be used.  It's only there
> for compatiblity.
> 
>> Also, could it be why no .java and .class files are generated 
>> in my "work" directory?
> 
> They're only generated for .jsp files; do you have any in your webapps?
> 
>> What other effects might one expect using the invoker servlet?
> 
> Security holes all over the place.  It's really a bad idea.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Reloadable-attribute-not-working-tf3781575.html#a10710782
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to