MDS on Tomcat server

Hi,
JDeveloper 11g, Tomcat server.
I am planning to deploy the ADF Application on Tomcat server. My question is, Is it possible to configure the MDS on Tomcat server?
Please let me know.
Thanks.

Nope, not at this time. It's only certified on WLS

Similar Messages

  • Problem to deploy ADF application on tomcat server

    Hi all,
    i 'm using this tutorial link to deploy adf application on tomcat server.
    https://blogs.oracle.com/dana/entry/how_to_deploy_a_11g_adf_applic_1
    but when i have run my application i have got following error
    java.sql.SQLException: invalid arguments in call
    log-
    Jul 29, 2013 11:35:16 AM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b07-FCS) for context '/TestApacheApp_ViewController_webapp1'
    Jul 29, 2013 11:35:19 AM oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack contextInitialized
    SEVERE: ADFConnection mbean not registered for defaultApplicationName.
    Jul 29, 2013 11:35:19 AM oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack contextInitialized
    SEVERE:
    oracle.jrf.UnknownPlatformException: JRF is unable to determine the current application server platform.
      at oracle.jrf.ServerPlatformSupportFactory.getInstance(ServerPlatformSupportFactory.java:79)
      at oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack.contextInitialized(ADFConnectionLifeCycleCallBack.java:82)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
      at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:515)
      at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1231)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
      at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
      at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1471)
      at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:243)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
      at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
      at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
      at java.lang.Thread.run(Thread.java:662)
    Jul 29, 2013 11:35:19 AM oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack contextInitialized
    SEVERE: Failed to register config mbean for defaultApplicationName.
    Jul 29, 2013 11:35:19 AM oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack contextInitialized
    SEVERE:
    oracle.jrf.UnknownPlatformException: JRF is unable to determine the current application server platform.
      at oracle.jrf.ServerPlatformSupportFactory.getInstance(ServerPlatformSupportFactory.java:79)
      at oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack.contextInitialized(ADFConfigLifeCycleCallBack.java:79)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
      at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:515)
      at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1231)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
      at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
      at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1471)
      at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:243)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
      at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
      at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
      at java.lang.Thread.run(Thread.java:662)
    Jul 29, 2013 11:35:19 AM oracle.bc4j.mbean.BC4JConfigLifeCycleCallBack contextInitialized
    SEVERE: Not able to get Deployment Name
    Jul 29, 2013 11:35:28 AM oracle.adfinternal.controller.state.ControllerState initializeRequest
    WARNING: ADFc: Deserialization of session state detected but ADF scope HA support is not enabled.  Please enable ADF scope HA support in the adf-config.xml file to ensure correct functioning of your applicaiton.
    Jul 29, 2013 11:35:28 AM oracle.adf.share.http.ServletADFContext initialize
    WARNING: Found wrong applictionScope sticking to oldContext for oldApplication defaultApplicationName, while the current one is null
    Jul 29, 2013 11:35:28 AM oracle.jbo.uicli.mom.CpxUtils$Visitor logMainApplicationCpx
    INFO: jndi:/localhost/TestApacheApp_ViewController_webapp1/WEB-INF/classes/com/in/jagran/view/DataBindings.cpx
    Jul 29, 2013 11:35:28 AM oracle.adf.share.jndi.MDSBackingStore documentExists
    INFO: MDS-00013: no metadata found for metadata object "/META-INF/connections.xml"
    Jul 29, 2013 11:35:32 AM oracle.adf.share.http.ServletADFContext initialize
    WARNING: Found wrong applictionScope sticking to oldContext for oldApplication defaultApplicationName, while the current one is null
    Jul 29, 2013 11:35:33 AM oracle.adf.share.http.ServletADFContext initialize
    WARNING: Found wrong applictionScope sticking to oldContext for oldApplication defaultApplicationName, while the current one is null
    Jul 29, 2013 11:35:47 AM org.apache.coyote.http11.Http11AprProtocol pause
    INFO: Pausing Coyote HTTP/1.1 on http-8086
    Jul 29, 2013 11:35:47 AM org.apache.coyote.ajp.AjpAprProtocol pause
    INFO: Pausing Coyote AJP/1.3 on ajp-8009
    Jul 29, 2013 11:35:48 AM org.apache.catalina.core.StandardService stop
    INFO: Stopping service Catalina
    Jul 29, 2013 11:35:48 AM org.apache.coyote.http11.Http11AprProtocol destroy
    INFO: Stopping Coyote HTTP/1.1 on http-8086
    Jul 29, 2013 11:35:48 AM org.apache.coyote.ajp.AjpAprProtocol destroy
    INFO: Stopping Coyote AJP/1.3 on ajp-8009

    There is no guideline I know of as this depends on the app itself.
    What you should do is to deploy the application onto a test server and check the metrics of the app over a defined period of time with a defined amount of traffic.
    Timo

  • Creating a link to text file in a tomcat server not working in JSP webapp

    I am using netbeans to create an web application within my desktop, and then I load the build/web folder to a tomcat server to test the application. Everything works fine. However, when I try to link up my JSP pages to text files (.txt) create by the application on the server, I seem to be getting files that might be kept in a terminal.
    When I get the Real path of the servlet context, I find that it is to a C:\ type file rather than a //hostname type of directory. So obviously those files are not being reached.
    Does anybody know how to deal this problem?

    There are a number of ways to get to the Flash Global Security settings dialog.
    My favourite way is just to double click on a Captivate SWF (not the HTM file) to open it in a web browser, then right click on the playing screen to get the Flash context menu.  On the context menu, click the Global Settings option.
    In the web page that opens, click the link on the left to Global Security Settings.
    Add the folder or drive location of your published Captivate content to the Trusted Locations.

  • I want to write in a XML file which is located on the TOMCAT server

    hello all,
    can anybody tell me or give me code snippet for writing some data through my application i.e from client side on te file which is located on the TOMCAT server(especially XML file).
    tell me how can i do that?
    it is urgent
    cya
    sush

    Hello sush,,,,
    I am sending you some API / classes that will definetely help you for writing XML file through java.
    1) TransformerFactory.newInstance();
    2)Transformer serializer
    3)StreamResult
    4)serializer.transform(source,result);
    5)DOMSource
    From Vikas_khengare
    [ [email protected] ]

  • Write Access to a file in Tomcat server via J2me Midlet

    How to make write access to a file using midlet and HTTP connection?
    I have text file in the Tomcat server and I am able to read it with HTTP connection using emulator, but don't have idea how to make write access to the file. I'd like to write some text to the file.

    Thanks, but could you be more accurate. What methods should I use in the servlet and what methods in the midlet?
    Some links which concern this subject, would be nice too. I have tried with google, no success.

  • Problem with Java Studio Creator and Tomcat Server

    Hi Gays ,
    I have problem:
    here is the error from tomcat 5
    com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: java.lang.RuntimeException: java.sql.SQLException: statement handle not executed: getMetaData
    com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.destroy(ViewHandlerImpl.java: 601)
    com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.ja va:316)
    com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87 )
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
    com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
    if i develop application on my pc ( java studio creator with sun apps bundlled) is working perfectly,
    but i migrated application to Tomcat Server ( Database the same - Oracle 10 g)
    i can't show value ( as text) from datasoruce ( is in SessionBean1)
    (Category-.>Subcat->Items->details( url from items table[items.jsp])
    this is a working url "/faces/testpage.jsp?auk_id=31 "
    ( working with sun apps server , but not on Tomcat 5)
    below prerender method in details.java and fragment of details.jsp
    public void prerender() {
    try {
    String idauk = (getExternalContext().getRequestParameterMap().get("auk_id").toString());
    System.out.println("wartosc auk_id " + idauk);
    if (idauk != null) {
    getSessionBean1().getDetailsRowSet().setObject(1,idauk);
    getSessionBean1().getDetailsDataProvider().refresh();
    details.jsp
    xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
    <ui:page binding="#{testpage.page1}" id="page1">
    <ui:html binding="#{testpage.html1}" id="html1">
    <ui:head binding="#{testpage.head1}" id="head1">
    <ui:link binding="#{testpage.link1}" id="link1" url="/resources/stylesheet.css"/>
    </ui:head>
    <ui:body binding="#{testpage.body1}" id="body1" style="-rave-layout: grid">
    <ui:form binding="#{testpage.form1}" id="form1">
    <ui:staticText binding="#{testpage.staticText1}" id="staticText1" style="position: absolute; left: 120px; top: 96px" text="#{SessionBean1.testDataProvider.value['Name']}"/>
    </ui:form>
    </ui:body>
    </ui:html>
    </ui:page>
    </f:view>
    </jsp:root>
    Help People ! Any Ideas I'm stuck, why is working with Sun Servet but not with Tomcat and only just thing ?
    Thanks in advance for helping me to resolve the night problem :)

    Hi I found solution, i puted on the page a table -component (with brand new automaticly created dataprovider) , then i set properties visible= false for table, and now I can bind statictext with database field and deploy on tomcat server .
    But i think it is not a elegant solution in page source i habe noused-code.
    Have Any another Ideas. HELP PEOPLE !!!!
    Mariuszek: I use Creator.because right now I can see result of my job and i can qickly change ideas ,
    I tried with JDeveleper but i did'nt find this functionality (wich version do you prefered ?) , unfortunately i have to deploy my application on Tomcat. This is my study project, and i make this to become a Master of Techinal Univeristy ;), Deadline time is 30 th September :(
    greetings

  • How can i avoid restarting tomcat server when servlet is modified?

    please advice me that how can i avoid restarting the tomcat server, whenever a servlet file is modified in my application. is their any way ?

    No probs. Here's how I do things...
    1. Install tomcat as normal (e.g. I install to C:\Apps\jakarta-tomcat-5.5.4)
    2. Create a webapps directory in your eclipse project with the following directory structure
    MyEclipseProject
       - src
       - conf
       - webapps
          - MyApplication
             - META-INF
             - WEB-INF
                - classes
                - lib
                - pages3. Set the project's output folder (e.g. bin folder) to webapps/MyApplication/WEB-INF/classes
    4. Put all your jar files in the lib directory
    5. Put JSPs / HTML in the pages directory (you may also want to create additional directories for TLDs, config files etc)
    6. Ensure your web.xml is in the WEB-INF directory
    7. Although it isn't essential I create a context.xml file and store it in META-INF, e.g.
    <Context reloadable="true">
        <!-- Default set of monitored resources -->
         <WatchedResource>WEB-INF/web.xml</WatchedResource>
         <WatchedResource>WEB-INF/conf/struts/struts-config.xml</WatchedResource>
         <WatchedResource>WEB-INF/conf/struts/tiles-defs.xml</WatchedResource>
         <WatchedResource>WEB-INF/conf/struts/validation.xml</WatchedResource>     
    </Context>I use this to set monitored resources that will trigger an automatic appliation reload and to configure JAAS (not shown). See the Tomcat documentation for additional information.
    8. In the 'conf' directory I create a server.xml file used to configure Tomcat (you can copy the one from your <TOMCAT_HOME>/conf/server.xml).
    After copying the file change appBase attribute in the host element to be the full path to the webapps directory. You can also change the HTTP and HTTPS ports if you wish
    9. Download and install the Tomcat Launcher plugin from Sysdeo.
    10. In Eclipse's Preferences menu you will see a new entry for Tomcat. Click this then
    a. Set your Tomcat Version
    b. Set your Tomcat Home
    c. Set "Context declaration mode" to server.xml
    d. Set the configuration file to the full path to your server.xml file created in step 8
    On the "Advanced " sub page select all relevant projects to add to the Tomcat classpath
    On the "JVM Settings" page add all the jars in your WEB-INF lib directory to the class path
    On the "Source Path" page select all relevant projects
    Now if you start Tomcat using the Tomcat icon, you will be able to remote debug your application. If you change web.xml (or any other file in your context.xml watched resources) it will automatically reload. Any changes to JSPs will automatically be picked up (providing your tell your browser not to use the page in cache - e.g. CTRL+F5 in IE)
    There are some limitations that I'm still working on however. Primarily that I haven't included the Tomcat Manager application in my webapps directory, so Sysdeo cannot perform a reload. This means that if I change a source file, and eclipse auotmatically rebuilds, Tomcat doesn't pick up the change unless I either change a watched resource file (e.g. web.xml) or stop and restart Tomcat.
    There's no reason why this can't be fixed, I just haven't got round to it yet.
    I'm sure there are lots of other (probably better) ways of achieving the same thing. This was the first method I tried and it worked, so I stuck with it. I'm not a Tomcat config guru and I'm sure other forum users could provide some improvements should they wish.
    Post if you get into trouble, however I won't be able to respond until next week.
    Cheers,
    Steve

  • Tomcat : Hlow to run more than 1 instance of tomcat server on same machine?

    Hi,
    How to run more than 1 instance of tomcat server on the same machine.
    I use tomcat 5.5. ,updated port number for second instance and tried to run,it takes the same old port number .No batch file available with this version to update the home directory to second instance to run the second server..
    How to work on clustering and load balancing on tomcat server?
    Any inputs?
    Thanks in advance..
    Ani

    Anitha123 wrote:
    We have only 1 dedicated server maintained by third party for hosting..
    If are only getting your site hosted, then, normally, the host would handle clustering (to your sepcifications, of course, but it is normally the hosts responsibility).
    If i need to implement clustering and load balancing for tomcat server then do we need to go for 2 different servers for production environment?
    Yes, you would need two, or more, servers.
    Also please guide me on how to implement clustering and load balancing for tomcat server by running 2 instances on 2 different machine? I'm a newbie to it..
    It should have no (or at least minimal) impact on the code (as long as you are using beans, sessions, and the other components properly). It is handled by the web container (by the tomcat in this case). The tomcat documentation should show how to set it up (if it supports it all, I don't know, we don't have Tomcat at work, and at home I use only a single).

  • How can I debug a tomcat server from JSC (ea2)

    I am attempting to use JSC (ea2) for my development but cannot get the enviroment right in SunAppServer8 for some "custom JNDI resources". Is there anyway I can get JSC to connect to a (running) tomcat server for debugging?

    Hi,
    Please post messages related to Creator 2 EA at the feedbacks programs portal. The URL is:
    https://feedbackprograms.sun.com/login.html
    Thanks,
    RK.

  • Getting error message in tomcat server

    Have a look at the following programs:
    AuthenticationFilter_
    import javax.servlet.*;
    import java.io.*;
    import java.sql.*;
    public class AuthenticationFilter implements Filter
         ServletContext sc;
         Connection con;
    public void init(FilterConfig f) throws ServletException
    System.out.println(f.getFilterName() + "Filter Initialized");
    String d = f.getInitParameter("driver");
    String url = f.getInitParameter("url");
    String user = f.getInitParameter("user");
    String pwd = f.getInitParameter("password");
    try
         Class.forName(d);
         con = DriverManager.getConnection(url,user,pwd);
         System.out.println("Connection Established");
    catch (Exception e)
         e.printStackTrace();
    sc = f.getServletContext();
    public void doFilter(ServletRequest request,ServletResponse response,FilterChain chain)throws ServletException,IOException
    Statement st = null;
    ResultSet rs = null;
    String user = request.getParameter("user");
    String pwd = request.getParameter("password");
    try
         st = con.createStatement();
         String sql = "SELECT * FROM OURUSERS WHERE usr = " + user + " and password = " + pwd + " ";
         rs = st.executeQuery(sql);
         if(rs.next())
              chain.doFilter(request,response);
         else
              sc.getRequestDispatcher("/error.html").forward(request,response);
    catch (Exception e)
         e.printStackTrace();
    finally
    try
         if(rs!=null)
              rs.close();
         if(st!=null)
              st.close();
    catch (Exception e)
         e.printStackTrace();
    }//doFilter()
    public void destroy()
    try
         if(con!=null)
              con.close();
    catch (Exception e)
         e.printStackTrace();
    *2)_HitCounterFilter__
    import javax.servlet.*;
    import java.io.*;
    public class HitCounterFilter implements Filter
         ServletContext sc;
         int count;
    public void init(FilterConfig f)throws ServletException
    System.out.println(f.getFilterName() + "Filter Initialized");
    sc = f.getServletContext();
    public void doFilter(ServletRequest request,ServletResponse response,FilterChain chain)throws ServletException,IOException
    chain.doFilter(request,response);
    count++;
    sc.log("Number of times request came to LoginServlet is " + count);
    public void destroy()
    *3) LoginServlet*
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class LoginServlet extends HttpServlet
         public void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOException
    response.setContentType("text/html");
    PrintWriter pw = response.getWriter();
    pw.println("<HTML> <BODY BGCOLOR=yellow>");
    pw.println("<H1> WELCOME TO OUR WEBSITE</H1>");
    pw.println("</BODY>");
    pw.println("</HTML>");
    pw.close();
    web.xml
    <web-app>
    <filter>
    <filter-name>authenticate</filter-name>
    <filter-class>AuthenticationFilter</filter-class>
    <init-param>
    <param-name>driver</param-name>
    <param-value>oracle.jdbc.driver.OracleDriver</param-value>
    </init-param>
    <init-param>
    <param-name>url</param-name>
    <param-value>jdbc:oracle:thin:@localhost:1521:orcl</param-value>
    </init-param>
    <init-param>
    <param-name>user</param-name>
    <param-value>scott</param-value>
    </init-param>
    <init-param>
    <param-name>password</param-name>
    <param-value>tiger</param-value>
    </init-param>
    </filter>
    <filter>
    <filter-name>hitcount</filter-name>
    <filter-class>HitCounterFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>authenticate</filter-name>
    <url-pattern>/nit</url-pattern>
    </filter-mapping>
    <servlet>
    <servlet-name>Login</servlet-name>
    <servlet-class>LoginServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Login</servlet-name>
    <url-pattern>/nit</url-pattern>
    </servlet-mapping>
    </web-app>
    Error_
    java.sql.SQLException: ORA-00904: "SANDY": invalid identifier
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:242)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:554)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1478)
    at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:
    677)
    at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.jav
    a:2371)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
    nt.java:2660)
    at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:
    777)
    at AuthenticationFilter.doFilter(AuthenticationFilter.java:37)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
    a:298)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    :857)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
    ss(Http11Protocol.java:588)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:48
    9)
    at java.lang.Thread.run(Thread.java:619)
    The above error message i am getting in Tomcat server,i am having Oracle 11g V1..My SQL prompt is open and i have a table named "ourusers"...Can anyone kindly gimme the solution for this problem+*
    Edited by: sandy on Nov 9, 2010 8:59 AM

    java.sql.SQLException: ORA-00904: "SANDY": invalid identifier
    Looks like the sql you are submitting is invalid.
    Print out a copy of the sql you are trying to run and you will probably get:
    SELECT * FROM OURUSERS WHERE usr = Sandy and password = secretThat isn't valid sql. It is missing quotes around the values you are checking.
    This is the corrected sql query:
    SELECT * FROM OURUSERS WHERE usr = 'Sandy' and password = 'secret'so one solution would be:
    String sql = "SELECT * FROM OURUSERS WHERE usr = '" + user + "' and password = '" + pwd + "' ";However that is not optimal. It exposes your code to sql injection attack.
    The better way is to use a prepared statement:
    String sql = "SELECT * FROM OURUSERS WHERE usr = ? and password =?";
    st = con.prepareStatement(sql);
    st.setString(1, user);
    st.setString(2, password);
    rs = st.executeQuery();cheers,
    evnafets

  • Tomcat server is not running automatically

    Hi BO experts,
    I have installed SAP Business Objects XI 3.1 in my system and noticed that Tomcat server is not running in Central Configuration Manager where the status is "Stopped". If I start manually also it's not starting (In properties, the startup type is - Automatic).
    So I went this path "E:\Program Files\Business Objects\Tomcat55\bin" and double clicked "startup.bat" then I am able to login into Infoview. Could please someone explain that is there any possible way to run Tomcat automatally so that i do not need to start up manually every time?
    Thanks in advance!!

    I'm assuming that whoever installed the Apex Listener installed it under the Apache Tomcat application server. This isn't officially supported by Oracle, but it does work. You start Tomcat by executing "startup.bat" in its bin directory on Windows or "startup.sh" on Linux or other Unix-like OSes. In Windows, it will keep running as long as the command window is open (but you can minimize it) or I believe there is a way to set it up as a service - I'm not a Windows guru. In *nix, you can add an ampersand to the command to keep it running in background, or set it up to run as a daemon.
    Altogether, you probably need someone to learn more about how to run Tomcat if the person who set it up for you is no longer available. There is plenty of information on-line - just use Google or Bing.

  • Reloading a new JSP/Jar in Tomcat Server

    HI,
    I face these problems now.
    My environment is Oracle Jdev 3.2.3 for JSP development. Tomcat4.0.1 as Application server plugged into IIS webserver and Using oracle 8i as the database
    1. Whenever I update my JSP's and Application jar files, I copy from staging area to the deployment Tomcat Server application specific directories. The files are getting copied(overwritten). After that when i try to access my context/application in Tomcat server, my browser simply tries to browse and doesn't bring up the homepage of my application(say index.jsp).
    I need to stop the tomcat server and restart again. Then I get it.
    Is there anyone who came across this error and possibly help me to solve this?
    2. I have a JSP (say emplist) which shows all the employees details with empno, ename, depyno and sal as 4 columns.
    I have a up and down arrow images near the column names. Upon clicking it, it will call the same page and sort the column either desc or asc based on the previous display order. The column on which the Arrow button displayed is stored in session variable.
    This sorting in JSP perfectly works in JDeveloper and when i run using WebToGo Server. But when i deployed in Tomcat,This sorting doesn't work.
    The page simply stands. and when i go back and front browsing my other pages of application, i lose the position of the arrow button and it behaves unexpectedly by showing up in some other columns.
    is there any reason for this kind of behaviour?
    3. In my JSP files, I log the user actions into a text file in the server. IN WTG, I am able to specify the path of the output directory.
    But in Tomcat Server, by default the output files are getting created in C:/Tomcat/bin directory.
    I donno how to set an output directory, where the files will be written to and set an input directory from where my custom application properties files will be read from.
    Can anyone help me in telling in which file and what attributes, i need to set the input and output directory path in Tomcat Server?
    Can someone help me in giving suggestions or solutions for the above problems?
    Thanks a lot in advance.
    Thanks
    Hari

    I added a Context Tag in server.xml file in the Host Tag
    <Context docBase="struts-blank">
    </Context>and so following comes up in the Server Console Window
    INFO: Starting service Catalina
    Feb 7, 2005 11:06:30 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.2
    Feb 7, 2005 11:06:30 PM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
            at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
    Caused by: java.lang.NullPointerException
            at java.util.Hashtable.put(Hashtable.java:396)
            at org.apache.catalina.core.StandardContext.resourcesStart(StandardConte
    xt.java:3707)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
    934)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
            at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
            at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:420
            at org.apache.catalina.core.StandardService.start(StandardService.java:4
    50)
            at org.apache.catalina.core.StandardServer.start(StandardServer.java:196
    7)
            at org.apache.catalina.startup.Catalina.start(Catalina.java:541)
            ... 6 moreThanks in advance
    CSJakharia

  • How to set tomcat server path in windows XP

    hi frnds,
    I am new to java technologies.I am trying to learn all alone Hw am wandering how to set class path of tomcat server in windows xp.
    it shud be in user varibles r system varibles
    Thanks everyone in advance,
    cheers........
    roopa

    What exactly are you trying to accomplish here?

  • Data adaptor deployment error in tomcat server

    Hi,
    I have created a data-plugin where i am calling Siebel On demand webservice and deployed in tomcat server ( apache-tomcat-6.0.26\webapps\web-determinations\WEB-INF\classes\plugins).I have put all the related jars in plugin folders.Now problem is when I am starting the tomcat server there in no error in console but if i see localhost.log file error is coming
    SEVERE: StandardWrapper.Throwable
    java.lang.NoClassDefFoundError: org/exolab/castor/mapping/xml/descriptors/BindXmlDescriptor
         at java.lang.Class.getEnclosingMethod0(Native Method)
         at java.lang.Class.getEnclosingMethodInfo(Class.java:929)
         at java.lang.Class.isLocalOrAnonymousClass(Class.java:1239)
         at java.lang.Class.getCanonicalName(Class.java:1167)
         at com.oracle.util.reflection.ClassWrapper.getCanonicalName(ClassWrapper.java:189)
         at com.oracle.util.discovery.LocalPluginFinder.findPluginInClass(LocalPluginFinder.java:279)
         at com.oracle.util.discovery.LocalPluginFinder.findPluginsInURLTarget(LocalPluginFinder.java:251)
         at com.oracle.util.discovery.LocalPluginFinder.findPlugins(LocalPluginFinder.java:162)
         at com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.init(WebDeterminationsServletContext.java:154)
         at com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.<init>(WebDeterminationsServletContext.java:91)
         at com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.init(WebDeterminationsServlet.java:51)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
         at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    I have put the castor-1.3.1.jar file in plugin folder .Then also same error.I can see the BindXmlDescripto.class file in the jar.
    what could be the reason.

    You need to put any associated jar files in the WEB-INF/lib directory. That should fix your problem.
    The Developers Guide section on "Create a Plugin" describes what goes in the WEB-INF/classes/plugins and what goes in WEB-INF/lib
    Cheers
    Frank
    Edited by: frank.hampshire on Jun 15, 2010 10:55 AM

  • Whenever I start the tomcat server, Im getting an error in netbeans?

    Whenever I start the tomcat server, Im getting an error in netbeans?
    Starting of Tomcat failed. '127.0.0.1' is not recognized as an internal or external command, operable program or batch file.
    Even I set the path & catalina_home in Environment variables. I start the startup.bat file and catalina.bat file also.
    I'm waiting for your quick response.

    Hi Ershad,
    I think this issue is more related to Apache Tomacat, I would suggest you ask in Apache Tomcat forum for a better support, it is appropriate and more experts will assist you.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Personal Hotspot doesn't work correctly

    After upgrading my iPhone 4 and iPad 2 (Wi-Fi only) to iOS 5, the Personal Hotspot doesn't work the same way as it was in iOS 4. In iOS 4, I had the Personal Hotspot always turned on on iPhone and whenever I took the iPad and wanted to connect to int

  • Currency as key field

    Hi All, I wanted to know if a unit(currency in my case) is treated as key field in an ODS although it is not explicitly declared in key field area and is placed in data field. Suppose for the same key field in ODS I have a key figure which has 300 Do

  • TextFields in Custom Class

    I trying to create a TextField in a Actionscript file, But when I try to create an instance of the class in flash no textfield is appearing. Am I doing this correct? package parts{      import flash.text.TextField;      import flash.text.TextFormat;

  • Line in, line out, line this, line that... all confused!!!

    I am a new mac user and am trying to record a basic guitar track. For now, I am just using a 1/4 inch jack with an 1/8 adapter which is plugged into the line in. Now, I have put the line in option in system preference and have put the line in option

  • Measure waveform rise time with IVI step

    I'm trying to simulate measurement of wafeform rise time through IVI step TS 4. How should I  feed the Scope IVI step with waveform and then get the calculated rise time in simulation mode(I do not have the Scope yet. Thank you. Elik