Hi,

                I am using MyFaces 1.1.3 and Facelets 1.1.11 in my web
application. My application server is JBoss 4.0.2. I am using JSP for
login page and in that page I am using JSTL fmt tag library. My EAR file
contains the following structure.

 

x.ear

|

|--- y.war

                |

                |--- *.xhtml

                |-- login.jsp             

                |-WEB-INF

                    |

                    |---lib

                                |

                                |-standard.jar

 

My login page looks like as follows,

 

login.jsp

----------               

<%@ page contentType="text/html; charset=utf-8"
import="javax.servlet.http.HttpServletRequest" %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"; prefix="fmt" %>

 

<fmt:setBundle basename="resources"/>

 

<html>

<body>

                        <form name="loginForm" action="j_security_check"
method="post" ONSUBMIT="return validateForm();">

                            <table class="loginTable" cellspacing="8">

                                <th><img src="./images/keys.gif"
border="0" width="32" height="32"></th>

                                <th><fmt:message
key="login.loginHeader"/></th>

                                <tbody>

                                    <tr>

                                        <td
class="loginFieldNames"><fmt:message key="login.userName"/></td>

                                        <td><input name="j_username"
value="" size="18" type="text"></td>

                                    </tr>

                                    <tr>

                                        <td
class="loginFieldNames"><fmt:message key="login.password"/></td>

                                        <td><input name="j_password"
size="18" type="password"></td>

                                    </tr>

                                    <tr>

                                        <td colspan="2"><input
name="loginButton" value='<fmt:message key="login.button"/>'
type="submit"></td>

                                    </tr>

                                </tbody>

                            </table>

                        </form>

</body>

</html>

 

Then if I deployed my ear file in Windows XP machine its working fine.
But if I deploy the same ear in Solaris machine it's deployed
successfully in the server.

But if I request for a login page I am getting error saying that "The
absolute uri: http://java.sun.com/jsp/jstl/fmt can not be resolved in
either web.xml or the jar files deployed with this application." I
goggled and finally I copied the "fmt.tld" file to my WEB-INF directory
and deployed then my problem solved.

 

Can anybody please tell me why it is working in Windows XP and not in
Solaris without this change.

 

Thanks and Regards,

Basha

 

 




The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.
 
www.wipro.com

Reply via email to