NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

JEE6 Maven Enterprise project

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
Marcel Overdijk
Posted via mailing list.





PostPosted: Mon Jun 28, 2010 9:17 pm    Post subject: JEE6 Maven Enterprise project Reply with quote

This is the first time I'm using Netbeans in combination with JEE and Maven.

I've used the 'Create Maven Enterprise application wizard' to create a
project to do some prototyping.
I've also created a simple stateless session bean just printing some log
statement.

I've put a @Schedule annotation on a method and after deploying the ejb
project (run from within netbeans using GF v3) I see the log statement.

So far so good.
Now I like to add a 3th party jar which my EJB module depends on (in my case
mongodb).
I've added it using Libraries -> Add dependency. The pom.xml afterwards
includes the dependency and I can also use the Mongo classes in my own
sources now.

When I now run the app I get errors that the Mongo classes cannot be found:

SEVERE: EJB5070: Exception creating stateless session bean : [ImportBean]
WARNING: A system exception occurred during an invocation on EJB ImportBean
method public void com.mycomp.ejb.ImportBean.execute()

I've also tried addind the dependency to the ear module but this gives the
same error.

I'm wondering what I'm doing wrong...?
--
View this message in context: http://old.nabble.com/JEE6-Maven-Enterprise-project-tp29011125p29011125.html
Sent from the Netbeans - J2EE mailing list archive at Nabble.com.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo