aspose file tools*
The moose likes JSP and the fly likes problem with EL functions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "problem with EL functions" Watch "problem with EL functions" New topic
Author

problem with EL functions

vaibhav srivastava
Greenhorn

Joined: Mar 17, 2008
Posts: 23
I am learning EL function from HFSJ 2nd edition and using tomcat 6.0.14 web server.
I had tried one example in HFSJ for roll-dice but following error message appears:
HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

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

exception

org.apache.jasper.JasperException: File "/DiceFunctions" not found
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:160)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:420)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:476)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1426)
org.apache.jasper.compiler.Parser.parse(Parser.java:133)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

I have used three files in this example exactly same as given in HFSJ at page 393.
1) myfunction.tld

2) DiceRoller.java

3)TestRoll.jsp


[ May 22, 2008: Message edited by: vaibhav kumar srivastava ]
[ May 23, 2008: Message edited by: vaibhav kumar srivastava ]

Regards <br />vaibhav srivastava<br />SCJP1.5 , SCWCD1.5
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60049
    
  65

Please be sure to use UBB code tags when posting code to the forums. Unformatted code is extermely hard to read and many people that might be able to help you will just move along. Please read this for more information.

You can go back and change your post to add code tags by clicking the .


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Prasad Tamirisa
Ranch Hand

Joined: Mar 26, 2007
Posts: 130
Hi Vaibhav,

Javaranch always suggests to use UBB code tags for posting code.




The above part of the exception clearly says that there is some thing wrong with the configuration. Please go though the following check list.
1) What is the extension of the tld file..?? It should be .tld

2) Where is it placed..?? Should be in in your WEB-INF folder.

3) Where is your java class?? It should be under in the dierctory /WEB-INF/class/foo.

4) If all the above are ok, try restarting your server. Coz this time it may detect the tld and deploy it.

[ May 23, 2008: Message edited by: Prasad Tamirisa ]

Regards,
Durga Prasad
vaibhav srivastava
Greenhorn

Joined: Mar 17, 2008
Posts: 23
The above part of the exception clearly says that there is some thing wrong with the configuration. Please go though the following check list.

1) What is the extension of the tld file..?? It should be .tld

2) Where is it placed..?? Should be in in your WEB-INF folder.

3) Where is your java class?? It should be under in the dierctory /WEB-INF/class/foo.

4) If all the above are ok, try restarting your server. Coz this time it may detect the tld and deploy it.


Thanks Durga prasad
I had adhered to checklist given by you but still same problem persist.
Is it a version problem or what?? i don't understand. If you can please try on your computer and confirm me. So if there any need to reinstall my tomcat.
Paul Yoshizoe
Greenhorn

Joined: Nov 16, 2008
Posts: 1
Hi Vaibhav,

You probably already solved the problem already but i noticed that in your post you wrote in the tld file



i.e. you mispelt the closing tag.

its always little things ;)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with EL functions
 
Similar Threads
Exception - EL Funtion Example page 389
What's wrong with El function.
how to get .tld file working
Whats Wrong?
problem with TLD files