Servlet configuration

hi ...
i have downloaded the j2ee 1.5 from sun web site , but i am unable to compile a servelet programe but there is a error can not find package javax.servelet ..and i already have configured class path for jdk and other tool like javac, javap etc are working and other programes are compiling..
any body can tell me how can i configure servlet for my JDK 1.5..

BigDaddyLoveHandles wrote:
amrit_j2ee wrote:
hi ...
i have downloaded the j2ee 1.5 from sun web site , but i am unable to compile a servelet programe but there is a error can not find package javax.servelet That's odd. I though the package name was "javax.servlet"Bloody French.

Similar Messages

  • Error 404: No target servlet configured for uri: +websphere 6.0

    My server is running properly, but I got Error 404: No target servlet configured for uri: error while launching my project on web sphere 6.0
    see my web.xml and strut-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    id="WebApp_ID"
    version="2.4"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <display-name>supportPortalWeb</display-name>
    <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config/struts-config.xml</param-value>
    </init-param>
    <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>
    <init-param>
    <param-name>validate</param-name>
    <param-value>true</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>OrganizationDataServlet</servlet-name>
    <servlet-class>com.harcourt.supportportal.web.OrganizationDataServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>OrderProcessingServlet</servlet-name>
    <servlet-class>com.harcourt.supportportal.web.ordermgmt.OrderProcessingServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>OrganizationValidationServlet</servlet-name>
    <servlet-class>com.harcourt.supportportal.web.OrganizationValidationServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>ProductValidationServlet</servlet-name>
    <servlet-class>com.harcourt.supportportal.web.ProductValidationServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>ProductGradeServlet</servlet-name>
    <servlet-class>com.harcourt.supportportal.web.ProductGradeServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>action_tmp</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config/struts-config.xml</param-value>
    </init-param>
    <init-param>
    <param-name>debug</param-name>
    <param-value>3</param-value>
    </init-param>
    <init-param>
    <param-name>detail</param-name>
    <param-value>3</param-value>
    </init-param>
    <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>OrganizationDataServlet</servlet-name>
    <url-pattern>/servlet/OrganizationDataServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>OrderProcessingServlet</servlet-name>
    <url-pattern>/servlet/OrderProcessingServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>OrganizationValidationServlet</servlet-name>
    <url-pattern>/servlet/OrganizationValidationServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>ProductValidationServlet</servlet-name>
    <url-pattern>/servlet/ProductValidationServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>ProductGradeServlet</servlet-name>
    <url-pattern>/servlet/ProductGradeServlet</url-pattern>
    </servlet-mapping>
    <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/spring-config/spring-config.xml</param-value>
    </context-param>
    <listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>
    <jsp-config>
    <taglib>
    <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/struts-nested.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-template.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>/WEB-INF/epc.tld</taglib-uri>
    <taglib-location>/WEB-INF/supportportal.tld</taglib-location>
    </taglib>
    </jsp-config>
    <resource-ref>
    <res-ref-name>jdbc/SupportPortalDataSource</res-ref-name>
    <res-type>java.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
         <!-- Data Sources -->
         <data-sources />
         <!-- Form Beans -->
         <form-beans>
              <form-bean name="signOnHandlerForm" type="com.harcourt.supportportal.struts.signon.actionform.SignOnHandlerForm" />
              <form-bean name="signOffHandlerForm" type="com.harcourt.supportportal.struts.signon.actionform.SignOffHandlerForm" />
              <form-bean name="updatePersonForm" type="com.harcourt.supportportal.struts.sample.actionform.UpdatePersonForm" />
              <form-bean name="searchPersonsForm" type="com.harcourt.supportportal.struts.sample.actionform.SearchPersonsForm" />
              <form-bean name="updateProductForm" type="com.harcourt.supportportal.struts.product.actionform.UpdateProductForm"/>
              <form-bean name="searchProductsForm" type="com.harcourt.supportportal.struts.product.actionform.SearchProductsForm"/>
              <form-bean name="searchOrganizationForm" type="com.harcourt.supportportal.struts.mdr.actionform.SearchOrganizationForm"/>
              <form-bean name="updateOrganizationForm" type="com.harcourt.supportportal.struts.mdr.actionform.UpdateOrganizationForm"/>
              <form-bean name="exportOrganizationForm" type="com.harcourt.supportportal.struts.mdr.actionform.ExportOrganizationForm"/>
              <form-bean name="exportProductForm" type="com.harcourt.supportportal.struts.product.actionform.ExportProductForm"/>           
         </form-beans>
         <!-- Global Exceptions -->
         <global-exceptions />
         <!-- Global Forwards -->
         <!-- Action Mappings -->
         <action-mappings type="org.apache.struts.config.SecureActionConfig">
              <action
                   path="/start"
                   type="org.apache.struts.actions.ForwardAction"
                   parameter="loginRendererDef"/>
    <!--          <action -->
    <!--               path="/product"-->
    <!--               type="org.apache.struts.actions.ForwardAction"-->
    <!--               parameter="productInputDef"/>-->
              <action path="/product" type="org.springframework.web.struts.DelegatingActionProxy"
                        name="updateProductForm" parameter="method" scope="request" validate="false">
                   <forward name="success" path="productInputDef"/>
                   <forward name="failure" path="productInputDef"/>
              </action>
    <!--          <action -->
    <!--               path="/organization"-->
    <!--               type="org.apache.struts.actions.ForwardAction"-->
    <!--               parameter="organizationIndexDef"/>-->
              <action
                   path="/report"
                   type="org.apache.struts.actions.ForwardAction"
                   parameter="reportIndexDef"/>
              <action
                   path="/user"
                   type="org.apache.struts.actions.ForwardAction"
                   parameter="userIndexDef"/>
              <action path="/login" type="org.springframework.web.struts.DelegatingActionProxy" name="signOnHandlerForm" scope="request" input="loginRendererDef" validate="true">
         <set-property property="secure" value="false"/>
              <forward name="success" path="loginLandingDef" />
              <forward name="failure" path="loginRendererDef" />
    </action>
    <!-- sample -->
         <action path="/updatePerson" type="org.springframework.web.struts.DelegatingActionProxy" name="updatePersonForm" scope="request" input="productInputDef" validate="true">
         <set-property property="secure" value="false"/>
              <forward name="success" path="personIndexDef" />
              <forward name="failure" path="personInputDef" />
    </action>
         <action path="/searchPersons"
                   type="org.springframework.web.struts.DelegatingActionProxy"
                   name="searchPersonsForm"
                   scope="request"
                   parameter="method"
                   validate="true">
         <set-property property="secure" value="false"/>
              <forward name="success" path="personIndexDef" />          
              <forward name="failure" path="loginRendererDef" />
    </action>
         <!-- end sample -->
         <action path="/updateProduct" type="org.springframework.web.struts.DelegatingActionProxy"
                   name="updateProductForm" parameter="method" scope="request" input="productInputDef" validate="true">
         <set-property property="secure" value="false"/>
              <forward name="success" path="loginLandingDef" />          
              <forward name="failure" path="/product.do?method=createOrUpdateProduct" />
    </action>
    <action path="/deleteProduct" type="org.springframework.web.struts.DelegatingActionProxy"
                   name="updateProductForm" parameter="method" scope="request" validate="false">
         <set-property property="secure" value="false"/>
              <forward name="success" path="loginLandingDef" />          
              <forward name="failure" path="/product.do?method=createOrUpdateProduct" />
    </action>
    <action path="/searchProducts"
                   type="org.springframework.web.struts.DelegatingActionProxy"
                   name="searchProductsForm"
                   scope="request"
                   parameter="method"
                   validate="true">
         <set-property property="secure" value="false"/>
              <forward name="success" path="productSearchDef" />
              <forward name="failure" path="loginLandingDef"/>
    </action>
    <action path="/loadProducts" type="org.springframework.web.struts.DelegatingActionProxy"
              name="searchProductsForm" parameter="method" scope="request" validate="true">
         <forward name="success" path="productIndexDef"/>
         <forward name="failure" path="userIndexDef"/>
    </action>
    <action path="/exportProduct" type="org.springframework.web.struts.DelegatingActionProxy"
              name="exportProductForm" parameter="method" scope="request" validate="true">
              <forward name="failure" path="loginLandingDef" />
    </action>
    <!-- Organization Actions -->
    <action path="/searchOrganization" type="org.springframework.web.struts.DelegatingActionProxy"
              name="searchOrganizationForm" parameter="method" scope="request" validate="true">
         <forward name="success" path="orgSearchDef"></forward>
         <forward name="failure" path="loginLandingDef"/>
         </action>
    <action path="/organization" type="org.springframework.web.struts.DelegatingActionProxy"
              name="updateOrganizationForm" parameter="method" scope="request" validate="false">
         <set-property property="secure" value="false"/>
              <forward name="success" path="orgInputDef" />          
              <forward name="failure" path="loginLandingDef" />
    </action>
    <action path="/loadOrganizations" type="org.springframework.web.struts.DelegatingActionProxy"
              name="searchOrganizationForm" parameter="method" scope="request" validate="true">
         <forward name="success" path="orgIndexDef" />          
              <forward name="failure" path="loginLandingDef" />
    </action>
    <action path="/updateOrganization" type="org.springframework.web.struts.DelegatingActionProxy"
              name="updateOrganizationForm" parameter="method" scope="request" input="orgInputDef" validate="true">
                   <forward name="success" path="/loadOrganizations.do?method=loadOrganizations"></forward>
                   <forward name="failure" path="/organization.do?method=createOrUpdateOrganization"/>               
              </action>
              <action path="/exportOrganization" type="org.springframework.web.struts.DelegatingActionProxy"
              name="exportOrganizationForm" parameter="method" scope="request" >
              <forward name="failure" path="loginLandingDef" />
    </action>
         </action-mappings>
         <!-- Register Support Portal RequestProcessor -->
         <controller>
              <set-property property="processorClass" value="com.harcourt.supportportal.struts.common.action.SupportPortalRequestProcessor" />
         </controller>
         <!-- Message Resources -->
         <message-resources parameter="com.harcourt.supportportal.resources.ApplicationResources" />
         <!-- tiles plugin -->
    <plug-in className="com.harcourt.supportportal.tiles.SupportPortalSecureTilesPlugin">
         <set-property property="definitions-config" value="/WEB-INF/tiles-def/tiles-defs.xml" />
         <set-property property="httpPort" value="80"/>
    <set-property property="httpsPort" value="80"/>      
    <set-property property="enable" value="false"/>      
    <set-property property="addSession" value="false"/>      
    </plug-in>
         <!-- spring plugin -->
         <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
         <set-property property="contextConfigLocation" value="/WEB-INF/spring-config/spring-config.xml"/>
         </plug-in>
    </struts-config>

    If your EAR has actually started, try this:
    http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.zseries.doc/info/zseries/ae/xrun_jvm_sendredirect.html
    If you are not on z/OS, the link is actually under server->server infrastructure->Java and process management->environment entries
    for setting the property

  • Admin server not sending bootstrap servlet configuration to managed servers

    I am having a bit of strange issue.
    I have weblogic 8.1 SP5 domain in PROD.
    14 managed servers in the domain
    When i start the managed serverA, sometimes it starts, sometimes it doesnt.
    By looking at admin server logs, i found the following.
    When the managed ServerA doesnt start, the admin server has the following log snippet
    <<WLS Kernel>> <> <BEA-150023> <Bootstrap servlet invoked with action isrunning from managed server ServerA.>
    ####<Apr 14, 2009 2:37:01 AM EDT> <Info> <Configuration Management> <MachineA> <adminServer> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-150030> <The bootstrap servlet has acknowledged that the admin server is running to the booting managed server serverA>
    ####<Apr 14, 2009 2:37:01 AM EDT> <Info> <Configuration Management> <MachineA> <adminServer> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-150023> <Bootstrap servlet invoked with action bootstrap from managed server serverA.>
    When the managed ServerA starts, the admin server has the following log snippet
    Kernel>> <> <BEA-150023> <Bootstrap servlet invoked with action isrunning from managed server serverA.>
    ####<Apr 14, 2009 2:38:15 AM EDT> <Info> <Configuration Management> <MachineA> <adminServer> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-150030> <The bootstrap servlet has acknowledged that the admin server is running to the booting managed server serverA.>
    ####<Apr 14, 2009 2:38:15 AM EDT> <Info> <Configuration Management> <MachineA> <adminServer> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-150023> <Bootstrap servlet invoked with action bootstrap from managed server serverA.>
    ####<Apr 14, 2009 2:38:21 AM EDT> <Info> <Configuration Management> <catlmsxp166.corp.cox.com> <adminServer> <ExecuteThread: '13' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-150031> *<The bootstrap servlet has finished sending the configuration to serverA.>*
    The difference is that admin server unable to send the bootstrap servlet configuration to managed servers, as highlighted above
    Has anyone encountered this issue?
    If so, is there is solution to this?
    Right now i am doing the work around (Which is restart admin server and then start managed server, for every managed server that does not start)
    But i cant do this all the time.
    MY domain has 14 managed servers. All of them exhibit similar behaviour.
    Some times they start, some times they dont.
    Edited by: gvamsius on Apr 14, 2009 1:22 PM
    Edited by: gvamsius on Apr 14, 2009 1:23 PM

    Honestly I've never seen a similar problem.
    Could you show us the "standard out" when you start the servers?
    Could you to show us the standard out when you start the servers?

  • Error 404: No target servlet configured for uri

    hello there..
    this error start comming suddenly, i dont know why??
    when i try to run html page then IE7 display the following error
    Error 404: No target servlet configured for uri: webpage uri
    if any one already know this then please post any solution to fix it.
    thanks

    thanks Mr evenafets for ur quick reply
    i m sorry not to post the html page i have problem in.
    below is mypage.html
    and i m accessing it trough uri http://localhost:9080/myproject/mypage.html
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <link rel="stylesheet" href="theme/Master.css" type="text/css">
    <title>mypage</title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <meta name="GENERATOR" content="Rational Application Developer">
    </head>
    <body>
    <!--"CONVERTED_APPLET"-->
    <!-- HTML CONVERTER -->
    <object
        classid = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
        codebase = "http://java.sun.com/update/1.6.0/jinstall-6u20-windows-i586.cab#Version=6,0,0,6"
        WIDTH = "300" HEIGHT = "200" >
        <PARAM NAME = CODE VALUE = "myclass.class" >
        <PARAM NAME = ARCHIVE VALUE = "RegistrationApplet.jar" >
        <param name = "type" value = "application/x-java-applet;version=1.6">
        <param name = "scriptable" value = "false">
        <comment>
         <embed
                type = "application/x-java-applet;version=1.6" \
                CODE = "myclass.class" \
                ARCHIVE = "RegistrationApplet.jar" \
                WIDTH = "300" \
                HEIGHT = "200"
             scriptable = false
             pluginspage = "http://java.sun.com/products/plugin/index.html#download">
             <noembed>
                </noembed>
         </embed>
        </comment>
    </object>
    <!--
    <APPLET CODE = "myclass.class" ARCHIVE = "RegistrationApplet.jar" WIDTH = "300" HEIGHT = "200">
    </APPLET>
    -->
    <!--"END_CONVERTED_APPLET"-->
    </body>
    </html>and below is web.xml file
         <?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>
         UASEProject</display-name>
         <context-param>
              <param-name>crystal_image_uri</param-name>
              <param-value>crystalreportviewers</param-value>
         </context-param>
         <context-param>
              <param-name>crystal_image_use_relative</param-name>
              <param-value>webapp</param-value>
         </context-param>
         <servlet>
              <servlet-name>TilesServet</servlet-name>
              <servlet-class>
              org.apache.struts.tiles.TilesServlet</servlet-class>
              <init-param>
                   <param-name>definitions-config</param-name>
                   <param-value>/WEB-INF/tiles-defs.xml</param-value>
              </init-param>
              <load-on-startup>2</load-on-startup>
         </servlet>
         <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>

  • Error 404: No target servlet configured for uri  exception in RAD6.0

    Hello there,
    I have recently migrated from WSAD5.1 to RAD6.0. I have created a servlet in my client Web project. I have configured the deployment descriptor correctly to define a url-mapping for the servlet as follows:
    <servlet>
    <description>
    </description>
    <display-name>
    RulesServiceServlet</display-name>
         <servlet-name>RulesServiceServlet</servlet-name>
    <servlet-class>
         com.kai.rulesservice.RulesServiceServlet
    </servlet-class>
    <load-on-startup>-1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>RulesServiceServlet</servlet-name>
    <url-pattern>/RulesServiceServlet</url-pattern>
    </servlet-mapping>
    However, whenever, I try to run my servlet:
    http://localhost:9080/RS2Web/RulesServiceServlet
    I get the error:
    Error 404: No target servlet configured for uri
    I am not sure what this error means. Could someone please tell what I might be missing or what might be going wrong?
    Thanks in advance!

    If your EAR has actually started, try this:
    http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.zseries.doc/info/zseries/ae/xrun_jvm_sendredirect.html
    If you are not on z/OS, the link is actually under server->server infrastructure->Java and process management->environment entries
    for setting the property

  • Which is the servlet configuration XML file in tomcat

    Which/where is the servlet configuration file in Tomcat?
    Do we need to modify this anytime?

    You configure tomcat itself using the server.xml file in the conf folder, but there are many other xml files that can be modified, which can have an affect on your servlets or jsps.
    I think you may be talking about the web.xml file which resides in your WEB-INF folder of your webapp (defined by your context tags in server.xml). Don't confuse this with the web.xml file that sits in the servers conf folder.
    Search for web.xml to get details of what you can put in here. There are plenty of examples across the internet.

  • Servlet configuration problems ..

    Hi
    I am a new member starting with Java Servlets:
    I have a problem with Configuring the Servlet on the J2EE Application server.
    Here is the Servlet code ...
    package mypackage;
    public class ShowParameters extends HttpServlet {
        public void doGet(HttpServletRequest request, HttpServletResponse response)         throws ServletException, IOException { .... }And this is the web.xml file
        <servlet>
            <servlet-name>ShowParameters</servlet-name>
            <servlet-class>mypackage.ShowParameters</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>ShowParameters</servlet-name>
            <url-pattern>/ShowParameters</url-pattern>
        </servlet-mapping>And the HTML file is ....
    <FORM ACTION="ShowParameters">
        First Parameter: <INPUT TYPE="TEXT" NAME="param1"><BR>
        Second Parameter: <INPUT TYPE="TEXT" NAME="param2"><BR>
        Third Parameter: <INPUT TYPE="TEXT" NAME="param3"><BR>
        <CENTER>
            <INPUT TYPE="SUBMIT">
        </CENTER>
    </FORM>I have set the CLASSPATH variable t /build/mypackage/
    I get two erros:
    Wrapper cannot find servlet class ..
    ClassNotFound exception ...
    Also, how do I compile " the servlet class file with the line; package hello; " with the package name
    I would appreciate any help ..
    Thanks
    N

    I am trying to invoke a servlet from an HTML page.
    Method 1
        <FORM ACTION="ThreeParams" METHOD="GET">
            First Parameter: <INPUT TYPE="TEXT" NAME="param1"><BR>
               <CENTER>
            <INPUT TYPE="SUBMIT">
        </CENTER>
        </FORM>Method 2
    <td><a href="Threeparams">Execute</a></td>Method 1 does not work but Method 2 does. But Method 2 does not transmit param1 to the server.
    Any thought on how to get it correct?
    Rgds
    N

  • How do I get a servlet configured with init parameters

    When I try to add a set of <init-param> parameters to a servlet it seems
              like the weblogic server is trying to load it as a bean, which since its not
              a bean it can't do. I get the following error trace when I start the
              server:
              C:\bea\wlserver6.0sp1>set
              PATH=.\bin;C:\orant\bin;C:\WINNT\system32;C:\WINNT;C:\
              WINNT\System32\Wbem;C:\MSSQL7\BINN;C:\Program Files\Microsoft Visual
              Studio\Comm
              on\Tools\WinNT;C:\Program Files\Microsoft Visual
              Studio\Common\MSDev98\Bin;C:\Pr
              ogram Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft
              Visu
              al Studio\VC98\bin;"C:\Program
              Files\Mts";C:\PROGRA~1\NETWOR~1\PGP;C:\MSSQL7\BIN
              N;C:\jdk1.2.2\bin;
              weblogic.xml.dom.ChildCountException
              at weblogic.xml.dom.DOMUtils.getElementByTagName(DOMUtils.java:147)
              at weblogic.xml.dom.DOMUtils.getValueByTagName(DOMUtils.java:128)
              at
              weblogic.servlet.internal.dd.ParameterDescriptor.<init>(ParameterDesc
              riptor.java:45)
              at
              weblogic.servlet.internal.dd.ServletDescriptor.<init>(ServletDescript
              or.java:79)
              at
              weblogic.servlet.internal.dd.WebAppDescriptor.<init>(WebAppDescriptor
              .java:171)
              at
              weblogic.servlet.internal.dd.DescriptorLoader.initialize(DescriptorLo
              ader.java:288)
              at
              weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
              .java:230)
              at
              weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:4
              73)
              at
              weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:421)
              at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
              at weblogic.j2ee.Application.addComponent(Application.java:126)
              at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:283)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:109)
              at
              weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServe
              r.java:76)
              at java.lang.reflect.Method.invoke(Native Method)
              at
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:562)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:548)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              at $Proxy27.addWebDeployment(Unknown Source)
              at
              weblogic.management.configuration.WebServerMBean_CachingStub.addWebDe
              ployment(WebServerMBean_CachingStub.java:985)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:269)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
              loymentTarget.java:233)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
              ments(DeploymentTarget.java:194)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
              DeploymentTarget.java:158)
              at java.lang.reflect.Method.invoke(Native Method)
              at
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:562)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:548)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              at $Proxy26.updateDeployments(Unknown Source)
              at
              weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
              yments(ServerMBean_CachingStub.java:2299)
              at
              weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
              er(ApplicationManager.java:240)
              at
              weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
              nManager.java:122)
              at java.lang.reflect.Method.invoke(Native Method)
              at
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:562)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:548)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              at $Proxy19.start(Unknown Source)
              at
              weblogic.management.configuration.ApplicationManagerMBean_CachingStub
              .start(ApplicationManagerMBean_CachingStub.java:435)
              at
              weblogic.management.Admin.startApplicationManager(Admin.java:1030)
              at weblogic.management.Admin.finish(Admin.java:491)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
              at weblogic.Server.main(Server.java:35)
              >
              <Apr 3, 2001 3:42:32 PM EDT> <Notice> <WebLogicServer> <WebLogic Server
              started>
              <Apr 3, 2001 3:42:32 PM EDT> <Notice> <WebLogicServer> <ListenThread
              listening o
              n port 7001>
              <Apr 3, 2001 3:42:32 PM EDT> <Notice> <WebLogicServer> <SSLListenThread
              listenin
              g on port 7002>
              <Apr 3, 2001 3:42:38 PM EDT> <Error> <HTTP> <HttpServer(1112581,null default
              ctx
              ,ajrserver) found no context for "GET /CommonOpinionAdmin2?verifyinstall=
              HTTP/1
              .1". This should not happen unless the default context failed to deploy.>
              The distribution file is not a WAR file, but a JAR file. I need to to just
              do what it does if I don't specify any init-param's which is to pass them
              when the servlet does get loaded, or load it as a servlet from a jar file
              instead of a bean.
              How do I configure weblogics to run my servlet with init parameters.
              Thank You,
              Anthony Rizzolo
              

    I'll answer my own problem. It turns out that you can't put multiple
              <param-name> and <param-value> pairs within a single <init-param>. I
              assumed that you could since none of the examples had more than one
              parameter I didn't realize that you had to specify multiple <init-param>
              tags if you had multiple parameters.
              Anthony Rizzolo
              "Anthony Rizzolo" <[email protected]> wrote in message
              news:[email protected]...
              > When I try to add a set of <init-param> parameters to a servlet it seems
              > like the weblogic server is trying to load it as a bean, which since its
              not
              > a bean it can't do. I get the following error trace when I start the
              > server:
              >
              > C:\bea\wlserver6.0sp1>set
              > PATH=.\bin;C:\orant\bin;C:\WINNT\system32;C:\WINNT;C:\
              > WINNT\System32\Wbem;C:\MSSQL7\BINN;C:\Program Files\Microsoft Visual
              > Studio\Comm
              > on\Tools\WinNT;C:\Program Files\Microsoft Visual
              > Studio\Common\MSDev98\Bin;C:\Pr
              > ogram Files\Microsoft Visual Studio\Common\Tools;C:\Program
              Files\Microsoft
              > Visu
              > al Studio\VC98\bin;"C:\Program
              > Files\Mts";C:\PROGRA~1\NETWOR~1\PGP;C:\MSSQL7\BIN
              > N;C:\jdk1.2.2\bin;
              >
              > weblogic.xml.dom.ChildCountException
              > at
              weblogic.xml.dom.DOMUtils.getElementByTagName(DOMUtils.java:147)
              > at weblogic.xml.dom.DOMUtils.getValueByTagName(DOMUtils.java:128)
              > at
              > weblogic.servlet.internal.dd.ParameterDescriptor.<init>(ParameterDesc
              > riptor.java:45)
              > at
              > weblogic.servlet.internal.dd.ServletDescriptor.<init>(ServletDescript
              > or.java:79)
              > at
              > weblogic.servlet.internal.dd.WebAppDescriptor.<init>(WebAppDescriptor
              > .java:171)
              > at
              > weblogic.servlet.internal.dd.DescriptorLoader.initialize(DescriptorLo
              > ader.java:288)
              > at
              > weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
              > .java:230)
              > at
              > weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:4
              > 73)
              > at
              > weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:421)
              > at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
              > at weblogic.j2ee.Application.addComponent(Application.java:126)
              > at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
              > at
              > weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              > oymentTarget.java:283)
              > at
              > weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              > oymentTarget.java:109)
              > at
              > weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServe
              > r.java:76)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at
              > weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              > eanImpl.java:562)
              > at
              > weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              > .java:548)
              > at
              > weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              > ionMBeanImpl.java:285)
              > at
              > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              > 55)
              > at
              > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              > 23)
              > at
              > weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
              > at
              > weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              > at $Proxy27.addWebDeployment(Unknown Source)
              > at
              > weblogic.management.configuration.WebServerMBean_CachingStub.addWebDe
              > ployment(WebServerMBean_CachingStub.java:985)
              > at
              > weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              > oymentTarget.java:269)
              > at
              > weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
              > loymentTarget.java:233)
              > at
              > weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
              > ments(DeploymentTarget.java:194)
              > at
              > weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
              > DeploymentTarget.java:158)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at
              > weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              > eanImpl.java:562)
              > at
              > weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              > .java:548)
              > at
              > weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              > ionMBeanImpl.java:285)
              > at
              > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              > 55)
              > at
              > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              > 23)
              > at
              > weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
              > at
              > weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              > at $Proxy26.updateDeployments(Unknown Source)
              > at
              > weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
              > yments(ServerMBean_CachingStub.java:2299)
              > at
              > weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
              > er(ApplicationManager.java:240)
              > at
              > weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
              > nManager.java:122)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at
              > weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              > eanImpl.java:562)
              > at
              > weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              > .java:548)
              > at
              > weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              > ionMBeanImpl.java:285)
              > at
              > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              > 55)
              > at
              > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              > 23)
              > at
              > weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
              > at
              > weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
              > at $Proxy19.start(Unknown Source)
              > at
              > weblogic.management.configuration.ApplicationManagerMBean_CachingStub
              > .start(ApplicationManagerMBean_CachingStub.java:435)
              > at
              > weblogic.management.Admin.startApplicationManager(Admin.java:1030)
              > at weblogic.management.Admin.finish(Admin.java:491)
              > at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
              > at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
              > at weblogic.Server.main(Server.java:35)
              > >
              > <Apr 3, 2001 3:42:32 PM EDT> <Notice> <WebLogicServer> <WebLogic Server
              > started>
              >
              > <Apr 3, 2001 3:42:32 PM EDT> <Notice> <WebLogicServer> <ListenThread
              > listening o
              > n port 7001>
              > <Apr 3, 2001 3:42:32 PM EDT> <Notice> <WebLogicServer> <SSLListenThread
              > listenin
              > g on port 7002>
              > <Apr 3, 2001 3:42:38 PM EDT> <Error> <HTTP> <HttpServer(1112581,null
              default
              > ctx
              > ,ajrserver) found no context for "GET /CommonOpinionAdmin2?verifyinstall=
              > HTTP/1
              > .1". This should not happen unless the default context failed to deploy.>
              >
              > The distribution file is not a WAR file, but a JAR file. I need to to
              just
              > do what it does if I don't specify any init-param's which is to pass them
              > when the servlet does get loaded, or load it as a servlet from a jar file
              > instead of a bean.
              >
              > How do I configure weblogics to run my servlet with init parameters.
              >
              > Thank You,
              > Anthony Rizzolo
              >
              >
              

  • Servlet Configuration - urgent

    I installed
    jdk-6u21-windows-i586.exe
    in my machine (xp s3) and I can run java progrms
    Now I want to know the following things
    1. Which version of jdk is this
    2. I want to run Servlets from my machine
    what additional software to install for this
    in which folder, how to configure?
    kindly give me step by step procedure for this, thanks in advance

    jdk-6u21-windows-i586.exe
    1. Which version of jdk is this1.6.21
    2. I want to run Servlets from my machine
    what additional software to install for thisApache Tomcat for example, Jetty: many other possibilities.
    in which folder, how to configure?Read the documentation for whatever you choose.
    kindly give me step by step procedureThis is a 'New to Java' Programming forum, not a help desk.

  • Servlet configuration setting

    I have a question on how to call a servlet from the HTML file under oc4j environment.
    I get the configuration on the default-web-app\WEB-INF\web.xml, as follows
    <servlet>
    <servlet-name>UIBroker</servlet-name>
    <servlet-class>com.attachmate.mcs.system.uibroker.UIBroker</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>UIBroker</servlet-name>
    <url-pattern>uibroker</url-pattern>
    </servlet-mapping>
    and I have following code to access the Servlet on my html file
    window.location.href="/mcs/uibroker?..."
    And the servlet-webdir is the default setting.
    The error I got is that server Can't downloae the servlet.
    Would you please give me some suggestion on how to modify the configuration to solve the problem
    Thanks
    null

    Hi Robert -
    Thanks for the clarification... While I think it should be possible to use SSO directly from UIX (as a partner application) - I don't have any experience with this - and I don't believe that we have any sample code which shows how to do this - so unfortunately I don't have any good suggestions at the moment. I did find some general purpose sample code which shows how to enable SSO for a generic Servlet:
    http://otn.oracle.com/docs/products/ias/doc_library/1022doc_otn/portals.102/a90343/examples.htm#1004074
    Perhaps this sample code could be applied to a UIX-based Servlet as well. I'm kind of swamped at the moment so I haven't been able to look at this code closely, but I'll try to take a closer look to see if I can figure out how we might be able to rehost this functionality inside of a PageFlowEngine. Of course, if you make any breakthroughs, it would be much appreciated if you could post your results to the forum...
    Andy

  • "load-on-startup" servlet configuration

    Dear All,
    I am trying to load a servlet "SettingServlet" at the startup of the application, the configuration I am using inside the web.xml file is as following:
    <web-app>
         <servlet>
         <servlet-name>SettingsServlet</servlet-name>
         <servlet-class>com.myPack.SettingsServlet</servlet-class>
         <init-param>
         <param-name>fichierConfig</param-name>
         <param-value>D:/tomcat41/webapps/init.conf</param-value>
         </init-param>
         <load-on-startup>5</load-on-startup>
         </servlet>
    </web-app>
    It seems that the "SettingsServlet" servlet is not started at the startup.Even it's started in the tomcat window I am getting something like
    (SEVERE: Parse error at line......column...:Element type ....not declared ..)
    and that for the servlet-name, parma-name,servlet-class, init-param...etc
    Do I missed something in the configuration?, please tcheck the few lines above. because Simply I got stuck ! ,,,,,Please help me to fix it, I am waiting for you reply guys.
    Thanks and Regards,
    kifwet

    Take a look at the header of your web.xml file, the part about:<!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd"> And go check the dtd for your version.
    Some versions are very picky about the order of parameters.
    Hope this helps.

  • Apache Tomcat and Servlets configuration...

    Hi there fellow Javites,
    does anybody know how to configure the apache tomcat server xml file to enable you to use the "old servlet url technique"? I hear that its been disabled by default in newer versions Tomcat.
    You know where you would previously type in: http://localhost:8080/servlet/folder1.servlets.TheServlet
    ,but now you have to tell your web.xml file where your servlet is so you now have to type in:
    http://localhost:8080/TheServlet
    That is, unless you enable the server config file to allow you to do both.
    I hate to ask such questions but I really hate the Apache Tomcat documentation.
    Thanks.

    Hi there,
    well I was kinda hoping they'd be a shortcut to having to map the servlet in the web.xml file. In the older versions of the Apache tomcat you used to just be able to type in the url and the Servlet would be found.
    Does anybody know how to enable the later versions of Apache Tomcat via the config file to use the old style of Servlet mapping?
    I guess a more important question I should be asking also is, is this older style of mapping servlets now considered bad practice and is why it is no longer enabled by default in more recent Apache Tomcat versions???
    Thank you, this community rocks! Keep up the Javite work guys, they'll never take us alive. NO LOL. :D

  • Servlet configuration in Weblogic 5.1.. web.xml vs weblogic.properties..

    Can someone please tell me how the <servlet> entry differs from
              weblogic.httpd.register.snoop=examples.servlets.SnoopServlet
              in weblogic properties?
              Do these perform identical functions?
              

    Yes this is the source of my confusiong. It seems to be that WL can be told
              about servlets
              two ways. Firstly through the web.xml file and also via weblogic.properties.
              I don't understand
              why the second one exists.
              "Cameron Purdy" <[email protected]> wrote in message
              news:[email protected]...
              > I only work with WAR files, so I cannot speak to non-WARd servlets with
              any
              > confidence. I know that WL could use web.xml for non-WARd servlets in
              order
              > to obtain the other information associated with the servlet:
              >
              > <!ELEMENT servlet (icon?, servlet-name, display-name?, description?,
              > (servlet-class|jsp-file), init-param*, load-on-startup?,
              > security-role-ref*)>
              >
              > --
              >
              > Cameron Purdy
              > http://www.tangosol.com
              >
              >
              > "Robert Nicholson" <[email protected]> wrote in message
              > news:[email protected]...
              > > If what you say is true then why is there the need to also tell WL about
              > the
              > > servlets themselves?
              > >
              > > Presumably this is for when the servlets exist outside of a WAR then?
              > >
              > > "Cameron Purdy" <[email protected]> wrote in message
              > > news:[email protected]...
              > > > The weblogic.properties tells WL to load a WAR or specific servlet.
              The
              > > > <servlet> entry (I assume you refer to
              > > > http://java.sun.com/j2ee/dtds/web-app_2_2.dtd) defines the presence of
              a
              > > > servlet within a WAR (a deployment unit):
              > > >
              > > > >
              > > > The servlet element contains the declarative data of a
              > > > servlet. If a jsp-file is specified and the load-on-startup element is
              > > > present, then the JSP should be precompiled and loaded.
              > > > [end-quote]
              > > >
              > > > In the case of a WAR deployment, you have to tell WL that the WAR
              > exists,
              > > > then it will look in the WAR and figure out what servlets are there
              from
              > > the
              > > > <servlet> tags in your web.xml. You set up a WAR in the
              > > weblogic.properties
              > > > as such:
              > > >
              > > > weblogic.httpd.webApp.<http-path>=<os-path>
              > > >
              > > > For example:
              > > > weblogic.httpd.webApp.website=c:/weblogic/website.war
              > > >
              > > > --
              > > >
              > > > Cameron Purdy
              > > > http://www.tangosol.com
              > > >
              > > >
              > > > "Robert Nicholson" <[email protected]> wrote in message
              > > > news:[email protected]...
              > > > > Can someone please tell me how the <servlet> entry differs from
              > > > >
              > > > > weblogic.httpd.register.snoop=examples.servlets.SnoopServlet
              > > > >
              > > > > in weblogic properties?
              > > > >
              > > > > Do these perform identical functions?
              > > > >
              > > > >
              > > >
              > > >
              > >
              > >
              >
              >
              

  • IAS JServ (servlet) configuration problem

    I hava a very simple servlet that calls request.getSession() method. It runs OK from JDeveloper environment, but on iAS I get an Internal Server Error.
    error_log shows:
    java.lang.NoSuchMethodError: javax.servlet.http.HttpSession javax.servlet.http.HttpServletRequest.getSession()
    void org.apache.jserv.JServConnection.run()
    void java.lang.Thread.run()
    My jserv.properties file has
    # Oracle Servlet
    wrapper.classpath=c:\oracle\ias\jsp\lib\servlet22.jar
    What am I missing?
    Thanks a lot...
    Glenn
    null

    Hi TechnoSam,
    The problem here is, you are not following the correct directory structure.
    consider your webapplication is placed in a directory called $TOMCAT_HOME$/webapps/TechnoSamAPP
    by default the default context will be $TOMCAT_HOME$/webapps/ROOT
    If you want to have your own context, create a directory in webapps like
    if you have created a directory Example: TechnoSamAPP
    it will become a Web Application Context and which expects a <Context> entry in server.xml file.
    You can copy all your files in to this directory by follwoing the directory structure mentioned in the servlet spec SRV.9.5.
    You need to place all static resources(*.html, *.jpg, *.gif, *.js, *.css) in this context root directory
    i.e.,
    /webapps/TechnoSamAPP
    � The /webapps/TechnoSamAPP/WEB-INF/web.xml deployment descriptor.
    � The /webapps/TechnoSamAPP/WEB-INF/classes/ directory for servlet and utility classes. The classes in this directory must be available to the application class loader.
    � The /webapps/TechnoSamAPP/WEB-INF/lib/*.jar area for Java ARchive files. These files contain
    servlets, beans, and other utility classes useful to the web application. The web application class loader must be able to load classes from any of these archive files.
    The web application classloader must load classes from the WEB-INF/ classes
    directory first, and then from library JARs in the WEB-INF/lib directory.
    Hence place all your static files (which are accessible for public) into the Context's root directory rather than Tomcat/bin.
    Place all servlets in to /WEB_INF/classes which will be accessed by Servlet Container.
    Thanks,
    Sanath Kumar

  • XSQL Servlet Version 1.0.0.0 with ServletExec 3.0 on Windows2000 IIS 5

    I am attempting to establish an XML connection to Oracle 8i in a Windows2000 IIS 5 environment. The .xsql/index.htm loads perfectly, but when i try to run helloworld, I recieve the following error.
    "The XML page cannot be displayed
    Reference to undeclared namespace prefix: :'xsql'. Line 2 position 13
    <xsql:query>"
    The other examples load up the HTML but do not load any of the active XSQL information.
    Configuration:
    I have installed Suns JDK 1.2.2 and JRE 2, ServletExec 3.0 on a windows2000 box running IIS 5. ServletExec seems to be functioning perfectly. I installed the Oracle Servlet 1.0.0.0 by configuring ServletExec's ClassPath, Alias, and Servlet Configuration, mapped the .xsql extension to the servlet, and setup the XSQL virtual directory according to the documentation. I am trying to connect to to an external Oracle 8i database, and have adjusted the parameters in the XSQLConfig.xml accordingly.
    null

    The helloworld example doesn't work in XSQL 102. Tested using xsql command with http url. See below. If I put xsql: in front of connection in helloworld.xsql, the error moves from column 13 to 36, so now the trouble lies with xmlns:xsql="urn:oracle-xsql". What has changed? How do we solve this?
    C:\xsql\bin>dir c:\xsql\demo\helloworld\helloworld.xsql
    Volume in drive C has no label.
    Volume Serial Number is 24CD-3B6C
    Directory of c:\xsql\demo\helloworld
    08/03/2000 03:20p 306 helloworld.xsql
    1 File(s) 306 bytes
    0 Dir(s) 4,499,296,256 bytes free
    C:\xsql\bin>xsql file:///c:/xsql/demo/helloworld/helloworld.xsql
    <?xml version = '1.0'?>
    <!--
    | $Author: smuench $
    | $Date: 2000/03/08 23:20:17 $
    | $Source: C:\\cvsroot/xsql/src/demo/helloworld/helloworld.xsql,v $
    | $Revision: 1.1 $
    +-->
    <ROWSET>
    <ROW num="1">
    <GREETING>Hello World</GREETING>
    </ROW>
    </ROWSET>
    C:\xsql\bin>xsql http://aetius/xsql/demo/helloworld/helloworld.xsql
    Oracle XSQL Command Line Page Processor 1.0.2.0 (Production)
    XSQL-005: XSQL page is not well-formed.
    XML parse error at line 2, char 13
    Namespace prefix 'xsql' used but not declared.
    C:\xsql\bin>

Maybe you are looking for

  • Can you get a virus on your ipod?

    This is for my Ipod touch 4g. Ok so i opened this email and it (was from someone i know) thinking that it was a harmless quiz or webpage. The email told me to click this link and nothing happened ( THIS HAPPENED IN MY IPOD). Then the next day my frie

  • Scope of list ALV not defined (please correct) in rm06bkps program

    hi experts, i have to add some fields in me5j t-code, for this i have copied the standard program as z prog. But at time of execution it gives an error "Scope of list ALV not defined (please correct) Message no. ME287" At the time of debugging i foun

  • How to adjust userChrome.css to move the #identity-icon-label to the right side of the #urlbar?

    I hate the way the #identity-icon-label moves the URL over to the right. I've applied a patch to just hide it, but I'd rather make it behave more like IE8 and just have that box show up way over at the right end of the #urlbar. So far, my customizati

  • Using Windows 7 after installing Lion.

    I have Windows 7 Ultimate using Bootcamp in my iMac. Will it be safe after installing Lion or will it get corrupted?

  • J3680 OFFICEJET ALL IN ONE

    I have the J3680 all in one printer. I would like to know if anyone knows if there is a way to be able to print from it using a wireless laptop. I understand the printer is not wireless, but I was thinking if there would be an adapter I could get to