• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with myfaces.jar

 
Jyothi Bhogadi
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I have been having a problem with the myfaces.jar offlate.
Once in a while, when i run tomcat my jsf application does not deploy, giving me an error like "Unknown host java.sun.com". I really don't know what exactly the problem is. This error comes only when internet connection is not avilable........... As soon as there is some problem in the internet..... tomcat gives me this error.........

Any idea why this is happening..



Regards
Jyothi.
 
Solmaz Anvar
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I think myfaces.jar isn't in lib directory of your project or your project can't find this jar file properly.

if myface.jar is properly in your lib directory, you can use these tags without error when you are been offline.

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

Regards
Solmaz
[ October 22, 2005: Message edited by: Solmaz Anvar ]
 
Jyothi Bhogadi
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi salmaz

Thanks for the reply.

But my problem is not with the taglibs in the jsp.And i have my jar file in the lib.

The problem is that it is unable to parse the faces-config.xml

As it is unable to reach the corrresponding DTD

This happens only when there is no internet available,otherwise it
is working fine.

thanks
Regards
Jyothi
 
Solmaz Anvar
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by B.Jyothi:


The problem is that it is unable to parse the faces-config.xml

Hi again
put this tag in web.xml

<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
<description>Comma separated list of URIs of (additional) faces config files.(e.g. /WEB-INF/my-config.xml)
See JSF 1.0 PRD2, 10.3.2</description>
</context-param>

I suggest you try Apache myfaces example

http://apache.mirrors.versehost.com/myfaces/binaries/myfaces-1.1.0.tar.gz

and look at to this amazing url :

http://www.irian.at/myfaces/home.jsf

regards soli
[ October 01, 2005: Message edited by: Solmaz Anvar ]
 
Jyothi Bhogadi
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Solmaz,

Thanx for the help.
I shall follow it up.

Regards
J
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!