Win a copy of Rust Web Development this week in the Other Languages forum!

meddie katongole

Greenhorn
+ Follow
since Aug 03, 2001
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 meddie katongole

we are having the same problem too. We are using DB2 for the repository but we use Sybase 12.0 for our other data. We have WAS 4.0.3 on Windows 2000 Server. So if IBM tells you that other people are not getting the same problem, they are not being accurate.
Meddie
[ November 07, 2002: Message edited by: meddie katongole ]
19 years ago
I am trying to access data in a DB2 database from VAJava 4.0. I used the driver that I had from 3.5 and its not working. Does anyone know where I can find another driver or does it exist at all?
20 years ago
Is WAS 4.0 compatible with WIndows XP? I have downloaded the trial version but I cannot Install it. I keep on getting an error.
Any advice and/or comment are greatly appreciated.
[This message has been edited by meddie katongole (edited November 22, 2001).]
20 years ago
Hello,
I trying to access data which is on OS390 Mainframe on a DB2 database. I am using WAS3.5.3 and JSPs but I keep on getting
an UnsatisfiedLinkError. Any ideas from anybody?
Thank you in advance!!
20 years ago
I can access mine from the control center, but how can I access this database from a browser?
I tried using a JDBC driver but I keep on getting errors.
(my db is on OS390)
20 years ago
Hello,
I have trouble accessing the database that I have on a Main frame using a JDBC driver. The db is in DB2 and I am using WAS 3.5.3. I wonder if anyone has done it and can tell briefly what I shoud have in place because I could be missing something.
(I am using DB2 Connect to access the data from a DB2 Control Center).
Thank you in advnace for all your help.
20 years ago
I having a similar problem too. How did you deploy your EJB?
Do I need the WAS even if I am running in a test environment?
[This message has been edited by meddie katongole (edited September 07, 2001).]
20 years ago
Yes I use the setter and getter methods in my EJB. Here is the code below for my jsp (I took out the opening "<" in order for it not to run like an html file.<br /> jsp:useBean id="CddistBean" scope="page" class="cdconventiondelegates.CddistBean">
jsp:setProperty name="CddistBean" property="*"/>
/jsp:useBean>
html>
head>
META name="GENERATOR" content="IBM WebSphere Page Designer V3.5.2 for Windows">
META http-equiv="Content-Style-Type" content="text/css">
title>useBean action test result</title>
/head>
BODY background="file:///C:/Program Files/WebSphere/Studio35/projects/CDConvention Delegates 1.2/blue_p1b.gif">
h1>useBean action test result/h1>

The District name is:jsp:getProperty name ="CddistBean" property="CDDist_DistName"/>/P>

The delegate count is:jsp:getProperty name ="CddistBean" property="CDDist_DelCnt"/>/P>

The alternate count is:jsp:getProperty name ="CddistBean" property="CDDist_AltCnt"/>/P>

The delegate number is:jsp:getProperty name ="CddistBean" property="CDDist_DelMbrNo"/>/P>

The alternate number is:<jsp:getProperty name ="CddistBean" property="CDDist_AltMbrNo"/>

Originally posted by Jun Hong:
So, your JSP is using an Java Bean. Does this bean have that getXXX() method?
By the way, how does this Jave Bean access EJB? In the constructor?
Jun Hong


[This message has been edited by meddie katongole (edited September 07, 2001).]
[This message has been edited by meddie katongole (edited September 07, 2001).]
[This message has been edited by meddie katongole (edited September 07, 2001).]
20 years ago
Hello,
I am trying to access my database using the use bean tag
in the jsp. I have created the EJB, I have the database (db2 v7.1) but I am getting the error below. Does anyone have any ideas?
I get this error after I enter the value in
the HTML page and submit!!

Error 500
An error has occured while processing request:http://localhost:8080/CDUseBean.jsp
Message: "getProperty(Cddistdelmbr): cant find method to read {1}"
Target Servlet: jsp
StackTrace:
--------------------------------------------------------------------------------
Root Error-1: "getProperty(Cddistdelmbr): cant find method to read {1}"
com.ibm.servlet.engine.webapp.WebAppErrorReport: "getProperty(Cddistdelmbr): cant find method to read {1}"
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.servlet.ServletException(java.lang.String)
com.ibm.websphere.servlet.error.ServletErrorReport(java.lang.String)
com.ibm.servlet.engine.webapp.WebAppErrorReport(java.lang.String)
void com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(int, java.lang.String)
void com.sun.jsp.runtime.JspServlet.unknownException(javax.servlet.http.HttpServletResponse, java.lang.Throwable)
void com.sun.jsp.runtime.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.ibm.servlet.engine.webapp.StrictServletInstance.doService(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.ibm.servlet.engine.webapp.IdleServletState.service(com.ibm.servlet.engine.webapp.StrictLifecycleServlet, javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.ibm.servlet.engine.webapp.ServletInstance.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse, com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
void com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(com.ibm.servlet.engine.webapp.ServletInstanceReference, javax.servlet.ServletRequest, javax.servlet.ServletResponse, com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
void com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(javax.servlet.ServletRequest, javax.servlet.ServletResponse, com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
void com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(com.ibm.servlet.engine.webapp.WebAppRequest, javax.servlet.http.HttpServletResponse, boolean)
void com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(javax.servlet.ServletRequest, javax.servlet.ServletResponse, boolean)
void com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(java.lang.Object)
void com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(java.lang.Object)
void com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(java.lang.String, com.ibm.servlet.engine.srp.ISRPConnection)
void com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(com.ibm.servlet.engine.oselistener.api.IOSEConnection)
void com.ibm.servlet.engine.http_transport.HttpTransportHandler.handleConnection(java.net.Socket)
void com.ibm.servlet.engine.http_transport.HttpTransportHandler.run()
void java.lang.Thread.run()

Thanks.
[This message has been edited by meddie katongole (edited September 06, 2001).]
20 years ago
I wonder what the problem is, try using the forward tag. Also try using the include directiove as opposed to the regular include.
I will e-mail you my code and you look at it.


[This message has been edited by meddie katongole (edited September 05, 2001).]
20 years ago
Right click on the localhost, choose properties and the publishing tab.
Here make sure that the radio button checked is the one next to "publish using file system: and on the drop down select WINNT.
Go doen to the "Webapp web path:" and make sure that this is blank.
Go to "publishing target:" and click on the "targets" button. For html and servlets, put it the path where your localhost is located. Because by default Websphere publishes under a "publish" folder in studio.
I hope that this helps.
20 years ago
Try using the "forward" tag, something like here below
<% if ((session.getValue("CDDist_No").equals("1005") {<br /> <jsp:forward page="CDDist.jsp"/>
<% } else { <br /> <%@ include file="CDError.html" <br /> <% }<br /> I intentionally missed the closing tags %> after the opening bracket which comes after ("1005") and after else { and after "CDError.html" because if I put them there the browser interpretes it as a program and does not show what I typed.
I hope this works

Originally posted by Ramesh Rajaram:
Hi Narendra,

Here I mean that my webserver (e.g IBM HTTP Server) is still running. Only my Appserver is down. In that case whether it is possible to throw some static HTML Page from the webserver.


[This message has been edited by meddie katongole (edited August 28, 2001).]
[This message has been edited by meddie katongole (edited August 28, 2001).]
20 years ago
You connect to the database using "connect to db" where db is the name of the database and it tells you whether you have a connection or not.
Try it and see.

Originally posted by jason jones:
I am not sure how that will help. The database does seem to be online and available from within the Db2 tools, however, when the Petstore demo attempts to access the database via jdbc I get the error message described below.


20 years ago
Jason,
Did you try to access the database from the Command Line Processor?
It is under IBM DB2>> Command Line Processor.
See if that helps.
Meddie

Originally posted by jason jones:
I have installed Web Application Server 4.0 and DB2 version 7.2/Version 7.1 FixPak 3. I have both products running on the same Win2K Server machine (development / evaluation purposes only).
I have followed all the setup instructions as per the documentation for DB2 and everything looks fine. I can query the tables that the scripts create etc through DB2 control center etc, however, when I try to enter the Petstore store, I get the message:
"Unable to Connect to Database Database Connection is closed: Confirm that you have started your database".
When I look in the default_server_stdout.log file I see the following error message:

[01.08.27 20:09:11:988 EDT] 4d58298f Helpers W NMSV0610I: A NamingException is being thrown from a javax.naming.Context implementation. Details follow:
Context implementation: com.ibm.ws.naming.java.javaURLContextRoot
Context method: lookup(String)
Context name: java:
Target name: java:comp/env/jdbc/EstoreDataSource
Other data:
Exception stack trace: com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while attempting to get an instance of the object for the specified reference object. Root exception is com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while attempting to get an instance of the object for the specified reference object. Root exception is javax.naming.NamingException: ClassNotFoundException: COM.ibm.db2.jdbc.DB2ConnectionPoolDataSource
at com.ibm.websphere.advanced.cm.factory.DataSourceFactory$ResourceReferenceObjectFactory.getObjectInstance(DataSourceFactory.java:754)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:308)
at com.ibm.ws.naming.urlbase.UrlContextHelper.isReference(UrlContextHelper.java:115)
at com.ibm.ws.naming.urlbase.UrlContextHelper.processBoundObjectForLookup(UrlContextHelper.java:221)
at com.ibm.ws.naming.urlbase.UrlContext.lookup(UrlContext.java:1181)
at com.ibm.ws.naming.urlbase.UrlContext.lookup(UrlContext.java:1158)
at com.ibm.ws.naming.urlbase.UrlContext.lookup(UrlContext.java:1210)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.ibm.ws.naming.util.IndirectJndiLookupObjectFactory.getObjectInstance(IndirectJndiLookupObjectFactory.java:193)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:308)
at com.ibm.ws.naming.urlbase.UrlContextHelper.isReference(UrlContextHelper.java:115)
at com.ibm.ws.naming.urlbase.UrlContextHelper.processBoundObjectForLookup(UrlContextHelper.java:229)
at com.ibm.ws.naming.urlbase.UrlContext.lookup(UrlContext.java:1181)
at com.ibm.ws.naming.urlbase.UrlContext.lookup(UrlContext.java:1158)
at com.ibm.ws.naming.urlbase.UrlContext.lookup(UrlContext.java:1210)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.sun.j2ee.blueprints.tools.populate.web.PopulateServlet.getDBConnection(PopulateServlet.java:359)
at com.sun.j2ee.blueprints.tools.populate.web.PopulateServlet.checkConnection(PopulateServlet.java:179)
at com.sun.j2ee.blueprints.tools.populate.web.PopulateServlet.doGet(PopulateServlet.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:159)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:286)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:106)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:499)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:278)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:105)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:67)
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.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:122)
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)
Is there another db driver that I should be using instead of COM.ibm.db2.jdbc.DB2ConnectionPoolDataSource?
Thanks
Jason
jasonnewyork@yahoo.com


20 years ago
Hi,
Yes I found out that it comes on the Web App server CD.
Thank you for your help.

Originally posted by roxcy tal:
I think httpserver dosen't come with vaj and websphere studio.
u have to install seperately.
anyone can correct me if iam wrong.


20 years ago