Exception when accessing RMI methods from XSP

2003-03-13 Thread Idhaya Chandran



Hi,
 
I am trying to 
access a RMI Server from an XSP page.
I am looking up the 
remote object and invoke the method on that.
When I invoke the 
remote method, I am getting the following exception.
 
"java.net.MalformedURLException: unknown 
protocol: jndi"
 
Please help me to 
fix this.
Thanks in 
advance
 
-Idhaya
 
STACK 
TRACE
 
java.rmi.ServerException: RemoteException occurred 
in server thread; nested exception 
is:    java.rmi.UnmarshalException: 
error unmarshalling arguments; nested exception 
is:    
java.net.MalformedURLException: unknown protocol: 
jndi    at 
sun.rmi.server.UnicastServerRef.dispatch(Unknown 
Source)    at 
sun.rmi.transport.Transport$1.run(Unknown 
Source)    at 
java.security.AccessController.doPrivileged(Native 
Method)    at 
sun.rmi.transport.Transport.serviceCall(Unknown 
Source)    at 
sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown 
Source)    at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown 
Source)    at 
java.lang.Thread.run(Unknown 
Source)    at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)    
at 
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)    
at 
sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)    
at com.test.RMIServer_Stub.searchDocument(Unknown 
Source)    at 
com.test.SearchHelper.searchDocument(SearchHelper.java:37)    
at 
org.apache.cocoon.www.content.searchDoc_xsp.generate(D:\server\jakarta-tomcat-4.0-b5\work\localhost\test\cocoon-files\org/apache/cocoon/www/content\searchDoc_xsp.java:149)    
at 
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenerator.java:258)    
at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)    
at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:395)    
at 
org.apache.cocoon.www.sitemap_xmap.matchN1039A(D:\server\jakarta-tomcat-4.0-b5\work\localhost\test\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:2979)    
at 
org.apache.cocoon.www.sitemap_xmap.process(D:\server\jakarta-tomcat-4.0-b5\work\localhost\test\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:2546)    
at 
org.apache.cocoon.www.sitemap_xmap.process(D:\server\jakarta-tomcat-4.0-b5\work\localhost\test\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:2467)    
at 
org.apache.cocoon.sitemap.Handler.process(Handler.java:227)    
at 
org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)    
at 
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152)    
at 
org.apache.cocoon.Cocoon.process(Cocoon.java:579)    
at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)    
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)    
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:254)    
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:194)    
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:255)    
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)    
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)    
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)    
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:225)    
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)    
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)    
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)    
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)    
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)    
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2252)    
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)    
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)    
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:446)    
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)    
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)    
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)    
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)    
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)    
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)    
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

RE: Jumping within sitemap?

2003-02-12 Thread Idhaya Chandran
I think u can achieve this using selectors.
You can have ur custom selectors.

--Idhaya

-Original Message-
From: Sonny Sukumar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 1:29 PM
To: [EMAIL PROTECTED]
Subject: Jumping within sitemap?



Hi guys,

I'm wondering if it's possible to jump from one place
in the sitemap to another.  I made up the following
code, but it's basically what I'm aiming to do:


  


  

  
  



  
  
  



  


It's like calling a function/method in a programming
language, and it thus supports reuse of factored out
code.

Does it make sense?

Please let me know how we can do it! :-)

Thanks,

Sonny

__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




RE: Dynamic XSL evaluation

2003-02-12 Thread Idhaya Chandran
You can use 

instead of 


--Idhaya
-Original Message-
From: Yatin Shah [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 6:09 AM
To: [EMAIL PROTECTED]
Subject: Dynamic XSL evaluation


My application access DB for content(Using SQL Transformer) which later 
gets transformed into HTML via xml2html transformer.
For example, I have following sniippet in my xml2html transformer:





This works fine.
If the welcome_title was " Hello. Welcome to Acme, Inc. "
Then the embeded HTML code is not interperted as HTML tags.
Regardless of how it's embeded in the data(as  or as ) it is 
included as it was embeded.

What I like to do is to dynamically evaluate the content of 
$welcome_title so that embeded HTML tags are detected and parsed as:


Hello. Welcome to Acme, Inc.



Even better would be to be able to include any XML tags and have it 
dynamically evaluated by the xml2html transformer.
Any one have any ideas?
Thanks for your help.
-Yatin


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>