How to obtain Java System Application Server 9.1 ??

View: New views
3 Messages — Rating Filter:   Alert me  

How to obtain Java System Application Server 9.1 ??

by ibrahim2k2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey I'm running into similar problems with the tutorial.  I'm using Netbeans 6.7.1 and Glassfish v 2.1.



I'm at this step:  http://java.sun.com/javaee/5/docs/tutorial/doc/bnbrt.html#bnbsn



When I try to connect to the database connection I get the following error:  

Unable to connect.  Cannot establish connection to jdbc:derby://localhost:1527/sun-appserv-samples using org.apache.derby.jdbc.ClientDriver (The Connection was refused because the database samples was not found.).



This the output in the Java DB Database Process window:  

Security manager installed using the Basic server security policy.

Could not listen on port 1527 on host localhost:

 java.net.BindException: Address already in use: JVM_Bind



I'm following the instructions step for step and can't find what is causing this problem.  Any ideas?





Re: How to obtain Java System Application Server 9.1 ??

by emiddio :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

the database has to exist before you can connect to it;

you can right mouse click the JavaDB  node under services/Databases - and
create a new database
its pretty easy to do; it requires the name sun-appserv-examples when you
create it.

apparantly netbeans usually creates the database for you when installing the
combo product - netbeans/glassfish;
there is a zip file somewhere in the netbeans installation directory that
contains the samples databases;

a database is just a populated directory -- with the correct stuff in it.

after you crate the database you can connect to it and populate it like the
link you provided says.

note: the database location

it might also be the case that the database does exist at some other
location -- i have databases located at a
bunch of different places -- sometimes in each of the appervers i use under
pointbase/databases for pointbase,
or just databases for derby/javadb, sometimes in home.dir under
.netbeans-derby;


----- Original Message -----
From: "ibrahim2k2" <aibrahim2k2@...>
To: <nbj2ee@...>
Sent: Tuesday, October 20, 2009 1:11 PM
Subject: [nbj2ee] How to obtain Java System Application Server 9.1 ??


> Hey I'm running into similar problems with the tutorial.  I'm using
> Netbeans 6.7.1 and Glassfish v 2.1.
>
>
>
> I'm at this step:
> http://java.sun.com/javaee/5/docs/tutorial/doc/bnbrt.html#bnbsn
>
>
>
> When I try to connect to the database connection I get the following
> error:
>
> Unable to connect.  Cannot establish connection to
> jdbc:derby://localhost:1527/sun-appserv-samples using
> org.apache.derby.jdbc.ClientDriver (The Connection was refused because the
> database samples was not found.).
>
>
>
> This the output in the Java DB Database Process window:
>
> Security manager installed using the Basic server security policy.
>
> Could not listen on port 1527 on host localhost:
>
> java.net.BindException: Address already in use: JVM_Bind
>
>
>
> I'm following the instructions step for step and can't find what is
> causing this problem.  Any ideas?
>
>
>
>


Re: How to obtain Java System Application Server 9.1 ??

by emiddio :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

also note -- when netbeans starts javaDB -- its usually located at
user.dir/.netbeans-derby

but if javadb/derby is started by command line or desktop gui -- it usually
is done similiar to:
appserver-loc/bin/asadmin.bat
    start-database
    start-domain

in these cases the database is usually located under the appserver-loc dir.

gary

----- Original Message -----
From: "emiddio-verizon" <emiddio@...>
To: <nbj2ee@...>
Sent: Wednesday, October 21, 2009 9:41 AM
Subject: Re: [nbj2ee] How to obtain Java System Application Server 9.1 ??


> the database has to exist before you can connect to it;
>
> you can right mouse click the JavaDB  node under services/Databases - and
> create a new database
> its pretty easy to do; it requires the name sun-appserv-examples when you
> create it.
>
> apparantly netbeans usually creates the database for you when installing
> the combo product - netbeans/glassfish;
> there is a zip file somewhere in the netbeans installation directory that
> contains the samples databases;
>
> a database is just a populated directory -- with the correct stuff in it.
>
> after you crate the database you can connect to it and populate it like
> the link you provided says.
>
> note: the database location
>
> it might also be the case that the database does exist at some other
> location -- i have databases located at a
> bunch of different places -- sometimes in each of the appervers i use
> under pointbase/databases for pointbase,
> or just databases for derby/javadb, sometimes in home.dir under
> .netbeans-derby;
>
>
> ----- Original Message -----
> From: "ibrahim2k2" <aibrahim2k2@...>
> To: <nbj2ee@...>
> Sent: Tuesday, October 20, 2009 1:11 PM
> Subject: [nbj2ee] How to obtain Java System Application Server 9.1 ??
>
>
>> Hey I'm running into similar problems with the tutorial.  I'm using
>> Netbeans 6.7.1 and Glassfish v 2.1.
>>
>>
>>
>> I'm at this step:
>> http://java.sun.com/javaee/5/docs/tutorial/doc/bnbrt.html#bnbsn