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">
        <interface>edu.umich.authentication.cosign.CosignService</interface>
        <uri>hessian:url=
https://172.20.57.97/test.msis.ws/services/CosignService</uri>
</remote-client>

I get the followng exception when the app starts up

[2008/07/10 09:33:38.822] javax.servlet.ServletException:
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
com.caucho.server.dispatch.FilterManager.createFilter(FilterManager.java:174)
[2008/07/10 09:33:38.822] at
com.caucho.server.dispatch.FilterManager.init(FilterManager.java:91)
[2008/07/10 09:33:38.822] at
com.caucho.server.webapp.WebApp.start(WebApp.java:1871)
[2008/07/10 09:33:38.822] at
com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667)
[2008/07/10 09:33:38.822] at
com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[2008/07/10 09:33:38.822] at
com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549)
[2008/07/10 09:33:38.822] at
com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160)
[2008/07/10 09:33:38.822] at
com.caucho.server.webapp.WebAppContainer.start(WebAppContainer.java:659)
[2008/07/10 09:33:38.822] at
com.caucho.server.host.Host.start(Host.java:450)
[2008/07/10 09:33:38.822] at
com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667)
[2008/07/10 09:33:38.822] at
com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[2008/07/10 09:33:38.822] at
com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:549)
[2008/07/10 09:33:38.822] at
com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160)
[2008/07/10 09:33:38.822] at
com.caucho.server.host.HostContainer.start(HostContainer.java:484)
[2008/07/10 09:33:38.822] at
com.caucho.server.cluster.Server.start(Server.java:1315)
[2008/07/10 09:33:38.822] at
com.caucho.server.cluster.Cluster.startServer(Cluster.java:710)
[2008/07/10 09:33:38.822] at
com.caucho.server.cluster.ClusterServer.startServer(ClusterServer.java:542)
[2008/07/10 09:33:38.822] at
com.caucho.server.resin.Resin.start(Resin.java:703)
[2008/07/10 09:33:38.822] at
com.caucho.server.resin.Resin.initMain(Resin.java:1157)
[2008/07/10 09:33:38.822] at
com.caucho.server.resin.Resin.main(Resin.java:1360)
[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

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] <[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:         <url>hessian:
>> http://172.20.57.97/test.msis.ws/services/CosignService</url>
>> [2008/07/10 08:22:22.454] 12:
>> <interface>edu.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

Reply via email to