Chris,
I'm not clear on what you're specifying.  First you suggest that there 
shouldn't be a file tomcat7/bin/service.bat  but then later cut text from it.  
The file exists on the 7.0.42.zip that I have on my laptop and on my server.

Here is the line from that file that I was looking at to properly set the 
classpath for tomcat-juli.jar.  It seems to match what you pasted

set 
"PR_CLASSPATH=%CATALINA_HOME%\bin\bootstrap.jar;%CATALINA_BASE%\bin\tomcat-juli.jar;%CATALINA_HOME%\bin\tomcat-juli.jar"




________________________________
From: Christopher Schultz <ch...@christopherschultz.net>
To: Tomcat Users List <users@tomcat.apache.org> 
Sent: Thursday, September 5, 2013 12:42 PM
Subject: Re: 7.0.42 - tomcat-juli.jar not found on classpath


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Mike,

On 9/4/13 4:42 PM, Mike Abernethy wrote:
> I installed Tomcat 7.0.42 on my Windows 2008 server. I have Tomcat
> 6 installed already and host multiple instances of tomcat in
> separate folders. I repeated this same process for Tomcat 7.
> 
> 1.  Installed java1.7 2.  Unzipped the .zip 64-bit tomcat file into
> a folder C:\tomcat7 3.  Created a new instance folder called
> C:\tomcat-instances\project
> 
> I registered the tomcat instance as a service in Windows with the 
> following arguments in a .bat file (this works fine for Tomcat 6)
> 
> set SERVICE_NAME=project
> 
> set CATALINA_HOME=C:\tomcat7 set JAVA_HOME=C:\java1.7 set
> CATALINA_BASE=%cd% call C:\tomcat7\bin\service.bat install 
> %SERVICE_NAME%

Where did you get bin\service.bat? I just downloaded the 7.0.42 .zip
file and it does not include this script. (It's not in the .tar.gz
bundle, either, which I already had).

Did you take it from Tomcat 6? If so, this might be a Tomcat 6 problem
that you have make into a Tomcat 7 problems.

> However, when I start the service in Windows, it fails with the
> following error message WARNING: Failed to scan
> [file:/C:/tomcat-instances/project/bin/tomcat-juli.jar] from
> classloader hierarchy java.io.FileNotFoundException:
> C:\tomcat-instances\project\bin\tomcat-juli.jar (The system cannot
> find the path specified) at java.util.zip.ZipFile.open(Native
> Method) at java.util.zip.ZipFile.<init>(ZipFile.java:214)
> 
> Looking into the service.bat file, it looks like the CLASSPATH is
> supposed to be looking in CATALINA_BASE\bin and then
> CATALINA_HOME\bin for the tomcat-juli.jar, but it appears that it
> is not doing this.  It appears to be only looking in
> CATALINA_BASE\bin and failing.

Line 134 of the bin/service.bat you can find in the SVN tree[1] has
this to say:

set
"PR_CLASSPATH=%CATALINA_HOME%\bin\bootstrap.jar;%CATALINA_BASE%\bin\tomcat-juli.jar;%CATALINA_HOME%\bin\tomcat-juli.jar"

So, Tomcat 7 definitely looks like it's looking in both CATALINA_BASE
and CATALINA_HOME (in that order).

If you *are* using the Tomcat 7 service.bat file, then perhaps you
have a file permissions issue: is LOCAL SERVICE (or whomever local
services run as on your version of Windows) allowed to read that path?

- -chris

[1]
http://svn.apache.org/viewvc/tomcat/tc7.0.x/tags/TOMCAT_7_0_42/bin/service.bat?view=markup
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSKMJ6AAoJEBzwKT+lPKRYzt8P+weRBp+1u7mKXVtQSaXXcdQf
5AGZ4GwOXhhXMZZfHiImAqUygogd8QVEZ4mIKwexAdiOGj38yNVZnAi42GRVC+Wc
O1HRHgC+D12ullg7/py7iHot0QQUEqtu77tSwfbUCue/xWan+u3wnUuRUmZDfZp9
eSBei7M/rbNcsPKIKPmvj4PXo1Q3h8RGBmXUKl/IBqj3aTNHuifLamf7pAPauS+q
GRiKJjFu4tpDal68tXZW43AmK9su1mgZu+YGl/cH9Dr9fMkKhDi5v/bGlRT4PB2X
Bgf0hm06PaQyP2UA2V21el+N7B/Hco4LvzgnZ38PascppFiC9NKwp7X7GXZdxrG7
r2mSn9CHShZYQg3sArHCHDvNNkcvQp7IBpVXpV73iH2ULkm2VrwA23vK6RgZ4NQ+
Mu2Y+o9PBH0/5Adhj9ohzydih/fDaCTqAlLaDPqTIESdJX1ynkyvDHfsYuReRc43
/xrMt2Ct+zSBelSaAmt2kdWoXnyPPCZb3vab+mPztJbzBd3WVCkuw0IW1r7Uio3K
SmIv/NFP359sGGBWP3/HP8aS9XzAP34SolP23H5mUiyjl7Qe7vj/WmyDl7nw0Zgo
MnA2Ec6ydG8cGZIAPYvuPQs/UfLG0Bgf5R/luqd8PniGB8x9xJqzBtyPzN2zGwhV
0vfOfcW7+J7j7MevnYyo
=RXA1
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to