[JBoss-user] [Persistence CMP/JBoss] - Re: using hibernate in jboss-4.0.0

2005-04-20 Thread redwave
hi utkarshpune,

ur problem will be solved when u remove all references to *hbm.xml files from 
hibernate-service.xml and put them in *.har file maintaining the class 
hierarchy.
Atleast this will solve ur current problem but i am not sure that Hibernate 
will still work as i am grappling it with from last 2 days and everytime i 
solve one problem there is another one just round the corner.

bye.
hope it helps u.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3874621#3874621

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3874621


---
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: using hibernate in jboss-4.0.0

2005-03-18 Thread tanghh4321
rajs1
 Would you mind post what you do to make derby works as a database server, I 
get some issues that seems to be hard to resolve.  thanks.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3870823#3870823

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3870823


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: using hibernate in jboss-4.0.0

2005-01-05 Thread fabio quimbay
But, If I don't use the *.hbm.xml files within the har file, How can I to refer 
this files without the attribute: MapResources in my hibernate-service.xml ?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3860741#3860741

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3860741


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: using hibernate in jboss-4.0.0

2004-12-16 Thread rajs1
I got it all working with Apache Derby as the database server, without a hitch 
(so far).

First one needs to replace (in default/lib)  the jboss-hibernate.jar that comes 
with JBoss4RC2 with the one from this wiki

http://www.jboss.org/wiki/Wiki.jsp?page=JBossHibernate

Rename jboss-hibernate-NEW.jar as jboss-hibernate.jar.

Also configure the MBean as mentioned in the wiki:

My MBean is configured as:


  | mbean code=org.jboss.hibernate.jmx.Hibernate 
name=jboss.har:service=Hibernate
  | attribute name=DatasourceNamejava:/DefaultDS/attribute
  | attribute 
name=SessionFactoryNamejava:/hibernate/SessionFactory/attribute
  | attribute 
name=Dialectnet.sf.hibernate.dialect.DerbyDialect/attribute
  | attribute 
name=CacheProviderClassnet.sf.hibernate.cache.HashtableCacheProvider/attribute
  | /mbean
  | 


If you are going to use the Apache Derby DB then there is no dialect support 
for this at the moment but the requried files can be got from here

http://opensource.atlassian.com/projects/hibernate/browse/HB-1224

compiled and incorprated into the hibernate2.jar file in default/lib

Finally my jboss-app.xml file is as follows:


  | !DOCTYPE jboss-app PUBLIC -//JBoss//DTD J2EE Application 1.4//EN
  |  http://www.jboss.org/j2ee/dtd/jboss-app_4_0.dtd;
  | jboss-app
  |module
  |   harrlhibernate.har/har
  |/module
  |module
  |   ejbrlhibernate.jar/ejb
  |/module
  | /jboss-app
  | 

The only thing I noticed is that this job-app.xml seems to go in as 
meta-inf/application.xml since my ear is created using an Ant script.

Doesn't seem to affect the deployment of the ear though.

Hope this helps.

Cheers
-raj

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858526#3858526

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858526


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: using hibernate in jboss-4.0.0

2004-12-14 Thread tomislavr

Yes, you should listen what the man above said.. :)


Tomislav


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858521#3858521

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858521


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: using hibernate in jboss-4.0.0

2004-12-09 Thread yura_net
This is a full list of attributes:

Dirty
CacheProviderClass
CacheRegionPrefix
GetGeneratedKeysEnabled
SessionFactoryName
HarUrl
DefaultSchema
ShowSqlEnabled
QueryCacheEnabled
DatasourceName
Password
JdbcFetchSize
StateString
SessionFactoryRunning
JdbcBatchSize
JdbcScrollableResultSetEnabled
Hbm2ddlAuto
MaxFetchDepth
Name
QuerySubstitutions
Dialect
SessionFactoryInterceptor
Username

It's easy to find this in JBoss Web-Consol. 
by default:
http://localhost:8080/web-console/

Just select System-JMX MBeans-jboss.har-jboss.har:servise=Hibernate and you 
will see all attributes and it's values.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858075#3858075

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858075


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: using hibernate in jboss-4.0.0

2004-12-06 Thread tomislavr
 My Abhyasika.har has following structure ,
 com --This folder contains my package hierarchy with classes and 
 hbm.xml files
 META-INF -- It contains hibernate-service.xml
 hibernate.cfg.xml
 hibernate.properties

I don't know about the last two - I'm not using them, but for sure you have a 
problem because you are using attributes which now do not exist. For example, 
'MapResources' att. is no longer required as Jboss will search inside .har for 
.hbm descriptors.

I'll give you a list of att. I found in Jboss source, so this is all you have 
now. Things have changed, and docs are not updated everywhere. 

Also I've noticed a lot of questions about 'HarUrl' stuff - change mbean code 
att. to org.jboss.hibernate.jmx.Hibernate :)

Attributes:
datasourceName
dialect
sessionFactoryName
cacheProviderClass
cacheRegionPrefix
hbm2ddlAuto
defaultSchema
jdbcBatchSize
jdbcFetchSize
jdbcScrollableResultSetEnabled
queryCacheEnabled
querySubstitutions
maxFetchDepth
showSqlEnabled
getGeneratedKeysEnabled
username
password
TRANSACTION_MANAGER_STRATEGY
TRANSACTION_STRATEGY

hope this helps..

cheers,
Tomislav


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3857568#3857568

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3857568


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: using hibernate in jboss-4.0.0

2004-11-08 Thread utkarshpune
I am geting following error when I try to deploy hibernate Mbean,

org.jboss.deployment.DeploymentException: No Attribute found with name: 
MapResources

I tried to google for this problem but couldn't find any useful info.

My Abhyasika.har has following structure,
com   --This folder contains my package hierarchy with classes and hbm.xml 
files
META-INF  -- It contains hibernate-service.xml
hibernate.cfg.xml
hibernate.properties

The Exception:
org.jboss.deployment.DeploymentException: No Attribute found with name: 
MapResources
rces
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.ja
va:340)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura
tor.java:160)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
:114)
at org.jboss.system.ServiceController.install(ServiceController.java:200
)
at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:242)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:208)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:889)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:881)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:745)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:141)


Here is my hibernate-service.xml
?xml version=1.0 encoding=UTF-8?
  | !DOCTYPE server
  | 
  | !-- Generated file - Do not edit! --
  | 
  | server
  |mbean code=org.jboss.hibernate.jmx.Hibernate 
name=jboss.har:service=Hibernate
  |dependsjboss.har:service=HARDeployer/depends
  |dependsjboss.jca:service=LocalTxCM,name=MySqlDS/depends
  |attribute 
name=MapResourcescom/utkarsh/abhyasika/hibernate/Category.hbm.xml
  |/attribute
  |attribute name=DatasourceNamejava:/MySQLDS/attribute
  |attribute 
name=Dialectnet.sf.hibernate.dialect.MySQLDialect/attribute
  |attribute name=UseOuterJointrue/attribute
  |attribute name=ShowSqlfalse/attribute
  |attribute name=UserTransactionNameUserTransaction/attribute
  |attribute 
name=TransactionStrategynet.sf.hibernate.transaction.JTATransactionFactory/attribute
  |attribute 
name=TransactionManagerLookupStrategynet.sf.hibernate.transaction.JBossTransactionManagerLookup/attribute
  |   attribute 
name=SessionFactoryNamejava:/hibernate/SessionFactory/attribute
  |attribute 
name=CacheProviderClassnet.sf.hibernate.cache.HashtableCacheProvider/attribute
  |attribute name=Hbm2ddlAutoupdate/attribute
  |/mbean
  | /server
Let me know as to what could be problem?

Thanks
Utkarsh

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854372#3854372

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854372


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: using hibernate in jboss-4.0.0

2004-11-04 Thread utkarshpune
Hello,
 I am also getting the same error. Were you able to solve it? If yes please let me 
know the solution.

Thanks


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3854014#3854014

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3854014


---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: using hibernate in jboss-4.0.0

2004-10-21 Thread beyarecords
berkgypsy wrote : more changes to make this 4.0.0 compatible, and now it's working, 
for those interested:
  | 
  | 
  |   | server
  |   | mbean code=org.jboss.hibernate.jmx.Hibernate 
name=jboss.har:service=Hibernate
  |   | dependsjboss.jca:service=LocalTxCM,name=TxOracleDS/depends
  |   | 
  |   | attribute name=SessionFactoryNamejava:/HibernateFactory/attribute
  |   | attribute name=DatasourceNamejava:/TxOracleDS/attribute
  |   | attribute 
name=Dialectnet.sf.hibernate.dialect.Oracle9Dialect/attribute
  |   | attribute 
name=CacheProviderClassnet.sf.hibernate.cache.HashtableCacheProvider/attribute
  |   | attribute name=Hbm2ddlAutoupdate/attribute
  |   | /mbean
  |   | 
  |   | /server
  |   | 
  |   | 


Hi,
i'm at the stage you were at when wrtting this article and well and truely stuck. My 
structure thus far is:

hibernate.har

inside the .har file I have two folders
1. meta-inf - containing hibernate-service.xml

2. test - containing my *.Class and *.hbm.xml files (Is this correct ?)
Do i have to call the test folder test.war or some such name?

In what file do i specify my mapresources? is it the hibernate-service.xml file 
itself? If so how do I specify the files.

I have scaned the available resources on this issue but the solutions are for 
different incarnations of jboss which have all have different implentations, and thus 
don't work.

I am currently running JBoss 3.2.6

many thanks for your help and time


Andrew

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3852271#3852271

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3852271


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: using hibernate in jboss-4.0.0

2004-10-15 Thread dapeng
Can you show a complete working example? Did you put the .HAR in your .EAR file? How 
do you access the SessionFactory? Where did you put the hibernate.hbm.xml? 

Thanks for any help.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3851546#3851546

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3851546


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user