Impetus / kundera

A JPA 2.1 compliant Polyglot Object-Datastore Mapping Library for NoSQL Datastores.Please subscribe to:
http://groups.google.com/group/kundera-discuss/subscribe
Apache License 2.0
903 stars 233 forks source link

Kundera + JBoss AS7 #390

Closed bsideup closed 10 years ago

bsideup commented 11 years ago

Hi!

Seems like Kundera doesn't work well with JBoss:

https://gist.github.com/bsideup/40f7e22ec6ae0ecc6d7c

mevivs commented 11 years ago

Hi, There have been multiple discussions around this, you may refer: https://github.com/impetus-opensource/Kundera/issues/180

It should work with JBoss 5,6 and 7.1.1

-Vivek

bsideup commented 11 years ago

in #180 there was problem with locating persistence.xml, but my problem is in the "WEB-INF/classes" folder.

And yes, setting "jboss.as.jpa.managed" to "true" doesn't fix it :(

Thanks!

mevivs commented 11 years ago

version of jboss? packaging structure of war?

-Vivek

mevivs commented 11 years ago

jboss.as.jpa.managed as false not "true"!

bsideup commented 11 years ago

Oops. Yes, it is "false".

JBoss AS 7.1.1.Final "Brontes"

i will try to package simple project with this issue to reproduce today

mevivs commented 11 years ago

Have a look at: https://github.com/impetus-opensource/Kundera/tree/kundera-structure/container/jboss/data-keeper

It's a sample app deployable over JBoss 7.1.1 final

-Vivek

bsideup commented 11 years ago
git clone https://github.com/bsideup/KunderaJBossIssue.git
cd KunderaJBossIssue/modules/app/
mvn clean package jboss-as:run

https://gist.github.com/bsideup/b2dde7bf3cfc6d72c5c1

what am i doing wrong?

mevivs commented 11 years ago

Nothing i can conclude from this log. Not sure if you can do a manual deploy, if it works.

-Vivek

bsideup commented 11 years ago

Manual deploy to JBoss instance returns the same log.

How did you run your application?

mevivs commented 11 years ago

KK, Can you please provide more inputs on this?

-Vivek

mevivs commented 11 years ago

It seems netty.jar is giving some issues.

https://community.jboss.org/thread/197426?start=0&tstart=0

bsideup commented 11 years ago

Yes, but i changed nothing in this project, only transferred it to my own repo, so it should work well, isn't it?

kkmishra commented 11 years ago

Just modified pom.xml to exclude netty.jar, try now, it should work fine for you.

Thanks KK

mevivs commented 11 years ago

Just to give you a brief about this project.

It's a polyglot application built to deal with multiple datastores(e.g. Cassandra and MongoDB). However you may modify it for single database by modifying: 1) appContext.xml 2) Entity definitions.

HTH.

-Vivek

bsideup commented 11 years ago

Ok, netty exclusion works. Moving forward to make it looks like our project and break it:)

bsideup commented 11 years ago

Woohoo!

<exclude-unlisted-classes>true</exclude-unlisted-classes>

this parameter fixed issue in our project.

mevivs commented 11 years ago

Cool. Are we good to close on this?

-Vivek

bsideup commented 11 years ago

Partially :)

Am i right that there is no chance not to specify each entity class in persistence.xml?

pires commented 11 years ago

+1 for not having to specify every class in persistence.xml.