Web.xml + jsp deployment problem

Hi people,
I have an eclipse project that has 1 servlet and 1 jsp page. I'm having problem in deployment. The servlet works fine but jsp is not accessible. The structure of my web.xml file is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" 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">
     <display-name>IBNSubscriberServlet</display-name>
     <servlet>
          <description></description>
          <display-name>SubscriberServlet</display-name>
          <servlet-name>SubscriberServlet</servlet-name>
          <servlet-class>com.ibn.servlets.SubscriberServlet</servlet-class>          
     </servlet>
     <servlet-mapping>
          <servlet-name>SubscriberServlet</servlet-name>
          <url-pattern>/SubscriberServlet</url-pattern>
     </servlet-mapping>
     <servlet>
         <servlet-name>MonitoringG7</servlet-name>
         <jsp-file>/com.ibn.view.MonitoringG7.jsp</jsp-file>
     </servlet>     
     <servlet-mapping>
          <servlet-name>MonitoringG7</servlet-name>
          <url-pattern>/*</url-pattern>
     </servlet-mapping>
     <welcome-file-list>
          <welcome-file>index.html</welcome-file>
          <welcome-file>index.htm</welcome-file>
          <welcome-file>index.jsp</welcome-file>
          <welcome-file>default.html</welcome-file>
          <welcome-file>default.htm</welcome-file>
          <welcome-file>default.jsp</welcome-file>
     </welcome-file-list>
</web-app>On requesting this JSP url, http://localhost:8080/IBNSubscriberServlet/MonitoringG7.jsp the http 404 status message comes which says the resource is not found. Cn someone please check the above jsp mappings in the web.xml file?
Inside my "src", folder I have "com.ibn.view" which contains jsp file.
thanks.

this is how my web.xml looks like now.
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" 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">
     <display-name>IBNSubscriberServlet</display-name>
     <servlet>
          <description></description>
          <display-name>SubscriberServlet</display-name>
          <servlet-name>SubscriberServlet</servlet-name>
          <servlet-class>com.ibn.servlets.SubscriberServlet</servlet-class>          
     </servlet>
     <servlet-mapping>
          <servlet-name>SubscriberServlet</servlet-name>
          <url-pattern>/SubscriberServlet</url-pattern>
     </servlet-mapping>
     <welcome-file-list>
          <welcome-file>index.html</welcome-file>
          <welcome-file>index.htm</welcome-file>
          <welcome-file>index.jsp</welcome-file>
          <welcome-file>default.html</welcome-file>
          <welcome-file>default.htm</welcome-file>
          <welcome-file>default.jsp</welcome-file>
     </welcome-file-list>
</web-app>If there is a mapping problem then the JSP should not work in tomcat as well, but it is. And i have just one servlet in the project and that is mapped my eclipse as above.

Similar Messages

  • Web.xml + jsp-config element missing in definition?

    Hi,
    I have problem with jsp-config element definition in web.xml - I checked web-app_2_5.xsd it's reffering to javaee_5.xsd - but it's missing there
    from web xsd:
    <xsd:element name="jsp-config"
              type="javaee:jsp-configType"/>
    There is no javaee:jsp-configType. Is jsp-config deprecated? I couldnt find it in 1.4 as well. Please advice.
    Thanks
    Y

    ok - there are includes in web-add_2_5.xsd to jsp_2_1.xsd ... missed that - sorry
    <xsd:include schemaLocation="javaee_5.xsd"/>
    <xsd:include schemaLocation="jsp_2_1.xsd"/>
    Y

  • Move env-entry from web.xml into deployment plan

    I have:
    <env-entry>
    <env-entry-name>USERNAME</env-entry-name>
    <env-entry-value>someUser</env-entry-value>
    <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>
    and I'd like to move it from web.xml into my_app_plan.dat. Is it possible? How?
    Thank you in advance!

    Let me describe my case in few more words...
    I have some kind of client-server app. Clients have OC4J installed and they download myApp.ear and myApp_plan.dat files and by using script (Windows CMD batch file) clients install those files with admin_client.jar, OC4J's admin utility. The problem is that I have 2 different types of clients and I have client specific settings set in web.xml file and each time I compile myApp.ear I have to uncomment/comment some lines in web.xml.
    So, to make a long story short, I need a way to deploy those settings separated from (outside of) myApp.ear. By following you link, I have read that orion-web.xml should reside inside WEB-INF folder of myApp.ear, which is not good for me.

  • HELP: JSP deployment problems

    Hi,
    We have been working hard to resolve our deployment problems, but we are stuck at the following point.
    We create the following directory tree.
    htdocs/debis/
    htdocs/debis/WEB-INF/
    htdocs/debis/welcome.jsp
    htdocs/debis/mail/
    htdocs/denis/mail/readmail.jsp
    welcome.jsp works fine.
    now the problem is readmail.jsp cannot access the beans in the WEB-INF. mail tries to become a new application root. So we added another WEB-INF under mail, but then it turned out that different application roots are unable to share sessions. What we want to achieve is to have one application root, with several sub applications which are sharing sessions.
    Currently we put all jsp files in the
    htdocs/debis
    directory to make it work. However the directory is now full of jsp files, which we are having hard time determining which belongs to which sub application.
    What should we do?
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by RamkumarP:
    Where is the Bean class? Is it directly under WEB-INF or under the WEB-INF/classes folder? Have you created a classes folder under WEB-INF?<HR></BLOCKQUOTE>
    Hi, I am a newbie in running JSP in Apache with Oracle 9iAS. I have only worked with JSPs in Tomcat. Please bear with me.
    Before I can run the JSPs in the htdocs/myJSPapp/, beans & servlets in htdocs/myJSPapp/WEB-INF/ folder, what do I need to have installed ?
    Is it OSE + mod_ose + Apache + 9iAS ?
    Or is there a better alternative for serving out JSPs ?
    Thanks!

  • Trobule with web.xml jsp-config

    Hi,
    I'm using Tomcat 6.0.26. How do I write a jsp-config such that I can apply a header and footer to a group of JSPs in a certain folder and a different header and footer to all other JSPs? Right now, I have ...
         <jsp-config>
              <jsp-property-group>
                   <url-pattern>/WEB-INF/views/*</url-pattern>
                   <url-pattern>/WEB-INF/error-pages/*</url-pattern>
                   <include-prelude>/WEB-INF/includes/header.jspf</include-prelude>
                   <include-coda>/WEB-INF/includes/footer.jspf</include-coda>
              </jsp-property-group>
              <jsp-property-group>
                   <url-pattern>/WEB-INF/views/accommodations/includes/*</url-pattern>
                   <include-prelude>/WEB-INF/includes/blank.jspf</include-prelude>
                   <include-coda>/WEB-INF/includes/blank.jspf</include-coda>
              </jsp-property-group>
         </jsp-config>But what I'm finding is that the JSPs in the second property group (/WEB-INF/views/accommodations/includes/*), are getting both headers and footers included, which I guess makes sense, since technically, both patterns match.
    However, I only want one group included. Any advice is appreciated, - Dave

    Check out the JSP Specification Section JSP.3.3.5.
    >
    When more than one jsp-property-group applies to a JSP page, the corresponding includeprelude
    elements will be processed in the same order as they appear in the JSP
    configuration section of web.xml
    >
    It is working exactly as advertised. Because it matches both groups, it includes both preludes/codas.
    To exclude one, you have to make it not match the pattern defined in your jsp-property-group.
    cheers,
    evnafets

  • Help with web.xml and deploying a servlet

    Hello,
    I've been tearing me hair out for the last few hours trying to get this to work... I've got a servlet org.fatbaob.servtest.Servtest that I want to deploy with Tomcat 4.0.4. It doesn't seem to mater what I put in the web.xml file I'm always getting 404 errors.
    The servlet is contained in a file c:\development\projects\servtest\WEB_INF\classes\org\fatboab\servtest\Servtest
    which mapped with a <context> tag in the Tomcat conf\server.xml file:
    <!-- Servtest context -->
         <Context path="/servtest" docBase="C:\development\projects\servtest" debug="0" privileged="true" reloadable="true">
         <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_servtest_log." suffix=".txt" timestamp="true"/>
    </Context>
    My web.xml file contains:
    <?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>ServTest</servlet-name>
    <servlet-class>org.fatboab.servtest.Servtest</servlet-class>
    </servlet>
    </web-app>
    Although I have tried putting in <servlet-mapping> tags, but they didn't seem to work either.
    My html file contains:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
    <title>Servlet Test</title>
    </head>
    <body>
    <h1>Servlet Test</h1>
    <form action="/servtest/servlet/org.fatboab.servtest.Servtest" method="post">
    <table>
    <tbody>
    <tr>
    <td>Name:</td>
    <td><input type="text" size="77" name="name" /></td>
    </tr>
    <tr>
    <td>Email:</td>
    <td><input type="text" size="77" name="email" /></td>
    </tr>
    <tr>
    <td colspan="2"><input type="submit" value="Submit" /></td>
    </tr>
    </tbody>
    </table>
    </form>
    </body>
    </html>
    The 404 error I get is:
    description The requested resource (/servtest/servlet/org.fatboab.servtest.Servtest) is not available.
    Help!
    Cheers,
    Bob.

    Hello,
    I've been tearing me hair out for the last few hours
    trying to get this to work... I've got a servlet
    org.fatbaob.servtest.Servtest that I want to deploy
    with Tomcat 4.0.4. It doesn't seem to mater what I put
    in the web.xml file I'm always getting 404 errors.
    The servlet is contained in a file
    c:\development\projects\servtest\WEB_INF\classes\org\fa
    boab\servtest\Servtest
    which mapped with a <context> tag in the Tomcat
    conf\server.xml file:
    <!-- Servtest context -->
    <Context path="/servtest"
    docBase="C:\development\projects\servtest" debug="0"
    privileged="true" reloadable="true">
    <Logger
    er className="org.apache.catalina.logger.FileLogger"
    prefix="localhost_servtest_log." suffix=".txt"
    timestamp="true"/>
    </Context>
    My web.xml file contains:
    <?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>ServTest</servlet-name>
    <servlet-class>org.fatboab.servtest.Servtest</servlet-
    lass>
    </servlet>
    </web-app>
    Although I have tried putting in <servlet-mapping>
    tags, but they didn't seem to work either.
    My html file contains:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
    xml:lang="en">
    <head>
    <title>Servlet Test</title>
    </head>
    <body>
    <h1>Servlet Test</h1>
    <form
    action="/servtest/servlet/org.fatboab.servtest.Servtest
    method="post">
    <table>
    <tbody>
    <tr>
    <td>Name:</td>
    <td><input type="text" size="77" name="name"
    ="name" /></td>
    </tr>
    <tr>
    <td>Email:</td>
    <td><input type="text" size="77" name="email"
    "email" /></td>
    </tr>
    <tr>
    <td colspan="2"><input type="submit"
    submit" value="Submit" /></td>
    </tr>
    </tbody>
    </table>
    </form>
    </body>
    </html>
    The 404 error I get is:
    description The requested resource
    (/servtest/servlet/org.fatboab.servtest.Servtest) is
    not available.
    Help!
    Cheers,
    Bob.Bob,
    Here an servlet definition I have defined in my web.xml...just plug in your values.
    <servlet>
    <servlet-name>AutoUpload</servlet-name>
    <servlet-class>com.lendleaserei.webservices.AutoUpload</servlet-class>
    <display-name></display-name>
    <description></description>
    </servlet>
    <servlet-mapping>
    <url-pattern>/webs</url-pattern>
    <servlet-name>com.lendleaserei.webservices.AutoUpload</servlet-name>
    </servlet-mapping>
    Hope this helps,
    Marco

  • Web.xml file generation problem

    Hi,
    I am trying to create web.xml file automatically using "java weblogic.marathon.ddinit.WebInit
    " command.
    I got the following message in the command prompt:
    Found Web components. Initializing descriptors
    filters=0 servlets=0 tags=0
    Above command is creating the web.xml and weblogic.xml files but it is not including
    the servlet-mapping information. why?
    Thanks,
    Prakash

    It doesn't look like it found any servlets. You'd have to show me your
    files if I'm to understand what's going on.
    -- Rob
    Prakash wrote:
    Hi,
    I am trying to create web.xml file automatically using "java weblogic.marathon.ddinit.WebInit
    " command.
    I got the following message in the command prompt:
    Found Web components. Initializing descriptors
    filters=0 servlets=0 tags=0
    Above command is creating the web.xml and weblogic.xml files but it is not including
    the servlet-mapping information. why?
    Thanks,
    Prakash

  • Web.xml context-param problem...

    Hi all,
    Thoes anyone know how to set CHECK_FILE_MODIFICATION in web.xml param permanently, because whenever I set it on true, after few moments it's back on false?
        <context-param>
            <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
            <param-value>true</param-value>
        </context-param>Regards,
    s o v i e t

    Hi Soviet,
    We suffer from the same bug (which is very annoying) on our project too. One of the exasperated team member fixed it by saving the value to true then removing the write right on that file at OS level... It's a hardcore fix, but it works.
    Regards,
    ~ Simon

  • NEWBIE JSP Deployment Problems

    I know this is will probly bore to some of you but I'm trying to evalutate this software.
    I created a test JSP via the wizard and ran it in Jdev ok. Deployed and Copied the files to the Apache web server provided with 8.1.7. Ran on browser and got this error:
    java.lang.RuntimeException: JSP Registry could not locate runtime property file:....
    I included the business classes but apparently I'm still missing something...
    I have been searching for documentation on this error but not much luck so far...

    I have deployed a JSP with BC4J Application on an Oracle IAS and it works fine, but to do it i had to include a path to the .jar file that contains my classes in Jserv.properties
    When i need to change, add or manipulate something in the jar file or include a new jar file, i have to shut down the service because while active, the files that are being pointed by the conf file become locked... I have read something about "zones" and i have no idea about apache or OracleJSP configuration. I began yesterday to read the JavaServer Pages Developer4s Guide and Reference... But it has 420 pages and i will last a lot till i find what i4m looking for.
    If you can explain me the way you make your jar file accesible by the system in a correct way or the pages in which it is explained, please, make me know.

  • BC4J, JSP, Deployment problems

    I have two simple projects, one containing business components, and the other containing a JSP and a data web bean, which use the application module in the first one. I have deployed successfully the business components project as an EJB to Oracle8i and I am able to connect to it from a simple client code, as well as from the JSP application in JDeveloper 3.2.
    However, when I deploy the JSP application to 9iAS, I get the following exception:
    Exception:
    java.lang.RuntimeException: java.lang.NullPointerException:
    at oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPropertyFile(JSPApplicationRegistry.java:188)
    at oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPropertyFile(JSPApplicationRegistry.java:101)
    at oracle.jdeveloper.html.DataWebBeanImpl.internalInitialize(DataWebBeanImpl.java:464)
    at oracle.jdeveloper.html.WebBeanImpl.initialize(WebBeanImpl.java:54)
    at oracle.jdeveloper.html.DataWebBeanImpl.initialize(DataWebBeanImpl.java:425)
    at oracle.jdeveloper.html.DataWebBeanImpl.initialize(DataWebBeanImpl.java:456)
    at venci.Testdeploy._jspService(_Testdeploy.java:61)
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java)
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java)
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java)
    at oracle.jsp.JspServlet.internalService(JspServlet.java, Compiled Code)
    at oracle.jsp.JspServlet.service(JspServlet.java)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java)
    at org.apache.jserv.JServConnection.run(JServConnection.java)
    at java.lang.Thread.run(Thread.java:479)
    I have the properties file in place in a jar and have set the classpath to all the necessary libraries.
    I will appreciate any suggestions.
    Thanks

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Danny Gagliardi ([email protected]):
    I would like to store session type information, ie client_id in a session object and be able to retrieve its value from any of my jsp pages.
    Is there a jsp tag or some other JDev component that I should be using?
    TIA<HR></BLOCKQUOTE>
    You could try something like this in your jsp
    <%
    session.setAttribute("clientId", "1234");
    %>
    To get the clientId from the session try
    <%
    String ClientID = (String) session.getAttribute("clientId");
    %>
    Hope this help,
    Kh

  • JSP Deployment problem

    I kow this topic has been posted but there seems to be no resolution to it. I am having the same problem.
    After deploying the JDev Auction example to Tomcat, I get an error 500: unable to compile ...oracle.jbo.common.appmgr.*.
    Which jar/zip needs to be included to get rid of this error ?
    Thanks,
    Rajendra V Auradkar

    Following is full error message which i received in Message-Log
    panel when unsuccessfully tried to deploy a WAR file to 9iAS.
    Or please let me know how can i deploy/copy it manually to 9iAS
    when all .war & .ear & .jar files are created and ready to
    deploy.
    Please advice. This is a critical time for me.
    Beginning deployment to Oracle9i Application Server...
    Wrote .war file to
    D:\jdev\mywork\AlexusWebWorkspace\TouchProject\webapp1.war
    D:\jdev\jdk1.3\jre\bin\javaw.exe -jar D:\jdev\lib\admin.jar
    ormis://204.147.12.227/ admin **** -deploy -file
    D:\jdev\mywork\AlexusWebWorkspace\TouchProject\webapp1.ear -
    deploymentName webapp1
    Wrote web EAR file to
    D:\jdev\mywork\AlexusWebWorkspace\TouchProject\webapp1.ear
    Invoking Oracle9iAS admin tool...
    Error: javax.naming.NamingException: Lookup error:
    java.net.ConnectException: Connection refused: connect; nested
    exception is:
    java.net.ConnectException: Connection refused: connect
    D:\jdev\jdk1.3\jre\bin\javaw.exe -jar D:\jdev\lib\admin.jar
    ormis://204.147.12.227/ admin **** -bindWebApp webapp1 webapp1
    default-web-site /webapp1
    Exit status of Oracle9iAS admin tool: 0
    ---- Deployment finished. ----
    Error: javax.naming.NamingException: Lookup error:
    java.net.ConnectException: Connection refused: connect; nested
    exception is:
         java.net.ConnectException: Connection refused: connect

  • 10.1.3 - OEM Deployment generating invalid orion-web.xml

    Hi,
    I've playing around with OracleASjms resource adapters, JMS Connector, etc - with some good results. I noticed that one of my test applications, when deployed (via OEM) gets an orion-web.xml which is not according to the XML schema and am wondering whether this is designed behavior.
    In my servlet I'm using some logical names for javax.jms.ConnectionFactory and javax.jms.Destination, which I specify in the web.xml. Deploying the ear file I get the change to resolve environment references to 'physical' JNDI locations. I map the logical javax.jms.ConnectionFactory to an OracleASjms resource adapter connection factory (which in turn is pointing to an JMS ConnectionFactory) and the javax.jms.Destination I map to an OracleASjms Administered resource.
    The applications deploys and works fine, however I have a question with respect to the orion-web.xml that Oracle is generating based. More specifically I see (<....> are replaced with actual values):
       <message-destination-ref-mapping
             name="<logical name>"
             location="<OracleAsjms/Administerered Object>"/>The element message-destination-ref-mapping isn't declared in the XML schema for orion-web.xml, but still it works, how come?

    http://www.oracle.com/technology/oracleas/schema/index .html
    http://www.oracle.com/technology/oracleas/schema/orion-web-10_0.xsd
    Thanks, jvissers. It seems that orion-web-10_0.xsd is outdated. It is probably that it was posted for the 10.1.3 preview. When the 10.1.3 production release is available, at least that schema is not updated. Hmm, all things that are changing but kept at different places are just very susceptible to inconsistency. Hmm, OracleAs team should probably make automated tests to make sure that they are in sync. (I am just thinking loudly). Let me try to communicate to someone who can further take care of this matter of outdated schemas. Thanks again, jvissers.
    Where did you look?Inside my oc4j installation! oc4j will not go to the web to download the oc4j-specific schemas in case of need. The orion-web-10_0.xsd is at OC4J_HOME/j2ee/home/lib/schemas.jar!META-INF/orion-web-10_0.xsd. That is where I looked. So the orion-web.xml generated by OEM is indeed valid.

  • WAR deployment problem

              ok this is really confusing and annoying!!! I have a .war file (servlet + jsps
              + descriptor) packaged up in the correct way, I have checked the docs like 100
              times.. the problem is, I'm running win NT and when I create the war file I'm
              executing 'jar' on a directory structure..
              WEB-INF/classes
              WEB-INF/web.xml
              *.jsp
              But when I view the resulting .war file in winzip, I see this..
              WEB-INF/classes/all classes.....
              web-inf/web.xml
              where on earth is this lowercase web-inf coming from ??
              as a result when i deploy this war file, it deploys fine and the init() method
              of the servlet is called, however when i try to access the servlet via it's alias
              (specified in web.xml) it can't be found.
              The exact same files work when used as an exploded directory (DefaultWebApp),
              and can be accessed via the alias.
              The MS-DOS name of the directory is WEB-INF so I simply can't understand where
              the "extra" lower case
              directory web-inf is coming from........
              Am I correct in assuming the lowercase web-inf is the problem ?? I'm not 100%
              sure cos the weblogic
              console can read & edit this xml file.
              Has anyone else experienced WAR deployment on windows problems like this? I'd
              love to get my hands on a unix box but my company suffer from unix-phobia :/
              any thoughts/suggestions/solutions greatly appreciated,
              thanks,
              sd
              

    Explorer in Windows has an option to allow all upper case, for example.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              Clustering Weblogic? You're either using Coherence, or you should be!
              Download a Tangosol Coherence eval today at http://www.tangosol.com/
              "SD" <[email protected]> wrote in message
              news:[email protected]...
              >
              > I'm sorry but I don't understand what you mean by..
              >
              > >Case will mess you up. Set your explorer options so NT isn't constantly
              > >"fixing" your case.
              >
              >
              > under 'options' in windows Explorer I don't see anything
              > to with case ??
              >
              > Also - are there any war files around that I can just
              > get and install and access via their servlet-mapping just
              > as a sanity check for my weblogic installation ??
              > I can't get ANY servlet (in a war file) to be accessed via
              > it's servlet mapping. :( But these servlet mappings can
              > be seen and edited via the weblogic console.
              >
              > thanks,
              > sd
              >
              > >"SD" <[email protected]> wrote in message
              > >news:[email protected]...
              > >>
              > >> ok this is really confusing and annoying!!! I have a .war file
              (servlet
              > >+ jsps
              > >> + descriptor) packaged up in the correct way, I have checked the docs
              > >like
              > >100
              > >> times.. the problem is, I'm running win NT and when I create the war
              > >file
              > >I'm
              > >> executing 'jar' on a directory structure..
              > >>
              > >> WEB-INF/classes
              > >> WEB-INF/web.xml
              > >> *.jsp
              > >>
              > >> But when I view the resulting .war file in winzip, I see this..
              > >>
              > >> WEB-INF/classes/all classes.....
              > >> web-inf/web.xml
              > >>
              > >> where on earth is this lowercase web-inf coming from ??
              > >> as a result when i deploy this war file, it deploys fine and the init()
              > >method
              > >> of the servlet is called, however when i try to access the servlet
              > >via
              > >it's alias
              > >> (specified in web.xml) it can't be found.
              > >>
              > >> The exact same files work when used as an exploded directory
              > >(DefaultWebApp),
              > >> and can be accessed via the alias.
              > >>
              > >> The MS-DOS name of the directory is WEB-INF so I simply can't
              understand
              > >where
              > >> the "extra" lower case
              > >> directory web-inf is coming from........
              > >>
              > >> Am I correct in assuming the lowercase web-inf is the problem ?? I'm
              > >not
              > >100%
              > >> sure cos the weblogic
              > >> console can read & edit this xml file.
              > >>
              > >> Has anyone else experienced WAR deployment on windows problems like
              > >this?
              > >I'd
              > >> love to get my hands on a unix box but my company suffer from
              unix-phobia
              > >:/
              > >>
              > >> any thoughts/suggestions/solutions greatly appreciated,
              > >> thanks,
              > >> sd
              > >>
              > >
              > >
              >
              

  • Wanna know the uses of web.xml in Tomcat webserver

    Hai All,
    I'm using the Tomcat "C:\Program Files\Apache Group\Tomcat 4.1\webapps\examples\WEB-INF".
    I want to know whats the use of web..xml & how can Icustomise it so that I can call my oen servlet/jsp class .
    If there is any previous post please notify me.
    ThanX in Advance,
    Raj.

    web.xml is deployment discriptor.....
    That means you can map your servlets in this xml.....
    You can set different parameters like <load-on-startup> and like you can direct your application for the standard tag libs.....
    You can configure you application using your deployment discriptor.....
    That is the use of web.xml....
    Regards,

  • Confused about jrun-web.xml

    G'day there
    I'm hoping someone can clarify the *actual* purpose of the
    [cf]/WEB-INF/jrun-web.xml file, and how CF uses it.
    My understanding of it was that it was the
    JRun-internal-webserver's
    equivalent of Apache's httpd.conf, or IIS's... err...
    whereever IIS stores
    its config. Basically a web server configuration file. So if
    one wasn't
    actually USING the JRun webserver for a given web site, then
    that file is
    just ignored.
    However that understanding is incorrect, it seems.
    I have this sort of set-up on my dev machine's file system:
    C:\webroots
    \webapp1root
    \lib
    \subapp
    \myCfc.cfc
    \webapp2root
    \lib
    \subapp
    \myCfc.cfc
    And my IIS default website (I'm just running XP Pro, so only
    one website @
    a time) is set up to have either webapp1root or webapp2root
    as its webroot,
    depending on which I am working on, at a given moment in
    time. And the
    website also has a virtual directory to "subapp", called...
    "subapp".
    Currently I'm working on webapp1, so was bemused that when I
    did this:
    createObject("component", "subapp.myCfc")
    I was getting an instance of
    C:\webroots\webapp2root\lib\subapp\myCfc.cfc
    created, instead of the webapp1 version.
    I spent rather too long ballocksing around checking virtual
    directories, CF
    mappings and all that sort of palarver, only to eventualy
    find that I had a
    residual mapping in my jrun-web.xml file pointing to
    webapp2root's subapp
    directory.
    Once I removed that: all good.
    Now to me, jrun-web.xml should be completely irrelevant to
    that mix, as I'm
    not using the JRun web server.
    So obviously it's NOT just a web server config file. WTF *is*
    it?
    I have read various docs on the Adobe website, but they all
    seem to be
    written for an audience who would already know what the
    author is on about
    (hence making the doc a bit of a waste of time, in my view),
    and it's all
    completely impenetrable for me, as I'm just a CF developer
    and haven't got
    a clue about the inner workings of JRun (and, to be frank:
    I'd like to keep
    it that way if poss... JRun knowledge is not exactly a
    marketable skill
    What am I missing here?
    Adam

    I didn't skip over that part, but I probably wasn't as clear
    as I needed to be. web.xml (and jrun-web.xml) are deployment
    descriptors for a J2EE web application. That actually has nothing
    to do with a "web server", it has to do with telling the
    application server (JRun, in this case), any information it needs
    to deploy the web application (ColdFusion, in this case). The
    jrun-web.xml file simply includes stuff that isn't apart of the
    J2EE spec but JRun developers thought it helpful to add in.
    Again, _it has nothing to do with the "web server" as you see
    it_.
    If you are using IIS as your frontend web server, you're
    still using JRun, the Application Server. In order for the JRun
    Application Server (_not_ the web server) to start, it looks at
    certain files to determine what web applications to deploy and how
    to deploy them. Those files are web.xml and jrun-web.xml, among
    others. The reason they're named "web.xml" and "jrun-web.xml" is
    because it's deploying a "J2EE
    Web Application". It has absolutely nothing to do with a web
    server (an application that listens on port 80 or 443 and responds
    to HTTP requests).
    Let's see if I missed anything from your post:
    quote:
    G'day there
    I'm hoping someone can clarify the *actual* purpose of the
    [cf]/WEB-INF/jrun-web.xml file, and how CF uses it.
    My understanding of it was that it was the
    JRun-internal-webserver's
    equivalent of Apache's httpd.conf, or IIS's... err...
    whereever IIS stores
    its config. Basically a web server configuration file. So if
    one wasn't
    actually USING the JRun webserver for a given web site, then
    that file is
    just ignored.
    Nope. It's not a "web server configuration file". It's a web
    application deployment descriptor. Lots different. It all stems
    from the fact that ColdFusion is nothing more than a J2EE web
    application being deployed on JRun.
    quote:
    {snip}
    Now to me, jrun-web.xml should be completely irrelevant to
    that mix, as I'm
    not using the JRun web server.
    So obviously it's NOT just a web server config file. WTF *is*
    it?
    See my first post, and clarification at the top of this post
    quote:
    I have read various docs on the Adobe website, but they all
    seem to be
    written for an audience who would already know what the
    author is on about
    (hence making the doc a bit of a waste of time, in my view),
    and it's all
    completely impenetrable for me, as I'm just a CF developer
    and haven't got
    a clue about the inner workings of JRun (and, to be frank:
    I'd like to keep
    it that way if poss... JRun knowledge is not exactly a
    marketable skill
    What am I missing here?
    I have no idea how that mapping got in there in the first
    place, but this is standard J2EE deployment descriptor stuff. Most
    other J2EE servers (BEA, Glassfish, JBoss, etc) all have a
    server-specific ___-web.xml deployment descriptor that goes along
    with each web app, telling the Application Server the information
    it needs to deploy the web app.
    So, to sum up:
    jrun-web.xml is not a web server configuration file.
    jrun-web.xml is a JRun-specific J2EE Web Application
    deployment descriptor file.
    J2EE Web Application deployment descriptor files have nothing
    to do with a web server (an application that responds to HTTP
    requests), though the web.xml and jrun-web.xml files do tell JRun
    how to interpret the requests passed to it via the IIS ISAPI
    filter.
    I don't know how you got that mapping in there in the first
    place.

Maybe you are looking for