Re: [Resin-interest] Error on web application startup withaweb-service-client tag

2008-07-10 Thread Monson, Ron
Yep, I believe you are correct. It should be registered with WebBeans
and the preferred method these days is dependency injection.  Have you
considered that instead? Frankly I'm not sure if it's possible to have
Resin register it in JNDI after the 3.1.5 refactoring.  Maybe someone
else can weigh in before I get a chance to test a few more things out.
 
Ron




From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sashidhar Guduri
Sent: Thursday, July 10, 2008 8:49 AM
To: General Discussion for the Resin application server
Subject: Re: [Resin-interest] Error on web application startup
withaweb-service-client tag


Thanks for the reply but that format does not expose it using
jndi. Is there a way to expose using jndi for remote client tag? 

Sashi


On Thu, Jul 10, 2008 at 8:43 AM, Monson, Ron
[EMAIL PROTECTED] wrote:


Try this format instead:
 


remote-client name=myWebSvc
interface=example.MyWebService
uri=hessian:url=${webApp.url}/mywebsvc// 

 

Regards, 
Ron Monson
EDS - Homeland Security  Justice
Systems Architecture  Development
Dept. Of Homeland Security, SEVIS Project
800 K St. NW, Suite 830, Washington, DC 20001
Mobile (202) 437-2157
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  




From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sashidhar Guduri
Sent: Thursday, July 10, 2008 8:27 AM
To: General Discussion for the Resin application
server
Subject: [Resin-interest] Error on web
application startup with aweb-service-client tag


I get the following error when I start up resin:


[2008/07/10 08:22:22.454]
/usr/resin/resin-pro-3.1.6/conf/webservices.conf:11: 'url' is an unknown
property of 'com.caucho.remote.client.RemoteClient'.
[2008/07/10 08:22:22.454] 
[2008/07/10 08:22:22.454] 10:
web-service-client jndi-name=service/CosignService
[2008/07/10 08:22:22.454] 11:
urlhessian:http://172.20.57.97/test.msis.ws/services/CosignService/ur
l
[2008/07/10 08:22:22.454] 12:
interfaceedu.umich.authentication.cosign.CosignService/interface
[2008/07/10 08:22:22.454] 13:
/web-service-client

If I don't give a url, it complains that url is
required. Is there a bug in resin 3.1.6 to not handle the url tag
properly?

Thanks
Sashi


___
resin-interest mailing list
resin-interest@caucho.com

http://maillist.caucho.com/mailman/listinfo/resin-interest






-- 
Sashidhar Guduri, App Analyst Lead
UM Medical School Information Services
skype: guduri-umich
Office 734.615-6019 | Cell 734.604-3255 | Fax 734.615-5171
http://www.med.umich.edu/medschool/msis/ 

___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Error on web application startup withaweb-service-client tag

2008-07-10 Thread Scott Ferguson


On Jul 10, 2008, at 6:35 AM, Sashidhar Guduri wrote:

Resin documentation seems to have fallen behind. It looks like I  
can't depend on the documentation but instead experiment. Anyway  
here is what I found and I am getting a new exception now when I  
startup. I was able to use jndi-name for remote-client tag. My  
remote-client looks like this now:


remote-client jndi-name=service/CosignService
interfaceedu.umich.authentication.cosign.CosignService/ 
interface
urihessian:url=https://172.20.57.97/test.msis.ws/services/CosignService 
/uri

/remote-client


That's the correct configuration.


I get the followng exception when the app starts up


[2008/07/10 09:33:38.822] Caused by: java.lang.ClassCastException:  
com.caucho.remote.hessian.HessianProtocolProxyFactory$BeanProxy  
cannot be cast to edu.umich.authentication.cosign.CosignService
[2008/07/10 09:33:38.822] 	at  
edu 
.umich 
.authentication 
.cosign 
.filter 
.CosignAuthenticationFilter.init(CosignAuthenticationFilter.java:181)
[2008/07/10 09:33:38.822] 	at  
com 
.caucho 
.server.dispatch.FilterManager.createFilter(FilterManager.java:144)

[2008/07/10 09:33:38.822]   ... 19 more


That looks like a Resin bug.  I've filed it as 
http://bugs.caucho.com/view.php?id=2780

It looks like Resin is registering the wrong object (the factory) with  
JNDI.


-- Scott



Thanks
Sashi

On Thu, Jul 10, 2008 at 9:22 AM, Monson, Ron [EMAIL PROTECTED]  
wrote:
Yep, I believe you are correct. It should be registered with  
WebBeans and the preferred method these days is dependency  
injection.  Have you considered that instead? Frankly I'm not sure  
if it's possible to have Resin register it in JNDI after the 3.1.5  
refactoring.  Maybe someone else can weigh in before I get a chance  
to test a few more things out.


Ron

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
] On Behalf Of Sashidhar Guduri

Sent: Thursday, July 10, 2008 8:49 AM

To: General Discussion for the Resin application server
Subject: Re: [Resin-interest] Error on web application startup  
withaweb-service-client tag


Thanks for the reply but that format does not expose it using jndi.  
Is there a way to expose using jndi for remote client tag?


Sashi

On Thu, Jul 10, 2008 at 8:43 AM, Monson, Ron [EMAIL PROTECTED]  
wrote:

Try this format instead:



remote-client name=myWebSvc interface=example.MyWebService  
uri=hessian:url=${webApp.url}/mywebsvc//


Regards,
Ron Monson
EDS - Homeland Security  Justice
Systems Architecture  Development
Dept. Of Homeland Security, SEVIS Project
800 K St. NW, Suite 830, Washington, DC 20001
Mobile (202) 437-2157
[EMAIL PROTECTED]


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
] On Behalf Of   Sashidhar Guduri

Sent: Thursday, July 10, 2008 8:27 AM
To: General Discussion for the Resin application server
Subject: [Resin-interest] Error on web application startup with aweb- 
service-client tag


I get the following error when I start up resin:

[2008/07/10 08:22:22.454] /usr/resin/resin-pro-3.1.6/conf/ 
webservices.conf:11: 'url' is an unknown property of  
'com.caucho.remote.client.RemoteClient'.

[2008/07/10 08:22:22.454]
[2008/07/10 08:22:22.454] 10: web-service-client jndi- 
name=service/CosignService
[2008/07/10 08:22:22.454] 11: urlhessian:http://172.20.57.97/test.msis.ws/services/CosignService 
/url
[2008/07/10 08:22:22.454] 12:  
interfaceedu.umich.authentication.cosign.CosignService/interface

[2008/07/10 08:22:22.454] 13: /web-service-client

If I don't give a url, it complains that url is required. Is there a  
bug in resin 3.1.6 to not handle the url tag properly?


Thanks
Sashi

___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest




--
Sashidhar Guduri, App Analyst Lead
UM Medical School Information Services
skype: guduri-umich
Office 734.615-6019 | Cell 734.604-3255 | Fax 734.615-5171
http://www.med.umich.edu/medschool/msis/

___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest




--
Sashidhar Guduri, App Analyst Lead
UM Medical School Information Services
skype: guduri-umich
Office 734.615-6019 | Cell 734.604-3255 | Fax 734.615-5171
http://www.med.umich.edu/medschool/msis/
___
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