|
Hi Guys,
This is the error am getting when i start my Tomcat Server.
Several ports (8005, 8080, 8009) required by Tomcat v6.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).
|
|
|
|
|
Which part of this message are you having trouble understanding? There is not much that can be added to a message that tells you exactly why it cannot start.
txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Another progess has used those ports .
Ctrl+Shift+Del -> process , you will find a process called "java.exe" , just stop it .
|
|
|
|
|
Hi all,
I have also gotten the same error, I used Eclipse and Tomcat Server to create a web dynamic application. As, I run my application by Eclipse is gotten the error. I solved simply, check if Tomcat Server is running in your computer, you should stop it before you run application. This fixed the error. (Because, when Eclipse runs your application in server, default, Tomcat Server is run by Eclipse.)
Best regards,
Nguyen Cong Doan
|
|
|
|
|
Platform: Ubuntu Jaunty 9.04
Java: Open JDK 1.6.0.x
Mysql Connector: mysql-connector-5.1.12.jar
The code below works fine on Windows But whats wrong with the code that it generates the following error :
Driver Loaded..<br />
SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '????????????????' at line 1<br />
SQLState: 42000<br />
VendorError: 1064
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Connection;
public class TestException {
static{
try{
DriverManager.registerDriver(new com.mysql.jdbc.Driver());
System.out.println("Driver Loaded..");
}catch(Exception e){
System.out.println("Driver Not Loaded!");
}
}
public static void main(String[] args) {
try{
Connection conn = DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/phpmyadmin","root","*******");
System.out.println("Connection is Ready");
conn.close();
}catch(SQLException ex){
System.out.println("SQLException: " + ex.getMessage());
System.out.println("SQLState: " + ex.getSQLState());
System.out.println("VendorError: " + ex.getErrorCode());
}
}
}
|
|
|
|
|
|
ya there is a db called phpmyadmin, actually i'm having this trouble in Eclipse IDE...but surprisingly using Netbeans I didn't get any such error and my Code was working properly. Is this the problem of IDE or its something else??
|
|
|
|
|
|
And would like some fries with that ?
|
|
|
|
|
|
|
How about "TooLazyToDoMyOwnWork.com".
txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
|
Was searching for info on java reporting and found this site. Figured it was worth sharing. www.javareports.info
|
|
|
|
|
HI everyone..
please send me some prolects details to related to java..beens..J2ee for using as referels for some document
regards
Dilanka
|
|
|
|
|
This question is rather difficult to answer satisfactorily. I suggest you use Google to search for something that would satisfy you, or go to the Java Tutorials[^] and use some of the samples there.
In either case, if you wish to make it as a developer you need to learn how to do your own research.
txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Hi,
I developed an application in seam framework using Seam-Gen tool. I imported the application into eclipse. while running the build.xml file I am getting the BUILD FAILED error. The error is as follow.
C:\Program Files\jboss-seam-2.2.0.GA\seam-gen\build.xml:1674: The following erro
r occurred while executing this line:
D:\Development\booking\build.xml:316: Failed to copy D:\Development\booking\reso
urces\booking-dev-ds.xml to C:\Program Files\jboss-4.2.3.GA-Vue\server\C:\Progra
m Files\jboss-4.2.3.GA-Vue\deploy\booking-ds.xml due to java.io.FileNotFoundExce
ption C:\Program Files\jboss-4.2.3.GA-Vue\server\C:\Program Files\jboss-4.2.3.GA
-Vue\deploy\booking-ds.xml (The filename, directory name, or volume label syntax
is incorrect)
Can any one please help me in this regard.
Thanks,
Sunil.
|
|
|
|
|
C:\Program Files\jboss-4.2.3.GA-Vue\server\C:\Program Files\jboss-4.2.3.GA-Vue\deploy\booking-ds.xml
...[]while executing this line:D:\Development\booking\build.xml:316:
greets Torsten
I never finish anyth...
|
|
|
|
|
I have program by java:
I want to do the following
1- read from file integer number
2- after reading sort the integer number
import java.io.*;
import javax.swing.*;
import java.util.*;
import java.util.Arrays;
class read1
{
File infile;int n=10;
public void getInput()
{
try
{
JFileChooser jfc = new JFileChooser();
jfc.showOpenDialog(null);
infile=jfc.getSelectedFile();
FileInputStream fis =new FileInputStream(infile);
Scanner sc=new Scanner(fis);
int[] arrayToSort = new int[]
Arrays.sort(arrayToSort);
for (int i = 0; i < arrayToSort.length; i++)
System.out.println(arrayToSort[i]);
}
catch (Exception e)
{
e.printStackTrace();
}
}
public static void main(String[] args)
{
read1 e=new read1();
e.getInput();
e.sortIntArray();
}
}
my question this program execute but problem in this line
int[] arrayToSort = new int[]
modified on Friday, March 19, 2010 8:58 AM
|
|
|
|
|
Suggestion: put your code between <pre></pre> tags to make it readable. Hint: use the code block button in the editor.
Question: what is your problem?
txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
salemmohamed wrote: my question this program execute but problem in this line
Well you have not specified any size for the array you are trying to create.
txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
salemmohamed wrote: int[] arrayToSort = new int[]
1. Inside the [] at the end, specify a length for the array.
2. You left off the semicolon at the end of the line.
|
|
|
|
|
|
Hello Friends
I am using j3d Library.
Do u have any Idea of all the Functions of TextureAttributes with their parameters?
On sun site,I didnt get proper Descriprion.
So, do u have any Ideas??
Any Help will be appreciated.
Regards
Yogesh
|
|
|
|
|
Hi Yogesh,
Thanks for your message (and your faith), but I'm sorry I have not used 3D in Java so I really cannot help you. The only place I have found any information is the J3D Project[^], so I guess that is where you need to go.
txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|