Priya Jothi

Ranch Hand
+ Follow
since Jul 13, 2004
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 Priya Jothi

Hey nik,

I guess you might have set '.' in your classpath somewhere in your environment variable.Thats why it works otherwise it'll never.Try removing your classpath env variable if defined any & execute the same 'X' class.It should flag an error.

Regards,
Priya.
Hi,

There is a way to perform SQL update operation in batch using BatchSqlUpdate class.Similarly is there any way to perform delete operation also in batch?.Say i want to delete set of records at one stretch.I know there is no such class like BatchSqlDelete.But is there any other way to perform the same?.

Any inputs on this would be very much appreciated.

Thanks in advance...

Regards,
Priya.
Hi All,

When am trying to run the java code in tomcat server which tries to create the Initial context object with the following properties it is throwing an exception.


In my sample.client.T3MBeanConnector.java i have the following code.

Hashtable table = new Hashtable();
table.put(Context.SECURITY_PRINCIPAL, user);
table.put(Context.SECURITY_CREDENTIALS, password);
table.put(Context.PROVIDER_URL, url);
table.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");

sop("Map obj : " + table); // This works

InitialContext context = new InitialContext(table); // It strucks & exception is thrown

sop("Context obj : " + context); //This will never get printed


It is throwing an exception given below.In order to create an initial context object I've set weblogic.jar in classpath in catalina.bat.From the stacktrace it is understandable that it has also been considered.But I dont know how to fix the below issue. From where(which jar) it is taking this SAXParserFactory is unknown still.When i try to run as a simple standalone program it works.But when tomcat is executing the same code it is not working.Strange!!!.What is wrong here?.

java.lang.NoSuchMethodError: javax.xml.parsers.SAXParserFactory.getSchema()Ljavax/xml/validation/Schema;
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.<init>(SAXParserImpl.java:124)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java:98)
at weblogic.xml.jaxp.WebLogicSAXParser.<init>(WebLogicSAXParser.java:45)
at weblogic.xml.jaxp.WebLogicSAXParserFactory.newSAXParser(WebLogicSAXParserFactory.java:51)
at weblogic.rmi.internal.DescriptorManager.getDescriptorAsMap(DescriptorManager.java:176)
at weblogic.rmi.internal.DescriptorManager.getDescriptorAsMap(DescriptorManager.java:162)
at weblogic.rmi.internal.DescriptorManager.createRuntimeDescriptor(DescriptorManager.java:107)
at weblogic.rmi.internal.DescriptorManager.getBasicRuntimeDescriptor(DescriptorManager.java:88)
at weblogic.rmi.internal.DescriptorManager.getDescriptor(DescriptorManager.java:54)
at weblogic.rmi.extensions.server.ServerHelper.getRuntimeDescriptor(ServerHelper.java:332)
at weblogic.common.internal.RMIBootServiceStub.<clinit>(RMIBootServiceStub.java:29)
at weblogic.security.acl.internal.Security.authenticate(Security.java:177)
at weblogic.jndi.WLInitialContextFactoryDelegate.authenticateRemotely(WLInitialContextFactoryDelegate.java:700)
at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:633)
at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:440)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:353)
at weblogic.jndi.Environment.getContext(Environment.java:263)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at sample.client.T3MBeanConnector.getServerConnector(Unknown Source)
at sample.client.MBeanConnectionHelper.getMBeanServer(Unknown Source)
at sample.servlets.RuntimeAction.execute(Unknown Source)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

Details of s/w used :

Weblogic : 9.1
Tomcat : 5.0
JDK : 1.5

Any inputs on this would be highly appreciated!!.
Expecting reply at the earliest..Thanks in advance..

Regards,
Priya.
11 years ago
Ok..Thanks Jaikiran for your reply..it really helped a lot..now it is working!!

Thanks,
Priya.
12 years ago
Ok I understand..I've also written the JSPC task in ant script to do precompilation.I need to run this script using the following command.

$ANT_HOME/bin/ant -Dtomcat.home=<$TOMCAT_HOME> -Dwebapp.path=<$WEBAPP_PATH>


In the above command,what i have to set it as tomcat_home?.I'm using jboss server..which path should be taken as tomcat_home from jboss setup?.Kindly reply me if you know..

Thanks in advance,

Priya.
12 years ago
Will jboss server support jsp precompilation?.please reply..

Thanks,
Priya.
12 years ago
Hi All,

Im trying to deploy an ejb application in oracle 10g.It is getting deployed successfully.But when i try to access the bean(through some client) it is throwing "name not found" exception.It is not able to resolve JNDI name.In orion-ejb-jar.xml what is the element used for specifying jndi name?.Kindly reply me at the earliest.

Thanks in advance!

Regards,
Priya.
12 years ago
Thanks to Bert & all ranchers for ur wishes!!

Hari,

I have no idea on commercial simulators..I tried only some trial versions available.Can someone else give any inputs on this?.

Regards,
Priya.
12 years ago
Hi Rizwan,

I think there is no pblm for you to do SCWCD..only thing is u shud have cleared SCJP.any version is allowed.Probably u might have done SCJP1.2.Thatz acceptable.go ahead..all the best!!

Regards,
Priya.
Congrats Satou!!!

Regards,
Priya.
12 years ago
Hi Ranchers,

Glad to inform you all that I've cleared SCWCD exam last week.My sincere appreciation & thanks to Kathy,Bert & Bryan for bringing out such a wonderful book(ofcourse it is..HFSJ!!) which really helped a lot..not only to pass the exam but also understand & get used with the concepts easily.Also I thank all ranchers who helped a lot by clearing the queries whenever I raised.Thanks a lot guys!.

I have two suggestions to our esteemed authors of HFSJ.

1. HFSJ book is really wonderful.But i feel it would be very nice if the book comes along with a CD(like the one we've got for Java certification study guide).HFSJ final mock exam is good.I dont deny that.But i feel that no of mock exams available for SCWCD is lesser than the ones for SCJP.
So it will give us good practice to face the real one.

2. I would like to see a book for Web services certification also from you ppl in the near future.Any plans on that?.

Now,to all SCWCD aspirants,I would suggest to read HFSJ thoroughly..make sure u understand all the concepts.For mock exams you can search in SCWCD links and also there are many posts available for those links.I would encourage you guys to post as many doubts u get to javaranch & also attempt to answer atleast some of the doubts already posted there by some one.This would,atleast to some extent,boost your confidence level.I feel this would be the best way to learn(by helping others to learn) and always believe in that.

All the very best to all ranchers who are going take SCWCD exam in the future..!!!


p.s : if u have any more queries related to SCWCD exam..plz post the same.

Regards,
Priya.
12 years ago
In the question itself it is given clearly that u've to choose 2 options..then obviously 1 & 2 are correct.

Regards,
Priya.
Hi,

It is not able to find the class file for coffeeExpert..that is the pblm..make sure it is compiled well before and has been set in the classpath.

hth..

Regards,
Priya.
Thanks Narendra!!.I got it.

Regards,
Priya.
Correct options - 2,3,4.

Regards,
Priya.