Shweta Grewal

Ranch Hand
+ Follow
since Apr 03, 2012
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 Shweta Grewal

Stack trace is:

Exception in thread "main" java.lang.NoClassDefFoundError: SelectApp
Caused by: java.lang.ClassNotFoundException: SelectApp
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: SelectApp. Program will exit.


please show us the classpath you are using in that application


mysql-connector-java-3.1.12.jar(It is in same directory as program)
I wrote a program to retrieve data from a table in mysql. Now if I provide /mysql-connector-java-5.0.8-bin.jar in classpath.The error is

Exception in thread "main" java.lang.NoClassDefFoundError


But if I dont provide connector in classpath, the program runs but prints

mysql driver not found


I am on linux
Please help
still didn't get it
will you please explain it in simple words
11 years ago

May be the inFromServer.readLine() is waiting for response from the server to the socket.


Sorry didn't get you.
11 years ago
I enter the while loop but doesn't come out. Even the loop gets stuck after first time, never works a second time
11 years ago
I want to receive multiline input from socket.So I write the code:

String line=null;
FromServer=new String();
while((line = inFromServer.readLine())!=null){
FromServer+=intr;
intr=new String("");
}

But I get stuck. any suggestions please?
11 years ago

So, probably a firewall.


The ports are not blocked by firewall
11 years ago

What exactly do you mean by not starting up? Do you see any errors?


No errors but when I run the command netstat , they are not open
11 years ago

What response do you get if you telnet that port?


telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused
11 years ago

Most likely in linux ports are not opened by default, and you may have to do that


The ports are open and no other service is running on them
11 years ago
I tried changing these ports even then they are not opening
11 years ago

Make sure you don't have any other services running on these port, and any firewall is not blocking these ports


how to do that? I am on linux
11 years ago
Tomcat's port 8009,8005 are not starting up.
Can someone help me please?
11 years ago
Sorry for replying late

Check the localhost log. When catalina.out doesn't have enough information, that's generally where the missing messages are


Nothing in localhost log. Its empty
catalina.out has error:

SEVERE: No Store configured, persistence disabled


Please help
11 years ago