Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Connection refused: connect in faces-config.xml

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an EAR which has a web project developed using JSF. When i import the EAR in WSAD 5.1.2 error occurs in the following line of faces-config.xml,

<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">

Application fails to deploy. Reason - Connection refused: connect.

Any ideas?

Thanks,
Vani
 
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have you included the correct jar files for JSF in the classpath?
 
Vani Sreedharan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have not included any JARS as this was a ready made EAR. I tried importing it in a workspace in WSAD 5.1.2.
This error goes off when that DTD was imported to local and that path was given in faces-config.xml.But cant proceed with this option as the EAR has to be deployed in different websphere boxes and local path cant be extended or placing the dtd in all machines is unnecessary.

It will be of great help if you can tell what are the jars to be placed in classpath?
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The EAR should have the appropriate jar files like if it is using MyFaces then it should have MyFaces jar files which can be downloaded at
myfaces.apache.org/download.html

if it is using Sun's JSF implementation then it should include those jars, which can be downloaded at java.sun.com/javaee/javaserverfaces/download.html

You faces-config in your previous post tells that it is using JSF version 1.1, so that EAR should have version 1.1 jar files
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the error: "java.net.ConnectException: Connection refused: connect"

What I was trying to do was validate an blahContext.xml file with a parser, but the problem comes when the parser tries to go out and validate the doctype dtd link.

myxml.xml:



The following code produces the error mentioned at the top. The failure happens when the parser goes out to validate the dtd link.

It works if you uncomment the commented lines where I overload the resolver to not do anything on link resolving. Bonus: it validates the other XML entities in the document.


Used these includes:





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