[jboss-user] [JBoss Seam] - Re: JBoss Seam and Web Services using OC4J stack

apushadow do-not-reply at jboss.com
Fri Mar 9 17:15:38 EST 2007


Manuel--

I too need to make a Seam app run on oc4j.  Currently, I have an app running on Tomcat (using JBoss's embedded EJB jar) and I try to deploy it to oc4j and it gives me the following error:


  | 16:09:24,140 INFO  [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
  | 16:09:24,140 INFO  [SettingsFactory] Query language substitutions: {}
  | 16:09:24,140 INFO  [SettingsFactory] Second-level cache: enabled
  | 16:09:24,140 INFO  [SettingsFactory] Query cache: disabled
  | 16:09:24,140 INFO  [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
  | 16:09:24,140 INFO  [SettingsFactory] Optimize cache for minimal puts: disabled
  | 16:09:24,140 INFO  [SettingsFactory] Structured second-level cache entries: disabled
  | 16:09:24,140 INFO  [SettingsFactory] Echoing all SQL to stdout
  | 16:09:24,140 INFO  [SettingsFactory] Statistics: disabled
  | 16:09:24,140 INFO  [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
  | 16:09:24,140 INFO  [SettingsFactory] Default entity-mode: pojo
  | 16:09:24,187 INFO  [SessionFactoryImpl] building session factory
  | 16:09:24,656 INFO  [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configure
  | d
  | 16:09:24,671 INFO  [SchemaExport] Running hbm2ddl schema export
  | 16:09:24,671 INFO  [SchemaExport] exporting generated schema to database
  | 16:09:27,875 INFO  [SchemaExport] Executing import script: /import.sql
  | 16:09:27,968 INFO  [SchemaExport] schema export complete
  | 16:09:27,968 INFO  [NamingHelper] JNDI InitialContext properties:{}
  | 07/03/09 16:09:28 oracle.oc4j.admin.internal.DeployerException: [lunchvote:jboss-seam-lunchvote] - E
  | xception creating EntityManagerFactory using PersistenceProvider class org.hibernate.ejb.HibernatePe
  | rsistence for persistence unit lunchvoteDatabase.
  | 07/03/09 16:09:28       at com.evermind.server.ejb.exception.DeploymentException.exceptionCreatingEn
  | tityManagerFactory(DeploymentException.java:130)
  | 07/03/09 16:09:28       at com.evermind.server.ejb.persistence.PersistenceUnitManagerImpl.createCont
  | ainerEntityManagerFactory(PersistenceUnitManagerImpl.java:197)
  | 07/03/09 16:09:28       at com.evermind.server.ejb.persistence.PersistenceUnitManagerImpl.initialize
  | PersistenceUnit(PersistenceUnitManagerImpl.java:159)
  | 07/03/09 16:09:28       at com.evermind.server.ejb.persistence.PersistenceUnitManagerImpl.initialize
  | (PersistenceUnitManagerImpl.java:86)
  | 07/03/09 16:09:28       at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:733)
  | 
  | 07/03/09 16:09:28       at com.evermind.server.ApplicationStateRunning.getHttpApplication(Applicatio
  | nStateRunning.java:414)
  | 07/03/09 16:09:28       at com.evermind.server.Application.getHttpApplication(Application.java:571)
  | 07/03/09 16:09:28       at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createH
  | ttpApplicationFromReference(HttpSite.java:1990)
  | 07/03/09 16:09:28       at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(
  | HttpSite.java:1909)
  | 07/03/09 16:09:28       at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1606)
  | 07/03/09 16:09:28       at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplication
  | Binder.java:238)
  | 07/03/09 16:09:28       at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplication
  | Binder.java:99)
  | 07/03/09 16:09:28       at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDepl
  | oyer.java:547)
  | 07/03/09 16:09:28       at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeploy
  | er.java:202)
  | 07/03/09 16:09:28       at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
  | 07/03/09 16:09:28       at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4
  | JDeployerRunnable.java:52)
  | 07/03/09 16:09:28       at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerR
  | unnable.java:81)
  | 07/03/09 16:09:28       at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Releasabl
  | eResourcePooledExecutor.java:298)
  | 07/03/09 16:09:28       at java.lang.Thread.run(Thread.java:595)
  | 2007-03-09 16:09:28.031 NOTIFICATION Application Deployer for lunchvote FAILED.
  | 2007-03-09 16:09:28.031 NOTIFICATION Application UnDeployer for lunchvote STARTS.
  | 2007-03-09 16:09:28.046 NOTIFICATION Removing all web binding(s) for application lunchvote from all
  | web site(s)
  | 2007-03-09 16:09:28.453 NOTIFICATION Application UnDeployer for lunchvote COMPLETES.
  | 07/03/09 16:09:28 WARNING: DeployerRunnable.run [lunchvote:jboss-seam-lunchvote] - Exception creatin
  | g EntityManagerFactory using PersistenceProvider class org.hibernate.ejb.HibernatePersistence for pe
  | rsistence unit lunchvoteDatabase.oracle.oc4j.admin.internal.DeployerException: [lunchvote:jboss-seam
  | -lunchvote] - Exception creating EntityManagerFactory using PersistenceProvider class org.hibernate.
  | ejb.HibernatePersistence for persistence unit lunchvoteDatabase.
  |         at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:126)
  |         at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnabl
  | e.java:52)
  |         at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
  | 
  |         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledE
  | xecutor.java:298)
  |         at java.lang.Thread.run(Thread.java:595)
  | 
  | 07/03/09 16:09:28 SEVERE: ProgressObjectImpl.reportError [lunchvote:jboss-seam-lunchvote] - Exceptio
  | n creating EntityManagerFactory using PersistenceProvider class org.hibernate.ejb.HibernatePersisten
  | ce for persistence unit lunchvoteDatabase.oracle.oc4j.admin.jmx.shared.exceptions.InternalException:
  |  [lunchvote:jboss-seam-lunchvote] - Exception creating EntityManagerFactory using PersistenceProvide
  | r class org.hibernate.ejb.HibernatePersistence for persistence unit lunchvoteDatabase.
  |         at oracle.oc4j.admin.jmx.shared.deploy.NotificationUserData.<init>(NotificationUserData.java
  | :107)
  |         at oracle.oc4j.admin.internal.Notifier.reportError(Notifier.java:429)
  |         at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:123)
  |         at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnabl
  | e.java:52)
  |         at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
  | 
  |         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledE
  | xecutor.java:298)
  |         at java.lang.Thread.run(Thread.java:595)
  | Caused by: oracle.oc4j.admin.internal.DeployerException: [lunchvote:jboss-seam-lunchvote] - Exceptio
  | n creating EntityManagerFactory using PersistenceProvider class org.hibernate.ejb.HibernatePersisten
  | ce for persistence unit lunchvoteDatabase.
  |         at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:126)
  |         ... 4 more
  | 


I didn't change anything...will JBoss's embedded EJB jar even work in OC4J?  In any case, I have no clue how to swap it out for Oracle's equivalent, and OC4J probably has some other configuration tasks to do.  Any direction would be awesome.

Thanks,

--Rich

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026779#4026779

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026779



More information about the jboss-user mailing list