Win a copy of Spring Boot in Practice this week in the Spring forum!

Tripati Sahu

Greenhorn
+ Follow
since Jul 11, 2009
Malaysia
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 Tripati Sahu

Hi,


Thanks for your suggession.

Hi Guys,

I want to prepare for the SCBCD certification. Can any one guide me what book should I follow for this.

and what specs to read for this.
Hi All,

Today I have cleared SCWCD 5.0 with 78%. I know its not a good score but with hectic work schedule I could not able to do much.

What I followed is

1. Initially read Hanumant Deshmukh
2. At the last moment read HFSJ (only few topics) A really nice book.
3. Enthuware Test Studio.

ETS helped me in giving look and feel. Out of 8 tests there I passed only 1 test. Still I could able to pass the exam.

Exam was tough for me. very lengthy questions.

Mainly covered Tags, EL, JSTL(Must read it) and 5-6 questions from design pattern
12 years ago
Hi All,

Today I have cleared SCWCD 5.0 with 78%. I know its not a good score but with hectic work schedule I could not able to do much.

What I followed is

1. Initially read Hanumant Deshmukh
2. At the last moment read HFSJ (only few topics) A really nice book.
3. Enthuware Test Studio.

ETS helped me in giving look and feel. Out of 8 tests there I passed only 1 test. Still I could able to pass the exam.

Exam was tough for me. very lengthy questions.

Mainly covered Tags, EL and 5-6 questions from design pattern
12 years ago
Thanks Ankit.


I found lot of answers for other questions also....

Thanks a lot. I have given the exam and score was very low. its about 55%

I don't know how well I will do in real exam...


But I found some 3-4 questions which I answered correctly but it was given wrong...
Hi,

I have doubt on the below question. Can any body help me in this.

Your web application has a valid deployment descriptor in which student and sensei are the only security roles that have been defined. The deployment descriptor contains two security constraints that declare the same resource to be constrained. The first security constraint contains:
234. <auth-constraint>
235. <role-name>student</role-name>
236. </auth-constraint>
And the second security constraint contains:
251. <auth-constraint/>
Which are true? (Choose all that apply.)
A. As the deployment descriptor stands now, the constrained resource can be accessed by both roles.
B. As the deployment descriptor stands now, the constrained resource can be accessed only by sensei users.
C. As the deployment descriptor stands now, the constrained resource can be accessed only by student users.
D. If the second <auth-constraint> tag is removed, the constrained resource can be accessed by both roles.
E. If the second <auth-constraint> tag is removed, the constrained resource can be accessed only by sensei users.
F. If the second <auth-constraint> tag is removed, the constrained resource can be accessed only by student users.

The answer given is D. But I think it should be F.
Hi All,

The answer given is b i.e. *.*

When servlet container cannot initialize a servlet with the given url-pattern. How come the answer will be *.*

The answer should be none of these.

I am not talking the extension in request.

May be I could not understand the question
Suppose I want to configure 4-5 different kind of exceptions then how you will configure...

If we will configure servlet exception then it will always go fo it.

Guys please correct me If I am wrong.
Hi All,

I have the bwlow doubt on servlet mapping.

A web.xml contains the following element:
<servlet-mapping>
<servlet-name>xyz</servlet-name>
<url-pattern>*Insert code here*</url-pattern>
</servlet-mapping>
Which of the following url-patterns can be put in place of *Insert code here*?

a> *.*
b> /*.*
c> test/*.jsp
d> None Of these


The answer shoud be none of these

The above question is from Enthuware mock exam. With Question ID as com.enthuware.ets.scwcd.v5.2.143


My doubt is it should be none of the above. I tried to test it in tomcat using a simple servlet. While starting the application is is throwing the below exception


SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tomcat.util.IntrospectionUtils.callMethodN(IntrospectionUtils.java:953)
at org.apache.catalina.startup.CallMethodMultiRule.end(WebRuleSet.java:789)
at org.apache.tomcat.util.digester.Rule.end(Rule.java:229)
at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1140)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644)
at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:365)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1066)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)
at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1116)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1214)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> *asdfasd* in servlet mapping
at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:2397)
at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:2373)
... 32 more
Aug 24, 2009 2:00:36 AM org.apache.catalina.startup.ContextConfig applicationWebConfig
SEVERE: Parse error in application web.xml file at jndi:/localhost/TestWebProject/WEB-INF/web.xml
java.lang.IllegalArgumentException: Invalid <url-pattern> *asdfasd* in servlet mapping
at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2808)
at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2834)
at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1143)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644)
at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:365)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1066)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)
at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1116)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1214)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
at java.lang.Thread.run(Unknown Source)
Aug 24, 2009 2:00:36 AM org.apache.catalina.startup.ContextConfig applicationWebConfig
This question is given in Enthuware. And confirming the correct answer is only B and D.
I think B and D are correct answers. I don't think C will be correct answer. We can use do operatot only in Map and java beans.
Hi Rachna,

could you please write the whole question. I don't have the HFSJ...

I don't think so. Its a nice book. It depends on the learner what book he/she should follow.
Hi,

No need to get depressed. Read one more time. no hurry. But don't give any break in the study. I am also preparing. But due to my work I am unable to concentrate much. Just focus on what area you are not getting it. Just give more focus to it. thats all.
Suppose we have a chain of filter. the first filters doFilter method will be called by contained and the inside the doFilter method of the first filet we can call another Filters doFilter method by calling filterChain.doFilter. The first one is call back and the second one is inline. Hope it clarifies.