You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Bedrijven.nl" <ma...@bedrijven.nl> on 2005/05/12 08:44:30 UTC

RE: multiple services for each Tomcat instance on NT

Hi,

I tried this. But it didn't work. So you say I CAN do rename the tomcat.exe?
Or MUST I do this?
I changed the path to CATALINA_BASE to the directory where the instance is
installed. Let CATALINA_HOME point to the original Tomcat installation and
run the service.bat install <applicationname>.
Can you see I forget something??

Maarten







-----Oorspronkelijk bericht-----
Van: Mladen Turk [mailto:mladen.turk@jboss.com]
Verzonden: Wednesday, March 09, 2005 7:11 PM
Aan: Tomcat Users List
Onderwerp: Re: multiple services for each Tomcat instance on NT


Bedrijven.nl wrote:
> Hello,
>
> I installed Tomcat 557 and create several instances for development
> applications by using the CATALINA_BASE parameter.
> So I set up about 10 webapplication on my localhost that I can start with
> startup.bat. Now what I want to do is to create for each webapplication an
> own service on NT (otherwise I have to run each time startup.bat and the
CMD
> box appear). The first one I can install, but when I try another (given it
> another name) failed.
> Is it possible to this and second how can I do this?
>

You will need the service.bat file.
Simply run:
'service.bat install Tomcat1'
'service.bat install Tomcat2'
'service.bat install Tomcat3'
etc...
Of course launch from the directory where each instance is installed.

You can rename tomcat5w.exe to reflect the service name like:
tomcat1w.exe, tomcat2w.exe, etc... This will allow that you just click
on the service manager (the service name will be found from executable
name).


Mladen.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: finding context's jar file

Posted by "Altuğ B. Altıntaş" <al...@riskturk.com>.
I found the answer

     String classpath = (String) request.getSession()
                    .getServletContext().getAttribute(
                            "org.apache.catalina.jsp_classpath");


Regards.


Altuğ B. Altıntaş wrote:

> I need to find which jar files are being used in one context,
>
> for example below code can give me some information about  
> sun.boot.class.path
>
>
> <html>
> <%
>   String classpath = System.getProperty("sun.boot.class.path");
>   out.println(" " + classpath);   %>
> </html>
>
>
>
> Is there anything like that :
>
> <html>
> <%
>   String classpath = System.getProperty("tomcat.context.class.path");
>   out.println(" " + classpath);   %>
> </html>
>
> Any idea ?
>
> Regards.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


finding context's jar file

Posted by "Altuğ B. Altıntaş" <al...@riskturk.com>.
I need to find which jar files are being used in one context,

for example below code can give me some information about  
sun.boot.class.path


<html>
<%
   String classpath = System.getProperty("sun.boot.class.path");
   out.println(" " + classpath);   
 %>
</html>



Is there anything like that :

<html>
<%
   String classpath = System.getProperty("tomcat.context.class.path");
   out.println(" " + classpath);   
 %>
</html>

Any idea ?

Regards.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org