| Author |
Tomcat Server StartUp Failed
|
Raman Ghai
Ranch Hand
Joined: Jan 01, 2012
Posts: 51
|
|
Tomcat Server Log Details :
I have started a simple Struts Project . It has a login form and registerform on the first page. However When I tried to start the Tomcat server , the server doesn't start.
It throws a SQLIntegrityConstraintViolationException even when the underlying table has no data yet.
The bold line in the code belongs to the following java class.
Tomcat Server Output is as following :
Any suggestions will be appreciated ... thanks
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
You have a unique constraint on that table, and you're trying to insert a value in a column that already has that value in another record. You'll have to check your database schema to find out which column that is.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Wendy Gibbons
Bartender
Joined: Oct 21, 2008
Posts: 1098
|
|
as Previous poster said, you need to find the index that is being violated, then find out what inserts into that table, as it appears to be trying to insert the same row twice.
trying to remember I think all_indexes is the table to select upon.
and i wrapped some long lines in your code sections, as they don't get wrapped automatically.
|
 |
Raman Ghai
Ranch Hand
Joined: Jan 01, 2012
Posts: 51
|
|
I guess that column is emailId
By the way , I truncated the table and redeployed the project on Glassfish as Tomcat didn't allow me to redeploy the project .
Now it's working .
Thanks for replying
|
 |
 |
|
|
subject: Tomcat Server StartUp Failed
|
|
|