Meaningless Drivel is fun!
The moose likes JDBC and Relational Databases 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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Tomcat Server StartUp Failed" Watch "Tomcat Server StartUp Failed" New topic

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

Joined: Oct 27, 2005
Posts: 20279

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.

How To Ask Questions How To Answer Questions
Wendy Gibbons

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:
subject: Tomcat Server StartUp Failed
It's not a secret anymore!