Arun Maalik

Ranch Hand
+ Follow
since Oct 25, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Arun Maalik

Hello

As we know that static contents can't allowed in Inner classes but Why?


Regard's


Arun
Dear Friend



When you compile the above code will get compile time error why?

Regard

Arun
Dear friend it has been written in kaithe serra bert bate book that sun exam doesn't follow the code convention rules becaues the exam conducted globaly. But what is cause that sun dosn't follow java code convention what problem occure when it will follow code convention in global exam.


Regard

Arun
Dear frien i am studing Head First Servlet JSP on page 196 It has been written that
"Synchronizing the service method would stop other threads from the same servlet from accessing the context attributes, but it don't do anything to stop a complitely diffrent servlet"
Okay i ma agree byt why it happen why synchronizing service method let other servlet execute the service method but but the servlet exist in same web can't execute the service method why?

Thanks and Regard

Arun
Dear all

I would like to know that which event will called when we click on the back and stop button of web browser. Suppose i am accessing a web application in which i am cliking net button for next request 5 times and then i started to click back button of that particular browser then how the web application moves from last request to first request.
Further i having two browser from both browser i accessing www.yahoo.com same time then whether the yahoo brouwser treat diffrent request coming from diffrent client or diffrent request coming from same client.

Regard

Arun
Dear friend

For simplicity and quqly to pass i am going to appear for SCJP 1.4 is it better or i have to appear 1.5. I am workin on servlet JSP in a leading software company
Dear all

I have just dounload latest NetBean IDE but when i am installing it on my system i am getting following error message as

"JDK 6 or JDK 5 requre for net bean IDE but or set javahome".


But i allready have installed JDK 1.5 and i have set

JAVA_HOME="c:\Program File\Java\jdk1.5";

What to do?

Regard

Arun kumar maalik
Dear frnd

Oh i see i have already figure out the problem after posting this question and the problem was same that is i didn't declear a package declaration in my class.
So sorry
Hi Friend

I have created a servlet class file and when i am puting that class file in C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ROOT\WEB-INF\classes folder then its working fine the deployement descriptor code as below for above class file


It s working fine but when i am putting my class file in the com directory of classes folder for that

<servlet-class>com.First</servlet-class>

But its not working its throwing an exception as below


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Error allocating a servlet instance
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
java.lang.Thread.run(Unknown Source)


root cause

java.lang.NoClassDefFoundError: com/First (wrong name: First)
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(Unknown Source)
java.security.SecureClassLoader.defineClass(Unknown Source)
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1853)
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:875)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1330)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
java.lang.Thread.run(Unknown Source)


note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs

Regard

Arun Kumar Maalik
Dear all i am not getting the thing that has been wriiten in Head Fiirst Servlet Jsp page 137 that the sendRedirect() method through an IllegalStateException if you try to invoke it after "the response has allraedy been comited" Here what is mean of response comited kindly write a bit of code...
17 years ago
Dear all i have written two code in servlet as



Another code is


Both working fine code 1st having doGet() method while code 2nd having service() method then what is diffrence between them.

Regard
Arun
17 years ago
hey ranchar would you just explane about the join() method of Thread class because i unable to get it so

Regard

Arun
Dear ranchar i having a code for a thread as below


Well the above code will work fine as i have expected but tell me why we are calling the start method by Thread object we can call the start method as below

First p=new First();
p.start();

and will pwork fine then what is the need of Thread object there.

Regard
Arun
Hey ranchar i want to know the diffrence between what is Sun's Java and Microsoft's Java ? What are these?

Regard
Arun
17 years ago
Hey rancha i have a question this question i get many time but i confused so kindly ansered the question as follow

The RMI registry is rning on some port other than DEFAULT port what shoud be done to execute an RMI application?

1)Canging the port will not have any effect on the application.
2)The rmiregistry shoude command should be given for the new port.
3)The rebind() and lookup() method should be change?
4)The RMI registry can't use port other than default.

So which one is the answer of the above question i think 1

Regard

Arun
17 years ago