  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | Cannot define Djava.library.path while using tomcat as a Windows
2000 service | Cannot define Djava.library.path while using tomcat as a Windows
2000 service 2004-01-15 - By Bruchem, A. van (Alexander)
Back Hi,
I defined my library path in the Catalina.bat under Windows 2000 and if I start the startup.bat Tomcat 5.0.16 works fine with the connected libraries.
Now I made a Windows 2000 service of Tomcat, but can't it find my libraries anymore.
I used the install script which has been posted earlier by Bill Barker (included).
The script is working fine for starting Tomcat, but without the library. I changed one of the last lines into:
"%EXECUTABLE%" //US//%SERVICE_NAME% --JavaOptions -Dcatalina.home="\"%CATALINA_HOME%\"" -Djava.library.path="\"%CATALINA_BASE%\webapps\brs\"" -Djava.endorsed.dirs="\"%CATALINA_HOME%\common\endorsed\"" -Xrs --StdOutputFile "%CATALINA_HOME%\logs\stdout.log" --StdErrorFile "%CATALINA_HOME%\logs\stderr.log" --WorkingPath "%CATALINA_HOME%\bin"
(in the mail it maybe be more lines, but it is actually 1)
The result is that I can't start the service anymore.
Any ideas on what can be the problem?
Thanks in advance,
Alexander
__ ____ ____ ____ ____ ____ ___
Alexander van Bruchem
Windows System Engineer
ISD - N.V. Organon
P.O. Box 20
5340 BH Oss
The Netherlands
Ext.: +31 (0) 412 665076
mailto:alexander.vanbruchem@(protected)
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- This message, including attached files, may contain confidential information and is intended only for the use by the individual and/or the entity to which it is addressed. Any unauthorized use, dissemination of, or copying of the information contained herein is not allowed and may lead to irreparable harm and damage for which you may be held liable. If you receive this message in error or if it is intended for someone else please notify the sender by returning this e-mail immediately and delete the message. -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -----
<html>
<head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<meta name=Generator content="Microsoft Word 10 (filtered)">
<style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:11.0pt; font-family:Arial;} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} span.EmailStyle17 {font-family:Arial; color:windowtext;} @(protected) Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} --> </style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'>Hi,< /span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'>  ;</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'>I defined my library path in the Catalina.bat under Windows 2000 and if I start the startup.bat Tomcat 5.0.16 works fine with the connected libraries.</span>< /font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'>  ;</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'>Now I made a Windows 2000 service of Tomcat, but can't it find my libraries anymore.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'>I used the install script which has been posted earlier by Bill Barker (included) .</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'>The script is working fine for starting Tomcat, but without the library. I changed one of the last lines into:</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'>  ;</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'>" ;%EXECUTABLE%" //US//%SERVICE_NAME% --JavaOptions -Dcatalina.home="\"%CATALINA_HOME% \"" -Djava.library.path="\"%CATALINA_BASE%\webapps\brs\"" -Djava.endorsed.dirs="\"%CATALINA_HOME%\common\endorsed\"" -Xrs --StdOutputFile "%CATALINA_HOME%\logs\stdout.log" --StdErrorFile "%CATALINA_HOME%\logs\stderr.log" --WorkingPath "%CATALINA_HOME%\bin"</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'>  ;</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'>(in the mail it maybe be more lines, but it is actually 1)</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'>The result is that I can't start the service anymore.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'>  ;</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'>Any ideas on what can be the problem?</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'>  ;</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt'>Thanks in advance,</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt' >Alexander</span></font></p>
<p class=MsoAutoSig><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>__ ____ ____ ____ ____ ____ ___</span></font></p>
<p class=MsoAutoSig><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Alexander van Bruchem</span></font></p>
<p class=MsoAutoSig><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Windows System Engineer</span></font></p>
<p class=MsoAutoSig><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>ISD - N.V. Organon</span></font></p>
<p class=MsoAutoSig><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>P.O. Box</span></font><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> 20</span></font></p>
<p class=MsoAutoSig><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>5340 BH </span></font><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Oss</span></font></p>
<p class=MsoAutoSig><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>The </span></font><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Netherlands</span></font></p>
<p class=MsoAutoSig><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Ext.: +31 (0) 412 665076</span></font></p>
<p class=MsoAutoSig><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>mailto:alexander.vanbruchem@(protected)</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:11.0pt'>  ;</span></font></p>
</div>
</body>
</html>
<P><FONT SIZE=2 FACE="Arial">-- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- -- ---- ---- -----</FONT></P>
<P><FONT SIZE=2 FACE="Arial">This message, including attached files, may contain confidential</FONT></P>
<P><FONT SIZE=2 FACE="Arial">information and is intended only for the use by the individual</FONT></P>
<P><FONT SIZE=2 FACE="Arial">and/or the entity to which it is addressed. Any unauthorized use,</FONT></P>
<P><FONT SIZE=2 FACE="Arial">dissemination of, or copying of the information contained herein is</FONT></P>
<P><FONT SIZE=2 FACE="Arial">not allowed and may lead to irreparable harm and damage for which</FONT></P>
<P><FONT SIZE=2 FACE="Arial">you may be held liable. If you receive this message in error or if</FONT></P>
<P><FONT SIZE=2 FACE="Arial">it is intended for someone else please notify the sender by</FONT></P>
<P><FONT SIZE=2 FACE="Arial">returning this e-mail immediately and delete the message.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">-- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- -- ---- ---- -----</FONT></P>
<P><FONT SIZE=2 FACE="Arial"> </FONT> </P>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected) For additional commands, e-mail: tomcat-user-help@(protected)
|
|
 |