[Resin-interest] webApp.url UnknownHostException
Hi all! When I test Hessian service (resin-doc) I have error UnknownHostException: === com.caucho.hessian.client.HessianRuntimeException: java.net.UnknownHostException: default at com.caucho.hessian.client.HessianProxy.sendRequest(HessianProxy.java:321) at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:166) at $Proxy37.add(Unknown Source) at _jsp._demo__jsp._jspService(demo.jsp:7) at _jsp._demo__jsp._jspService(demo.jsp:5) at com.caucho.jsp.JavaPage.service(JavaPage.java:61) at com.caucho.jsp.Page.pageservice(Page.java:580) at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:195) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:189) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:292) at com.caucho.server.port.TcpConnection.handleRequests(TcpConnection.java:577) at com.caucho.server.port.TcpConnection$AcceptTask.doAccept(TcpConnection.java:1211) at com.caucho.server.port.TcpConnection$AcceptTask.run(TcpConnection.java:1152) at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:759) at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:681) at java.lang.Thread.run(Thread.java:595) Caused by: java.net.UnknownHostException: default at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) at java.net.Socket.connect(Socket.java:520) at java.net.Socket.connect(Socket.java:470) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.www.http.HttpClient.openServer(HttpClient.java:388) at sun.net.www.http.HttpClient.openServer(HttpClient.java:523) at sun.net.www.http.HttpClient.init(HttpClient.java:231) at sun.net.www.http.HttpClient.New(HttpClient.java:304) at sun.net.www.http.HttpClient.New(HttpClient.java:321) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:813) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:690) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:857) at com.caucho.hessian.client.HessianProxy.sendRequest(HessianProxy.java:319) at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:166) at $Proxy37.add(Unknown Source) at _jsp._demo__jsp._jspService(demo.jsp:7) at _jsp._demo__jsp._jspService(demo.jsp:5) at com.caucho.jsp.JavaPage.service(JavaPage.java:61) at com.caucho.jsp.Page.pageservice(Page.java:580) at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:195) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:189) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:292) at com.caucho.server.port.TcpConnection.handleRequests(TcpConnection.java:577) at com.caucho.server.port.TcpConnection$AcceptTask.doAccept(TcpConnection.java:1211) at com.caucho.server.port.TcpConnection$AcceptTask.run(TcpConnection.java:1152) at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:759) at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:681) at java.lang.Thread.run(Thread.java:595) === If I change in resin-web.xml === urihessian:url=${webApp.url}/math//uri === to === urihessian:url=http://myhost:8080/resin-doc/examples/hessian-service/math/ /uri === demo can work properly. -- Sincerely yours, Vitaliy Berdinskikh (Виталий Бердинских) ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Quercus + Web Services / Zend
On Nov 2, 2008, at 10:39 AM, Daniel Lopez wrote: Hi again, I think I found something related to the issue, as Quercus seems to have some problems with PHP static members. I've files this at: http://bugs.caucho.com/view.php?id=3038 -- Scott I created the following test: *** ? class Test { protected static $_instance = null; protected $_variable = null; /** * Singleton instance */ public static function getInstance() { $reflection = new ReflectionClass('Test'); foreach ($reflection-getProperties() as $property) { $name = $property-getName(); echo Member: .$name.BR / } if (null === self::$_instance) { self::$_instance = new self(); } return self::$_instance; } } $testInstance = Test::getInstance(); ? *** If I execute the test under regular PHP, the result is: --- Member: _instance Member: _variable --- If I execute it under Quercus, I just get --- Member: _variable --- The strange thing is that accessing the $_instance static memeber in this little test works, but a very similar code is inside Zend_Controller_Front class in the Zend framework and there it complains that $_instance has not been declared, even though you can see the declaration a couple of lines above. So, even though is seems it is not the full issue, it seems to be strongly related. In any case, one would say that reflection in Quercus is broken, right? Tested using Resin 3.1.7a and resin 3.2.1. Trying to use Zend in 3.2.1 I don't get the error I was showing above, but a blank page and no error message anywhere. S! D. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Issue with Resin setup in IIS
On Nov 1, 2008, at 10:21 PM, Stavros Stavrakis wrote: Hi All, I have a Windows 2003 server running an the 2.1.14 version of resin. We have multiple sites setup in resin at the moment. I’ve been attempting to upgrade to version 3.0 of Resin and had troubles surfing to my site I have. The main thing to check with IIS or Apache is the /caucho-status page, e.g. http://192.168.1.10/caucho-status. That page will show you the isapi_srun.dll version, the Resin instance used as a config server (to pass configuration from Resin to isapi_srun), and show the URL mapping and cluster configuration. So, you should look at that page first to understand why IIS isn't contacting Resin. -- Scott Basically, I am able to access my site via http://localhost:8080/application but when I try to get to it via the external IP address http://888.888.888.88/application it does not find it for some reason. I am guessing it’s resin.conf file tag that needs to be modified. I include below the host section (which I thought would need modifying in order to get the site running via the IP). Reading off the documentation, it states to set the IIS directory for the webapp root below.. Not sure what else I need to be wary of. Any help would be much appreciated. !-- configures the default host, matching any host name -- host id= root-directory=”.” !-- - configures an explicit root web-app matching the - webapp's ROOT -- web-app id=/ document-directoryD:/inetpub/ wwwroot//document-directory /web-app resin:if test=${java.isJava5()} !-- - Administration application /resin-admin - - password is the md5 hash of the password. - localhost is true to limit access to the localhost -- resin:set var=resin_admin_password default=/ resin:set var=resin_admin_localhost default=true/ web-app id=/resin-admin document-directory=${resin.home}/ php/admin/ /resin:if web-app id=/timesheet document-directory=${resin.home}/ webapps/timesheet/ /host Regards, Stavros Stavrakis image001.jpg ASTA Solutions Pty Ltd Address: Suite 9, 2 Park Drive, Bundoora, VIC 3083 Tel: +61 3 9479 3779 Fax: +61 3 9277 7130 Mob: +61 409 055 403 Web: http://www.astasolutions.com.au ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest