Skip to main content

problem implementing jmaki on eclipse

1 reply [Last post]
funkyrave88
Offline
Joined: 2008-11-10
Points: 0

Hello everyone..
I know it may be a very silly error but i have to ask.
I am novice to Jmaki, infact to whole Java Application..recently i decided to take part in an Ajax competion, to create a web application.
I am using Eclipse as the platform and Apache tomcat 6.0 as server(this were the conditions of project)..
To implement ajax tools i downloaded Jmaki plugin for eclipse 3.3(europa)...
and followed the instructions given on the https://ajax.dev.java.net/eclipse/index.html
,I have all the tools available to me in the snippet bar..but when i implemented it did not work, then i read from one of your forum to include ajax-wrapper-comp.jar to the web-inf /lib folder of the project..i imported that too,
but unfortunately, it is still not working..i am getting the following widget error. i am posting you coding of my basic jsp and as well as errors i got.


<%@taglib prefix="a" uri="http://java.sun.com/jmaki" %>

Page Title

Application Name

Feedback |
Site Map |
Home

Main Content Area

error report:

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: /newfile.jsp(31,20) No tag "widget" defined in tag library imported with prefix "a"
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:198)
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1231)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1467)
org.apache.jasper.compiler.Parser.parse(Parser.java:138)
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:154)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.

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

Apache Tomcat/6.0.18

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmurray71
Offline
Joined: 2003-07-31
Points: 0

Hi,

This error is only caused when the jmaki-wrapper-comp-1-8-1.jar and json-0.0.2.jar not get correctly copied into the WEB-INF/lib directory of your web application. After copying in the file did you:

1) Refresh your Project Node (if you copied in the files manually)
2) Once again run "Run At Server"

There is another option which you could use the HTML version of jMaki. You won't get the XmlHttpProxy but you will be able to use all the widgets in any web application and you don't need the server.

Find out more here:

https://ajax.dev.java.net/jmaki-html.html

If you have the latest jMaki 1.8.1 plugin all you need to do is not add jMaki as a Facet and just drag a widget into the page. Instead of

Let me also suggest if you don't have the latest get the 1.8.1 plugin from http://jmaki.com/eclipse