Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

web.xml

  Asked By: Kenneth    Date: Mar 28    Category: Java    Views: 1443
  

Does anyone know how to let everyone in LDAP authenticate to an app
using the web.xml file? I tried setting the security-realm to "all"
and "*" but neither works.

Share: 

 

7 Answers Found

 
Answer #1    Answered By: Kian Evans     Answered On: Mar 28

I had recently a message warning in our
server (Weblogic) maybe
you got the same problem:

 
Answer #2    Answered By: Tomas Thompson     Answered On: Mar 28


I have web.xml (deployment descriptor..) .



Which is giving me an error :::

"The markup declarations contained or pointed to by the document type
declaration must be well-formed."



Can anyone tell hat is the problem???

 
Answer #3    Answered By: Madeeha Malik     Answered On: Mar 28

web.xml is a xml  file ok,that means xml file  should
follow the rules, 1.like every opening tag should be end tag
2.every attribute value must in single qotions(' ')or multiple (" ")
and
some other roles is like this:
for example:
<web-app>
<servlet>
<servlet-name>XXX</servlet-name>
</servlet-class>TestServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>XXX</servlet-name>
<url-pattern>/TestUrl</url-pattern>
</servlet-mapping>
</web-app>
this is correct xml file.
for eample if u write this :is incorrect
<web-app>
<servlet>
</servlet-class>TestServlet</servlet-class>
<servlet-name>XXX</servlet-name>
</servlet>
<servlet-mapping>
<servlet-name>XXX</servlet-name>
<url-pattern>/TestUrl</url-pattern>
</servlet-mapping>
</web-app>
(or)
<web-app>
<servlet>
<servlet-mapping>
<servlet-name>XXX</servlet-name>
<url-pattern>/TestUrl</url-pattern>
</servlet-mapping>
<servlet-name>XXX</servlet-name>
</servlet-class>TestServlet</servlet-class>
</servlet>
</web-app>

how to know this rules u will see the schema files
or dtd files in jar files.

 
Answer #4    Answered By: Aaminah Khan     Answered On: Mar 28

Yup, ur right. But its giving me an error for following lines.....

<?xml version="1.0" encoding="ISO-8859-1"?>



<!DOCTYPE web-app

PUBLIC "-//Sun Microsystems, Inc.//DTD web  Application 2.3//EN"

"http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">

 
Answer #5    Answered By: Anne Powell     Answered On: Mar 28

It would be better if u post your complete web.xml file.

 
Answer #6    Answered By: Tate Thompson     Answered On: Mar 28

I got solution for my problem...... here is the link..



http://java.sun.com/j2ee/dtds/web-app_2_3.dtd

 
Answer #7    Answered By: Charlie Evans     Answered On: Mar 28

hey u r getting problem in web.xml coz of this url ..
http://java.sun.com/j2ee/dtds/web-app_2_3.dtd ...u copy paste this url to the
web browser..it will display a page..read what it displays and do as it
says...ur prob will be solved...in short use
http://java.sun.com/dtd/web-app_2_3.dtd instead of
http://java.sun.com/j2ee/dtds/web-app_2_3.dtd and u r through...u wont get any
problem..

 
Didn't find what you were looking for? Find more on web.xml Or get search suggestion and latest updates.




Tagged: