This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes JDBC and the fly likes Tomcat Server StartUp Failed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Tomcat Server StartUp Failed" Watch "Tomcat Server StartUp Failed" New topic
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: 19783
    
  20

Parminder Ghai wrote:java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (RAMAN.SYS_C004350) violated

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 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1107

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Server StartUp Failed