Forums Register Login

Web.xml Unknown Host Exception

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
Hello Toms.

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

Could you post the error msg?
+Pie Number of slices to send: Send
 

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.
+Pie Number of slices to send: Send
Servlets 2.2? Why such an old version? What container and version are you using?
+Pie Number of slices to send: Send
I am using JBOSS4.0.5.What servlet do you suggest?
+Pie Number of slices to send: Send
What Tomcat version is JBoss using?
+Pie Number of slices to send: Send
Tomcat 5.5
+Pie Number of slices to send: Send
Then you should be declaring as Servlets 2.4, and using the XML Schema format rather than DOCTYPE.
+Pie Number of slices to send: Send
Thanks Bear,

It worked with your suggestion, but I used servler2.5.
+Pie Number of slices to send: Send
Servlets 2.5 is supported by Tomcat 6.
The knights of nee want a shrubbery. And a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1911 times.
Similar Threads
.war file across platform/container?
HttpSessionListener
custom tag not working
Depployed in ROOT but error in webapps
Creating datasource in WAS 5
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 05:53:46.