facebook

Deploying Multiple Hibernate Projects in JBoss

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #231670 Reply

    rmauer
    Member

    I am using MyEclipse 3.8.3 and JBoss 3.2.5. I have written several web projects that use hibernate, struts and SQL. I can deploy these applications individually to an IIS server running JBoss and they run successfully. If I deploy all of them and then restart JBoss, the TomCat Deployer will deploy each war file in alphabetical order. The problem is that when I try to launch one of these web applications it always binds the hibernate mapping to the first war file that was deployed. This later results in a ‘No Persistent Classes Found’ error.

    Here is an example. Below I am trying to launch a V15Fee.war application, however the hibernate mapping it is trying to use is from a Calendar.war application.

    ……
    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:16,176 INFO [Configuration] processing foreign key constraints
    13:28:16,489 INFO [Dialect] Using dialect: net.sf.hibernate.dialect.SQLServerDialect
    13:28:16,645 INFO [SettingsFactory] Use outer join fetching: true
    13:28:16,708 INFO [DriverManagerConnectionProvider] Using Hibernate built-in connection pool (not for production use!)
    13:28:16,708 INFO [DriverManagerConnectionProvider] Hibernate connection pool size: 20
    13:28:16,723 INFO [DriverManagerConnectionProvider] using driver: sun.jdbc.odbc
    .JdbcOdbcDriver at URL: jdbc:odbc:mde1
    13:28:16,723 INFO [DriverManagerConnectionProvider] connection properties: {user=visnweb, password=v15Web15}
    13:28:16,801 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup
    configured (in JTA environment, use of process level read-write cache is not recommended)
    13:28:17,020 INFO [SettingsFactory] Use scrollable result sets: true
    13:28:17,036 INFO [SettingsFactory] Use JDBC3 getGeneratedKeys(): false
    13:28:17,036 INFO [SettingsFactory] Optimize cache for minimal puts: false
    13:28:17,036 INFO [SettingsFactory] Query language substitutions: {}
    13:28:17,036 INFO [SettingsFactory] cache provider: net.sf.hibernate.cache.EhCacheProvider
    13:28:17,083 INFO [Configuration] instantiating and configuring caches
    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
    FID=51014

    Has anyone else had this problem and found a solution? Shouldn’t you be able to deploy more than one application that uses hibernate?

    Thanks

    #231674 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev, as I understand it this is a JBoss load-order issue. Please double check with the JBoss forums as well, I’m sure there are many folks there with the same issue, also the Hibernate forums can be very helpful if your question is easy to understand.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Deploying Multiple Hibernate Projects in JBoss

You must be logged in to post in the forum log in