File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Cannot  use tomahawk with weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Cannot  use tomahawk with weblogic" Watch "Cannot  use tomahawk with weblogic" New topic
Author

Cannot use tomahawk with weblogic

Supriya Pramod
Greenhorn

Joined: Jun 19, 2008
Posts: 10

Hi all ,

Whenever i deploy my application and try to open my jsf page ,
i get this following error.

allot.jsp:3:5: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>


My allot.jsp page is as below ,

<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>

<html>
<head>
<link rel="stylesheet" type="text/css" href="css/lsy.css">
<title>Allotment</title>
</head>
<body>
<f:view>
<h:form id="form">
<h:dataTable>
<f:facet name="header">
<hutputText value="Allotment Management"/>
</f:facet>
<h:column>
<hutputLabel value="Allotment Name"/>
</h:column>
<h:column>
<h:inputText/>
</h:column>
<h:column>
<hutputLabel value="From Date"/>
</h:column>
<h:column>
<t:inputCalendar id="fromdate" renderAsPopup="true"/>
</h:column>
<h:column>
<hutputLabel value="To Date"/>
</h:column>
<h:column>
<t:inputCalendar id="todate" renderAsPopup="true"/>
</h:column>
<h:column>
<hutputLabel value="Weekdays"/>
</h:column>
<h:column>
<h:inputText/>
</h:column>
</h:dataTable><br><br>
<center>
<h:panelGrid>
<h:commandButton value="Create" action="createsuccess"></h:commandButton>
<h:commandButton value="Retrieve" action="retrivesuccess"></h:commandButton>
<h:commandButton value="Reset" action="resetsuccess"></h:commandButton>
</h:panelGrid>
</center>
</h:form>
</f:view>
</body>
</html>

and the web.xml file is as below:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>/allot.jsp</welcome-file>
</welcome-file-list>

<filter>
<filter-name>MyFacesExtensionsFilter</filter-name>
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
<init-param>
<description>Set the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
</description>
<param-name>maxFileSize</param-name>
<param-value>20m</param-value>
</init-param>
</filter>

<!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>

<!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -->
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>/myFacesExtensionResource/*</url-pattern>
</filter-mapping>

<!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>



</web-app>


can anyone please help me out to solve this problem.

Thanks,
Supriya
Ganesan Ramakrishnan
Ranch Hand

Joined: Mar 18, 2008
Posts: 88
hi,

Did you have the tomahawk-1.1.5.jar in your lib folder.

Regards
Ganesan
Supriya Pramod
Greenhorn

Joined: Jun 19, 2008
Posts: 10

ya... i do have tomahawk1.6 jar.
i had 1.3 as well. thn i changed it to 1.6
Please help me with a solution.

Thanks,
Supriya
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Cannot use tomahawk with weblogic