0 Replies Latest reply on Jun 23, 2005 4:19 PM by Ray Mauer

    Deploying war files and incorrect hibernate mappings

    Ray Mauer Newbie

      I am using JBoss 3.2.5, Hibernate, MyEclipse and IIS. I deploy my applications as war files.

      My problem is that I can only deploy one application to JBoss. If I deploy a second application and try to run it, JBoss shows that the application uses the hibernate mapping class of the first application which then results in a 'No Persistent Classes Found' error. Here's an example where I am trying to run a V15Fee.war file, however the mapping is from a Calendar.war application. Shouldn't I be able to deploy more than one application or am I missing something?

      13:26:05,210 INFO [Server] JBoss (MX MicroKernel) [3.2.5 (build: CVSTag=JBoss_3_2_5 date=200406251954)] Started in 2m:12s:325ms
      13:26:05,226 INFO [Tomcat5] Saw org.jboss.system.server.started notification, starting connectors
      13:26:05,476 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-
      13:26:05,945 INFO [ChannelSocket] JK2: ajp13 listening on /
      13:26:05,976 INFO [JkMain] Jk running ID=0 time=0/141 config=null
      13:28:12,489 INFO [PropertyMessageResources] Initializing,config='org.apache.struts.taglib.html.LocalStrings',returnNull=true
      13:28:12,520 INFO [PropertyMessageResources]Initializing,config='org.apache.struts.util.LocalStrings', returnNull=true
      13:28:12,520 INFO [PropertyMessageResources] Initializing,config='org.apache.struts.taglib.html.LocalStrings',returnNull=true
      13:28:12,770 INFO [Environment] Hibernate 2.1.7
      13:28:12,848 INFO [Environment] hibernate.properties not found
      13:28:12,864 INFO [Environment] using CGLIB reflection optimizer
      13:28:12,864 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
      13:28:12,911 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
      13:28:12,911 INFO [Configuration] Configuration
      resource: /hibernate.cfg.xml
      13:28:13,036 INFO [Configuration] Mapping resource:com/visn15/hibernate/Webcalendar.hbm.xml
      13:28:15,192 INFO [Binder] Mapping class: com.visn15.hibernate.Webcalendar -> WebCalendar
      13:28:16,161 INFO [Configuration] Configured SessionFactory: null
      13:28:16,161 INFO [Configuration] processing one-to-many association mappings
      13:28:16,176 INFO [Configuration] processing one-to-one association property references
      13:28:18,255 INFO [SessionFactoryImpl] building session factory
      13:28:20,395 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
      13:28:21,239 WARN [QueryTranslator] no persistent classes found for query class
      : select Fee05display from com.visn15.hibernate.Fee05display Fee05display where ID=8772

      Thank You