kishani liyanage

Ranch Hand
+ Follow
since Dec 08, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by kishani liyanage

hey Please can someone tell me what are the advantages of using EJB's over JSP and servlets?

Thanx in advance
hi i use a jsp page to for the purposes of user login and password verification.

Please tell me how i can use SSL to add security.
And also how i can use public and private key authentication.

Thanx in advance.
Kishani
20 years ago
well i did set it up but how do i view the message flow?
20 years ago
Hi, i need some help very badly. I wrote this class to make a web service out of it.
I deployed it on Tomcat server using Axis 1.1. But it does not get deployed -
(cannot see the wsdl and i cannot view it using the axis servlet. But the service
is there in the server-config file. but does not have a log file.)
Can somebody give me a solution?
the service is this.

package project.ws2;
import java.io.*;
public class Batk {


public String kk() {

Runtime r = Runtime.getRuntime();
Process p = null;
String temp="";
try {
p = r.exec("C:\\b.bat");

InputStream i=p.getInputStream();
int data;


while ( ( data=i.read() ) != -1 )

{temp += (char) data;
}//while

i.close();
System.out.println(temp);


}//try


catch (Exception e ) {
System.out.println("Error executing notepad.");
}//catch

return temp;
}//kbat

}//class
20 years ago
One question i forgot to ask was how i could do that.
Here's how i did it....
Once i deployed the the service to the server i invoked the client and tried to view the soap messages passing - But did not see any message flowing.
Please advice me.
20 years ago
hi
can i use the soapMonitor to view soap message passing -for a web service, when the client program an the server both resides in the same machine?
20 years ago
Hi there,
has anyone used asis samples and made use of it?
Does anyone know how to run the axis\samples\userguide\example4 .
Please give me a step wise guide.
Thanx in advance
20 years ago
hi , i'm new to j2me and wireless programming and i need some help! Pity me if the question sounds silly.
I have a web service which i access from a midp client using the j2me wireless toolkit 1.4 along with ksoap and kxml libraries files. suppose you have this service published in a web site and you can invoke it using a jsp client. In a similar fashion how can i invoke this service from the web site using a j2me simulator?(having a midp client) (what i mean is how can i login to the web site and invoke it using a j2me simulator?)
how should i use a markup language to solve this. If i'm using WML what is the link it has with midlets.
awaiting for a kind reply
Thanx in advance
Kishani
20 years ago
Hi,
I trying to invoke a web service published in the wsdk registry. What i did was -
I created a simple web service and deployed it in to the tomcat server. Then i published
the service to the wsdk uddi registry givin the overiew URL as well(http://localhost:8080/axis/services/CK?wsdl)
But while trying to invoke the service i get this error. Please help me to resolve this.
C:\jakarta-tomcat-3.2.4\webapps\kishani123>java DynamicInvoke
Retrieving document at 'http://localhost:8080/axis/services/CK?wsdl'.
WSDLException: faultCode=OTHER_ERROR: No WSDL interface definition found.:
at DynamicInvoke.parseWSDL(DynamicInvoke.java:195)
at DynamicInvoke.run(DynamicInvoke.java:59)
at DynamicInvoke.main(DynamicInvoke.java:52)

Please help me
Thanx in advance
Kishani
20 years ago
Hi,
I have a jsp from which i'm trying to call a class called FindBusinessExample.class when a value is passed through the jsp.( finds the defined name from the uddi test registry.)But i get the following exception. Can somebody help???//
The package structure for the class file is - tkv.tris.
the FindBusinessExample.class works fine when it is run from the command line. But gives the following error when referenced from a jsp.(could it be due to the package name that i'm importing in the class)
(I have included the uddi4j.jar in the WEB-INF/LIB as well)
root cause
java.lang.NoClassDefFoundError: org/apache/soap/Envelope
at com.ibm.uddi.client.UDDIProxy.send(UDDIProxy.java:1200)
at com.ibm.uddi.client.UDDIProxy.send(UDDIProxy.java:1187)
at com.ibm.uddi.client.UDDIProxy.find_business(UDDIProxy.java:192)
at tkv.tris.FindBusinessExample.run(FindBusinessExample.java:86)
at org.apache.jsp.new$jsp._jspService(new$jsp.java:90)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
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:190)
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:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
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:174)
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.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:579)
20 years ago
Please tell me how i could write a simple web service to update and delete
data from an access database.
20 years ago
Hi, I'm doing web development as a subject in uni, and i got this assignment in which
i'm asked to demo some features of "web services".
Can anybody tell me how i could show- that web services supports legacy applications using a very
simple example. a very simple application would serve the purpose(I'm using Axis for development environment)
thax in advance!
20 years ago
I have included all the jar files in my classpath as well as in the the tomcat lib. But still that error occcures. Please help me.
20 years ago
Please help me i get this error when compiling the jsp

Incompatible type for declaration. Can't convert java.lang.String to java.lang.String[].
java.lang.String[] selectedItems = request.getParameter("ItemID");
^
20 years ago
JSP
Hi,
I have a jsp from which i'm trying to call a class called FindBusinessExample.class( finds the defined name from the uddi test registry.)But i get the following exception. Can somebody help???//
(I have included the uddi4j.jar in the WEB-INF/LIB as well)

root cause
java.lang.NoClassDefFoundError: org/apache/soap/Envelope
at com.ibm.uddi.client.UDDIProxy.send(UDDIProxy.java:1200)
at com.ibm.uddi.client.UDDIProxy.send(UDDIProxy.java:1187)
at com.ibm.uddi.client.UDDIProxy.find_business(UDDIProxy.java:192)
at tkv.tris.FindBusinessExample.run(FindBusinessExample.java:86)
at org.apache.jsp.new$jsp._jspService(new$jsp.java:90)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
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:190)
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:2347)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
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:174)
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.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:579)
20 years ago