• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Web.xml Unknown Host Exception

 
Toms Luke
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
I am building a web application and deploying in jboss.during that getting exception Unknown host http://java.sun.com
which is present in web.xml
snippet
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
....................
...................
...............
<web-app>
I dont have internet,Is it due to that?
 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Toms.

When you post some code, put it surrounded by code tags. [code ] [/code ] (whitout the espaces).

Could you post the error msg?
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Toms Luke wrote:



I think the problem is due to the above- I think It isnt correct. You can have a look at the sample web.xml.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65120
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlets 2.2? Why such an old version? What container and version are you using?
 
Toms Luke
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using JBOSS4.0.5.What servlet do you suggest?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65120
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What Tomcat version is JBoss using?
 
Toms Luke
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat 5.5
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65120
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then you should be declaring as Servlets 2.4, and using the XML Schema format rather than DOCTYPE.
 
Toms Luke
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear,

It worked with your suggestion, but I used servler2.5.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65120
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlets 2.5 is supported by Tomcat 6.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic