RE: [Rabbit-proxy-users] name lookups and dnsjava
Brought to you by:
ernimril
|
From: Samuel H. <Sam...@Co...> - 2004-04-23 13:03:23
|
I got the following errors on compile...
src/rabbit/proxy/Proxy.java:16: package org.xbill.DNS does not exist
import org.xbill.DNS.*;
^
src/rabbit/proxy/Proxy.java:651: cannot resolve symbol
symbol : variable Address
location: class rabbit.proxy.Proxy
return Address.getByName (url.getHost ());
^
Note: src/rabbit/handler/MultiPartHandler.java uses or overrides a
deprecated API.
Note: Recompile with -deprecation for details.
2 errors
------------------------------------------------
Then I get bad stuff when I try to start
/usr/local/bin/java -cp /class/dnsjava-1.6.2.jar rabbit.proxy.Proxy
Exception in thread "main" java.lang.NoClassDefFoundError:
rabbit/proxy/Proxy
Sam
-----Original Message-----
From: rab...@li...
[mailto:rab...@li...] On Behalf Of
Robert Olofsson
Sent: Thursday, April 22, 2004 5:24 PM
To: Robert Olofsson
Cc: Samuel Hill; rab...@li...
Subject: Re: [Rabbit-proxy-users] name lookups and dnsjava
Robert Olofsson wrote:
> Hmm. That depends on the name resolver you have. It may be that the
> standard
> version is single-threaded. Then only one java thread can do name
> lookups at the
> same time (meaning that some request may be finished but no new are
> started).
>
> It is probably possible to insert dnsjava or a similar lib to get the
> dns lookup to
> be more well behaved.
Ok, using dnsjava is trivial.
I have attached a patch to Proxy.java to enable it if you care to try.
For it to work you also need to download dnsjava:
http://www.dnsjava.org/download/dnsjava-1.6.2.jar
and put it in the classpath:
robo@ghoul:~/src/RabbIT2$ more classpath
CLASSPATH=.:/tmp/dnsjava-1.6.2.jar
robo@ghoul:~/src/RabbIT2$ make code
Then restart it either with the jr command or with something else that
sets the classpath "java -cp /tmp/dnsjava-1.6.2.jar rabbit.proxy.Proxy"
/robo
|