A sample web.xml
a sample web.xml
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
// bla blahi use this type of web.xml .
my problem is to see the DTD "http://java.sun.com/dtd/web-app_2_3.dtd"
why it is "http://java.sun......." ??
does it read the DTD via internet ONLINE when i run my application ?
when i put this same web application in a no-internet connected machine, the web application works.
why then it is "http://java.sun......." ?
can i download that DTD in my hard disk and put "file:///dtd_location_in_my_drive" ?
You are definitely a java guru . Thank you, but I am still a novice.
BTW, you have told
I never encountered the case when it is not.1) r u sure all know professional servers keeps a
copy of that DTD .
if the server is not registered and dont have a copy
, then what you would do ? Any J2EE compliant application server should have this. I am not sure if this is mentioned in the specifications, but this is the way it goes. I have seen it in Tomcat, JBoss, Sun One, Weblogic and Websphere. I think this sample is representative enough for the family of J2EE application servers.
Logically, someone must have thought of the fact that people cannot be online all the time and they need to validate their deployment descriptors. The best way to achieve this is to provide a local copy.
because in that case server is going to throw an
exception as soon as you are going to start the
e server .
How do you solve this problem I don't know, honestly. Maybe I would copy it somewhere on the local drive and write the code like the application servers do.
will you copy the DTD file from tomcat and put it in
your WEB-INF directory and metion this path in your
web.xml ? In the worst case, yes. But that's irrelevant. If something like this is happening to the application server, it is better to find a new one. :)
in any case, i am surprised to see that i am not been
able to download this DTD fle from Sun website. why?
It is alwasy better to download this stuff and keep
it in the hard disk and specify the path in the
web.xml . i hope, this will resolve all the problems
of whether the server is registered or not.As I mentioned, you need not bother about that unless you are a fervent advocate of Murphy's law.
unfortunately, i am not been able to download this
stuff from Sun !Just paste that URL in the browser when you have an internet connection, you will be able to get the DTD.
Similar Messages
-
Hello
Can anyone provide a sample web.xml file with "security-constraint" tag
included in it.
I have the RDBMS Realm set up and it seems to be working fine with
servlets. I need to test with EJBs, dont know how to proceed.
Any help is appretiated.
Thanks
KThis goes in your ejb-jar.xml file
<assembly-descriptor>
<method-permission>
<description></description>
<role-name>yourRole</role-name>
<method>
<ejb-name>YourEJB</ejb-name>
<method-name>findByYourFinder</method-name>
</method>
</method-permission>
</assembly-descriptor>
"Kven" <[email protected]> wrote in message
news:[email protected]..
Hello
Can anyone provide a sample web.xml file with "security-constraint" tag
included in it.
I have the RDBMS Realm set up and it seems to be working fine with
servlets. I need to test with EJBs, dont know how to proceed.
Any help is appretiated.
Thanks
K -
[svn] 1616: Remove stale security constraint entries in the sample web.xml
Revision: 1616
Author: [email protected]
Date: 2008-05-08 08:11:40 -0700 (Thu, 08 May 2008)
Log Message:
Remove stale security constraint entries in the sample web.xml
Bugs: BLZ-162: samples web.xml contains unreferenced security constraint
QA: yes
Ticket Links:
http://bugs.adobe.com/jira/browse/BLZ-162
Modified Paths:
blazeds/branches/3.0.x/apps/samples/WEB-INF/web.xmlThis goes in your ejb-jar.xml file
<assembly-descriptor>
<method-permission>
<description></description>
<role-name>yourRole</role-name>
<method>
<ejb-name>YourEJB</ejb-name>
<method-name>findByYourFinder</method-name>
</method>
</method-permission>
</assembly-descriptor>
"Kven" <[email protected]> wrote in message
news:[email protected]..
Hello
Can anyone provide a sample web.xml file with "security-constraint" tag
included in it.
I have the RDBMS Realm set up and it seems to be working fine with
servlets. I need to test with EJBs, dont know how to proceed.
Any help is appretiated.
Thanks
K -
I have some more problem in the web.xml file and url-pattern in my syste
HI ALL!
How can I create and place the web.xml and URL-parrten.Because I run
the tomcat in my computer with ME system.
Hocwhat is the problem? please be more specific and detailed? check a sample web.xml file and make your own one and place it in your <application-context>\WEB-INF folder..
-
Tomcat 4.0.6 web.xml
Hi,
I have a tomcat 4.0.6 server running on a production environment. My web.xml doesn't seem to be working fine with that. Can any one give me a sample web.xml thats accepted by 4.0.6 tomcat server? However my web.xml is as under.
<?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/dtd/web-app_2_3.dtd">
<web-app>
<display-name>Web Project</display-name>
<description>
WebProject Description
</description>
<!-- Define servlet-mapped and path-mapped example filters -->
<filter/>
<filter-mapping/>
<listener/>
<servlet>
<servlet-name>SendMailServlet</servlet-name>
<servlet-class>SendMailServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>SendMailServlet</servlet-name>
<url-pattern>/SendMailServlet</url-pattern>
</servlet-mapping>
<taglib>
<taglib-uri/>
<taglib-location/>
</taglib>
<resource-ref/>
<security-constraint/>
<!-- Default login configuration uses form-based authentication -->
<login-config/>
<env-entry>
<env-entry-name/>
<env-entry-value/>
<env-entry-type/>
</env-entry>
<!-- EJB Reference -->
<ejb-ref>
<description/>
<ejb-ref-name/>
<ejb-ref-type/>
<home/>
<remote/>
</ejb-ref>
<!-- Local EJB Reference -->
<ejb-local-ref>
<description/>
<ejb-ref-name/>
<ejb-ref-type/>
<local-home/>
<local/>
</ejb-local-ref>
</web-app>in the conf directory of your Tomcat installation you will find the default web.xml file. You can copy this file to you web application and use as the basis of a new web.xml.
-
Missing file Sample/i18n.xml
File Sample/i18n.xml is missing in my instalation. Can anyone post the content of this file?
Thanks.This goes in your ejb-jar.xml file
<assembly-descriptor>
<method-permission>
<description></description>
<role-name>yourRole</role-name>
<method>
<ejb-name>YourEJB</ejb-name>
<method-name>findByYourFinder</method-name>
</method>
</method-permission>
</assembly-descriptor>
"Kven" <[email protected]> wrote in message
news:[email protected]..
Hello
Can anyone provide a sample web.xml file with "security-constraint" tag
included in it.
I have the RDBMS Realm set up and it seems to be working fine with
servlets. I need to test with EJBs, dont know how to proceed.
Any help is appretiated.
Thanks
K -
Client-cert auth impl in web.xml does not work in Oracle Application Server
Hi,
I am new to implementing security features on the web applications.. I have developed a new web service using jdev1012 and deployed in OAS 10.1.2. Its working fine according to the business requirements, but I am in need of implementing client-cert authentication to enable the web service available to only those who have client certificate.
My server details are:
Oracle Application Server 10g Release 2 (10.1.2)
Server certificate is in place and SSL mode have been already enabled.. able to access my web service through https://<mydomain.com>/myws/TreqWS as well able to see the WSDL file through https://<mydomain.com>/myws/TreqWS?WSDL.
I tried to include the following in my web.xml file as part of implementing CLIENT-CERT authentication.
<security-constraint>
<display-name>SecurityConstraint</display-name>
<web-resource-collection>
<web-resource-name>WSCollection</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>CLIENT-CERT</auth-method>
<realm-name>WSCollection</realm-name> <!-- am not sure about this realm-name and its purpose -->
</login-config>
It is not woking as expected, though I have restarted my oc4j container after including this content to the web.xml file. i.e, I am able to invoke the web service though my sample java client program, though I donot have client certificate/keystore.
I believe I am missing something..Can anyone help me in this regard to implement CLIENT-CERT authentication successfully?
Thanks,
MsI am having the same problem with doc and xsl. I have added this
<mime-mapping>
<extension>xls</extension>
<mime-type>application/vnd.ms-excel</mime-type>
</mime-mapping>
<mime-mapping>
<extension>doc</extension>
<mime-type>application/msword</mime-type>
</mime-mapping>
to my web.xml. I even restarted the server. I still see doc and xsl in binary.
Is there some other setting that needs to take place?
I am using WL6.1 with fixpack 1.
I can see the doc and excel files in the browser if I don't go through the weblogic
server. That just confirms it's not my browser.
Kumar Allamraju <[email protected]> wrote:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
It works fine for me in 6.1 SP1.
<br><br>
If the following doesn't work , can you
<br>try application/winword instead of application/msword?
<p>--
<br>Kumar
<p>Siming Mu wrote:
<blockquote TYPE=CITE>Hi,
<p>I setup in my web.xml a mime mapping as follows,
<p><mime-mapping>
<br><extension>doc</extension><mime-type>application/msword</mime-type>
<br></mime-mapping>
<p>When I specify a test.doc url, the doc file appears in my browser
as
binary data
<br>instead of download.
<p>Please reference change request 055002, which decribes this problem.
According
<br>to edocs, it has been fixed in wls6.1sp1.
<p>But I am seeing it fixed. Am I doing anything wrong? Thanks.
<p>Siming</blockquote>
</html> -
Getting an error while building a sample web service
Hi,
I am beginner in web services and started working on a sample application in a web service tutorial.
Build is failing in build.xml file while building sample web service using ant tool.
antBuildfile: build.xml
clean:
setup:
[mkdir] Created dir: /tmp/output/WEB-INF/classes
[mkdir] Created dir: /tmp/client_classes
compile.server:
[javac] Compiling 1 source file to /tmp/output/WEB-INF/classes
webservice.build:
webss.build:
BUILD FAILED
Z:/JAVA-COBOL/sample1/tutorial/sample1/build.xml:43: The following error occurred while executing this line:
Z:/JAVA-COBOL/sample1/tutorial/sample1/build-webss.xml:10: Problem: failed to create task or type source2wsdd*_
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
Can anyone look into this and let me know if you have any idea on this?
Thanks,
SRoop.
Edited by: SRoop on Jun 20, 2008 9:11 AM
Edited by: SRoop on Jun 20, 2008 9:14 AM
Edited by: SRoop on Jun 21, 2008 5:51 AMHi,
I am beginner in web services and started working on a sample application in a web service tutorial.
Build is failing in build.xml file while building sample web service using ant tool.
antBuildfile: build.xml
clean:
setup:
[mkdir] Created dir: /tmp/output/WEB-INF/classes
[mkdir] Created dir: /tmp/client_classes
compile.server:
[javac] Compiling 1 source file to /tmp/output/WEB-INF/classes
webservice.build:
webss.build:
BUILD FAILED
Z:/JAVA-COBOL/sample1/tutorial/sample1/build.xml:43: The following error occurred while executing this line:
Z:/JAVA-COBOL/sample1/tutorial/sample1/build-webss.xml:10: Problem: failed to create task or type source2wsdd*_
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
Can anyone look into this and let me know if you have any idea on this?
Thanks,
SRoop.
Edited by: SRoop on Jun 20, 2008 9:11 AM
Edited by: SRoop on Jun 20, 2008 9:14 AM
Edited by: SRoop on Jun 21, 2008 5:51 AM -
Weblogic.servlet.reloadCheckSecs in web.xml not working
Given the following web.xml file:
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
1.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<context-param>
<param-name>weblogic.servlet.reloadCheckSecs</param-name>
<param-value>100</param-value>
</context-param>
<servlet>
<servlet-name>CookieCounter</servlet-name>
<servlet-class>servlets.CookieCounter</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>CookieCounter</servlet-name>
<url-pattern>monster</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>hello.html</welcome-file>
</welcome-file-list>
<error-page>
<error-code>404</error-code>
<location>/error.jsp</location>
</error-page>
</web-app>
It seems the weblogic.servlet.reloadCheckSecs property is not taking effect.
The
default value of -1 is always used. I did stop and restart weblogic.
I also trid to set the servlet classpath in the web.xml file with
weblogic.servlet.classpath
property and it did not change the classpath for the servlet. It seems that
other
items are working such as adding new servletrs to the web application. Note
that
this is the cookie sample application that installes with the beta 2
download.
Thanks,
Dan.
Hi All:
Thanks for all your help regarding the adfAuthentication success_url. Now I am able to configure to make this work. But now I am facing another issue i.e. I am getting 401 Not authorized message when the success_url is pointed to the jspx page.
Note: I am using custom login module similar to DBProcOraDataSourceLoginModule so my roles are stored in the custom Role class. So I am not sure how to pass this role info to the security in ADF in order to authorize the page to be viewed.
Could you please help and can you point me to any specific link.
Thanks & Regards
Sridhar Doki -
How to set two different welcome-file to different servlets in web.xml
Hi friends,
Can some one help with web.xml file
I have to different servlets in applications.
I want to set two different welcome files for my two different
servlets in web.xml
Please, can some one give me sample code to achieve this.
Here web.xml code:
<?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/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>reports</servlet-name>
<servlet-class>com.caremark.ivr.servlet.IvrReportsServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>reports</servlet-name>
<url-pattern>/reports</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>reportsindex.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>calldetails</servlet-name>
<servlet-class>com.caremark.ivr.servlet.IvrCallDetailsServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>calldetails</servlet-name>
<url-pattern>/calldetails</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>calldetailsindex.jsp</welcome-file>
</welcome-file-list>
</web-app>
I need this fix immediately. Your help will be really appreciated. Thanks in advance.First of all, my understanding is that you need to have a Servlet 2.4 complaint server to do this...Given that, you're supposed to be able to simply specify the Name of the servlet as the welcome-file to get it to work. For example:
Your servlet section:
<servlet>
<servlet-name>Controller</servlet-name>
<servlet-class>com.company.ControllerServlet</servlet-class>
</servlet>Now you would add the following to your welcome file list:
<welcome-file-list>
<welcome-file>Controller</welcome-file>
</welcome-file-list>Note that you use the servlet-name value from the servlet definition, NOT the url-mapping from the servlet-mapping section.
Please note that I cannot verify this as I am running a 2.3 server at home. When I get to work Friday I can test on a 2.4 machine. However this shouldn't take you more than a minute to test.
Note that I did try this on the 2.3 compliant server and it did NOT work (as I expected)...
HTH. -
Weblogic refuses my web.xml - help ! ! !
Hi all,
I'm trying to deploy on weblogic a war file that
I'm built with Tomcat. I get a parse exception when
it comes across servlets declaration:
Mon Jul 16 11:08:33 GMT+02:00 2001:<E> <HTTP> Error parsing descriptor in Web
aplication 'c:/weblogic/myserver/tomcat.war'
org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here.
at com.sun.xml.parser.Parser.error(Parser.java:2775)
at com.sun.xml.parser.ValidatingParser$ChildrenValidator.consume(Valida
ingParser.java:310)
at com.sun.xml.parser.Parser.maybeElement(Parser.java:1280)
at com.sun.xml.parser.Parser.content(Parser.java:1498)
at com.sun.xml.parser.Parser.maybeElement(Parser.java:1399)
at com.sun.xml.parser.Parser.parseInternal(Parser.java:491)
at com.sun.xml.parser.Parser.parse(Parser.java:283)
at weblogic.xml.dom.SunDOMParser.getDocument(SunDOMParser.java:69)
at weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:102)
at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoade.java:132)
My web.xml looks clean...here's a bit of it:
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 1.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<servlet>
<servlet-name>
controller
</servlet-name>
<servlet-class>
ServletController
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>
controller
</servlet-name>
<url-pattern>
/Controller
</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>
shopper
</servlet-name>
<servlet-class>
ShopperServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>
shopper
</servlet-name>
<url-pattern>
/Shopper
</url-pattern>
</servlet-mapping>
</web-app>
Does anybody know how to solve this problem ?
Thanks a lot in advance.
Francesco
you package it all into a WAR file (zip/jar format)
read about it in the spec
http://java.sun.com/products/servlet/download.html#specs
the format is
--WEB-INF
web.xml
-----classes
-----lib
or take a look at some sample war files
Filip
~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[email protected]
www.filip.net
"Francesco" <[email protected]> wrote in message
news:[email protected]...
>
> Hi Filip,
> thanks for your answer, now this problem is solved
> and jsp pages are loaded but servlets not.
> I'm developing under "myserver" folder: could you give me
> a hint about where should I put
> 1) "web.xml"
> 2) servlets classes ?
>
> Thanks
> Francesco
>
>
>
> "Filip Hanik" <[email protected]> wrote:
> >try this one instead (define all <servlet> elements first, and then
define
> >the <servlet-mapping> elements
> >
> > <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
> >1.2//EN"
> > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
> >
> > <web-app>
> >
> > <servlet>
> > <servlet-name>
> > controller
> > </servlet-name>
> > <servlet-class>
> > ServletController
> > </servlet-class>
> > </servlet>
> >
> > <servlet>
> > <servlet-name>
> > shopper
> > </servlet-name>
> > <servlet-class>
> > ShopperServlet
> > </servlet-class>
> > </servlet>
> >
> > <servlet-mapping>
> > <servlet-name>
> > controller
> > </servlet-name>
> > <url-pattern>
> > /Controller
> > </url-pattern>
> > </servlet-mapping>
> >
> >
> > <servlet-mapping>
> > <servlet-name>
> > shopper
> > </servlet-name>
> > <url-pattern>
> > /Shopper
> > </url-pattern>
> > </servlet-mapping>
> >
> > </web-app>
> >--
> >~
> >Namaste - I bow to the divine in you
> >~
> >Filip Hanik
> >Software Architect
> >[email protected]
> >www.filip.net
> >"Francesco" <[email protected]> wrote in message
> >news:[email protected]...
> >>
> >> Hi all,
> >> I'm trying to deploy on weblogic a war file that
> >> I'm built with Tomcat. I get a parse exception when
> >> it comes across servlets declaration:
> >>
> >> Mon Jul 16 11:08:33 GMT+02:00 2001:<E> <HTTP> Error parsing descriptor
> >in
> >Web
> >> aplication 'c:/weblogic/myserver/tomcat.war'
> >> org.xml.sax.SAXParseException: Element "web-app" does not allow
"servlet"
> >here.
> >> at com.sun.xml.parser.Parser.error(Parser.java:2775)
> >> at
> >com.sun.xml.parser.ValidatingParser$ChildrenValidator.consume(Valida
> >> ingParser.java:310)
> >> at com.sun.xml.parser.Parser.maybeElement(Parser.java:1280)
> >> at com.sun.xml.parser.Parser.content(Parser.java:1498)
> >> at com.sun.xml.parser.Parser.maybeElement(Parser.java:1399)
> >> at com.sun.xml.parser.Parser.parseInternal(Parser.java:491)
> >> at com.sun.xml.parser.Parser.parse(Parser.java:283)
> >> at
weblogic.xml.dom.SunDOMParser.getDocument(SunDOMParser.java:69)
> >> at weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:102)
> >> at
>
>weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoade.java:1
3
> >2)
> >>
> >>
> >> My web.xml looks clean...here's a bit of it:
> >>
> >> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application
> >1.2//EN"
> >> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
> >>
> >> <web-app>
> >>
> >> <servlet>
> >> <servlet-name>
> >> controller
> >> </servlet-name>
> >> <servlet-class>
> >> ServletController
> >> </servlet-class>
> >> </servlet>
> >>
> >> <servlet-mapping>
> >> <servlet-name>
> >> controller
> >> </servlet-name>
> >> <url-pattern>
> >> /Controller
> >> </url-pattern>
> >> </servlet-mapping>
> >>
> >> <servlet>
> >> <servlet-name>
> >> shopper
> >> </servlet-name>
> >> <servlet-class>
> >> ShopperServlet
> >> </servlet-class>
> >> </servlet>
> >>
> >> <servlet-mapping>
> >> <servlet-name>
> >> shopper
> >> </servlet-name>
> >> <url-pattern>
> >> /Shopper
> >> </url-pattern>
> >> </servlet-mapping>
> >>
> >> </web-app>
> >>
> >> Does anybody know how to solve this problem ?
> >> Thanks a lot in advance.
> >> Francesco
> >>
> >
> >
>
-
C:import and web.xml
Im using <c:import url="http://path_to_html" />. I want to put this value in the web.xml using context param. The problem is I don't know how my c:import tag will refer to that context param inside web.xml. Can anyone give a solution? Thanks.
web.xml
<context-param>
<param-name>abc</param-name>
<param-value>http://path_to_html</param-value>
</context-param>
JSP
<c:import url="<%= application.getInitParameter("abc") %>"></c:import>More info for c:import
http://www.onjava.com/pub/a/pub/a/onjava/2002/05/08/jstl.html?page=2
* Absolute URL: <c:import url="http://sample.com/Welcome.html"/>
* Relative URL (to the current context): <c:import url="/copyright.html"/>
* Relative URL with a foreign context: <c:import url="/myLogo.html" context="/common"/>
* FTP resource: <c:import url="ftp://ftp.sample.com/myFile"/> -
Using taglib in web.xml in WLS 9.2
I am trying to build a web application in which the JSPs refer to a JSF taglib at the following URI(http://java.sun.com/jsf/core). When i deploy the application in WLS 9.2 and attempt to load this JSP, WLS says that it is unable to resolve this taglib. I added the following to web.xml to help the application find the taglibs.
<taglib>
<taglib-uri>http://java.sun.com/jsf/core</taglib-uri>
<taglib-location>
/WEB-INF/jsf_core.tld
</taglib-location>
</taglib>
But now when i attempt to startup WLS, it looks like the appserver does not recognize the <taglib> as a valid element. It gives the following exception:
Expected elements 'description@http://java.sun.com/xml/ns/j2ee display-name@http://java.sun.com/xml/ns/j2ee
instead of 'taglib@http://java.sun.com/xml/ns/j2ee' here in element web-app@http://java.sun.com/xml/ns/j2ee
..." VALIDATION PROBLEMS WERE FOUND"
Any clues as to what i am doing wrong here since I have seen documentation which shows using taglib elements in web.xml.
Thanks
RamdasI figured out looking at one of the webapp samples that is packaged as part of WLS9.2 that the taglib element needs to be part of the jsp-config element.
-Ramdas -
Help: ServletRequestListener & web.xml ?????
salamat,
i wrote a sample that uses a ServletRequestListener .The code is fine , when i try to statrt my application it gives me a HTTP status 404 The requested resource (/index.jsp) is not available.......
when i remove my listener decleration from the web.xml it works fine but without the listener class (ServletRequestListener). my web.xml is
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app >
<listener>
<listener-class>listener.uu</listener-class>
</listener>
</web-app>
and the class that implements the ServletRequestListener interface is
package listener;
import javax.servlet.*;
public class uu implements ServletRequestListener {
private static long reqCount=0;
public uu(){}
public void requestInitialized(ServletRequestEvent sre){
System.out.println("this is count"+ reqCount++);
public void requestDestroyed(ServletRequestEvent sre){
}//requestDestroyed
}// ReqListener
may be it is something with xml DTD ?? 2.3 or 2.4 ?? should i declare any thing else in my web.xml
im working on SUN ONE 6 studio, j2sdk1.4.1_06You dtd should definitly be 2.4 since your using the 2.4 specification. Also, does SUN ONE 6 studio support the 2.4 spec (I don't know because I don't use the product)
-
Changes in iAS6.5's web.xml don't take effect
After the cust deployed his application he modified some parameters in
the web.xml file of his application. He then restarted the application
server after but the changes didn't take effect. Is this the
expected behavior as they would need to custom web.xml
and expand the war file before deploying to see the changes reflected in the
pages because changing those after deployment doesn't work.
Thanks for your help,
GaetanIn response to author 97:
are made in the registry during the deployment processI tried redeploying a sample web application using <init-param> and cannot find a trace of the newly referenced variable.
Could you indicate in which regitry path should it be found?
thanks,
Gaetan
Maybe you are looking for
-
I have the WatchESPN app downloaded to my iPad. Everytime I ry and watch the US Open the app shuts itself down. Any clue how to fix this bug. I already rebooted iPad and reloaded the app.
-
I was recently trying to pair a new bluetooth device with my desktop and experienced some difficulties. I tried changing a few things and, in the process, have now lost all sound. All of the devices claim to be working properly but nothing I do see
-
Securing new 2.5" SSD in my MBP
I successfully followed the guide for Upgrading Your MacBook Pro With a Solid State Drive about a week ago, cloning and switching out the Toshiba 256GB SSD (pictured below) that came with my my mid-2010 MBP (I've put the details at the bottom of the
-
Issue with nested aggregated in time series
Hi Experts, I have a small requiremnt using time series. eg : (sum(current year4:Quarters bookingamt)-sum(previous year4:Quarters bookingamt))/sum(previous year4:Quarters bookingamt) Bookingamt is My measure Name. how do we implement above logic can
-
Xml name space for generated types
By default the autotype or the servicegen ant task seem to be creating a namespace from the java package name (like java:com.ventaso.external.common) for xml mapping of user defined java classes. Is there a way to change this to name space I want ? S