4 Replies Latest reply on Mar 7, 2007 11:35 AM by Richard Hoffman

    How to deploy seam with oracle as ( or oc4j)?

    ricky lau Newbie

      How to deploy seam with oracle as ( or oc4j)?

        • 1. Re: How to deploy seam with oracle as ( or oc4j)?
          md meraj Newbie

          Hi xiaocase,
          please see merajcal Author's log

          • 2. Re: How to deploy seam with oracle as ( or oc4j)?
            md meraj Newbie

            Hi ,
            Did you get any solution for deploying seam application in oc4j

            • 3. Re: How to deploy seam with oracle as ( or oc4j)?
              Cédric Lamalle Newbie

              I bought Michael Yuan's Book from Rough Cuts and got useful informations.
              Deploying seam with ejb is "easy" using oc4j ejb stack, but you'll have to define jndi mappings in orion-ejb-jar.xml, which is really annoying.
              I had no success deploying a seam app using jboss ejb stack it's always stopping when creating the entity manager factory :
              11:16:39,625 INFO [TableMetadata] table found: helloworld.person
              11:16:39,625 INFO [TableMetadata] columns: [name, id]
              11:16:39,640 INFO [TableMetadata] foreign keys: []
              11:16:39,640 INFO [TableMetadata] indexes: [primary]
              11:16:39,640 INFO [SchemaUpdate] schema update complete
              11:16:39,640 DEBUG [SessionFactoryImpl] obtaining JTA TransactionManager
              11:16:39,656 INFO [NamingHelper] JNDI InitialContext properties:{}
              07/02/25 11:16:39 oracle.oc4j.admin.internal.DeployerException: [helloworld:helloworld] - Exception lors de la crÚation de EntityManagerFactory utilisant la classe PersistenceProvider org.hibernate.ejb.HibernatePersistence pour l'unité de persistance helloworld.
              07/02/25 11:16:39 at com.evermind.server.ejb.exception.DeploymentException.exceptionCreatingEntityManagerFactory(DeploymentException.java:130)
              07/02/25 11:16:39 at com.evermind.server.ejb.persistence.PersistenceUnitManagerImpl.createContainerEntityManagerFactory(PersistenceUnitManagerImpl.java:197)
              07/02/25 11:16:39 at com.evermind.server.ejb.persistence.PersistenceUnitManagerImpl.initializePersistenceUnit(PersistenceUnitManagerImpl.java:159)
              07/02/25 11:16:39 at com.evermind.server.ejb.persistence.PersistenceUnitManagerImpl.initialize(PersistenceUnitManagerImpl.java:86)
              07/02/25 11:16:39 at com.evermind.server.http.HttpApplication.(HttpApplication.java:733)
              07/02/25 11:16:39 at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:414)
              07/02/25 11:16:39 at com.evermind.server.Application.getHttpApplication(Application.java:545)
              07/02/25 11:16:39 at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1990)
              07/02/25 11:16:39 at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.(HttpSite.java:1909)
              07/02/25 11:16:39 at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1606)
              07/02/25 11:16:39 at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:238)
              07/02/25 11:16:39 at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:99)
              07/02/25 11:16:39 at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:547)
              07/02/25 11:16:39 at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:202)
              07/02/25 11:16:39 at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
              07/02/25 11:16:39 at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
              07/02/25 11:16:39 at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
              07/02/25 11:16:39 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
              07/02/25 11:16:39 at java.lang.Thread.run(Thread.java:595)

              • 4. Re: How to deploy seam with oracle as ( or oc4j)?
                Richard Hoffman Newbie

                Did anyone actually get this working? I'm getting the oh-so-(not)-helpful error message:

                Exception creating EntityManagerFactory using PersistenceProvider class org.hibernate.ejb.HibernatePersistence for persistence unit myDatabase.

                My app works great on Tomcat, but gives me this error when I try to deploy it on OC4J using their admin web-front-end. I was at least able to get OC4J working with MySQL (by adding the driver jar to the correct directory, adding the information to data-sources.xml, restarting the server, and testing it successfully via the front end), which got me past the "adaptor cannot connect to database" error.

                I'm currently using JBoss's EJB3 implementation...is it necessary to use Oracle's? If so, how do I go about configuring my app to use it?