Re: [Neo4j] Neo4j J2EE dependencies

124 views
Skip to first unread message

Peter Neubauer

unread,
Apr 27, 2012, 12:51:10 PM4/27/12
to ne...@googlegroups.com
Hi Vince,
the neo4j kernel implements the JTA specification, therefore it
depends on these APIs. If you look into the lib/ dir of the neo4j
download, you should see geronimo-jta_1.1_spec-1.1.1.jar which is the
impl that we ship for it.

Also, you could just depend in Maven or so on the parent pom, see
http://docs.neo4j.org/chunked/snapshot/tutorials-java-embedded-setup.html
and it will pull this in for you.

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

If you can write, you can code - @coderdojomalmo
If you can sketch, you can use a graph database - @neo4j


On Fri, Apr 27, 2012 at 5:57 PM, vlg <vince.le...@gmail.com> wrote:
> Hi there,
>
> I'm running neo4j 1.6.2 on a specific environment that make use of a
> JAVA 6 runtime environment (don't know which one as it is embedded in
> the software I'm using). Upon creating a new Embedded Neo4j database,
> I got the following exception:
>
> javax/transaction/TransactionManager
> java.lang.NoClassDefFoundError: javax/transaction/TransactionManager
>        at
> org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:
> 78)
>        at
> org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:
> 61)
>
> After some googling, I found that this class is J2EE related. I've
> added the public javaee-api-6.0 jar file, but I got this one then:
>
> Absent Code attribute in method that is not native or abstract in
> class file javax/transaction/SystemException
> java.lang.ClassFormatError: Absent Code attribute in method that is
> not native or abstract in class file javax/transaction/SystemException
>        (... some java.lang.ClassLoader. stuffs...)
> org.neo4j.kernel.impl.transaction.DefaultTransactionManagerProvider.loadTransactionManager(DefaultTransactionManagerProvider.java:
> 39)
>        at org.neo4j.kernel.impl.transaction.TxModule.<init>(TxModule.java:
> 75)
>        at
> org.neo4j.kernel.EmbeddedGraphDbImpl.newTxModule(EmbeddedGraphDbImpl.java:
> 224)
>        at
> org.neo4j.kernel.EmbeddedGraphDbImpl.<init>(EmbeddedGraphDbImpl.java:
> 112)
>        at
> org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:
> 78)
>        at
> org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:
> 61)
>
> Question: to what extent Neo4d depends on some J2EE stuffs ? I'm not
> too familiar with J2EE, so I don't know why neo4j would require it and
> why it's not working on my environment...
>
> Thoughts ?
>
> Thanks :)
Reply all
Reply to author
Forward
0 new messages