Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 15th, 2004, 09:04 PM
Registered User
 
Join Date: Aug 2004
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.

 
Old August 16th, 2004, 07:27 AM
Registered User
 
Join Date: Aug 2004
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.

 
Old August 16th, 2004, 09:51 AM
Registered User
 
Join Date: Aug 2004
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.






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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.