nisharpa

Greenhorn
+ Follow
since Jun 18, 2002
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 nisharpa

Heei,
I was trying to insert a CLOB into Oracle DB
Through java, but facing lot probs, if any body past some sample code which perform the insert operation of CLOB , It would be nice.
Looking forward
Greetings,
NPA.
21 years ago
Hai ,
Well now I am getting another exception it is
javax.naming.NamingException: Error during resolve [Root exception is org.omg.CORBA.COMM_FAILURE: minor code: 3 completed: No]
what I am doing is I deployed my CMP bean in WAS4.0, and try to call the create()metho,when I try to run the client from the same mechine it works fine, but when I try to run a remote( I mean from another mechine) client(servlet) deployed in WAS3.5.5it pop up with the exception.
My JNDI name are correct I checked with 'dumpnamespace'
my client code is
ava.util.Hashtable env = new java.util.Hashtable() ;
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.ejs.ns.jndi.CNInitialContextFactory") ;
env.put(Context.PROVIDER_URL,"iiop://skylla:900") ;

javax.naming.Context con = new javax.naming.InitialContext(env) ;
Object poo = con.lookup("Test") ;
out.println(" just after lookup .........");
TestHome home = (TestHome)javax.rmi.PortableRemoteObject.narrow(poo, TestHome.class) ;
home.create("nishar",new Integer(22),new Integer(2)) ;
out.println(" data created ......");

Looking forward to have a solution,
Greetings,
NPA.
Heei All,
I am getting an exception when my client that is a servlet try to execute the create() of a CMP bean deployed in Websphere 4.0. Actually my client is running in a remote computer and it correctly lookup the JNDI and getting the home, but when it try to excute a create() method it says :
java.rmi.RemoteException: CORBA UNKNOWN 0 Maybe; nested exception is: org.omg.CORBA.UNKNOWN: minor code: 0 completed: Maybe .
and I have a business method in my EJB and when my client execute that business method afer getting the remote instance useing findByPrimaryKey() it works fine. so whats problem to execute the create() from a remote client.
I am really looking forward to solve the problem.
Greetings
NPA.
Hai All,
I wanna do a basic authentication with a servlet deloyed in Websphere4.0 , so I wrote my sverlet well and deployed but when I try to access it says
java.lang.IllegalStateException: ERROR: Cannot set header. Response already committed.
I don't understand why? same servlet works fine tomcat environmet. Is there any configuration missing ? or is there any way to say Response object is not commited ?
Greetings,
PA
My servlet look like :
public void init(ServletConfig config) throws ServletException {
super.init(config) ;
user.put("odpadmin:admin","okai") ;
user.put("gust:gust","not") ;
}
//Process the HTTP Get request
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
try{
response.setContentType("text/plain") ;
out = response.getWriter() ;
out.println(response.isCommitted());

String auth = request.getHeader("Authorization") ;
//String auth = request.getAuthType() ;
if (! allowUser(auth)){
response.sendError(response.SC_UNAUTHORIZED);
response.setHeader("WWW-Authenticate" ,"BASIC realm=\"users\"") ;
}
else{
out.println(" top secret stuff dear ");
}
}
catch(Exception ee){
out.println(" exception from callService() : "+ee);
ee.printStackTrace();
}
// callService(request, response) ;
}
public boolean allowUser(String auth){
try{
out.println(" auth in allowUser() = "+auth);
if( auth == null)
return false ;
if( !auth.toUpperCase() .startsWith("BASIC "))
return false ;
String userPassEncripted = auth.substring(6) ;
out.println(" userPass = "+userPassEncripted);
sun.misc.BASE64Decoder dec = new sun.misc.BASE64Decoder() ;
String userPassDecoded = new String(dec.decodeBuffer(userPassEncripted)) ;
out.println(" user decoed password = "+userPassDecoded);
if("okai".equals(user.get(userPassDecoded)))
return true ;
else
return false ;

}
catch(Exception ee){
out.println(" exception from allowUser() : "+ee);
ee.printStackTrace();
}
return false ;
}
21 years ago
Hai All,
I am useing JBuilder7 enterprise for development.
Now I wanna develop a simple EJB with CMP for the
Websphere 4.0 version. I know that JBuilder got tight integration with Websphere but still my CMP bean is not working, it sayig NameNotFoundException. Can any body please tell how I can develop a simple CMP bean for Websphere4.0 steps by step.
Greetings,
PA
Hai All,
It works, Iremoved some Unnecessary .jar file.
Thanks a lot dears.
Cheers,
Nishar.
21 years ago
Hai All,
I am getting an exception when I tryed to get a DB connection from WAS4.0. I use servlet to get the connection, same time I am getting the same exception when my servlet try to access an EJB. I put my websphere.jar in my classpath
javax.naming.NoInitialContextException: Cannot instantiate class: com.ibm.websphere.naming.WsnInitialContextFactory [Root exception is java.lang.ClassCastException: com.ibm.websphere.naming.WsnInitialContextFactory]
please help me to over come this issue.
Greetings,
PA.
21 years ago
Hai All,
I am getting an exception when I trying to get a
data base connection from the IBM connection pool
I am using WAS 4.0.1

java.lang.ClassCastException: com.ibm.ejs.cm.JDBC1PhaseRF
and I am doing like this in my code :
pro.setProperty(Context.INITIAL_CONTEXT_FACTORY,
"com.ibm.websphere.naming.WsnInitialContextFactory");
ctx = new javax.naming.InitialContext(pro);
dataSource = (javax.sql.DataSource)ctx.lookup("jdbc/mydatasourcename");
conn=dataSource.getConnection("system","manager") ;

any help will be appreciated.
Greetings
Ni.
21 years ago
Hai All,
How I can enable LTPA in WAS 4.0.1 , I did't seen any option to enable LTPA in web based admin
interface. Please help I am running out of time.
Greetings,
pa.
21 years ago
Hai All,
I think there is no provision to enable LTPA in WAS 4.0.1 , I did't find any option in web based admin tool. So I wanted to upgrade to 4.0.3, if any body konw how I can upgrade or how I can get the e-fix .
Greeting
pa
21 years ago
I am using the version 4.0.1 Advancd single server edtion, and when I go to the web based admin console and under the security there is nothink for LTPA ! whats wrong here .
21 years ago
Hai All,
How I can enable LTPA security in WebSphere 4.0.1
Greetings
Nishar.
21 years ago
Hai All,
Does any body configured Apache Jetspeed(1.3a.2) in WAS4.0.1 ? . Well I created a .ear file from the WAS applicaton assembly tool by passing jetspeed.war file from apache and my browser displayig the first page with logging and I am succeed to login. But the problem comes when I click any link like content,admin, security etc... there is no page display any more and there is no exception or error.
Any help would be appreciated.
Cheers
Nisharpa
21 years ago
Hai All,
I am trying to assemble an (J2EE)application which includs a session bean , servlet client and java client. I am following the exact steps from the IBM infocenter
:http://www3.ibm.com/software/webservers/appserv/doc/v40/aes/infocenter/index.html
all the thinks going fine but at last when I tryed to save the all stuff in .ear it rise with an exception :
Exception:
java.io.IOException: java.lang.IllegalStateException: zip file closed
at com.ibm.etools.archive.impl.ZipFileLoadStrategyImpl.getInputStream(ZipFileLoadStrategyImpl.java:86)
at com.ibm.etools.commonarchive.impl.ContainerImpl.primGetInputStream(ContainerImpl.java:230)
at com.ibm.etools.commonarchive.impl.FileImpl.getInputStream(FileImpl.java:37)
at com.ibm.etools.archive.impl.FileIteratorImpl.getInputStream(FileIteratorImpl.java:21)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:92)
at com.ibm.etools.archive.impl.SaveStrategyImpl.saveFiles(SaveStrategyImpl.java:107)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:63)
at com.ibm.etools.commonarchive.impl.ArchiveImpl.save(ArchiveImpl.java:664)
at com.ibm.etools.commonarchive.impl.ModuleFileImpl.save(ModuleFileImpl.java:233)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:77)
at com.ibm.etools.archive.impl.ZipStreamSaveStrategyImpl.save(ZipStreamSaveStrategyImpl.java:76)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:87)
at com.ibm.etools.archive.impl.SaveStrategyImpl.saveFiles(SaveStrategyImpl.java:107)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:63)
at com.ibm.etools.commonarchive.impl.ArchiveImpl.save(ArchiveImpl.java:664)
at com.ibm.etools.commonarchive.impl.ModuleFileImpl.save(ModuleFileImpl.java:233)
at com.ibm.etools.commonarchive.impl.ArchiveImpl.saveAsNoReopen(ArchiveImpl.java:694)
at com.ibm.etools.commonarchive.impl.ArchiveImpl.saveAs(ArchiveImpl.java:679)
at com.ibm.ejs.assembly.gui.command.SaveAsCommand.save(SaveAsCommand.java:26)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ejs.assembly.gui.command.BaseCommand.run(BaseCommand.java:84)
at com.ibm.ejs.sm.client.command.ThreadPool$PooledThread.run(ThreadPool.java:89)
com.ibm.etools.archive.exception.SaveFailureException: com/ibm/websphere/gettingstarted/ejbs/SimpleSession.class
Stack trace of nested exception:
java.io.IOException: java.lang.IllegalStateException: zip file closed
at com.ibm.etools.archive.impl.ZipFileLoadStrategyImpl.getInputStream(ZipFileLoadStrategyImpl.java:86)
at com.ibm.etools.commonarchive.impl.ContainerImpl.primGetInputStream(ContainerImpl.java:230)
at com.ibm.etools.commonarchive.impl.FileImpl.getInputStream(FileImpl.java:37)
at com.ibm.etools.archive.impl.FileIteratorImpl.getInputStream(FileIteratorImpl.java:21)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:92)
at com.ibm.etools.archive.impl.SaveStrategyImpl.saveFiles(SaveStrategyImpl.java:107)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:63)
at com.ibm.etools.commonarchive.impl.ArchiveImpl.save(ArchiveImpl.java:664)
at com.ibm.etools.commonarchive.impl.ModuleFileImpl.save(ModuleFileImpl.java:233)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:77)
at com.ibm.etools.archive.impl.ZipStreamSaveStrategyImpl.save(ZipStreamSaveStrategyImpl.java:76)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:87)
at com.ibm.etools.archive.impl.SaveStrategyImpl.saveFiles(SaveStrategyImpl.java:107)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:63)
at com.ibm.etools.commonarchive.impl.ArchiveImpl.save(ArchiveImpl.java:664)
at com.ibm.etools.commonarchive.impl.ModuleFileImpl.save(ModuleFileImpl.java:233)
at com.ibm.etools.commonarchive.impl.ArchiveImpl.saveAsNoReopen(ArchiveImpl.java:694)
at com.ibm.etools.commonarchive.impl.ArchiveImpl.saveAs(ArchiveImpl.java:679)
at com.ibm.ejs.assembly.gui.command.SaveAsCommand.save(SaveAsCommand.java:26)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ejs.assembly.gui.command.BaseCommand.run(BaseCommand.java:84)
at com.ibm.ejs.sm.client.command.ThreadPool$PooledThread.run(ThreadPool.java:89)
java.lang.reflect.InvocationTargetException: com.ibm.etools.archive.exception.SaveFailureException: com/ibm/websphere/gettingstarted/ejbs/SimpleSession.class
Stack trace of nested exception:
java.io.IOException: java.lang.IllegalStateException: zip file closed
at com.ibm.etools.archive.impl.ZipFileLoadStrategyImpl.getInputStream(ZipFileLoadStrategyImpl.java:86)
at com.ibm.etools.commonarchive.impl.ContainerImpl.primGetInputStream(ContainerImpl.java:230)
at com.ibm.etools.commonarchive.impl.FileImpl.getInputStream(FileImpl.java:37)
at com.ibm.etools.archive.impl.FileIteratorImpl.getInputStream(FileIteratorImpl.java:21)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:92)
at com.ibm.etools.archive.impl.SaveStrategyImpl.saveFiles(SaveStrategyImpl.java:107)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:63)
at com.ibm.etools.commonarchive.impl.ArchiveImpl.save(ArchiveImpl.java:664)
at com.ibm.etools.commonarchive.impl.ModuleFileImpl.save(ModuleFileImpl.java:233)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:77)
at com.ibm.etools.archive.impl.ZipStreamSaveStrategyImpl.save(ZipStreamSaveStrategyImpl.java:76)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:87)
at com.ibm.etools.archive.impl.SaveStrategyImpl.saveFiles(SaveStrategyImpl.java:107)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:63)
at com.ibm.etools.commonarchive.impl.ArchiveImpl.save(ArchiveImpl.java:664)
at com.ibm.etools.commonarchive.impl.ModuleFileImpl.save(ModuleFileImpl.java:233)
at com.ibm.etools.commonarchive.impl.ArchiveImpl.saveAsNoReopen(ArchiveImpl.java:694)
at com.ibm.etools.commonarchive.impl.ArchiveImpl.saveAs(ArchiveImpl.java:679)
at com.ibm.ejs.assembly.gui.command.SaveAsCommand.save(SaveAsCommand.java:26)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ejs.assembly.gui.command.BaseCommand.run(BaseCommand.java:84)
at com.ibm.ejs.sm.client.command.ThreadPool$PooledThread.run(ThreadPool.java:89)

even I tryed the examples from the infocenter but same result stuck with the exception.
please give me some hits to resolve this issue.
Looking forward to the team.
Chrres,
Nishar.
Hai All,
I am trying to assemble an (J2EE)application which includs a session bean , servlet client and java client. I am following the exact steps from the IBM infocenter
:http://www3.ibm.com/software/webservers/appserv/doc/v40/aes/infocenter/index.html
all the thinks going fine but at last when I tryed to save the all stuff in .ear it rise with an exception :
Exception:
java.io.IOException: java.lang.IllegalStateException: zip file closed
at com.ibm.etools.archive.impl.ZipFileLoadStrategyImpl.getInputStream(ZipFileLoadStrategyImpl.java:86)
at com.ibm.etools.commonarchive.impl.ContainerImpl.primGetInputStream(ContainerImpl.java:230)
at com.ibm.etools.commonarchive.impl.FileImpl.getInputStream(FileImpl.java:37)
at com.ibm.etools.archive.impl.FileIteratorImpl.getInputStream(FileIteratorImpl.java:21)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:92)
at com.ibm.etools.archive.impl.SaveStrategyImpl.saveFiles(SaveStrategyImpl.java:107)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:63)
at com.ibm.etools.commonarchive.impl.ArchiveImpl.save(ArchiveImpl.java:664)
at com.ibm.etools.commonarchive.impl.ModuleFileImpl.save(ModuleFileImpl.java:233)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:77)
at com.ibm.etools.archive.impl.ZipStreamSaveStrategyImpl.save(ZipStreamSaveStrategyImpl.java:76)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:87)
at com.ibm.etools.archive.impl.SaveStrategyImpl.saveFiles(SaveStrategyImpl.java:107)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:63)
at com.ibm.etools.commonarchive.impl.ArchiveImpl.save(ArchiveImpl.java:664)
at com.ibm.etools.commonarchive.impl.ModuleFileImpl.save(ModuleFileImpl.java:233)
at com.ibm.etools.commonarchive.impl.ArchiveImpl.saveAsNoReopen(ArchiveImpl.java:694)
at com.ibm.etools.commonarchive.impl.ArchiveImpl.saveAs(ArchiveImpl.java:679)
at com.ibm.ejs.assembly.gui.command.SaveAsCommand.save(SaveAsCommand.java:26)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ejs.assembly.gui.command.BaseCommand.run(BaseCommand.java:84)
at com.ibm.ejs.sm.client.command.ThreadPool$PooledThread.run(ThreadPool.java:89)
com.ibm.etools.archive.exception.SaveFailureException: com/ibm/websphere/gettingstarted/ejbs/SimpleSession.class
Stack trace of nested exception:
java.io.IOException: java.lang.IllegalStateException: zip file closed
at com.ibm.etools.archive.impl.ZipFileLoadStrategyImpl.getInputStream(ZipFileLoadStrategyImpl.java:86)
at com.ibm.etools.commonarchive.impl.ContainerImpl.primGetInputStream(ContainerImpl.java:230)
at com.ibm.etools.commonarchive.impl.FileImpl.getInputStream(FileImpl.java:37)
at com.ibm.etools.archive.impl.FileIteratorImpl.getInputStream(FileIteratorImpl.java:21)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:92)
at com.ibm.etools.archive.impl.SaveStrategyImpl.saveFiles(SaveStrategyImpl.java:107)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:63)
at com.ibm.etools.commonarchive.impl.ArchiveImpl.save(ArchiveImpl.java:664)
at com.ibm.etools.commonarchive.impl.ModuleFileImpl.save(ModuleFileImpl.java:233)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:77)
at com.ibm.etools.archive.impl.ZipStreamSaveStrategyImpl.save(ZipStreamSaveStrategyImpl.java:76)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:87)
at com.ibm.etools.archive.impl.SaveStrategyImpl.saveFiles(SaveStrategyImpl.java:107)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:63)
at com.ibm.etools.commonarchive.impl.ArchiveImpl.save(ArchiveImpl.java:664)
at com.ibm.etools.commonarchive.impl.ModuleFileImpl.save(ModuleFileImpl.java:233)
at com.ibm.etools.commonarchive.impl.ArchiveImpl.saveAsNoReopen(ArchiveImpl.java:694)
at com.ibm.etools.commonarchive.impl.ArchiveImpl.saveAs(ArchiveImpl.java:679)
at com.ibm.ejs.assembly.gui.command.SaveAsCommand.save(SaveAsCommand.java:26)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ejs.assembly.gui.command.BaseCommand.run(BaseCommand.java:84)
at com.ibm.ejs.sm.client.command.ThreadPool$PooledThread.run(ThreadPool.java:89)
java.lang.reflect.InvocationTargetException: com.ibm.etools.archive.exception.SaveFailureException: com/ibm/websphere/gettingstarted/ejbs/SimpleSession.class
Stack trace of nested exception:
java.io.IOException: java.lang.IllegalStateException: zip file closed
at com.ibm.etools.archive.impl.ZipFileLoadStrategyImpl.getInputStream(ZipFileLoadStrategyImpl.java:86)
at com.ibm.etools.commonarchive.impl.ContainerImpl.primGetInputStream(ContainerImpl.java:230)
at com.ibm.etools.commonarchive.impl.FileImpl.getInputStream(FileImpl.java:37)
at com.ibm.etools.archive.impl.FileIteratorImpl.getInputStream(FileIteratorImpl.java:21)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:92)
at com.ibm.etools.archive.impl.SaveStrategyImpl.saveFiles(SaveStrategyImpl.java:107)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:63)
at com.ibm.etools.commonarchive.impl.ArchiveImpl.save(ArchiveImpl.java:664)
at com.ibm.etools.commonarchive.impl.ModuleFileImpl.save(ModuleFileImpl.java:233)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:77)
at com.ibm.etools.archive.impl.ZipStreamSaveStrategyImpl.save(ZipStreamSaveStrategyImpl.java:76)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:87)
at com.ibm.etools.archive.impl.SaveStrategyImpl.saveFiles(SaveStrategyImpl.java:107)
at com.ibm.etools.archive.impl.SaveStrategyImpl.save(SaveStrategyImpl.java:63)
at com.ibm.etools.commonarchive.impl.ArchiveImpl.save(ArchiveImpl.java:664)
at com.ibm.etools.commonarchive.impl.ModuleFileImpl.save(ModuleFileImpl.java:233)
at com.ibm.etools.commonarchive.impl.ArchiveImpl.saveAsNoReopen(ArchiveImpl.java:694)
at com.ibm.etools.commonarchive.impl.ArchiveImpl.saveAs(ArchiveImpl.java:679)
at com.ibm.ejs.assembly.gui.command.SaveAsCommand.save(SaveAsCommand.java:26)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ejs.assembly.gui.command.BaseCommand.run(BaseCommand.java:84)
at com.ibm.ejs.sm.client.command.ThreadPool$PooledThread.run(ThreadPool.java:89)

even I tryed the examples from the infocenter but same result stuck with the exception.
please give me some hits to resolve this issue.
Looking forward to the team.
Chrres,
Nishar.
21 years ago