Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8619749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:24:55+00:00 2026-06-12T06:24:55+00:00

I have an EJB 3.0 client and server with JBoss AS 7.1.1. I’m trying

  • 0

I have an EJB 3.0 client and server with JBoss AS 7.1.1. I’m trying to persist a list of entities to the database I’m connected to but I keep getting this error:

java.sql.SQLException: ORA-06576: not a valid function or procedure name

I have a sequence generator called SEQ_ID in my Oracle database. I followed this tutorial in setting it up: http://www.developerscrappad.com/408/java/java-ee/ejb3-jpa-3-ways-of-generating-primary-key-through-generatedvalue/

Here is my entity bean that uses the annotations in the above tutorial on the primary key: http://pastebin.com/QJ6W5VLG

Here is my function that persists the list of entities:

public void persistSchemas(List schemasList){
    String strDelete = " DELETE FROM Schemas s ";
    Query query = em.createQuery(strDelete);
    query.executeUpdate();

    for(Schemas schema : (List<Schemas>)schemasList){
        em.persist(schema);
    }
}

Here is the full stack trace of the error on the server:
http://pastebin.com/rmURYdRD

The error only shows up when I try to persist the entities and they have the two annotations @SequenceGenerator and @GeneratedValue. So it’s definitely something going on with the sequence. What is wrong here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T06:24:56+00:00Added an answer on June 12, 2026 at 6:24 am

    Turns out that the HQL dialect was wrong. I needed to change it to:

    <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle8iDialect"/>
    

    In my persistence.xml in the META-INF folder of my server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a EJB module in remote Glassfish server and application client in my
I have a Java EE application with its EJB and database server. I'm now
I have ejb + JPA app on GF3 server and remote swing client. I
I have to plan this big client-server app, communicating through EJB(2.1). -The server serving
I have used EJB and have started it on JBOSS Server. I want to
I have a client and server setup to run with JBoss AS 7.1.1 and
I have created a ejb2 application in eclipse 3.7, with jboss 5.0 application server.
I have the following arrangement : Tomcat --EJB-invokation--> JBoss (6.0.14) (5.1.0) The two servers
I am trying to invoke an EJB on JBoss 5.1.0 from two instances of
Friends, Previously I have worked with EJB-WEBSTART CLIENT project, and Now i have joined

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.