NetBeans Forums

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

Problem using multiple projects for a single program

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
Klavs



Joined: 26 Jan 2011
Posts: 12

PostPosted: Wed Apr 27, 2011 3:58 pm    Post subject: Problem using multiple projects for a single program Reply with quote

Hello
I was wondering can eneyone help me with this.
My problem is that I have several projects for my database program and one main project that binds these projects together and from which i can open these project but i seem to be unable to lunch these projects trought the main project (it dosen't connect to database for some reason).
Im using Toplink persistance model for tables and Hibarnate for adding new data.
Back to top
jyeary



Joined: 21 Oct 2008
Posts: 606
Location: Simpsonville, SC

PostPosted: Thu Apr 28, 2011 12:44 pm    Post subject: Re: Problem using multiple projects for a single program Reply with quote

Is there a specific error message, or more details you can provide? Your post is very general.

On Wed, Apr 27, 2011 at 11:58 AM, Klavs <address-removed ([email]address-removed[/email])> wrote:
Quote:
Hello
I was wondering can eneyone help me with this.
My problem is that I have several projects for my database program and one main project that binds these projects together and from which i can open these project but i seem to be unable to lunch these projects trought the main project (it dosen't connect to database for some reason).
Im using Toplink persistance model for tables and Hibarnate for adding new data.







--
John Yeary
--
http://javaevangelist.blogspot.com
http://www.johnyeary.com
@jyeary

"Far better it is to dare mighty things, to win glorious triumphs, even though checkered by failure, than to take rank with those poor spirits who neither enjoy much nor suffer much, because they live in the gray twilight that knows not victory nor defeat."
-- Theodore Roosevelt
Back to top
Klavs



Joined: 26 Jan 2011
Posts: 12

PostPosted: Sat Apr 30, 2011 1:14 pm    Post subject: Reply with quote

The error im getting when im opening the jFrame with the table trought the main project:

Exception Description: Error compiling the query [SELECT p FROM Precesnoliktava p]. Unknown abstract schema type [Precesnoliktava]

The thing is when im runing the project (Precesnoliktava) which is for this table sepratly it works fine. And whats even more confusing is that before i could lunch this same project (Precesnoliktava) trought the main project without problems but I couldn't lunch a project (Bankas) for a different table, but i can lunch the project (Bankas) without eney issues.
Back to top
Klavs



Joined: 26 Jan 2011
Posts: 12

PostPosted: Tue May 03, 2011 1:48 pm    Post subject: Reply with quote

If eneyone else needs i found a fix:
I simply combined all the projects into a single project and that prety much fixed it.
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