Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: How to change remote JNDI-name in Jonas

Florent BENOIT <[email protected]> Fri, 26 Aug 2011 15:34:04 +0200
Newsgroups gmane.comp.java.objectweb.jonas
Message-ID <[email protected]>
     Hi,

If you get a remote interface instead of the local interface and if 
you've used the mappedName attribute, it means that you've at least two 
interfaces
The thow proxies are registered with the same name : mappedName
By using only one interface, proxy won't be registered twice and you'll 
get the expected interface/proxy

It is planned to allow to set each JNDI name of the interfaces but it's 
not yet available in JOnAS 5.2

Regards,

Florent

On 08/26/2011 02:38 PM, Stefaan Somers wrote:
> Can you have a look at the following EAR-file. When running the
> followin URL, it gives me the error :
>          at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterCh
>          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java
>          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>          at org.ow2.jonas.web.tomcat6.CheckOpenResourcesValve.invoke(CheckOpenResourcesValve.jav
>          at org.ow2.jonas.web.tomcat6.tx.TransactionValve.invoke(TransactionValve.java:90)
>          at org.ow2.jonas.web.tomcat6.ResetAuthenticationValve.invoke(ResetAuthenticationValve.j
>          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:340)
>          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
>          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protoc
>          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>          at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.ClassCastException: $Proxy52 cannot be cast to
> be.sso.test.ParametersLocal
>
>
> When debugging in Eclipse, I see I get the remote interface back.
>
> Greetings,
>
> Stefaan Somers