Son Bean

Greenhorn
+ Follow
since Sep 14, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Son Bean

hi all, i have met some problem. as my IBM Http Server crushed, i tried to uninstall it & install it again. after that, i cannot access the applications i host inside WAS, including those example applications included in WAS, the error is "http 404, the page cannot be find"
also the same problem occurs when i install new application into WAS. what did i do wrong?
22 years ago
thanks kyle! you are so helpful, i would like to buy your books!
BTW, 1 more question, i was using VAJ for professional, but i can only create/develop Servlets and Javabean with it, i don't know how to create/develop JSPs with it but with Websphere Studio! can any1 tell me why?
22 years ago
finally i agreed that it is better to use IBM server with IBM tools.
i have a question to ask, it is enough to use websphere studio advanced edition if i want to develop JSP, Servlet & Javabean?
seems VAJ professional edition is included in the Websphere studio package
thanks!
22 years ago
hi kyle, but i don't think that IBM tools are easy to use.
"much better" means JBuilder is much better than VAJ as an IDE....
22 years ago
hi guys, does anyone have the experience using the WAS 4.0 advanced single server edition while using JBuilder 5 enterprise edition for development?
also, could anyone tell me is that any problem for doing so?
i am choosing between VAJ enterprise edition & JBuilder 5 enterprise edition, but i found that JBuilder is much better!
22 years ago
thanks hong!
22 years ago
great!!! i am interested in that book
The book base on which version of IBM Websphere?
3.5 or 4.0?
22 years ago
could any1 tell me how to set classpath in WAS 4.0???
many thanks!!!
22 years ago
thanks hong!
i find out that the problem is fail to load the JDBC driver for websphere, where should i place the ifxjdbc.jar file(the JDBC driver for informix)? i already add the ifxjdbc.jar file to the classpath of my machine.

22 years ago
could anyone kind enough to help me?
i am a beginner in websphere, i have follow the WAS online document guide but still no help.hope you guys can give me some idea in what i have to do!
22 years ago
and the following is the error i got:
An Error Occurred While Processing Your Request...
The following error has been detected:

com.ibm.servlet.engine.webapp.WebAppErrorReport:
Full Stack Trace:

com.ibm.servlet.engine.webapp.WebAppErrorReport:
at com.ibm.servlet.engine.webapp.WebApp.sendError(WebApp.java:542)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:92)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:123)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:106)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:125)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:313)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:242)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)
22 years ago
i have written the following code with JBuilder, and it works well with Tomcat, but it cannot be run if i place it into some
existing application of WAS, can any1 help me?
package untitled25;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import java.sql.*;
public class Servlet1 extends HttpServlet {
private static final String CONTENT_TYPE = "text/html";
/**Initialize global variables*/
public void init() throws ServletException {
}
/**Process the HTTP Get request*/
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType(CONTENT_TYPE);
PrintWriter out = response.getWriter();
out.println("<html>");
out.println("<head><title>Servlet1</title></head>");
out.println("<body>");
out.println("
The servlet has received a GET. This is the reply.
");
jdbcConn(out);
out.println("</body></html>");
}
public void jdbcConn(PrintWriter out)
{
String cmd = null;
int rc;
Connection conn = null;
String newURL = "jdbc:informix-sqli:";
newURL = newURL + "//157.168.136.20:15260/stores:informixserver=hkgrs010_ol1;";
newURL = newURL + "user=informix;password=informix";
out.println("Connection starting....");
try
{
Class.forName("com.informix.jdbc.IfxDriver");
}
catch(Exception e)
{
System.out.println("ERROR: failed to load informix JDBC driver.");
e.printStackTrace();
}
try
{
conn = DriverManager.getConnection(newURL,"informix","informix");
}
catch (SQLException e)
{
System.out.println("ERROR: failed to connect!");
e.printStackTrace();
}
try
{
Statement stmt = conn.createStatement();
cmd = "select * from location";
ResultSet rs = stmt.executeQuery(cmd);
int i = 0;
out.println("location_id,loc_type");
while(rs.next())
{
String value1 = rs.getString("location_id");
String value2 = rs.getString("loc_type");
out.println("
row " + i + " : " + value1 + value2 + "
");
i++;
}
rs.close();
stmt.close();
}
catch(SQLException e)
{
System.out.println("ERROR: execution failed - statment: " + cmd);
System.out.println("ERROR: " + e.getMessage());
e.printStackTrace();

}
}
public void destroy() {
}
}
22 years ago