Thank you Filomena Leone, you are too kind.  I did have the password and
userid working properly at one point.  I will revisit and try again.

Does anyone out there have all the steps they took to install IDE 6.7.1 and
setup the bookstore1 project?  I have chased so many rabbits that I have
lost my orientation.  Any other newbies out there (all you guru experts can
ignore my simple questions).  I think my issue can be narrowed down to my
database connection.  So if you have any notes on what do do to create and
connect to the bookstore1 database, please send them on!
I am using IDE 6.7.1, JavaDB, TopLink persistence design, and DerbyPool
connection pool.  I am trying to follow the tutorial instruction verbatum
but keep hitting snags.  Such as I have not been able to get the ant
create-tables command to generate any tables in the CMD line. At one point I
had everthing linked properly and was able to create one table using SQL
within IDE.  I just don't know how many tables there are in the bookstore1
project database to know if I have them all.

Some ideas on what notes I need...
Navigation paths to project data, Sun, IDE etc
Environment variable values and placement order in PATH
Persistence.xml (copy)
Right now, when I open IDE and open bookstore1 as main, I see a Bookstore
and a Bookstore1 entry under project menu.  I assume this is correct.

Thank you,
Tammy

On Thu, Sep 24, 2009 at 7:22 AM, <fle...@gestioneprevidenza.it> wrote:

>  Reason: userid or password invalid.
>
>
>
> GPA
> Servizio ICT
> Area Sviluppo
> Filomena Leone
>
> -----Messaggio originale-----
> *Da:* java-ee-j2ee-programming-with-passion@googlegroups.com [mailto:
> java-ee-j2ee-programming-with-pass...@googlegroups.com] *Per conto di *TJ
> *Inviato:* giovedì 24 settembre 2009 13.10
> *A:* java-ee-j2ee-programming-with-passion@googlegroups.com
> *Oggetto:* [java ee programming] Chapter 4: Java Serv;et Technology Duke's
> Bookstore setup
>
>
>
> I need help.
>
>
>
> I have been trying for a week to complete the first Duke's Bookstore
> example in Chapter 4 of the Java EE 5 Tutorial. I know that I do not have
> something setup correctly with the software install or the database
> connection.  I just can't seem to figure out exactly where the problem lies.
>
>
>
> ANY help would be GREATLY appreciated!
>
> Tammy
>
>
>
> I open Netbeans 6.7.1.
>
> I open the bookstore1 project as main
>
> I start the default server using Sun Application server 2.1 (cmd window
> appears momentarily but seems to run successfully)
>
> I start Java DB (cmd window appears momentarily but seems to run
> successfully)
>
> I build the bookstore1 project (build is successful)
>
> I deploy the bookstore1 project (the GlassFish v2.x) login window pops up
> and I type in admin - adminadmin, click OK
>
>
>
>  Here is the error thrown when I deploy...
>
> Exception occured in J2EEC Phase
> com.sun.enterprise.deployment.backend.IASDeploymentException: Deployment
> Errorjava.sql.SQLException: Error in allocating a connection. Cause:
> Connection could not be allocated because: Connection authentication failure
> occurred.  Reason: userid or password invalid. --
> Internal Exception: java.sql.SQLException: Error in allocating a connection.
> Cause: Connection could not be allocated because: Connection authentication
> failure occurred.  Reason: userid or password invalid.
> Error Code: 0
>         at
> oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java
> :305)
>         at
> oracle.toplink.essentials.jndi.JNDIConnector.connect(JNDIConnector.java:150)
>         at
> oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:184)
>         at
> oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:582)
>         at
> oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:280)
>         at
> oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:230)
>         at
> oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:93)
>         at
> oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:138)
>         at
> oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:132)
>         at
> oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:91)
>         at
> com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.loadPersistenceUnitBundle(PersistenceProcessor.java:573)
>         at
> com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.createTablesInDB(PersistenceProcessor.java:421)
>         at
> com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processAppBundle(PersistenceProcessor.java:287)
>         at
> com.sun.jdo.spi.persistence.support.ejb.ejbc.PersistenceProcessor.processApplication(PersistenceProcessor.java:189)
>         at
> com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processApplication(DeploymentEventListenerImpl.java:211)
>         at
> com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.processEvent(DeploymentEventListenerImpl.java:172)
>         at
> com.sun.jdo.spi.persistence.support.ejb.ejbc.DeploymentEventListenerImpl.notifyDeploymentEvent(DeploymentEventListenerImpl.java:122)
>         at
> com.sun.enterprise.deployment.backend.DeploymentEventManager.notifyDeploymentEvent(DeploymentEventManager.java:79)
>         at
> com.sun.enterprise.deployment.backend.ModuleDeployer.handlePostDeployEvent(ModuleDeployer.java:639)
>         at
> com.sun.enterprise.deployment.backend.ModuleDeployer.postDeploy(ModuleDeployer.java:628)
>         at
> com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:191)
>         at
> com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
>         at
> com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
>         at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
>         at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
>         at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
>         at
> com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
>         at
> com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
>
>
> >

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to