Orion-web.xml -- web-app-class-loader

Hi all, I posted this in the jDeveloper section and someone suggested that I ask you guys what the importance of the orion-web.xml file is. Currently my files looks like ...
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE orion-web-app PUBLIC "-//Evermind//DTD Orion Web Application 2.3//EN" "http://xmlns.oracle.com/ias/dtds/orion-web.dtd">
<orion-web-app servlet-webdir="/servlet/">
</orion-web-app>
But it keeps adding the line that I mention below...
I have a system that consists of multiple projects. When I deploy all projects they all work fine except for one. We discovered that this is due to the following line in the orion-web.xml file in that project ....
<web-app-class-loader search-local-classes-first="true"/>
I removed that line and everything is now fine. However, whenever I open up the application in jDev is puts that line back (even if I don't make changes).
Is there a setting somewhere that is forcing this line to be put there and, if so, why? And how do I switch it off?
Thanks,
Russell

Hey Steve,
I must admit that this post confused me a bit.
I can find no deployment plan editor. We have a WAR Deployment Profile, an EAR Deployment Profile and an EJB JAR Deplyment Profile.
I use the debug functionality (using the embedded OC4J) to test the application locally during development and then deply the EAR Deployment Profile to an EAR file which then gets deployed using an Application Server.
Further to this I have tried deleting the file (from everywhere), changing the EAR Deployment Properties and even changing the code within the ORION-WEB.XML to say <web-app-class-loader search-local-classes-first="false"/> all to no avail.
If I remove the file completed, it add its back when I reopen the project. If I change it to false, it changes it back to True.
Very confused I must admit.
Thanks,
Russell

Similar Messages

  • Unknown deployment tag - web-app-class-loader

    I can create the ear file with jdeveloper, but when deploy in 9iAs with the ear file, the next error apaers:
    Deployment failed:
    Unknown deployment tag in
    orion-web.xml:
    <web-app-class-loader>;
    nested exception is:
    java.lang.InstantiationException:
    when deploy the system show the web module.
    I have a CMP entity bean and too show in deploy.
    I don't know wath can I do.
    Please Help Me
    Miguel Angel Caro
    [email protected]

    I manually hacked the EAR file generated by JDeveloper 10g and removed the offending tag from the orion-web.xml
    After removing the tag I was able to deploy the EAR to 9iAS (9.0.2.3) but now I am getting runtime errors...
    Anyone who has gone through this please let me know!
    Thanks!

  • Why does my web service web.xml reference a class that is not a servlet?

    In jDeveloper 10.1.3, I created the simplest web service I could think of. I created a HelloWorld class that has one method that accepts a name as a parameter and returns "Hello " + name. Using the wizards, I was able to get it to run just fine in my development environment. However, if I generate a WAR file and deploy it to Tomcat 5.5, it chokes on the web.xml. Here it is...
    <pre>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">
    <servlet>
    <description>Web Service MyHelloWorldServiceSoapHttpPort</description>
    <display-name>Web Service MyHelloWorldServiceSoapHttpPort</display-name>
    <servlet-name>MyHelloWorldServiceSoapHttpPort</servlet-name>
    <servlet-class>com.dex.b2b.HelloWorld</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>MyHelloWorldServiceSoapHttpPort</servlet-name>
    <url-pattern>MyHelloWorldServiceSoapHttpPort</url-pattern>
    </servlet-mapping>
    </web-app>
    </pre>
    The servlet-class value is my simple HelloWorld class, not a servlet. How is this suppose to run, if the servlet-class value is not a servlet? It certainly did not run in Tomcat 5.5. I can't get it to run on Oracle App Server 10.1.2 either.
    Thanks

    Hi fellrunningpictures-
    Picasa web albums shows you that message because they are not fully compatible with the latest version of Firefox. I would recommend contacting Picasa to encourage them to become fully compatible. I found a link for contacting them here:
    * [http://support.google.com/picasa/?hl=en http://support.google.com/picasa/?hl=en]
    Hope that helps.

  • Error in faces-config.xml, sun-web.xml, web.xml

    Hi
    I am new bea in jsf. I tried the tutorials for JSF and found that faces-config.xml, sun-web.xml and web.xml gives me following errors:
    faces-config.xml
    <faces-config xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
    version="1.2">
    CANNOT FIND THE DECLARATION OF FACES_CONFIG
    sun-web.xml
    <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.0 Servlet 2.4//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-0.dtd">
    NO ROUTE TO CONNECT TO HOST.
    I am not able to get the required dtds from sun's website, and it will not work anyways if I am not connected to internet.
    I thought I need to copy the desired dtds, and xsds in the classpath. I tried that and copied the requird path in xmls, but it still does not work. Please help....

    Hi
    I am new bea in jsf. I tried the tutorials for JSF and found that faces-config.xml, sun-web.xml and web.xml gives me following errors:
    faces-config.xml
    <faces-config xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
    version="1.2">
    CANNOT FIND THE DECLARATION OF FACES_CONFIG
    sun-web.xml
    <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.0 Servlet 2.4//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-0.dtd">
    NO ROUTE TO CONNECT TO HOST.
    I am not able to get the required dtds from sun's website, and it will not work anyways if I am not connected to internet.
    I thought I need to copy the desired dtds, and xsds in the classpath. I tried that and copied the requird path in xmls, but it still does not work. Please help....

  • FORMAUTH Filter in orion-web.xml ignored

    I am trying to use a JAAS Custom Login Module with a customized logon.jsp (and Struts). So I defined a FORMAUTH Filter in orion-web.xml to intercept the logon.
    However, Oracle 10g 10.1.3.2 did not deploy it. Why? How can I fix this problem?
    ===========================================================
    Deployed Application:
    {ORACLE_10_1_3_2_HOME}\j2ee\home\application-deployments\{APPLICATION}\{APPLICATION_WAR}\orion-web.xml contained:
    <?xml version="1.0"?>
    <orion-web-app
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-web-10_0.xsd"
         deployment-version="10.1.3.1.0"
         deployment-time="1189531757046"
         development="true"
         jsp-cache-directory="./persistence"
         jsp-cache-tlds="standard"
         simple-jsp-mapping="false"
         temporary-directory="./temp"
         servlet-webdir="/servlet"
         context-root="visit"
    schema-major-version="10" schema-minor-version="0" >
         <web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="true" />
         <web-app>
         </web-app>
    </orion-web-app>
    ===========================================================
    BUT: APPLICATION.EAR structure:
    APPLICATION_WAR\WEB-INF\orion-web.xml contained:
    <?xml version="1.0"?>
    <!DOCTYPE orion-web-app PUBLIC "-//ORACLE//DTD OC4J Web Application 9.04//EN" "http://xmlns.oracle.com/ias/dtds/orion-web-9_04.dtd">
    <orion-web-app
         deployment-version="10.1.3.1.0"
         temporary-directory="./temp"
         internationalize-resources="false"
         default-mime-type="application/octet-stream"
         jsp-cache-directory="./persistence"
         servlet-webdir="/servlet"
         development="true">
              <web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="true" />
    <web-app>
    <filter>
    <filter-name>AuthenicationFilter</filter-name>
    <filter-class>gov.dhs.visit.filter.AuthenicationFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>AuthenicationFilter</filter-name>
    <dispatcher>FORMAUTH</dispatcher>
    <url-pattern>*.do</url-pattern>
    </filter-mapping>
    </web-app>
    </orion-web-app>

    I've used this before, and it worked fine. The only difference I can see is that you have a url-pattern element in the filter-mapping config.
    In the short term, try removing that and see if it then works.
    -steve-

  • Orion-web.xml access-mask not working

    Hi, I am trying to restrict access to a specific application via the orion-web.xml descriptor. This would be OC4J in OAS 10.1.3.4.
    I have done this in the GUI by using the "Advanced Deployment Plan Editing -> Edit Deployment Plan" option. I thought this would be safer than editing the files by hand. The application deploys successfully, and in orion-web.xml of my deployed application, this translates into:
    <orion-web-app
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-web-10_0.xsd"       
            deployment-version="10.1.3.4.0"
            deployment-time="1241707803607"
            jsp-cache-directory="./persistence"
            jsp-cache-tlds="standard"
            jsp-taglib-locations=""
            temporary-directory="./temp"
            context-root="MyApp"
    schema-major-version="10" schema-minor-version="0" >
            <access-mask default="deny">
                    <ip-access  ip="127.0.0.1" mode="allow" netmask="255.255.255.255" />
                    <ip-access  ip="192.168.0.100" mode="allow" netmask="255.255.255.255" />
                    <ip-access  ip="192.168.0.101" mode="allow" netmask="255.255.255.255" />
            </access-mask>
            <!-- Uncomment this element to control web application class loader behavior.
                    <web-app-class-loader search-local-classes-first="true"  include-war-manifest-class-path="true" />
            -->
            <resource-ref-mapping name="jdbc/myDB" location="jdbc/myDB" />
            <web-app>
            </web-app>
    </orion-web-app>This looks OK to my eyes, but unfortunately it doesn't restrict any access at all. I have restarted the specific application, and I have also restarted the entire OC4J. No access is restricted; I can pull up the application from any IP address. My intention was to restrict access only to the 2 IP addresses (and localhost by IP) listed above.
    I have reviewed multiple metalink articles on this topic:
    Note 438493.1 - How to Restrict access for EM Database Control only from Specific Hosts / IPs
    Note 178665.1 - How to Restrict Access to OC4J to Specific Hosts or IP Addresses
    Note 311137.1 - How to restrict access to EM website based on IP Addresses/Domain Names
    None of them seem to indicate that I have done anything wrong.
    If anyone has any feedback on this topic, identifies a problem with my config, or has knowledge of a product bug, please respond to this thread.
    Many thanks in advance for your feedback.

    were you able to resolve this?

  • Making sure setting ojsp-init tags-reuse from orion-web.xml is used

    I'm facing a problem with the following setting in my application's orion-web.xml:
    <ojsp-init tags-reuse="compiletime-with-release"/>
    previously, we had this setting in global-web-application.xml, but we would like to specify it per application, to get rid of the OC4J post-installation step to manually add the following lines:
    <init-param>
    <param-name>tags_reuse_default</param-name>
    <param-value>compiletime_with_release</param-value>
    </init-param>
    However, the latter works, and the former doesn't seem to have any effect whatsoever. But as far as I can see, the orion-web.xml is correctly following the XSD:
    <?xml version="1.0"?>
    <orion-web-app
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-web-10_0.xsd"      deployment-version="10.1.3.3.0"
         deployment-time="1198148775354"
         jsp-cache-directory="./persistence"
         jsp-cache-tlds="standard"
         jsp-taglib-locations=""
         temporary-directory="./temp"
         servlet-webdir="/servlet/"
         context-root="/messagecontrol"
    schema-major-version="10" schema-minor-version="0" >
         <!-- Uncomment this element to control web application class loader behavior.
              <web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="true" />
         -->
         <ojsp-init tags-reuse="compiletime-with-release"/>
    </orion-web-app>
    http://www.oracle.com/technology/oracleas/schema/orion-web-10_0.xsd
    Am I missing something here? Do we need to do something specific to make sure the ojsp-init values are actually used? The documentation seems to indicate that the two settings are equivalent:
    http://download.oracle.com/docs/cd/B32110_01/web.1013/b28961/devconfig.htm#BHCFICDA
    Any help would be appreciated.
    Jaap

    Update:
    In the meantime I've logged a SR for this. The settings "none" and "compiletime" do work and behave the same as their global-web-application.xml counterparts. It's just the "compiletime-with-release" that does not work as expected.

  • Is there any way to prevent web.xml from any change like java class?

    hi all,
    Is there any way to prevent web.xml from any change after making EAR(WAR)?
    One can easily make a change in web.xml and redeploy the application to get the result. Now we want to restrict the web.xml as java class for any change after making EAR(or WAR).
    Could some one help me to do this?
    thanks,
    dinesh

    hi,
    Not at development level. We want it after deploying the application on server .
    We want to create it (web.xml) at tomcat startup (or in any other web/app server ) before loading any context.
    Is there any way to run a simple java class(not servlet) on tomcat startup(before initializing the contexts)?
    Message was edited by:
    DP_java
    Message was edited by:
    DP_java

  • 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
              > >>
              > >
              > >
              >
              

  • Taglib tag doesn't work with web.xml 2.4 ?

    That is, I switched to the 2.4 version of web.xml and now none of the taglib elements I have in there work.
    I get the following excpetion
    org.apache.jasper.JasperException: File "/tags/struts-html" not found
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.jav a:105)
    I've been surfing a good portion of the day looking for some documentation on this but to no avail. I did find that I should wrap the taglib elements in a jsp-info. I'm runing tomcat 5.0.19.
    In any event here is my web.xml:
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd"
    version="2.4">
    <display-name>Struts Examples Application</display-name>
    <!-- Standard Action Servlet Configuration (with debugging) -->
    <servlet>
    <servlet-name>InitServlet</servlet-name>
    <servlet-class>com.jacent.admin.servlet.init.InitServlet</servlet-clas s>
    <init-param>
    <param-name>log4j</param-name>
    <param-value>/WEB-INF/log4j.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class&g t;
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <!-- module configurations -->
    <init-param>
    <param-name>debug</param-name>
    <param-value>2</param-value>
    </init-param>
    <init-param>
    <param-name>detail</param-name>
    <param-value>2</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <!-- Standard Action Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <!-- The Usual Welcome File List -->
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <!-- Struts Tag Library Descriptors -->
    <jsp-config>
    <taglib>
    <taglib-uri>/tags/struts-bean</taglib-uri>
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/struts-html</taglib-uri>
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/struts-logic</taglib-uri>
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/struts-nested</taglib-uri>
    <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/struts-tiles</taglib-uri>
    <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/datetime</taglib-uri>
    <taglib-location>/WEB-INF/datetime.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/tabs-taglib</taglib-uri>
    <taglib-location>/WEB-INF/tabs-taglib.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/tags/admin-widgets</taglib-uri>
    <taglib-location>/WEB-INF/admin-widgets.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
    <taglib-location>http://java.sun.com/jsp/jstl/core</taglib-location> ;
    </taglib>
    </jsp-config>
    </web-app>
    In addition Eclipse is complaining about web-app element not able to be found.
    Thanks for anyone's help!
    John

    #1 programmers excuse: It works for me. You must be doing something wrong.
    Finding out what is the trick.
    I have Tomcat 5.0.28, but I don't think it would make THAT much difference.
    What version of Java are you running?
    You shouldn't need the entry for the JSTL library c. That works without an entry in web.xml, provided you use the correct URI.
    First step: make a test page that only uses that one taglib - eg an html:base tag.
    Confirm that it breaks with the current setup.
    Backup web.xml, and start it from scratch with an absolute minimal one - only import the struts-html library.
    Does that work?
    Slowly copy and paste in the different bits of web.xml until you find what breaks it.
    Hope this helps,
    evnafets

  • How to setup web.xml files in Tomcat 4.0.6

    Hi, I'm to new to Java Servlets. i am trying to run my first servlet but it's not showing up..can anyone help me out please!!!
    I created a folders like this:
    webapps/sumitapps/WEB-INF\classes\Forms\login.class
    under sumitapps: i'm puttin all of my .html files(Logins.html)
    under WEB-INF: i put web.xml file and classes folder
    <?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>login</servlet-name>
    <servlet-class>Forms.login</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>login</servlet-name>
    <url-pattern>/Forms.login</url-pattern>
    </servlet-mapping>
    </web-app>
    <Context path="/sumitapps" docBase="webapps/sumitapps" crossContext="true" debug="0" reloadable="true" trusted="false" >
    </Context>
    under my classes folder i put folder Forms where i'm keeping all of my .class files. my class file name is login.class
    can anyone tell me why i cant run my servlets
    <FORM method="POST" action="Forms.login"
    name=userinfo onsubmit="return checkData()">
    please help me out here
    i can access my html page like this:
    http://lcoalhost:8080/sumitapps/Logins.html
    but when i enter userid and password it doesnt show anything..it takes me to http://localhost:8080/sumitapps/Forms.login
    and shows cannot be displayed

    have a look at www.moreservlets.com. There you can find a free pdf (part of the book, a whole chapter) that explains in deep the use of web.xml.

  • Sevlet without specific mapping in web.xml

    Hi,
              1. How to invoke a servlet without specfic mapping entry in the web.xml file, by compiling and placing the class file under WEB-INF/classes directory?
              2. Is it correct to mapping the servlets in the directory structure alone (not specific), Like
              <servlet-mapping>
              <servlet-name>/myservlets/*</servlet-name>
              <url-pattern>servlets/../myservlets/*</url-pattern>
              Where * - for servlets under myservlets package compiled and placed under WEB-INF classes and invoked from the browser as
              http://localhost:9999/servlets/../myservlets/testpackage.test
              

    You can use servletservlet :
              web.xml:
              <web-app>
              <servlet>
              <servlet-name>ServletServlet</servlet-name>
              <servlet-class>weblogic.servlet.ServletServlet</servlet-class>
              </servlet>
              <servlet-mapping>
              <servlet-name>ServletServlet</servlet-name>
              <url-pattern>/servlets/*</url-pattern>
              </servlet-mapping>
              </web-app>
              and your servlet will be accessible as
              http://localhost:7001/yourWebApp/servlets/testpackage/test
              Chitrapandian <[email protected]> wrote:
              > Hi,
              > 1. How to invoke a servlet without specfic mapping entry in the web.xml file, by compiling and placing the class file under WEB-INF/classes directory?
              > 2. Is it correct to mapping the servlets in the directory structure alone (not specific), Like
              > <servlet-mapping>
              > <servlet-name>/myservlets/*</servlet-name>
              > <url-pattern>servlets/../myservlets/*</url-pattern>
              >
              > Where * - for servlets under myservlets package compiled and placed under WEB-INF classes and invoked from the browser as
              > http://localhost:9999/servlets/../myservlets/testpackage.test
              Dimitri
              

  • In web.xml which tag executes first.

    Hi All,
    Could any one please tell in web.xml whether Filter tag gets execute first or Security-Constraint tag?
    Thanks,
    Swapna Soni.

    In web.xml <web-app> is the root tag the container loads the web.xml when ever the application is deployed or when ever the server is started or restarted or redeployed the application In the same sequence as defined in the sun xmlschema

  • How to deploy web.xml in OAF to server?

    Hello,
    Currently i used oracle 9i jeveloper to develop OAF page for EBS 11.5.10
    based on requirement, i need create a new JSP file and change default web.xml file in jeveloper. Who can help how to deploy new web.xml to server? Thank you very much!
    Added following code to web.xml
    ---web.xml------------
    <servlet>
    <servlet-name>barbecue</servlet-name>
    <servlet-class>net.sourceforge.barbecue.BarcodeServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>barbecue</servlet-name>
    <url-pattern>/CreateBarCode</url-pattern>
    </servlet-mapping>
    -----------------------------------

    Anyone know how to deploy web.xml in local jeveloper to server? thanks a lot!

  • Accessing Local Interface EJB from Web Container Oracle App Server 9.0.4

    Hi,
    I am developing a struts based small application, which calls a EJB which uses Local Interface from Struts ActionClass.
    I am getting NameNotFoundException. The exact exception is s mentioned below.
    05/03/29 16:15:49 javax.naming.NameNotFoundException: LoginRSL not found
    The deployment descriptors are as mentioned below.
    =============
    ejb-jar.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
    <enterprise-beans>
    <session>
    <description>Session Bean ( Stateless )</description>
    <display-name>LoginRSL</display-name>
    <ejb-name>LoginRSL</ejb-name>
    <local-home>loginApp.model.LoginRHome</local-home>
    <local>loginApp.model.LoginL</local>
    <ejb-class>loginApp.model.LoginRSL</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    <relationships/>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>LoginRSL</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    orion-ejb-jar.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd">
    <orion-ejb-jar>
    <enterprise-beans>
    <session-deployment name="LoginRSL"/>
    </enterprise-beans>
    </orion-ejb-jar>
    I also tried adding following code to web.xml
    web.xml
    <ejb-local-ref>
    <ejb-ref-name>LoginRSL</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <local-home>LoginRHome</local-home>
    <local>LoginL</local>
    <ejb-link>LoginRSL</ejb-link>
    </ejb-local-ref>
    It is quite evident that it is not able to lookup the JNDI name.
    Can someone throw light on this? If someone has working sample of this, can you mail it to [email protected]?

    Nipun,
    WebLogic and OC4J are not the same thing. That's like saying Oracle and SQL Server are the same thing -- or C++ and Java are the same thing.
    I recall a posting to a forum (don't remember if it was this one), where the poster was complaining that some feature of the application server he had previously used, was not supported by OC4J. Turned out that the feature he was referring to, contradicted the J2EE specification -- which is why it wasn't available in OC4J. In other words, he didn't like the fact that OC4J was more compliant with the J2EE specification than his "other" application server. Go figure!
    So, if you haven't already done so, I suggest you verify that this feature of WebLogic is something that complies with the J2EE specifications -- before expecting OC4J to support the same feature.
    And if it's not clear, from the specifications, then every vendor is free to implement this feature (or not).
    So if it turns out that WebLogic is a more appropriate application server for you -- then why not just stick with it (and forget the others)?
    Good Luck,
    Avi.

Maybe you are looking for

  • Is it possible to create a Windows 7 Partition via Bootcamp while having an internal RAID 0 Setup ?

    Is it possible to create a Windows 7 Partition via Bootcamp while having an internal RAID 0 Setup ?

  • Printing long notes from address book.

    My notes in my addresses can be two or three pages long. For some reason when I print an address, using the LIST style, only what fits in the first printed page appears and the rest does not get printed. Any idea?

  • Marketing or Sales products

    Hi, we will migrate from 11.5.6 to 11.5.10 and I'm reading note 316365.1. It is said : "If you have registered any Marketing or Sales products" . How can I see if we have installed any Marketing or Sales products. Many thanks.

  • Saving data at a fixed interval

    Currently I have my block diagram set up so that after every n number of loops, the data will save.  I'm using the remainder function and case structure for this, and while this works I want to make it save at certain time intervals instead of loop. 

  • 64-bit Chromium now available for Linux

    So we finally have a native 64 bit chromium http://www.reddit.com/r/linux/comments/ - for_linux/ Is anyone working on a AUR package for this, it would be nice. thanks