NetBeans Forums

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

How to obtain Java System Application Server 9.1 ??

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



Joined: 31 Aug 2009
Posts: 11

PostPosted: Thu Sep 10, 2009 4:30 pm    Post subject: How to obtain Java System Application Server 9.1 ?? Reply with quote

With Netbeans 6.7.1 I'm trying to run examples from http://java.sun.com/javaee/5/docs/tutorial/doc/bnaax.html
tutorial which says that you need to install Sun Java System Application Server 9.1 to run them. But I simply cannot find that server on the net.

Does anybody know where it is ?? Here is what the tutorial says:

Quote:

Sun Java System Application Server 9.1 is targeted as the build and runtime environment for the tutorial examples. To build, deploy, and run the examples, you need a copy of the Application Server and, optionally, NetBeans IDE. You can download the Application Server from http://java.sun.com/javaee/downloads/.


Right now I have installed the GlassFish v.2.1 server but it is not the same as the one recommended by the tutorial, right ?. With the GlassFish when I try to run bookstore1 sample project I keep getting errors:

Code:
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLSyntaxErrorException: Table/View 'WEB_BOOKSTORE_BOOKS' does not exist.
Error Code: -1
Call: SELECT BOOKID, FIRSTNAME, DESCRIPTION, PRICE, TITLE, ONSALE, SURNAME, CALENDAR_YEAR, INVENTORY FROM WEB_BOOKSTORE_BOOKS WHERE (BOOKID = ?)
   bind => [203]
Query: ReadObjectQuery(com.sun.bookstore.database.Book)

Again, was anybody able to download the Java System Application Server 9.1 ?? If so I'd appreciate a hint how to do that.

Andrew
Back to top
Victor M. Ramirez
Posted via mailing list.





PostPosted: Thu Sep 10, 2009 5:07 pm    Post subject: How to obtain Java System Application Server 9.1 ?? Reply with quote

It's Glassfish!! =P that's its previous name.

http://developers.sun.com/appserver/
Victor M. Ramirez A.
Ingeniero de Desarrollo
Alemsys S.A.



NOTA CONFIDENCIAL:

La información contenida en este e-mail es confidencial y sólo puede ser utilizada por la persona o la compañia a la cual está dirigido. Si usted no es el receptor autorizado, cualquier retención, difusión, distribución o copia de este mensaje es prohibida y sancionada por la ley. Si por error recibe este mensaje, favor devolver y borrar el mensaje recibido inmediatamente.

CONFIDENCIAL NOTE:

The information in this e-mail is intended to be confidential and only for the use of the person or entity to whom it is addressed. If you are not the intended recipient, any retention, dissemination, distribution or copying of this message is strictly prohibited and sanctioned by law. If you receive this e-mail by mistake, please immediately send back and delete the received message.


2009/9/10 AndrewP55 <address-removed ([email]address-removed[/email])>
Quote:
Sun Java System Application Server 9.1
Back to top
vascoace
Posted via mailing list.





PostPosted: Thu Sep 10, 2009 5:11 pm    Post subject: How to obtain Java System Application Server 9.1 ?? Reply with quote

Use Glassfish (same as Sun Java System Application Server ) to run the examples . There is a Netbeans setup that comes bundled with Glassfish.

Alberto Acevedo


-----Original Message-----
From: AndrewP55 <address-removed>
To: address-removed
Sent: Thu, Sep 10, 2009 12:31 pm
Subject: [nbj2ee] How to obtain Java System Application Server 9.1 ??


Quote:
With Netbeans 6.7.1 I'm trying to run examples from http://java.sun.com/javaee/5/docs/tutorial/doc/bnaax.html

tutorial which says that you need to install Sun Java System Application Server
9.1 to run them. But I simply cannot find that server on the net.



Does anybody know where it is ?? Here is what the tutorial says:





Quote:
Sun Java System Application Server 9.1 is targeted as the build and runtime
environment for the tutorial examples. To build, deploy, and run the examples,
you need a copy of the Application Server and, optionally, NetBeans IDE. You can
download the Application Server from http://java.sun.com/javaee/downloads/.




Right now I have installed the GlassFish v.2.1 server but it is not the same as
the one recommended by the tutorial, right ?. With the GlassFish when I try to
run bookstore1 sample project I keep getting errors:




Code:
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs
(12/23/2008))): oracle.toplink.essentials.exceptions.DatabaseException

Internal Exception: java.sql.SQLSyntaxErrorException: Table/View
'WEB_BOOKSTORE_BOOKS' does not exist.

Error Code: -1

Call: SELECT BOOKID, FIRSTNAME, DESCRIPTION, PRICE, TITLE, ONSALE, SURNAME,
CALENDAR_YEAR, INVENTORY FROM WEB_BOOKSTORE_BOOKS WHERE (BOOKID = ?)

bind => [203]

Query: ReadObjectQuery(com.sun.bookstore.database.Book)



Again, was anybody able to download the Java System Application Server 9.1 ?? If
so I'd appreciate a hint how to do that.



Andrew




Back to top
emiddio



Joined: 07 Sep 2009
Posts: 233

PostPosted: Thu Sep 10, 2009 5:28 pm    Post subject: How to obtain Java System Application Server 9.1 ?? Reply with quote

i have built/run all the examples/samples with almost every tutorial/samples
since j2ee1.4 up to gfv2.1 --
and used as8.1,8.2 9.0 9.1 -- gfv1, gfv2, gfv2.1; and pointbase,
derby/javaDB

and they all run on any version if gf -- from 9.0 ie gfv1 , 9.1/gfv2.0, and
gvf2.1;

the problem you report is not a version issue -- your database is not
populated/created;

in examples/common/sql/javadb are 2 scipts for creating/deleting the db
tables;

i think? i saw reference to them in the pdf version of the tutorial -- you
could search the pdf version.

i had these same problems at times -- multiple times since i worked with
each version of the sample/tutorials
released.

there are some bugs in the tutorials i had to fix to get to run - some
versions worse than others --
but the bookstore stuff was not buggy as i remember.

the tutorial pdf books are mostly the same -- but there are some differences
with them -- i have made reference
to each of them in my studies.

from http://java.sun.com/javaee/downloads/previous/index.jsp you can get to
different versions of gf
to download.

gary

----- Original Message -----
From: "AndrewP55" <address-removed>
To: <address-removed>
Sent: Thursday, September 10, 2009 9:31 AM
Subject: [nbj2ee] How to obtain Java System Application Server 9.1 ??


Quote:
With Netbeans 6.7.1 I'm trying to run examples from
http://java.sun.com/javaee/5/docs/tutorial/doc/bnaax.html

tutorial which says that you need to install Sun Java System Application
Server 9.1 to run them. But I simply cannot find that server on the net.



Does anybody know where it is ?? Here is what the tutorial says:





Quote:
Sun Java System Application Server 9.1 is targeted as the build and
runtime environment for the tutorial examples. To build, deploy, and run
the examples, you need a copy of the Application Server and, optionally,
NetBeans IDE. You can download the Application Server from
http://java.sun.com/javaee/downloads/.




Right now I have installed the GlassFish v.2.1 server but it is not the
same as the one recommended by the tutorial, right ?. With the GlassFish
when I try to run bookstore1 sample project I keep getting errors:




Code:
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs
(12/23/2008))): oracle.toplink.essentials.exceptions.DatabaseException

Internal Exception: java.sql.SQLSyntaxErrorException: Table/View
'WEB_BOOKSTORE_BOOKS' does not exist.

Error Code: -1

Call: SELECT BOOKID, FIRSTNAME, DESCRIPTION, PRICE, TITLE, ONSALE,
SURNAME, CALENDAR_YEAR, INVENTORY FROM WEB_BOOKSTORE_BOOKS WHERE (BOOKID =
?)

bind => [203]

Query: ReadObjectQuery(com.sun.bookstore.database.Book)



Again, was anybody able to download the Java System Application Server 9.1
?? If so I'd appreciate a hint how to do that.



Andrew



Back to top
AndrewP55



Joined: 31 Aug 2009
Posts: 11

PostPosted: Thu Sep 10, 2009 6:53 pm    Post subject: Re: How to obtain Java System Application Server 9.1 ?? Reply with quote

Emiddio,

Before trying to run: http://localhost:8080/bookstore1/bookstore

example of course I did populate in the IDE the database. Here is how I did it:

In IDE 'Projects' tab selected: Databases->Java DB. Right-cliked and selected "Create Database ...". Gave it some name (does it matter which name ??). In my case: "BookDB". Then right-clicked it and selected "Execute command ...". Then in the empty window pasted the contents of that 'tutorial.sql' script and ran it. This step generated a number of schemas, one of them was "ADMIN". And in that schema now I have a bunch of populated tables (as for bookstore1 example).

So far is that enough to successfully run the 'bookstore1' sample ?? Or maybe I have to do some settings in Admin Console for my server ??

Andrew
Back to top
AndrewP55



Joined: 31 Aug 2009
Posts: 11

PostPosted: Thu Sep 10, 2009 7:32 pm    Post subject: Re: How to obtain Java System Application Server 9.1 ?? Reply with quote

Hello

Now after restarting the database I have different error:

Quote:
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLNonTransientConnectionException: A communications error has been detected: Software caused connection abort: recv failed.
Error Code: 40000
Call: SELECT BOOKID, FIRSTNAME, DESCRIPTION, PRICE, TITLE, ONSALE, SURNAME, CALENDAR_YEAR, INVENTORY FROM WEB_BOOKSTORE_BOOKS WHERE (BOOKID = ?)
bind => [203]
Query: ReadObjectQuery(com.sun.bookstore.database.Book)


Is that error of lesser severity than my previous one ??

Andrew
Back to top
Melongo Annabel
Posted via mailing list.





PostPosted: Fri Sep 11, 2009 12:04 am    Post subject: How to obtain Java System Application Server 9.1 ?? Reply with quote

Andrew,
I don't know what you mean with 'severe', an exception is an exception. You might want to google the exception code to see what you should fix. Thanks.


From: AndrewP55 <address-removed>
To: address-removed
Sent: Thursday, September 10, 2009 2:32:58 PM
Subject: [nbj2ee] How to obtain Java System Application Server 9.1 ??

Hello



Now after restarting the database I have different error:




Quote:
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))): oracle.toplink.essentials.exceptions.DatabaseException

Quote:
Internal Exception: java.sql.SQLNonTransientConnectionException: A communications error has been detected: Software caused connection abort: recv failed.

Quote:
Error Code: 40000

Quote:
Call: SELECT BOOKID, FIRSTNAME, DESCRIPTION, PRICE, TITLE, ONSALE, SURNAME, CALENDAR_YEAR, INVENTORY FROM WEB_BOOKSTORE_BOOKS WHERE (BOOKID = ?)

Quote:
bind => [203]

Quote:
Query: ReadObjectQuery(com.sun.bookstore.database.Book)




Is that error of lesser severity than my previous one ??



Andrew
Back to top
Melongo Annabel
Posted via mailing list.





PostPosted: Fri Sep 11, 2009 12:35 am    Post subject: How to obtain Java System Application Server 9.1 ?? Reply with quote

I think your problem is less about the application server, but rather on an invalid table name that was given in your sql statement. You will be fine doing the tutorial with Glassfish, though.


From: AndrewP55 <address-removed>
To: address-removed
Sent: Thursday, September 10, 2009 11:31:13 AM
Subject: [nbj2ee] How to obtain Java System Application Server 9.1 ??

With Netbeans 6.7.1 I'm trying to run examples from http://java.sun.com/javaee/5/docs/tutorial/doc/bnaax.html

tutorial which says that you need to install Sun Java System Application Server 9.1 to run them. But I simply cannot find that server on the net.



Does anybody know where it is ?? Here is what the tutorial says:





Quote:
Sun Java System Application Server 9.1 is targeted as the build and runtime environment for the tutorial examples. To build, deploy, and run the examples, you need a copy of the Application Server and, optionally, NetBeans IDE. You can download the Application Server from http://java.sun.com/javaee/downloads/.




Right now I have installed the GlassFish v.2.1 server but it is not the same as the one recommended by the tutorial, right ?. With the GlassFish when I try to run bookstore1 sample project I keep getting errors:




Code:
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))): oracle.toplink.essentials.exceptions.DatabaseException

Internal Exception: java.sql.SQLSyntaxErrorException: Table/View 'WEB_BOOKSTORE_BOOKS' does not exist.

Error Code: -1

Call: SELECT BOOKID, FIRSTNAME, DESCRIPTION, PRICE, TITLE, ONSALE, SURNAME, CALENDAR_YEAR, INVENTORY FROM WEB_BOOKSTORE_BOOKS WHERE (BOOKID = ?)

bind => [203]

Query: ReadObjectQuery(com.sun.bookstore.database.Book)



Again, was anybody able to download the Java System Application Server 9.1 ?? If so I'd appreciate a hint how to do that.



Andrew
Back to top
ibrahim2k2



Joined: 20 Oct 2009
Posts: 2

PostPosted: Tue Oct 20, 2009 8:11 pm    Post subject: Database Connection Error Reply with quote

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?
Back to top
emiddio



Joined: 07 Sep 2009
Posts: 233

PostPosted: Wed Oct 21, 2009 4:46 pm    Post subject: How to obtain Java System Application Server 9.1 ?? Reply with quote

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" <address-removed>
To: <address-removed>
Sent: Tuesday, October 20, 2009 1:11 PM
Subject: [nbj2ee] How to obtain Java System Application Server 9.1 ??


Quote:
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?



Back to top
emiddio



Joined: 07 Sep 2009
Posts: 233

PostPosted: Wed Oct 21, 2009 5:01 pm    Post subject: How to obtain Java System Application Server 9.1 ?? Reply with quote

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" <address-removed>
To: <address-removed>
Sent: Wednesday, October 21, 2009 9:41 AM
Subject: Re: [nbj2ee] How to obtain Java System Application Server 9.1 ??


Quote:
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" <address-removed>
To: <address-removed>
Sent: Tuesday, October 20, 2009 1:11 PM
Subject: [nbj2ee] How to obtain Java System Application Server 9.1 ??


Quote:
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
Back to top
ibrahim2k2



Joined: 20 Oct 2009
Posts: 2

PostPosted: Wed Oct 21, 2009 7:16 pm    Post subject: Reply with quote

alright makes sense. i'll give it a try. thanks
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