NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Mirless
Joined: 05 Oct 2011 Posts: 1 Location: Denmark
|
Posted: Wed Oct 05, 2011 12:21 pm Post subject: Entity Classes from DB fail in web app |
|
|
Hello
Iam working on a project where I Need to show some data result from
my MS sql server on the web at "my" company.
"new Entity Classes from Database" work 100 % from a normal Java App.
and I can get all my table data as I want them.
But when Iam doing the same on a Java web app - ( it run in Glassfish)
it cant find my tables.
what I do:
rigth click on java web app -> new -> new Entity Classes Database.
Data source: -> new data source -> name: ms-server
Database connection -> new Database connection
type in all my connection detail: test connection == succes,
next -> add my dbo schema -> ok.
I dont get any tables.
when iam doing the same thing on a swing app I get all my tables where I can add those I want.
do it have anything to do with the "JNDI name" ?
iam lost atm. hope some of you can point me in the right direction.
Iam using Netebeans 7.0.1. and Glassfishv3
// Mirless |
|
| Back to top |
|
 |
jyeary
Joined: 21 Oct 2008 Posts: 605 Location: Simpsonville, SC
|
Posted: Fri Oct 14, 2011 6:29 pm Post subject: Re: Entity Classes from DB fail in web app |
|
|
This may seem like an obvious question, but are you using the login of the owner of that schema?
On Wed, Oct 5, 2011 at 8:21 AM, Mirless <address-removed ([email]address-removed[/email])> wrote:
| Quote: | Hello
Iam working on a project where I Need to show some data result from
my MS sql server on the web at "my" company.
"new Entity Classes from Database" work 100 % from a normal Java App.
and I can get all my table data as I want them.
But when Iam doing the same on a Java web app - ( it run in Glassfish)
it cant find my tables.
what I do:
rigth click on java web app -> new -> new Entity Classes Database.
Data source: -> new data source -> name: ms-server
Database connection -> new Database connection
type in all my connection detail: test connection == succes,
next -> add my dbo schema -> ok.
I dont get any tables.
when iam doing the same thing on a swing app I get all my tables where I can add those I want.
do it have anything to do with the "JNDI name" ?
iam lost atm. hope some of you can point me in the right direction.
Iam using Netebeans 7.0.1. and Glassfishv3
// Mirless
|
--
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 |
|
 |
|
|
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
|
|