apurva mehta

Ranch Hand
+ Follow
since Nov 21, 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 apurva mehta

hello everyone,
i want to that how to check whether the client browser accepts the cookies or not ??? if its not accepted then whats the other method for it.
regards,
apurva
21 years ago
JSP
hi matthew,
Sorry that I forgot to tell you in my first mail that I dont use VAJ !!! instead I use JBuilder4.
So Any other tips from your side....
By the way can we manually change the map.mapxmi & Schema.dbxmi files ??? to my original table name ???
please help.....
regards,
Apurva
21 years ago
hi matthew,
To be very frank I didnt got your point, please tell it in more simpler words !!!
By the way which code to be exported ???
thanks for the reply ....
regards...
Apurva
21 years ago
Hello everyone,
I have done a project which comprises of CMP Entity bean, stateless Session Bean. I have
tested the project on inprise App server, it works fine. I use DB2 database. I have successfully installed the project on WAS4.0 Advanced edition. But my problem is that
when I try to run the client program I get the Non-application exception -------
CNTR0019E: Non-application exception occurred while processing method create:
com.ibm.websphere.cpi.CPIException: COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI
Driver][DB2/NT] SQL0204N "BAIJU.CHILDREF" is an undefined name. SQLSTATE=42704; nested
exception is:
COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/NT] SQL0204N "BAIJU.CHILDREF" is an undefined name. SQLSTATE=42704COM.ibm.db2.jdbc.DB2Exception:
[IBM][CLI Driver][DB2/NT] SQL0204N "BAIJU.CHILDREF" is an undefined name.
SQLSTATE=42704
----- Begin backtrace for detailCOM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/NT]
SQL0204N "BAIJU.CHILDREF" is an undefined name. SQLSTATE=42704
-----------------------------------------
In the above error message "BAIJU.CHILDREF" is not actual table name (actual table name
on which i have created the entity bean is "BAIJU.CHILD_REF").I have noticed that
Websphere by default removes any underscore ("_") from the table name or the Column name
of the table (I have checked this in Schema.dbxmi & Map.mapxmi files). I have many tables names & column names which has underscore character in it. Every tables which has underscores ("_") gives almost similar error.
The tables which doesn't have underscore ("_") in there name & which contains the column names without underscore ("_") works fine.
Does this means that Application deployed on WAs 4.0 should not have underscores ("_") as the table & column name ???
please help me urgently......
regards..
Apurva.
21 years ago
hello everyone,
please help me urgently........
I am encountering a problem while assembling the Ejb in to the jar file. I had already developed & tested an application using Ejb on Inprise App server, now i am testing this application on WAS Advanced Edition v4.0. I am using CMP Entity beans. My problem is that in some primary key class I have declared primary key fields as type of remote interface reference.
(for e.g
public class UsrloginPK implements Serializable
{
public String userid;
public CompanyMast companymast;--remote reference
//....
}
Actually in database for this particular table I have declared 3 primary keys(i.e composite) for Usrlogin--userid, coId & unitId. But I combined coId & unitId into companyMast (since my database design is as such)
This companyMast is also an entity bean which contain two primary keys(i.e composite)coId & unitId.(In many primary keys class of my application has this concept)it works fine with Inprise application server. But when I try to assemble the jar file using Application Assembly Tool, add new CMP Entity bean it asks me for required paths for home,remote,PK..etc I add it correctly then when I try to add the CMP Fields for the particular CMP Entity beans which has Primary key field as a remote reference ( as shown above), it doesnt display any fields to be added in the CMP Fields ???(as it displays the various CMP Fields if the primary key fields are primitive datatypes or String). I had also declared finder methods in home interface but since I am not able to add any CMP Fields, I am not able to see any finder methods declared in home interface in "Method Extension" panel in AAT ???
Other CMP Entity beans which have primitive primary key fields in my application has been added successfully in the jar using AAT.
How can this be achieved in WAS v4.0 ???
Is there any way ???
I tried my best to explain the problem in simple words....hope u all would understand it..
please help me urgently........
thanx in advance,
regards...
Apurva.
21 years ago
hello everyone,
please help me urgently........
I am encountering a problem while assembling the Ejb in to the jar file. I had already developed & tested an application using Ejb on Inprise App server, now i am testing this application on WAS Advanced Edition v4.0. I am using CMP Entity beans. My problem is that in some primary key class I have declared primary key fields as type of remote interface reference.
(for e.g
public class UsrloginPK implements Serializable
{
public String userid;
public CompanyMast companymast;--remote reference
//....
}
Actually in database for this particular table I have declared 3 primary keys(i.e composite) for Usrlogin--userid, coId & unitId. But I combined coId & unitId into companyMast (since my database design is as such)
This companyMast is also an entity bean which contain two primary keys(i.e composite)coId & unitId.(In many primary keys class of my application has this concept)it works fine with Inprise application server. But when I try to assemble the jar file using Application Assembly Tool, add new CMP Entity bean it asks me for required paths for home,remote,PK..etc I add it correctly then when I try to add the CMP Fields for the particular CMP Entity beans which has Primary key field as a remote reference ( as shown above), it doesnt display any fields to be added in the CMP Fields ???(as it displays the various CMP Fields if the primary key fields are primitive datatypes or String). I had also declared finder methods in home interface but since I am not able to add any CMP Fields, I am not able to see any finder methods declared in home interface in "Method Extension" panel in AAT ???
Other CMP Entity beans which have primitive primary key fields in my application has been added successfully in the jar using AAT.
How can this be achieved in WAS v4.0 ???
Is there any way ???
I tried my best to explain the problem in simple words....hope u all would understand it..
please help me urgently........
thanx in advance,
regards...
Apurva.
21 years ago
thanx kiran,
I think i didnt do that ...........
what about other questions ???
pls help....
regards...
Apurva
21 years ago
hello everyone,
I am pretty new to WAS. I am using Was ADVANCED EDITION V4.0, I want to clear certain things regarding HOt deployment & dynamic reloading. I have read regarding this topic from infocenter & tried things according to that but it didnt seem to work !!! for e.g I changed the ibm-ejb-jar-ext.xmi(opened from installedApps/<applicationname> edited finder method whereClause), then as specified in infocenter tutorial, first I tried to use DrAdmin to restart the module but as specified in DrAdmin help, module can be restarted only in Advanced single server edition & not in advanced edition. So it dint work for me so according to USER
ACTION : Restart the Module , I tried to stop & start the module from the admin console but it also didnt work ??? So ultimatly I once again deployed the ear file & installed it on server then only it worked. (To change only one line after deployment of the application on the server one has to once again go through the whole procedure -- it is very time consuming) So what's the use of dynamic reloading & hot deployment ??? Does it work with WAS ADVANCED EDITION V4.0 ???
One more query it seems WAS ADVANCED EDITION V4.0 doesnt have Server-cfg.xml file,
so in which file does it store the server configurations ???
Sorry guys I asked lot of questions.......
Please help, your any help will be appreciated.......
regards,
Apurva.
21 years ago
hello every one,
I am fairly new to WAS. I have developed a project using EJB1.1, jsp & tested it on inprise application server 4.1. Now i want ot test this project on WAS4.0 advanced edition.My problem is that I had used several finder methods in CMP Entity beans, There was a fixed format in which I have to write the sql statement in Inprise Application server, So how to write the Sql description using Where clause in WAS4.0 .I am a bit confused please help with some examples.
regards....
Apurva
21 years ago
Hello everyone....
I am fairly new to WAS4.0, so wanted to ask about the Module visibility concept (in the administrative console) I read the books but it is not yet completely clear...
please help..
regards...
Apurva
21 years ago
hi guys......
please help me out I am very new to websphere.....
I have successfully installed the websphere app server v4.0 advanced edition.Then I have written a sample project containing a simple stateless session bean , a JSP file to display the message from the stateless session bean and a stateless session bean client which actually looksup the stateless session bean gets the reference to the EJBObject & invoke the required method through it.
AS directed in the Ibm redbook I followed the instruction of packaging & deployment,making different jar file for the session bean ,war file for JSP file & application client jar file.Every thing goes fine till here..... but when I try to test the application Nothing displays on the JSP.......bcoz when the JSP calls the create method of the Session bean client, which in turn perform the Jndi lookup --- here the naming not found exception is thrown ???
I have specified the same jndi name inside the the sessionbean client program & in the binding tab in the EJbModule.
So I am not able to detect were it is going wrong???
please help as I have to test the real project on was 4.0.
regards....
Apurva
21 years ago
hi chris ,
please do me a favour by mail the code to me too at apurvamehta1@rediffmail.com .I also want to do something like u have done.
thanx in advance........
regards..
apurva
21 years ago
JSP
I am doing a project in which i have developed a search page which returns the search results(i.e various products), now from this page i have a facility to compare the various products, once the user selects the products to be compared & clicks a compare page, a comparisionPage.jsp is forwarded (using <jsp: forward> tag) which will display comparision of different columns. I compare the products vertically ( one column for one product). I have set a limit that maximum columns that can be displayed on a single page to 7. So products exceeding this numbers are displayed on the following pages. I have provided next page , previous page ,first page & last page buttons which will take me to the required page.
Now my problem is that for the first time when the compare page is forwarded i get the desired display ( it will display the first page by default for the first time), but when i click any of the button my controls go back to the search Page from which this compare page was forwarded (I came to know about this by inserting System.out.println() in search page & compare page).
I have checked my form tag & it has no action attribute specified in it. I submit the same form i.e the form made in compare page.
So I dont have any clue why the control goes back to search page.(is their any problem with <jsp:forward > tag ???).
please help.
thanx in advance,
Apurva.
22 years ago
JSP
I am using stateful session bean , In which i have a method which uses the vector to store the Instance of remote reference (i.e EJBObject) of a container managed entity bean. But my problem is that when i run my program , i check whether the
instance that is stored in the vector is of remote reference(i.e EJBObject) or not, I get the desired output until container issues EJBPassivate() & EJbActivate() methods. After the EJbActivate() is over I once check again check the contents of my Vector but to my disbelief the contents of my vector becomes instance of container generated implementations object rather then desired instance of remote reference, hence this gives me a classCastException.I dont provide any implementation in EJBActivate() & EJBPassivate()
methods.java.util.Vector being a serialized class i dont need to save it while passivation.I really have no clue why its happening like this???
please help.
regards
Apurva.
In my project I am using stateful session bean, in which I have a method (which is used for comparing & displaying product specifications) in that method I am storing a vector(which contains the String objects) as an element of another vector(to serve the purpose as a two dimensional array).
My problem is that for the first page( there may be many pages to be displayed on the browser by using jsp) this vector works fine. But when i go to the next page the following error comes.I am using Inprise application server.I dont have any clue about the error. Any help will be appreciated.
thanx in advance.
>>>> EJB LOG >>>>
Error in StatefulSessionHome.ServantActivator.incarnate
org.omg.CORBA.MARSHAL: Error unmarshaling value [Error unmarshaling value [Error unmarshaling value [Error unmarshaling value [Error unmarshaling value [The delegate has not been set!]]]]] minor code: 0 completed: No
at com.inprise.vbroker.orb.CDRInputStream$ValueTypeReader.octets(CDRInputStream.java:1132)
at com.inprise.vbroker.orb.CDRInputStream$ValueTypeReader.state(CDRInputStream.java:931)
at com.inprise.vbroker.orb.CDRInputStream$ValueTypeReader.value(CDRInputStream.java:875)
at com.inprise.vbroker.orb.CDRInputStream.readValueType(CDRInputStream.java:1334)
at com.inprise.vbroker.orb.CDRInputStream.read_value(CDRInputStream.java:1735)
at com.inprise.ejb.Global.readObject(Global.java:209)
at com.inprise.ejb.StatefulSessionHome$ServantActivator.incarnate(StatefulSessionHome.java:260)
at com.inprise.vbroker.poa.POAImpl.preinvokeActivator(POAImpl.java:1965)
at com.inprise.vbroker.poa.POAImpl.preinvoke(POAImpl.java:2101)
at com.inprise.vbroker.ProtocolEngine.ServerEngineImpl.preinvoke(ServerEngineImpl.java:248)
at com.inprise.vbroker.GIOP.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.java:390)
at com.inprise.vbroker.GIOP.GiopProtocolAdapter.dispatchMessage(GiopProtocolAdapter.java:527)
at com.inprise.vbroker.orb.TPDispatcherImpl$TPDispatcher.run(TPDispatcherImpl.java:100)
at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:76)
<<<< EJB LOG <<<<
[ February 25, 2002: Message edited by: apurva mehta ]