Still problem in TOMCAT(server.xml)

hiiiiiii
I tried all suggestion......At end, now when I execute %startTomcat% from DOS prompt......DOS windows opens and closes...... Somebody told me that it was error in my server.xml file in conf......
PLZ tell me how alter this file or add new stuff.....

Hi Amar,
It was me who suggested the following steps
Follow these steps:
Download Java SDK 1.3 or 1.4
Download tomcat 4.x or 5.x
set the following variables from dos prompt
set JAVA_HOME = path to your java sdk folder
set CATALINA_HOME = path to tomcat folder
set startTomcat = %CATALINA_HOME%\bin\startup
set stopTomcat =%CATALINA_HOME%\bin\shutdown
now at dos prompt
type %startTomcat% , it should opena nother window which displays the status of tomcat server.
In the browser type http://localhost:8080/ (for tomcat 4.x) or http://localhost:8084 (for tomcat5.x) it should open up the index page of the server.
at your post http://forum.java.sun.com/thread.jsp?forum=33&thread=542123
First I suggest thta you donot repost same question, it wont help and next be clear what is the problem if possible post the error that might to provide you the solution.

Similar Messages

  • Problem running Tomcat server

    Specifications :
    Tomcat server : 5.5
    OS : windows XP
    Installed - configured - started service.
    Port set to 8443 in server.xml file as 80 and 8080 is engaged.
    Icon at the tool bar says the server is started.
    Opened browser, http://localhost:8443
    Message :
    HTTP Status 404 - /
    type Status report
    message /
    description The requested resource (/) is not available.
    Apache Tomcat/5.5.4
    Log file stdout.log says :
    Dec 14, 2004 2:47:49 PM org.apache.catalina.startup.ContextConfig processDefaultWebConfig
    SEVERE: Occurred at line 319 column 23
    Dec 14, 2004 2:47:49 PM org.apache.catalina.startup.ContextConfig start
    SEVERE: Marking this application unavailable due to previous error(s)
    Dec 14, 2004 2:47:49 PM org.apache.catalina.core.StandardContext start
    SEVERE: Error getConfigured
    Dec 14, 2004 2:47:49 PM org.apache.catalina.core.StandardContext start
    SEVERE: Context startup failed due to previous errors
    Dec 14, 2004 2:47:49 PM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8443
    Dec 14, 2004 2:47:49 PM org.apache.jk.common.ChannelSocket init
    INFO: JK2: ajp13 listening on /0.0.0.0:8009
    Dec 14, 2004 2:47:49 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/47 config=null
    Dec 14, 2004 2:47:49 PM org.apache
    INFO: Server startup in 2203 ms
    Please let me know where is the problem ??
    Thanks. Lax.

    Tomcat is telling you there is no context configured to be available from "/". Normally, this would be the default tomcat ROOT webapplication but you somehow managed to remove it (this is not a problem really, in a production environment you don't want it). If you want a context to be available on '/', you need to mount one there. So either install a webapp in the webapps/ROOT folder, or set one manually to '/' in the server.xml file. Check the tomcat docs on how to do this. Here is an example:
    <Host name="localhost">
            <Context path="/" docBase="/usr/local/mywebapp" privileged="true" debug="0">
               <Resources className="org.apache.naming.resources.FileDirContext" allowLinking="true" docBase="" />
              </Context>
    </Host>
    Good luck!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Problem with Tomcat server

    Hi,
    I'm just writing to inform you about a problem with the Oracle 9i database I found out.
    I have downloaded and installed the release 2 enterprise/standard/personal edition for Windows NT/2000/XP.
    After doing that I could not start my Tomcat server any more. Although I have tested the situation with many different releases of the Apache Tomcat server it did not work.
    Then I've deleted the Oracle database and just installed the client release. And now it works!
    I'd be grateful if one of you could tell me what's the problem and how I can solve it.
    Thanks for your help.
    Best regards,
    Steffi

    the localhost.log file shows
    02-Jun-2008 13:57:36 org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: contextInitialized()
    02-Jun-2008 13:57:36 org.apache.catalina.core.ApplicationContext log
    INFO: SessionListener: contextInitialized()
    02-Jun-2008 13:58:23 org.apache.catalina.core.ApplicationContext log
    INFO: SessionListener: contextDestroyed()
    02-Jun-2008 13:58:23 org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: contextDestroyed()
    and the catalina.log file shows..
    02-Jun-2008 13:58:24 org.apache.coyote.http11.Http11Protocol destroy
    INFO: Stopping Coyote HTTP/1.1 on http-8080
    i couldnot understand anything..how to rectify that..
    thanks in advance

  • Quession at tomcat server xml

    Hi all,
    I using form authentican in tomcat, it has some setting on server xml, I have two questions, hope can get help from someone
    1) <Realm  className="org.apache.catalina.realm.JDBCRealm" debug="99"
                 driverName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
              connectionURL="jdbc:microsoft:sqlserver://localhost:3333"
             connectionName="test" connectionPassword="1234"
                  userTable="users" userNameCol="Name" userCredCol="Password"
              userRoleTable="user_roles" roleNameCol="role_name" />if at backbone I have more then one database , and have different user and password . what should I set in here ?
    2) if I want to encrypted password(eg.MD5) , how can I do it
    Thank you !!

    if at backbone I have more then one database , and
    have different user and password . what should I
    set in here ?You cannot do it. And even if you could,
    1. how would you tell the container which realm to use ?
    2. and assuming you could do #1 above, how would you determine the realm that has the authentication info.
    Note: Though1 & 2 may sound alike, there's a subtle difference. #2 speaks about determining the realm and #1 about conveying the same to the container.
    2) if I want to encrypted password(eg.MD5) , how can
    I do ithttp://jakarta.apache.org/tomcat/tomcat-5.5-doc/realm-howto.html#Digested%20Passwords
    ram.

  • How to solve Ajax problem in Tomcat server

    we are using Tomcat 5.0.27 server and my sql server. we using AJAX Techniques in my projects. but its some times working fine but sometimes not working the code sample is given by
    var req;
    var names;
    function initRequest(url) {
    if (window.XMLHttpRequest)
         req = new XMLHttpRequest();
    else if (window.ActiveXObject)
    isIE = true;
    req = new ActiveXObject("Microsoft.XMLHTTP");
    if (req==null)
              alert("Your browser does not support XMLHTTP.")
    function loadPurchase(startLetter)
         var mon=document.getElementById('month').value;
    var yea=document.getElementById('year').value;
    var url = "../inventory?actionS=INVPurchase&month="+escape(mon)+"&year="+escape(yea)+"&id="+escape(startLetter);;
         initRequest(url);
         req.onreadystatechange = PurchaseRequest;
         req.open("GET", url, true);
         req.send(null);
    function PurchaseRequest() {
              0 (Uninitialized) The object has been created, but not initialized (the open method has not been called).
              1 (Open) The object has been created, but the send method has not been called.
              2 (Sent) The send method has been called, but the status and headers are not yet available.
              3 (Receiving) Some data has been received.
              4 (Loaded) All the data has been received, and is available
    alert(re.readyState)
         if(req.readyState == 4)
    alert("Inside Ready State");
    document.getElementById('Edit').disabled=true;
    document.getElementById('Delete').disabled=true;
    if (req.status == 200)
    PurchaseMessages();
         else
              alert("Problem retrieving XML data")
    function PurchaseMessages()
    var batchs = req.responseXML.getElementsByTagName("purchases")[0];
    var str="";
    for(loop = 0; loop < batchs.childNodes.length; loop++)
    var batch = batchs.childNodes[loop];
    var Refid = batch.getElementsByTagName("Refid")[0];
    str = str +Refid .childNodes[0].nodeValue;
    var tb=document.getElementById('PurchaseTable');
    tb.innerHTML=str ;
    the alert coding( req.readyState) is always 1
    how to solve for that
    please any one help me

    Sorry, I've never done this. I went to the Tomcat site and pulled down the CGI docs, which you might have seen:
    http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cgi-howto.html
    No other help available from me. Sorry.

  • Still problems with "unknown server error"

    I followed the solutions in document (linked posted by Ken G Rice on 23/07/13) but am still getting "unknown server error" when attempting to sign in to Creative Cloud from my desktop. I'm using Mac OS 10.8.4. Would that cause a problem?

    I spoke with Gold Support. One assumption after the conversation is that ConCast(Comcast) is throttling me. The upload times out. It does end up correct on my iPad in Adobe Content Viewer and I have since sent this issue to the App store and all is well. Even with these update issues happening the whole time.
    I cut larger stories in to smaller chuncks for tests. They worked in pieces but then a certain section would not after it worked earlier. I've had smaller stories work fine for a couple of updates then all of a sudden would not. Then they would work gain on the 3rd retry.
    Add any video of any size and I can count on the error message.
    They content is making it to your servers but I'm getting error messages but when I get the error message it is usually right at the spot you see above in my attached image.
    I need to talk with Comcast and see what they have to say and take it from that point. I need to get this figured out. I burned too much time dealing with it.
    Thanks,
    Ron
    Fly & Light Tackle Angler

  • Problems with Tomcat Server : Does not respond (Sometimes) - Plz Need Help

    I have a web application running on Tomcat 4.1.31. (SUN/Solaris)
    Clients access through iPlanet Web Proxy (SUN/Solaris).
    Theres a class that build a generic form (it return html codes) then it's affected in the JSP page :
    MyClass class = new MyClass();
    <%= class.getHtmlCode() %>
    the size of the form is variable (100Ko to 1,5Mo)
    When i m using the proxy, sometimes the server does not respond when he do the affectation <%= class.getHtmlCode() %>.
    If i call the page without proxy it work.
    The problem seem not depending of the size of the form. Without proxy it always work. And with proxy sometimes the server does not work.
    Please need help

    Originally Posted by scum
    Hey All,
    Need some help with ZDM7 PXE preboot services.
    Currently running a netware 6.5 server in VLAN1
    PXE client sitting in VLAN2.
    DHCP Server is running on VLAN3
    IPHelper is running
    DTS.ini, PDHCP.ini and TFTP.ini are unmodified.
    I have had networks put an IPHelper in place and my client successfully picks up an IP address. The screen displays the "BOOT SERVER IP" correctly and the clients IP details are correct.
    I watch the top of the screen where the Timeout counts down and eventually gives this error.
    "Error: The server did not respond as requested in time
    ZENworks shutting down...
    Press any key to continue..."
    This happens on every machine i have tested. If i hold down the Ctrl+Alt keys, then the imaging menu appears, i can select maintenance and the client will pull down the initrd, etc.. fine.
    if i disable the IPHelper, move the client to the same VLAN as the server, then the whole process works perfectly.
    not sure where to go from here.
    help please ;)
    leon
    Hi Leon,
    If you are getting the ZENworks menu when holding down the Ctrl-Alt keys, PXE/PDHCP seems to be doing the right thing. Routing issues also don't seem the case as you can pull down the first PXE boot files....
    The server running PXE, I assume it also runs the TFTP and Imaging services?
    These services are also running a recent version of Zen 7 (IR3/IR4)? A little more info on these components and what server they are on would be good :)
    Cheers,
    Willem

  • Error while passing keystorePass value in tomcat server.xml

    Hi,
    I have created keystore in jdk 1.5.0_17 by the following commands::::
    keytool -genkey -alias tomcat -keyalg RSA
    But when i am trying to see the keytool list it is showing
    Key store type: gkr
    Key store provider: GNU-CRYPTO
    And when i pass keystorePass in tomcat for ssl connection, I am not able to access https. Its showing error as invalid .keystore format.
    Kindly help me out in this regard.

    My java_home is set to the path where i have installed sun jdk.Irrelevant. What does java -version print out. What does keytool -J-version print out?
    I do not understand how r u saying that i am still using gnu java?BECAUSE IT PRINTED GNU-CRYPTO.
    Can you please tell how to know where gnu java is installedI have no idea, but everybody else I've given this advice to has managed to figure it out.

  • Problem in installation tomcat server 4.1

    Hi everybody,
    I am not sure if i have entered the correct forum for highlighting problems of Tomcat server 4.1, but anyway I need an answer.
    My system is running on win 98.
    I downloaded the zip version from apache.org and created the java_home and catalina_home path in the autoexec.bat.
    When I am running the startup.bat file, it gives me some output in one window like :
         using catalina_base=d:\apache\tomcat
         using catalina_home=d:\apache\tomcat
         using catalina_tmpdir=d:\apache\tomcat\temp
         using java_home=c:\jdk1.2
    The name of this window is Finished-startup.
    After running this bat another window gets fired, with the heading as java, and this window vanishes immediately. I need some ideas as to what should be done.
    Just to remind, I have jdk1.2 on my system. Do I have to upgrade to jdk 1.4. Does Tomcat 4.1 need the latest version of jdk.
    Thanks n regards,
    Sajiv, Chennai, India.

    hi,
    set java_home to java_home=c:\jdk1.2\ .I had this problem with windows XP, the window loads and vanishes. the '\' has set my problem. you can try.
    anu

  • Directory problem with tomcat

    Hi, i face a problem when trying to deploy my apps in tomcat4. Because my URL that point to my servlet is very long e.g.:
    http://222.222.222.222/abc/def/ghi/jkl/myServlet
    because of some constraint i need to put the myServlet in /jkl folder instead of /abc folder under webapps..... but in tomcat server.xml and web.xml for the apps i can't find the correct tag to set so that this is enabled..... is there any method to configure this??
    Thanx in advance for the help. :)

    http://222.222.222.222/abc/def/ghi/jkl/myServlet
    because of some constraint i need to put the
    myServlet in /jkl folder instead of /abc folder underI don't understand what kinda constraint would make someone tie to a long URL? Okay if abc is the web-app root directory, then you could place the servlet in the def.ghi.jkl package and configure the web.xml accordingly.
    ***Annie***

  • Web.xml file problem in tomcat

    Hi i need help in this... its urgent
    currently i just subscribe to a web hosting site and i need to start the private tomcat in the web server..
    The followings are the instructions and i have follow them but i do not know how to create a web.xml file to store in the folder indicated for example a HelloServlet that im testing :
    To setup servlet, you need to configure servlet into the file web.xml which needs to be placed in /var/www/html/WEB-INF directory.
    www root directory or webapps:/var/www/htm
    Classes directory located in: /var/www/html/WEB-INF/Classes/
    There you will need to upload your Java class file.
    Our default url-mapping for servlet is: /servlet/*
    To check servlet in your browser: www.mydomain.net/servlet/HelloWorld
    Jsp Files - Upload anywhere in /var/www/html
    all the above steps are follow except the web.xml file which i suppose to write and store in the folder... but i actually try to write one but i still cannot load my servlet on the webpage... test on standalone tomcat works.
    pls help its urgent!!!

    first sorry about cross posting the subject. i didnt know i am not suppose to do that. i post in a few forums that are related to my topic. sorry
    The tomcat on the web server is of version Private J2EE / Tomcat 4.1.29 and the standalone tomcat i am using is also tomcat 4.1
    the web.xml in my standalone server in root/web-inf/ is as follows and it is configure for authentication purposes. It works together with the tomcat-users.xml located on conf directory
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
    <web-app>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>
    Restricted Area
    </web-resource-name>
    <url-pattern>/secure/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>manager</role-name>
    <role-name>tomcat</role-name>
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>FORM</auth-method>
    <form-login-config>
    <form-login-page>/Login.html</form-login-page>
    <form-error-page>/Error.html</form-error-page>
    </form-login-config>
    </login-config>
         <security-role>
         <description>The Secure ROLE</description>
         <role-name>manager</role-name>
              <role-name>tomcat</role-name>
         </security-role>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>
    Restricted Area
    </web-resource-name>
    <url-pattern>/Customer/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>customer</role-name>
    <role-name>tomcat</role-name>
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>FORM</auth-method>
    <form-login-config>
    <form-login-page>/Login.html</form-login-page>
    <form-error-page>/Error.html</form-error-page>
    </form-login-config>
    </login-config>
         <security-role>
         <description>The Secure ROLE</description>
         <role-name>customer</role-name>
              <role-name>tomcat</role-name>
         </security-role>
    </web-app>
    using this web.xml, my stanalone web pages works fine for all servlets and jsp. however if i copy this over to the web server, i still cannot load my servlets and jsp. moreover it doesnt work for authentication purpose anymore. i don't know why too
    i have try the codes you write before and it also doesnt work
    the problem is i cannot get the support form the web hosting site. This is the link that suppose to teach me but it doesn not tell me how to configure my web.xml
    https://www.eroute.net/JSPSupport.htm

  • SERVER.XML re-write problem when changing HTTP to HTTPS

    Hello,
    I am using SUN ONE App server and had a problem with turning SSL on in order to use HTTPS.
    What I did was that in GUI I selected a http listener under my instance and checked SSL/TLS Settings. I clicked Apply Changes button and I got a message saying that there wa a problem with XML-DOM. I checked my server.xml and found that its size was 0. It seems that it stopped re-writing it when it met the problem.
    An interesting thing is that when I created an additional http listener with SSL at a different port, there was no problem.
    It seems that the problem occurs only when I tried to change HTTP to HTTPS.
    Is there anyone who can tell me why this happens?
    I will appreciate any answers or comments.
    Thanks

    Hi,
    Is your Implementation Class is still the same (as the old one), when you changed the pre-fix.
    Just double click on the Implementation class and check whether the methods are still implemented or not.
    Thanks, Advay

  • 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

  • Problem while starting Apache Tomcat Server (Ports already in use)...

    Hi,
    I am using an Eclipse IDE for web service Client creation.. Also I have used Apache Tomcat5.5 Server inorder to run the application*...*
    While starting Tomcat Server, I am getting an error that the port numbers are already in use.
    So, I have changed the port numbers in the Server.xml file.
    But, still it is throwing the same error , even though the port numbers are not in use.
    Can any one please provide some suitable solution for this ASAP....
    I need very urgent and so please provide some solution..
    Thanks in Advance,
    roopa

    Hey...
    Did u start restarting your machine after you changed the ports..
    Is your tomcat server running perfectly after you changed the port number...
    I had a similar prob.. But i jus reinstalled both and gave different port numbers while re-installling.
    Jus give it it a try.. The ports need to be refreshed.. So try rebooting yr machine first !
    All the best !

  • Problem connecting oracle database to jsp pages using Apache Tomcat server 8.0

    Well...I tried too many things..googled so many times..but still could not find solution to my problem.
    I use windows 8 Enterprise Edition(if this has to do something with the problem)
    Oracle 11.2.0
    Apache Tomcat server 8.0
    JDK 1.7
    My oracle is installed in the D: drive and tomcat in c:. i copied the ojdbc6.jar file from oracle to lib directory of tomcat server.
    Then i set  CLASSPATH in environment variables as "C:\Program Files\Apache Software Foundation\Tomcat 8.0\lib\ojdbc6.jar" in system variables
    My path variable is set as "C:\Program Files\Java\jdk1.7.0_02\bin".
    My program is as follows in notepad:
    <%@ page import="java.sql.*" %>
    <html>
    <body>
    <%
    Connection conn;
    Statement st;
    ResultSet rs;
    try{
    new oracle.jdbc.driver.OracleDriver();
    String dbURL="jdbc:odbc:oracle:thin:@localhost:1521:XE";
    String userId="system";
    String pwd="moon";
    conn=DriverManager.getConnection(dbURL,userId,pwd);
    st=conn.createStatement();
    rs= st.executeQuery("SELECT * FROM login");
    while(rs.next())
    System.out.println(rs.getString(1)+""+rs.getString(2));
    catch(Exception e){}
    %>
    </body>
    </html>
    I get too many errors then
    eroors
    org.apache.jasper.JasperException: An exception occurred processing JSP page /page2.jsp at line 14
    11: String userId="system";
    12: String pwd="moon";
    13:
    14: conn=DriverManager.getConnection(dbURL,userId,pwd);
    15: st=conn.createStatement();
    16:
    17: rs= st.executeQuery("SELECT * FROM login");
    Stacktrace:
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    root cause
    javax.servlet.ServletException: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:905)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:834)
         org.apache.jsp.page2_jsp._jspService(page2_jsp.java:102)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:403)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
         org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    Nothing solved this problem.

    >> Nothing solved this problem.
    Can't fix a problem 'till an actual problem is identified.
    >> ODBC Driver Manager ... Data source name not found
    That appears to be ODBC drivers looking for a DSN (Data Set Name). If it wants a DSN, the DSN has to be specified in the code, and the DSN has to be configured in the windows host ODBC applet. So that is at least two squirrels to get in the right tree before moving forward. A ...host:...[port:]SID|service name are some of the bits needed in a jdbc connect string, and that is in no way related to DSNs. A Whole Different Animal. If it wants a DSN that might be what needs to go in the URL bit.
    And ODBC setups can be confusing, especially if an x64 OS is in the mix- if that is the case there are two different ODBC configuration applets, one for x64 the other for x86, and if one gets as far as talking to an actual database it might toss an architecture error. Only way to fix that "problem" is *delete* the ODBC DSN and then run the correct (maybe the x86) ODBC config utility, and set up the DSN. Again.

Maybe you are looking for

  • How to delete the photos in network folder while deleting photos in iPhoto?

    Hi, How to delete the photos in network folder while deleting photos in iPhoto? I have emptied the iPhoto Trash but the photos in network folder are still not deleted. In iPhoto Preferences, Advance, Importing, I have UNCHECKED "Copy Items to iPhoto

  • Getting the file at runtime in package interfaces

    Hello Friends, ORACLE ODI 11G. I have a package where in which I am having multiple interfaces. The purpose of this package is to load the Text file to Oracle DB ( 11g ) . All the interfaces will be processing the same text file - I have a project va

  • Can't locate custom Graphic Styles

    I created and saved some custom Graphic Styles in Illustrator CS4. When I follow the path of the default save location (Apps>Illustrator>Presets>en_US>Graphic Styles) they are not there. I have used Spotlight to search my machine for the files, but i

  • Difference between business blueprint and functional spec

    hello can somebody please tell me the difference between business blueprint and functional spec and how they are interrelated Thanks

  • Emails are not compressing

    I experience a problem with the emails, I am using BIS on a BB curve, carrier: vodafone romania. sent emails are not compressing, so that an email without attachments has 4 kb  - as much as an computer sent email. when I attach a picture or two the e