raj guntupalli

Greenhorn
+ Follow
since Dec 16, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by raj guntupalli

May be before giving the bean the beanness(may be before setting the session context) the container might look into the descriptor file to look what are the necessary services to be provided(if cmt provide transaction support,what type of bean it is etc)so If the container finds its of type stateless then it might do the interface check
1)I think you cannot define a create exception in the remote interface
(home interface)
2)You cannot return the bean itself but an ejbobject which represents the bean
3) For a stateful session bean there can be any number of create methods with different parameters which will be represented by a EJBCreate in the bean
I have recently registered a domain name with 1&1.
They have provided me with their name server and I have given them my ip address(provided by my ISP)
Now I want to host my website.Now for testing I want to use my local machine as a server so I installed tomcat5.5 on my machine.
I have created a web application called xxx in the webapps folder.
How can I configure tomcat to view my web pages. I changed the host name in server.xml but that did not work out.

Thank you in advance
19 years ago
The end application is not a browser but is a cgi or servlet etc
I am sending response like this to the client app.Is there any way I can get the response if the following code resides in one application server and the client resides in (ex lets says tomcat and is a servlet.)Can anyone help me how to write a sample client which has to get the response and then redirect it to the browser.Thanx
resp.setContentType("text/html");
PrintWriter out = new PrintWriter(resp.getOutputStream());
out.println(plainUrl);
20 years ago
Hi ,
I need to send a redirect url from my servlet to a cgi app which takes the url and redirects it to the corresponding app.Can I do something like this
and can the client take it as a url string.Thanx
I am using something like
buffer.append("SomeServlet");
buffer.append("JSESSIONID=");
buffer.append(sessionValue);
buffer.append("?");
buffer.append(req.getAttribute("remoteURLExpirationID").toString());
buffer.append("=");
buffer.append(System.currentTimeMillis());
PrintWriter out = new PrintWriter(resp.getOutputStream());
out.println(urlString);
20 years ago
Hi,
I am using the following code in one jsp which calls another but I am getting null.I am using tomcat 4.1.Thanx in advance.
<html>
<%! String name="075000051"; %>
<%! String disply="test11"; %>
<%
response.setHeader("hello","hello1");
%>
<form action="http://localhost:20000/examples/jsp/jsptoserv/jsptoservlet.jsp" method="post">
<input type="hidden" name="institution_name" value="<%=name%>">
<input type="hidden" name="user_display_number" value="<%=disply%>">
<input type="submit" name="submit">
</form>
</html>
jsptoservlet.jsp
<html>
<body bgcolor="white">
<%=request.getHeader("hello")%>
</html>
20 years ago
JSP
Hi,
com.ibm.servlet.engine.webapp.WebAppDispatcherRequest myReq =(com.ibm.servlet.engine.webapp.WebAppDispatcherRequest) request;
String url = "/Remote";
myReq.setRawParameters(temp_map);
myReq.setPathInfo(url);
Stis giving an
request.getRequestDispatcher("/RemServlet").forward(
myReq,
response);
String value=req.getParameter(name) is giving a
but the getParameterNames is working fine
Servlet Error: java.lang.String: java.lang.ClassCastException: java.lang.String
Thanx
20 years ago
I will be getting a request from a secured site like https://www.x.com?id=12&value=1234.
I have written a servlet to map the keys id and value to different values
and formed a query string like id1=12&value1=1234.
Then I have to post the data to another servlet which accepts this id1 and value1.I have done it using sendRedirect.This servlet does the client verification etc and calls another servlet which creates a session and my servlet has to recieve the session ID and pass it back to the client(Single signon)
My quetion is
1)Is it safe to use sendRedirect and is there any other way to post the data to that servlet.
2)How will make my servlet receive the session Id.Do the servlet which handles the session has to post the session Id back to me.
Thanx
20 years ago
Dear all,
Can anybody explain to me how to get around this problem, when I try to run the Blazix blxejbc?
Exception in thread "main" java.lang.NoClassDefFoundError: desisoft/ejbtools/Ejb Compiler
Many thanks
Rajasekhar Guntupalli
Hi ,
Can anyone please tell me how to deploy a servlet in weblogic8.0.In tomacat it was easy to keep the servlet in webapps/appfolder/WEB-INF/classes.So is it different for weblogic server.Please Help.Thanx.Byee
21 years ago
Hi,
I have the following problem when starting weblogic server 8.1(http://localhost:7001/).But when I type (http://localhost:7001/console/)its working fine.
Error 404--Not Found
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.5 404 Not Found
The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
21 years ago
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
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:201)
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:2344)
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.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:462)
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)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:536)

root cause
java.lang.NoSuchMethodError: javax.servlet.ServletContext.getResourcePaths(Ljava/lang/String Ljava/util/Set;
at org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.java:202)
at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139)
at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:324)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
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:201)
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:2344)
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.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:462)
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)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:536)
21 years ago
JSP
Hi ,
I have started learning struts.so I have downloaded struts version 1.0.2 and then copied struts-blank.war and put it in webapps of tomcat4.0.1 web server.When I have restarted the server it created a struts-blank folder in webapps and everthings fine except when I typed http://localhost:8080/struts-blank/index.jsp I got the following error.
javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception.
Remaining all webapplications are working except the struts one which I have put recently.Please help me out.Thanx.Byee
21 years ago
JSP
I have just started learning ejbs.I have deployed the ejb with the j2sdkee1.3.1 server using deploytool(EJBHome,Ejbremote interfaces,ejb class file) and it created ear and jar files.I also wrote a small client program but please tell me how to execute the client program and how I can see the result of the function in the ejb class on the client side.Thanx .bye
Can anyone suggest what I have to do to install DB2 as a remote database.I want to install db2 on one my computers(xp)on the network(home network).My websphere application server will be on my laptop(which is another computer on the network).I want to access the db2 through the Websphere.Byee