Navneet Singh

Greenhorn
+ Follow
since Aug 19, 2007
Navneet likes ...
Netbeans IDE Chrome Java
Merit badge: grant badges
For More
Bangalore
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 Navneet Singh

I don't know whether this post is valid here or not? Could anyone help me to tell about the best book for Data Structures and Algorithm. I'm basically looking for the detailed implementation of List, Map and Set. Which explained the Big 'O' notation and algorithm for sorting techniques. And obviously a JAVA implementation.
12 years ago
How to sort HashSet<SomeObject> into a sorted TreeSet. I have an object like :


I need to implement 'comparable' also to get the result with respect to my other sorting algo. Here is my code snippet :

It's not giving me the sorted list. It just give only the first element which got inserted first. I'm not able to find out the prob, where i'm wrong.


12 years ago
why you are typing 'c:/javac -version' write only javac -version in your command prompt.
or lastly you could try following approach:

set classpath=.;c:/ur_path_for_java_till_bin
and then type 'javac -version' likewise you can do it...
13 years ago
setting up environment variable (on windows)
go to start-My Computer (right click) - go to properties - go to 'Advanced' tab - click on 'Environment Variables' - you will find two sections (one is 'user variables for My Computer' and the other is 'System Variables') - in 'System Variables' section click on 'New' - type 'variable name' as 'JAVA_HOME' and 'variable value' as 'path till java_bin directory' - click on 'OK' - then inside 'system variables' section double click on 'path' as variable(it should be there) - then edit that section and go to the end of it and then type : ';%JAVA_HOME%'

Now you java is set in environment variable. Now exit all your command prompt. Open fresh/new command prompt and write 'javac -version'- it will give you the version. It means it is properly installed in your environment variable.

Your code looks right, try this option and check.
13 years ago
It would be better if you could post your program. You can create environment variable in your system property which will evade the problem of always going to the path of java bin directory.
13 years ago
Ok, So i can not give SCJP. But what about upgrade, am i be able to give upgrades exam or not. Should i give directly OCPJP 6.
Hi folks,
As i'm a SCJP 1.4 and SCWCD, i'm preparing for upgrade exam of SCJP6. After the merge of sun and oracle, i'm bit confused about new certification process. As i have heard of oracle java certification, i'm unaware of these certifications. Kindly tell me whether i should give upgrade SCJP6 or the Oracle (OCPJP6) one. Even the websites are also confusing. Some links tell about all sun specific certification (SC...) and some tells Oracle (OCJ..) certification. If some one knows about these, kindly provide me the links also, so that i can view the process and syllabus of those certifications.
Hi, as i had started preparing scjws (the older one) 4 months back and unfortunately got interrupted in between. I was referring Monsoon-Haefel book and suggested sites (Mikali notes etc) from this forum. I'm in dilemma whether should i give the older one(310-230, jaxrpc pattern) or the new one (310-231 , jaxws pattern). As per my own experience is concern, i been using jax-rpc protocol for the web service. Will it really matters to do the older one rather than the new one. It would be very helpful or kind if someone really give me the depth details or difference between these two w.r.t the certification. As i'm in between of, so i'm really stuck which one is to opt and will be beneficial to me.
Hi,
I've started for scdjws and 've read basic formation of xml,soap,wsdl,fault. All these i know theoretically, but i do really wanna know how this xml actually parse and how the request flows further and how one get the response and parse it to get the result. I'm novice in this environment. Can i get some tutorial to get some clue to do in practical approach. A basic message convey (SOAP or WSDL) information sharing. I googled it couldn't able to get the correct information. Many places it had given with the help of IDE which hides the actual implementation details.
I'm using Tomcat 5.5 environment , do i need to install something else to get this work done(JAX-RPC).

Any suggestion or help most welcome.

thks
thanks for the reply.
I followed the process what u've said. But still it doesn't work. I'm getting the same exception. I followed the way for signing applet jar as described in "http://java.sun.com/developer/onlineTraining/Programming/JDCBook/signed.html" then i've put the jar where my signedApplet.html is located. I've written following code in signedApplet.html
"<html>
<body>
<applet height="271" width="226" code="JFileChooserTest"
archive="SUploadFilesApplet.jar,lib/commons-httpclient-2.0.jar,lib/commons-logging-1.1.1.jar">

</applet>
</body>

</html>"

Is that because of self-signed application? I've also uploaded the CompanyCer.cer in my IE.
15 years ago
I've self-signed applet jar. I've created the policy file also (granting all permission). This applet is basically uploading multiple files using HttpClient to post request. I'm able to run via appletviewer command like:
appletviewer -J-Djava.security.policy=mypolicy signedapplet.html . It works fine. But when i embed it into my html file and try to open the html by clicking on it, the applet got successfully loaded but when i browse a file then it throws an exception. Exception on java console..
java.security.AccessControlException: access denied (java.io.FilePermission C:\Documents and Settings\Navneet\My Documents\Jassi.doc read)

I don't know where i went wrong. If it works on appletviewer, why not on html.Do i need to do something extra to work it.

Any suggestion/solutions are most welcome.

thanks in advance
15 years ago
Congrates Dipti
m also prepairing for this. I've also deployed web-services in my project around 3 months back but i'd used jax-ws. I also dont have any prior exp on ejb neither i've looked into it.I'm follower of netbeans for my project deployment. One thing i would like to know that, do i really need to have grasp on ejb? how long you took to give this exam. Which web/app server you've used for your deployment. I'm using tomcat web-server 5.5 .
Any suggestion on stress area of web-services. Topics you phased most complex.
You've mentioned rmh book and notes. These are enough? I also want to know about the security issues (in rmh it is not there). Can you elaborate your exp while prepairing your exam.
15 years ago
I've deployed 'app.war' in tomcat 5.5 through tomcat manager login. But when i 'undeploy' through tomcat manager login, it deletes the war file but files (exploded one) inside 'WEB-INF/lib/fil.jar' is not getting deleted. So, when i again upload the war it's not taking affect. I'm using config as :
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/mrm" reloadable="true"/>
That should be working, i don't know where i've mistaken. Can anyone help me out.
thanks in advance..
15 years ago
But what happens when i create self-signed certificate with CN=192.234.3.46 , i want to check this. I'm not able to connect it to the web service and getting an exception :
avax.xml.ws.WebServiceException: java.io.IOException: HTTPS hostname wrong: should be <192.234.3.46>.
But when i create it for localhost it works fine.
I'm using netbeans+jax-ws+tomcat. Could anyone tell me, where to configure in netbeans or in java client to be access the created HOSTNAME. I'm totally confused with this.

any suggestion/answer is welcome.
thanks in advance
16 years ago
I'm able to check the authentication with jax-ws 2.0 when hitting on "localhost". I've created a certificate with cn=localhost and able to run my jax-ws client (no problem at all). But, when i'm creating with other than localhost (i.e cn=somedomain). I'm not able to connect to the web service and exception as : "https hostname is wrong it should be <somedomain> "
Does anyone help me out. I'm using netbeans 5.5,jax-ws 2.0,tomcat 5.5.
it's not working with other than localhost, when creating self-signed certificate. Any idea ??

in advance thanks...
16 years ago