Skip to main content

taglib error on NB6.0

11 replies [Last post]
barnoathoi
Offline
Joined: 2003-12-21
Points: 0

The following produces an error "The absolute uri: http://jmaki/v1.0/jsp cannot be resolved in either web.xml or the jar files deployed with this application"

Why?

<%@ taglib prefix="a" uri="http://jmaki/v1.0/jsp" %>

Page Title

Application Name

Feedback |
Site Map |
Home

Sidebar Content Here

Main Content Area

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

This really helps. I'm going to look at this with our Netbeans experts this week. Hopefully we can get this fixed soon.

Thank you for looking deeper.

-Greg

barnoathoi
Offline
Joined: 2003-12-21
Points: 0

This has solved the issue mentioned at the beginning. Thank you for the solution.

Regards,

Patrick

barnoathoi
Offline
Joined: 2003-12-21
Points: 0

Greg,

ajax-comp-1.0.x.jar is not / was not copied into the web application. I'll copy the .jar into the web app and test it. What should I look for, going forward, in NetBeans6 to ensure I have the proper libraries installed?

Regards,

Patrick O'Leary

kippwatson
Offline
Joined: 2007-12-16
Points: 0

I solved the problem by downloading jmaki-java-1.0.3.zip from https://ajax.dev.java.net/download.html and using the domains/domain1 subdirectory of my Glassfish server as a target directory for extraction. I also uninstalled and reinstalled the jMaki Ajax support plugin. The Libraries view in my project's Projects window now shows three jMaki libraries: jmakilibrary - ajax-wrapper-comp-1.0.1.jar, jmakilibrary - org.json-0.0.1.jar and jmakilibrary - jsfcompounds-0.0.2.jar. I think the bugs I experienced during jMaki installations primarily stem from mixing up the frameworks (i.e.trying to use both the jMaki Ajax and Visual Web JavaServer Faces frameworks). I am still struggling with using multiple frameworks in my netbeans projects, although I am able to use different jsp pages that can access the different palettes made available by the frameworks within the same project. I am not, however, able to add a dojo widget to a jsp page made by using the Design editor (which is available in the Visual Web framework, but not the jMaki Ajax framework).

gmurray71
Offline
Joined: 2003-07-31
Points: 0

The plugins should not conflict and I'm glad to see you got things up and working better.

In an attempt to try and fix this I have a question :

Are you adding jMaki as a framework when you create your web applications, are you just dragging a widget into an existing web application, or are you adding it as a framework?

All cases should work but knowing which would help us debug a little better. Multiple framworks should be an issue but you never know.

We also updated the plugins just yesterday so you may also want to give the 1.6.13 version a try. I updated some timing issues with the initial template but didn't do anything else. Seeing as there are multiple reports of this type of issue I'd like to track this down.

Thank you for your patience and help.

-Greg

kippwatson
Offline
Joined: 2007-12-16
Points: 0

After a bit of further exploration I am finding that the taglib error relates to a failure of the plugin's ability to properly register the three jmaki libraries with the Netbeans 6.0 library manager (jmakilibrary - ajax-wrapper-comp-1.0.1.jar, jmakilibrary - org.json-0.0.1.jar and jmakilibrary - jsfcompounds-0.0.2.jar). These libraries may be found on the Windows file directory at [your Netbeans library root]\.netbeans\6.0\modules\ext\jmaki. The workaround is to use the Netbeans Library Manager (in the Projects window go to the Libraries offshoot of the project listing and right click to add a library). Once in the Library Manager, look for jmakilibrary in the left column and correct that entry by adding the three jars which should be in [your Netbeans library root]\.netbeans\6.0\modules\ext\jmaki (after you have installed the jMaki Ajax support plugin using the plugin manager). If there is no jmakilibrary entry, just add a new jmakilibrary and add the three jars to it.

>>>Are you adding jMaki as a framework when you create your web applications, are you just dragging a widget into an existing web application, or are you adding it as a framework?

In light of the foregoing, this question is besides the point. I'm not an expert at coding for plugins, but I believe the problem is with how the plugin registers the three jmaki jars with the IDE, in this case Netbeans 6.0. Hope this helps.

kippwatson
Offline
Joined: 2007-12-16
Points: 0

I have just succeeded in adding a dojo widget to a Visual Web JavaServer Faces page. It is ridiculously simple once you know how. If you have a project where the Visual Web JavaServer Faces and jMaki Ajax frameworks are both listed as project frameworks in the project's properties listings, go to the JSP editor for the Visual Web page (customarily "Page1.jsp"). Add xmlns:a="http://jmaki/v1.0/jsp" somewhere within "". E.g., ''

Then just add something like within your ... , so it looks like this:

'

'

How cool is that?

gmurray71
Offline
Joined: 2003-07-31
Points: 0

Great to see you got things working. The idea was to make things simple. This seems like a good topic to blog about. I'm sure others could benefit from this too.

-Greg

gmurray71
Offline
Joined: 2003-07-31
Points: 0

Hi,

This error only happens if 1 of 2 things happened.

1) Did the ajax-wrapper-comp-1.0.x.jar get copied into your web application? You can check the libraries on your project to confirm. This should happen automatically when you create your application but maybe somehow it got deleted / moved.

2) Are you deploying to a server that supports servlet 2.4 or better? Servlet 2.3 containers (including the earlier version of the 4.x version of Tomcat are Servlet 2.3 based.

Can you verify both?

-Greg

kippwatson
Offline
Joined: 2007-12-16
Points: 0

I'm having the same problem.

I did a search on ajax-comp*.jar on my computer and came up with no hits.

I Googled ajax-comp-1.0.0.jar and came up with no hits. Ditto for ajax-comp-1.0.1.jar.

I noticed that I have ajax-wrapper-comp-1.0.1.jar in several projects on my computer. I copied and pasted this into my current project, but this did not resolve the taglib problem.

I am unable to find a netbeans project that uses the latest version of jMaki (v.1) anywhere on the internet. Several jMaki projects are out there, but none use the latest uri (http://jmaki/v1.0/jsp).

What am I doing wrong?

gmurray71
Offline
Joined: 2003-07-31
Points: 0

Sorry,

It is ajax-wrapper-comp.1.0.x.jar.

There still not too many projects using the http://jmaki/v1.0/jsp yet and it will be hard to find since the taglib directive doesn't appear in the deployed applications.

If you look later in the comments for this posting you will see a possible solution below.

Did you add jMaki widgets to an existing project or did you create a new jMaki project with the framework?

Could you also verify the libraries / frameworks in your application? This can be done with a context (right click) of your project and inspecting frameworks.

Thank you for your patience.

-Greg