Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 15th, 2004, 09:04 PM
Registered User
 
Join Date: Aug 2004
Location: , , USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 13, can't do 1st example beg. page 481

I am running the latest Tomcat(5.0.27).

All is well until I attempt to add the Server.xml changes to my code from page 484(this server.xml addition IS NOT in the code downloads for this chapter so I typed them by hand).

After I added the code and restarted Tomcat the modified server.xml nicely commented with all of it's many config options was replaced with a basic one presumably because the code i added wouldn't allow Tomcat to start. Needless to say, I cannot get to the datasource.

I´ve eyeballed the code extensively and it appears that I´ve not made any typos and so I´m adding valid, well-formed xml to the server.xml file in the location (before the close of the host tag) as specified in the book, but it continues to fail(making backups of the server.xml file and replacing it with the basic version to run.

Any assistance with this problem would be greatly appreciated.

Reply With Quote
  #2 (permalink)  
Old August 16th, 2004, 07:27 AM
Registered User
 
Join Date: Aug 2004
Location: , , USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

A little bit of progress:

It appears that the book example has a typo in the server.xml so that the xml is not well formed.

The head tag for resourceParams is not there after the resource tag and before the first parameter.

However I still cannot connect.

In the log my web app creates, there are two tell-tale signs that there is a problem. the factoryClassLocation=null and the Resource parameters for UserTransaction = null. I believe UserTransaction is an optional parameter, so I'm focusing on the first issue. It appears to be that I don't have the class with that function in the classpath, but I'm not yet certain.

Anybody at all feel free to head me off at the pass with a solution to this time sucking problem.

Reply With Quote
  #3 (permalink)  
Old August 16th, 2004, 09:51 AM
Registered User
 
Join Date: Aug 2004
Location: , , USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey, I came in to work rebooted my laptop and got a connection. How dya like that.

So I guess the real problem was the bad xml and needed to completely restart my computer versus just stopping and starting the Tomcat service.

I hope this post helps someone else with this kind of problem.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 13 page 444 DRAYKKO Beginning VB 6 1 April 19th, 2006 07:10 PM



All times are GMT -4. The time now is 08:54 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.