Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Please help me about JSP rollDice (HFSJ)  RSS feed

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

I try to deply the application with static functions. In HFSJ P389, there is an example about rollDice. I did all the things the book told me(copy the tld file, jsp file from the book).
Say, I named my application as " myApp " then I put
myFunction.tld file in myApp/WEB-INF/,
DiceRoller.class in myApp/WEB-INF/classes/foo/
tld.jsp file in myApp/

(I did not write web.xml and I feel very strange that if I put web.xml in the myApp/WEB-INF/ then when I try http://localhost:8080/myApp/tld.jsp, I got an error "/myApp/tld.jsp" is not available" )

If I don't have web.xml, and I called the jsp file using http://localhost:8080/myApp/tld.jsp
then it always return me an exception:

****************************************
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: XML parsing error on file /WEB-INF/myFunctions.tld: (line 14, col 3)
org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:252)
org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.java:223)
org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:519)
org.apache.jasper.compiler.Parser
***************************************************************

Can anybody explain something to me. And how to let that example work.Please help me, I am so frustrated with that example and can't read more.

Thank you very much.

Anna
 
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like your tld file has an error. Double-check that it was typed correctly.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!