You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Ross McDonald <ro...@yahoo.co.uk> on 2006/08/14 21:24:46 UTC

Mac OSX - error reading /usr/local/lib/libsvnjavahl-1.0.0.0.dylib

Hi all,

I am trying to run Solr on OSX, after a successful installation and  
tests on Linux,
while trying to run with JDK 1.5.0, I am getting the following  
exception...

HTTP ERROR: 500

Unable to compile class for JSP

Generated servlet error:
error: error reading /usr/local/lib/libsvnjavahl-1.0.0.0.dylib;  
java.util.zip.ZipException: error in opening zip file
Note: /tmp/Jetty__8983__solr_23999/org/apache/jsp/admin/ 
index_jsp.java uses unchecked or unsafe operations.

I have checked /usr/local/lib and can see that  
'libsvnjavahl-1.0.0.0.dylib' is in fact present there,

I assume it is probably quite easy to fix this, or that plenty of  
people are running Solr on OSX, I would appreciate any advice on how  
to fix this up,

thanks for your time,

Ross McDonald

		
___________________________________________________________ 
Inbox full of spam? Get leading spam protection and 1GB storage with All New Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html

Re: Mac OSX - error reading /usr/local/lib/libsvnjavahl-1.0.0.0.dylib

Posted by Ross McDonald <ro...@yahoo.co.uk>.
Fantastic, thanks for your efforts Chris, that was in fact the  
problem, I removed all trace of those files, and it works just fine!!!

Now I just need to figure out why my system was still displaying  
these symptons despite updates being done...

once again thanks for your help,

Ross.

On 15 Aug 2006, at 19:06, Chris Hostetter wrote:

>
> Wild speculation: but perhaps this is just a classpath issue.   
> Perhaps the
> on the fly compiler used by Jetty (and Tomcat in the case of the URL i
> sent earlier) tries to build a complete list of resources available  
> from
> every item in the classpath before compiling JSPs, and in your case  
> these
> dylib files are mistakenly in your classpath.
>
> In any event, i'm guessing that if you tried to run Jetty without  
> Solr and
> load up a simple hellowworld.jsp you'd get the same problem.  You  
> may want
> to try installing Tomcat to see if you get same problem with it.  
> (trying a
> hellowworld.jsp before trying Solr)
>
>
> you know what ... i think this is definitely it.  This TomCat bug  
> claims
> it's  a bug in the Apple J2SE 5.0 which has been fixed (look at  
> comment
> #10) ...
>
>   http://issues.apache.org/bugzilla/show_bug.cgi?id=34856
>
>
>
> -Hoss
>


	
	
		
___________________________________________________________ 
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine 
http://uk.docs.yahoo.com/nowyoucan.html

Re: Mac OSX - error reading /usr/local/lib/libsvnjavahl-1.0.0.0.dylib

Posted by Chris Hostetter <ho...@fucit.org>.
Wild speculation: but perhaps this is just a classpath issue.  Perhaps the
on the fly compiler used by Jetty (and Tomcat in the case of the URL i
sent earlier) tries to build a complete list of resources available from
every item in the classpath before compiling JSPs, and in your case these
dylib files are mistakenly in your classpath.

In any event, i'm guessing that if you tried to run Jetty without Solr and
load up a simple hellowworld.jsp you'd get the same problem.  You may want
to try installing Tomcat to see if you get same problem with it. (trying a
hellowworld.jsp before trying Solr)


you know what ... i think this is definitely it.  This TomCat bug claims
it's  a bug in the Apple J2SE 5.0 which has been fixed (look at comment
#10) ...

  http://issues.apache.org/bugzilla/show_bug.cgi?id=34856



-Hoss


Re: Mac OSX - error reading /usr/local/lib/libsvnjavahl-1.0.0.0.dylib

Posted by Ross McDonald <ro...@yahoo.co.uk>.
Hi all,

yes I suspect that may be the problem, I will go through some web  
guides on Java and Mac, see if anythingcomes up..

thanks,

Ross.

On 15 Aug 2006, at 13:44, Erik Hatcher wrote:

> Just as a data point, my team (3 of us) develop on OS X using Solr  
> with no problems.  Two of us are on MacBook Pro's and one poor soul  
> is on a PowerBook.  I know that doesn't help, and I do recall  
> stumbling into this particular issue or one very much like it a  
> long while ago (not Solr related) on my previous PowerBook system  
> but I don't, unfortunately, recall how I resolved it.  I remember  
> having some growing pains when switching from JDK 1.4 to 1.5 and  
> how to ensure the environment is configured appropriately - might  
> that be it?
>
> 	Erik
>
>
> On Aug 15, 2006, at 8:24 AM, Mike Baranczak wrote:
>
>> A .dylib file isn't a zip or a jar at all, it's a native OS X  
>> shared library. I have absolutely NO idea why Solr is trying to  
>> open it. Are you deploying just the stock version, or did you add  
>> some of your own code to it?
>>
>> -MB
>>
>>
>>
>> On Aug 15, 2006, at 2:06 AM, Ross McDonald wrote:
>>
>>> Thanks for the quick response guys,
>>>
>>> I am using jdk 1.5, and am ensuring use of this jdk by typing the  
>>> full path.
>>>
>>> As regards doing an 'unzip -l' on the file it indeed generates an  
>>> error..
>>>
>>>
>>> /usr/local/lib rossputin$ unzip -l libsvnjavahl-1.0.0.0.dylib
>>> Archive:  libsvnjavahl-1.0.0.0.dylib
>>>   End-of-central-directory signature not found.  Either this file  
>>> is not
>>>   a zipfile, or it constitutes one disk of a multi-part archive.   
>>> In the
>>>   latter case the central directory and zipfile comment will be  
>>> found on
>>>   the last disk(s) of this archive.
>>> note:  libsvnjavahl-1.0.0.0.dylib may be a plain executable, not  
>>> an archive
>>> unzip:  cannot find zipfile directory in one of  
>>> libsvnjavahl-1.0.0.0.dylib or
>>>         libsvnjavahl-1.0.0.0.dylib.zip, and cannot find  
>>> libsvnjavahl-1.0.0.0.dylib.ZIP, period.
>>>
>>> oh dear.. maybe this is corrupt?
>>>
>>> A 'jar tvf' generates no output, once again indicating that the  
>>> file is not a valid jar,
>>>
>>> regards,
>>>
>>> Ross.
>>>
>>>
>>>
>


	
	
		
___________________________________________________________ 
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine 
http://uk.docs.yahoo.com/nowyoucan.html

Re: Mac OSX - error reading /usr/local/lib/libsvnjavahl-1.0.0.0.dylib

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
Just as a data point, my team (3 of us) develop on OS X using Solr  
with no problems.  Two of us are on MacBook Pro's and one poor soul  
is on a PowerBook.  I know that doesn't help, and I do recall  
stumbling into this particular issue or one very much like it a long  
while ago (not Solr related) on my previous PowerBook system but I  
don't, unfortunately, recall how I resolved it.  I remember having  
some growing pains when switching from JDK 1.4 to 1.5 and how to  
ensure the environment is configured appropriately - might that be it?

	Erik


On Aug 15, 2006, at 8:24 AM, Mike Baranczak wrote:

> A .dylib file isn't a zip or a jar at all, it's a native OS X  
> shared library. I have absolutely NO idea why Solr is trying to  
> open it. Are you deploying just the stock version, or did you add  
> some of your own code to it?
>
> -MB
>
>
>
> On Aug 15, 2006, at 2:06 AM, Ross McDonald wrote:
>
>> Thanks for the quick response guys,
>>
>> I am using jdk 1.5, and am ensuring use of this jdk by typing the  
>> full path.
>>
>> As regards doing an 'unzip -l' on the file it indeed generates an  
>> error..
>>
>>
>> /usr/local/lib rossputin$ unzip -l libsvnjavahl-1.0.0.0.dylib
>> Archive:  libsvnjavahl-1.0.0.0.dylib
>>   End-of-central-directory signature not found.  Either this file  
>> is not
>>   a zipfile, or it constitutes one disk of a multi-part archive.   
>> In the
>>   latter case the central directory and zipfile comment will be  
>> found on
>>   the last disk(s) of this archive.
>> note:  libsvnjavahl-1.0.0.0.dylib may be a plain executable, not  
>> an archive
>> unzip:  cannot find zipfile directory in one of  
>> libsvnjavahl-1.0.0.0.dylib or
>>         libsvnjavahl-1.0.0.0.dylib.zip, and cannot find  
>> libsvnjavahl-1.0.0.0.dylib.ZIP, period.
>>
>> oh dear.. maybe this is corrupt?
>>
>> A 'jar tvf' generates no output, once again indicating that the  
>> file is not a valid jar,
>>
>> regards,
>>
>> Ross.
>>
>>
>>


Re: Mac OSX - error reading /usr/local/lib/libsvnjavahl-1.0.0.0.dylib

Posted by Mike Baranczak <MB...@ePublishing.com>.
A .dylib file isn't a zip or a jar at all, it's a native OS X shared  
library. I have absolutely NO idea why Solr is trying to open it. Are  
you deploying just the stock version, or did you add some of your own  
code to it?

-MB



On Aug 15, 2006, at 2:06 AM, Ross McDonald wrote:

> Thanks for the quick response guys,
>
> I am using jdk 1.5, and am ensuring use of this jdk by typing the  
> full path.
>
> As regards doing an 'unzip -l' on the file it indeed generates an  
> error..
>
>
> /usr/local/lib rossputin$ unzip -l libsvnjavahl-1.0.0.0.dylib
> Archive:  libsvnjavahl-1.0.0.0.dylib
>   End-of-central-directory signature not found.  Either this file  
> is not
>   a zipfile, or it constitutes one disk of a multi-part archive.   
> In the
>   latter case the central directory and zipfile comment will be  
> found on
>   the last disk(s) of this archive.
> note:  libsvnjavahl-1.0.0.0.dylib may be a plain executable, not an  
> archive
> unzip:  cannot find zipfile directory in one of  
> libsvnjavahl-1.0.0.0.dylib or
>         libsvnjavahl-1.0.0.0.dylib.zip, and cannot find  
> libsvnjavahl-1.0.0.0.dylib.ZIP, period.
>
> oh dear.. maybe this is corrupt?
>
> A 'jar tvf' generates no output, once again indicating that the  
> file is not a valid jar,
>
> regards,
>
> Ross.
>
>
>


Re: Mac OSX - error reading /usr/local/lib/libsvnjavahl-1.0.0.0.dylib

Posted by Chris Hostetter <ho...@fucit.org>.
: oh dear.. maybe this is corrupt?
:
: A 'jar tvf' generates no output, once again indicating that the file
: is not a valid jar,

maybe ... i'm not convinced that file is suppose to be a zip/jar (i don't
really get "dylib" files) ... just that java seems to think it should be.

here's an interesting message from someone with a similar problem...

https://mail.internet2.edu/wws/arc/shibboleth-dev/2005-08/msg00021.html

...according to this guy, that dylib is a JNI for subversion!?




-Hoss


Re: Mac OSX - error reading /usr/local/lib/libsvnjavahl-1.0.0.0.dylib

Posted by Ross McDonald <ro...@yahoo.co.uk>.
Thanks for the quick response guys,

I am using jdk 1.5, and am ensuring use of this jdk by typing the  
full path.

As regards doing an 'unzip -l' on the file it indeed generates an  
error..


/usr/local/lib rossputin$ unzip -l libsvnjavahl-1.0.0.0.dylib
Archive:  libsvnjavahl-1.0.0.0.dylib
   End-of-central-directory signature not found.  Either this file is  
not
   a zipfile, or it constitutes one disk of a multi-part archive.  In  
the
   latter case the central directory and zipfile comment will be  
found on
   the last disk(s) of this archive.
note:  libsvnjavahl-1.0.0.0.dylib may be a plain executable, not an  
archive
unzip:  cannot find zipfile directory in one of  
libsvnjavahl-1.0.0.0.dylib or
         libsvnjavahl-1.0.0.0.dylib.zip, and cannot find  
libsvnjavahl-1.0.0.0.dylib.ZIP, period.

oh dear.. maybe this is corrupt?

A 'jar tvf' generates no output, once again indicating that the file  
is not a valid jar,

regards,

Ross.



On 15 Aug 2006, at 00:09, Chris Hostetter wrote:

>
> : The older version of Jetty that we are using requires the JDK  
> version,
> : not the JRE version of 'java' so it can compile JSPs via javac.   
> Maybe
> : that's be the problem?  Try typing the full path to the java
> : executable to verify.
>
> Perhaps ... but this seems like an awfully strnage exception to get  
> if the
> problem were that it can't find the compiler...
>
> : > error: error reading /usr/local/lib/libsvnjavahl-1.0.0.0.dylib;
> : > java.util.zip.ZipException: error in opening zip file
>
> ...he said that /usr/local/lib/libsvnjavahl-1.0.0.0.dylib did in fact
> exist.  (I would expect a class not found or an attempt at opening  
> a file
> that doesn't exist in the other case)
>
> I don't really know much about Java on Macs, or what a "dylib" file  
> is ...
> but the exception seems to indicate that it's expecting to find a  
> Zip file
> (possible a jar?)
>
> Ross: does "unzip -l" or "jar tf" on
> /usr/local/lib/libsvnjavahl-1.0.0.0.dylib work for you?
>
>
>
>
> -Hoss
>


		
___________________________________________________________ 
Try the all-new Yahoo! Mail. "The New Version is radically easier to use" � The Wall Street Journal 
http://uk.docs.yahoo.com/nowyoucan.html

Re: Mac OSX - error reading /usr/local/lib/libsvnjavahl-1.0.0.0.dylib

Posted by Chris Hostetter <ho...@fucit.org>.
: The older version of Jetty that we are using requires the JDK version,
: not the JRE version of 'java' so it can compile JSPs via javac.  Maybe
: that's be the problem?  Try typing the full path to the java
: executable to verify.

Perhaps ... but this seems like an awfully strnage exception to get if the
problem were that it can't find the compiler...

: > error: error reading /usr/local/lib/libsvnjavahl-1.0.0.0.dylib;
: > java.util.zip.ZipException: error in opening zip file

...he said that /usr/local/lib/libsvnjavahl-1.0.0.0.dylib did in fact
exist.  (I would expect a class not found or an attempt at opening a file
that doesn't exist in the other case)

I don't really know much about Java on Macs, or what a "dylib" file is ...
but the exception seems to indicate that it's expecting to find a Zip file
(possible a jar?)

Ross: does "unzip -l" or "jar tf" on
/usr/local/lib/libsvnjavahl-1.0.0.0.dylib work for you?




-Hoss


Re: Mac OSX - error reading /usr/local/lib/libsvnjavahl-1.0.0.0.dylib

Posted by Yonik Seeley <yo...@apache.org>.
The older version of Jetty that we are using requires the JDK version,
not the JRE version of 'java' so it can compile JSPs via javac.  Maybe
that's be the problem?  Try typing the full path to the java
executable to verify.

-Yonik

On 8/14/06, Ross McDonald <ro...@yahoo.co.uk> wrote:
> Hi all,
>
> I am trying to run Solr on OSX, after a successful installation and
> tests on Linux,
> while trying to run with JDK 1.5.0, I am getting the following
> exception...
>
> HTTP ERROR: 500
>
> Unable to compile class for JSP
>
> Generated servlet error:
> error: error reading /usr/local/lib/libsvnjavahl-1.0.0.0.dylib;
> java.util.zip.ZipException: error in opening zip file
> Note: /tmp/Jetty__8983__solr_23999/org/apache/jsp/admin/
> index_jsp.java uses unchecked or unsafe operations.
>
> I have checked /usr/local/lib and can see that
> 'libsvnjavahl-1.0.0.0.dylib' is in fact present there,
>
> I assume it is probably quite easy to fix this, or that plenty of
> people are running Solr on OSX, I would appreciate any advice on how
> to fix this up,
>
> thanks for your time,
>
> Ross McDonald