-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: HHH000194: Package not found or wo package-info.java:
PostPosted: Thu Apr 04, 2013 11:21 am 
Newbie

Joined: Thu Apr 04, 2013 11:04 am
Posts: 1
Hi

I created a jar with pojo classes, some of them annotated with hibernate annotations. This jar contains such persistence.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
version="2.0">
<persistence-unit name="models_service"
transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<class>com.magick.models.IndicatorMeta</class>
<class>com.magick.models.Indicator</class>
<class>com.magick.models.IndicatorContainer</class>
<class>com.magick.models.IndicatorParameter</class>
<class>com.magick.models.IndicatorParameterType</class>
<properties>
<property name="hibernate.connection.driver_class" value="org.postgresql.Driver" />
<property name="hibernate.connection.url"
value="jdbc:postgresql://localhost:5432/indicators_service" />
<property name="hibernate.connection.username" value="postgres" />
<property name="hibernate.connection.password" value="root" />

<property name="hibernate.show_sql" value="false" />
<property name="hibernate.format_sql" value="false" />
<property name="hibernate.connection.useUnicode" value="true" />
<property name="hibernate.connection.characterEncoding"
value="UTF-8" />
<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
<property name="hibernate.hbm2ddl.auto" value="update" />
<property name="hibernate.transaction.jta.platform"
value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform" />
</properties>


</persistence-unit>
</persistence>

I'd like to include this jar in WEB-INF/lib directory of another war file and use persistence unit of this jar there. When I deploy war with my models.jar to JBoss AS7 i can see that this persistent unit is created, but it can't find packages and annotated classes and i have such messages in log:

17:58:54,582 DEBUG [org.hibernate.cfg.Configuration] (MSC service thread 1-7) Mapping Package com.magick.models.log
17:58:54,607 DEBUG [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-7) HHH000194: Package not found or wo package-info.java: com.magick.models.log
17:58:54,607 DEBUG [org.hibernate.cfg.Configuration] (MSC service thread 1-7) Mapping Package com.magick.models
17:58:54,612 DEBUG [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-7) HHH000194: Package not found or wo package-info.java: com.magick.models

I've checked these packages are in jar and annotated classes too.

Can you help me how can I resolve this issue?

Thanks, Anton


Top
 Profile  
 
 Post subject: Re: HHH000194: Package not found or wo package-info.java:
PostPosted: Tue Apr 09, 2013 8:00 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
http://stackoverflow.com/questions/7244210/package-not-found-or-wo-package-info-java


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.