[java ee programming] Lab 4016 bookstore1 - couldn't get database

2010-05-12 Thread Redmond
I'm trying to build, and run bookstore1 sample application, I get an
error

May 12, 2010 2:52:11 PM org.apache.catalina.core.StandardWrapperValve
invoke
INFO: Servlet BookStoreServlet is currently unavailable
May 12, 2010 2:54:40 PM org.apache.catalina.core.ApplicationContext
log
INFO: Marking servlet BookStoreServlet as unavailable
May 12, 2010 2:54:40 PM org.apache.catalina.core.StandardWrapperValve
invoke
SEVERE: Allocate exception for servlet BookStoreServlet
javax.servlet.UnavailableException: Couldn't get database.
at servlets.BookStoreServlet.init(BookStoreServlet.java:51)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
1173)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
809)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
129)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
293)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
849)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint
$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:619)
May 12, 2010 2:56:24 PM org.apache.catalina.core.StandardWrapperValve
invoke
INFO: Servlet BookStoreServlet is currently unavailable
May 12, 2010 3:18:01 PM org.apache.catalina.core.ApplicationContext
log
INFO: Marking servlet BookStoreServlet as unavailable
May 12, 2010 3:18:01 PM org.apache.catalina.core.StandardWrapperValve
invoke
SEVERE: Allocate exception for servlet BookStoreServlet
javax.servlet.UnavailableException: Couldn't get database.
at servlets.BookStoreServlet.init(BookStoreServlet.java:51)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
1173)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
809)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
129)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
293)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
849)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint
$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:619)

The lab docs suggest that this is because the database is not started,
I've confirmed that it is running by checking Services.  I'm able to
see all the data in the books database by

select * from APP.BOOKS

Not sure why I'm not able to connect to the db - any suggestions?

-- 
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


[java ee programming] Lab 4016 (JspBookstore) Homework Questions

2010-05-10 Thread BillyRay
A couple of questions regarding the homework assignment for the
JspBookstore lesson:

1. Are we supposed to implement the sale price logic using custom
tags as was done in the Bookstore3 example?
2. Do we need to implement the sale price logic throughout the
entire application, or only on the catalog page that is shown in the
homework requirements section?

Thanks!

BillyRay

-- 
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


[java ee programming] LAB-4016 Build and run bookstore4-jndi sample application

2009-09-11 Thread Alfredo Torres

Hi,

I follow the steps to create the jdbc resource and morify the derby
pool in the admin console in Glassfish 3.0 prelude.

But when i try to run the sample Web bookstore4-jndi i receive this
exception:

java.lang.NoClassDefFoundError: org/apache/derby/client/am/
FailedProperties40

Where is supose to be that class?? or i have to addd something to the
classpath?

Thanks in advance

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[java ee programming] Lab 4016

2009-09-10 Thread Alfredo Torres

Hi,

  I set up the database an create the book table but when i try tu run
the Web my browser go to

http://www.fastbrowsersearch.com/results/results.aspx?q=http://localhost:8084/bookstorec=webs=FDNSv=18tid={52AD233E-F9A1-C526-C4A9-09AD445803DB}

Anuone know the solution for this?

Thanks in advance

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[java ee programming] LAB-4016

2009-04-15 Thread lisandrodc

Hi all! I have a problem with download, the link provided:
http://javashoplm.sun.com/ECom/docs/product_redirect_sdn.html, not be
able the download the Sun Java System App Server 9 Update 1.
This si the link:
https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/viewproductdetail-start?productref=sjsas-9.1_01-mysql-oth-...@cds-cds_developer.
After installing, when add this server, only show in the list the
version 8.2 and not the 9. In addition, at input the location of this
server, show that not valid. Help me..
Thanks
Lisandro

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[java ee programming] Lab-4016 BookDAO source file is different than in lecture file

2009-01-26 Thread dzgaga

I'm trying to get a little head start on the upcoming class and I
noticed that in Lab-4016 you show:'

public BookDBAO() throws Exception {
try {
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/
env);
DataSource ds = (DataSource) envCtx.lookup(jdbc/BookDB);
con = ds.getConnection();

... but the actual file has most of that code commented out and
replaced with ...

public BookDBAO() throws Exception {
try {

Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/
env);
/*System.out.println(initCtx is  + (initCtx==null ?
null. : created.));
System.out.println(envCtx is  + (envCtx==null ?
null. : created));
DataSource ds = (DataSource) envCtx.lookup(jdbc/BookDB);
System.out.println(ds is  + (ds==null ? null. :
created.));
con = ds.getConnection();
System.out.println(con is  + con ==null ? null. :
created.);
*/
Class.forName(dbdriver);
con = DriverManager.getConnection(url, username,
password);

When I remove the comments and instead comment out the last 2 lines, I
get the message:

messageServlet BookStoreServlet is not available

Not sure what's going on here. Any clues?

Thx, Dennis

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---