Tomcat server administration and jsp

hai,
1)what is the default username and pwd of the tomcat server administration page
2)How can i set the virtual path in Tomcat server
3)where i have to save java files
3)Where i have to store all my .jsp,.html files.
4)how to call these .jsp files from the browser.
5)how can i call my java files in my jsp pages.
Thanks

in the following site you can get good idea about tomcat and configuration.
http://www.archive.coreservlets.com/
Please look at Chapter 1 and click on
installation and configuration information link

Similar Messages

  • PeopleSoft Server Administration and Installation Rel 8.48 Training Batch

    <strong>PeopleSoft Server Administration and Installation Rel 8.48 </strong>training batch is starting from 10 November 2008 at ERP Guru.
    <p>
    ERP Guru is India's only Oracle Approved Education Center for PeopleSoft and JD Edwards training.
    </p>
    For more information visit http://www.erpguru.net/peoplesoft-class-schedule.html
    Edited by: user10434723 on Oct 20, 2008 10:43 PM

    Well after creating the sys database with the wizzard (with a swaplanguage to DUTCH) i ran:
    rel849n.sql
    copied from file project: PPTLS84CUR
    opend config mgr and changed display in DUTCH (+ install workstationclient)
    copied from file project: PPTLS84CURML Dutch only
    copied from file project: PPTLS84CURDEL
    run datamover PTPATCH.dms (since we also unzipped/installed patch 8.49.18)
    copied from fileproject: PTPATCH848 (english and common)(since we also unzipped/installed patch 8.49.18)
    copied from file project: PTPATCH848ML (dutch)(since we also unzipped/installed patch 8.49.18)
    run datamover msgtlsupg.dms (bootstrap mode)(since we also unzipped/installed patch 8.49.18)
    run datamover msgtlsdutupg.dms (bootstrap mode)(since we also unzipped/installed patch 8.49.18)
    Build PPLTLS84CUR (with specified settings)
    Run pt849tls.dms
    Run PSLANGUAGES.DMS
    Run tlsupgnoncomp.dms
    update PSLANGUAGES SET INSTALLED = 1 WHERE LANGUAGE_CD = 'DUT'
    run PT849TLSDUT (no bootstrap but as OPRID PS)
    then I run into cannot insert duplicate key errors
    I added to PT849TLSDUT the following delete statements
    XX start addingXXX
    DELETE FROM PSFILEDEFN WHERE FILEID IN (SELECT XLIFF_FILEID FROM PSXPTMPLTRINFO WHERE TMPLLANGCD = 'DUT' AND TMPLDEFN_ID='STDHEADER');
    DELETE FROM PSFILEDATA WHERE FILEID IN (SELECT XLIFF_FILEID FROM PSXPTMPLTRINFO WHERE TMPLLANGCD = 'DUT' AND TMPLDEFN_ID='STDHEADER');
    DELETE FROM PSXPTMPLTRINFO WHERE TMPLLANGCD = 'DUT' AND TMPLDEFN_ID='STDHEADER';
    DELETE PSFILEDATA WHERE FILEID IN (SELECT FILEID FROM PSFILEDEFN WHERE UPPER(USERFILENAME) LIKE 'HEADER_STD_LOWER_DUT.XLF%');
    DELETE FROM PSFILEDEFN WHERE UPPER(USERFILENAME) LIKE 'HEADER_STD_LOWER_DUT.XLF%';
    XXX end addingXXX
    run PT849TLSDUT again and it ran without errors,
    I continued...
    but both msgtleng.dms and ptstreng.dms run into several cannot insert duplicate key errors.
    This is where I got stuck.
    Is it because of the swap language?
    Or did I miss something else.
    Hope you respond as soon as this afternoon.
    Cheers Detlev

  • Sql server 2005 and jsp connectivity

    hello everyone....am new to JSP...:-)
    i use apache tomcat server 4.1.37,SQL SERVER 2005(Studio express),dreamweaver cs3..
    this is my first page...
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <form id="form1" name="form1" method="post" action="new2.jsp">
    <label>
    Username
    <input type="text" name="text1" id="text1" />
    </label>
    <p>
    <label>
    Password
    <input type="text" name="text2" id="text2" />
    </label>
    </p>
    <p>
    <label>
    <input type="submit" name="button1" id="button1" value="Submit" />
    </label>
    </p>
    </form>
    </body>
    </html>
    this runs fine..coz there are only HTML codes...now the problem part...
    <%@page contentType="text/html" import="com.microsoft.sqlserver.jdbc.*, java.sql.*"%>
    <%@page pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <h1>JSP Page</h1>
    <% String user = request.getParameter("text1");
    String pass = request.getParameter("text2");
    Connection con = null;
    try {
    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    con = DriverManager.getConnection("jdbc:sqlserver://localhost:1433;databaseName=webpage;user=Administrator");
    Statement stat=con.createStatement();
         ResultSet res =stat.executeQuery("select * from login");
    boolean l = false;
         while(res.next())
              if (user.equals(res.getString(2)) && pass.equals(res.getString(3)))
    l = true;
    if (l)
    out.println("<p>Welcome " + user + "</p>");
    else
    out.println("<p>Login Failed</p>" );
    con.close();
    } catch (ClassNotFoundException ex) {
    System.out.println("Exception: " + ex);
    catch (SQLException ex) {
    //Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
    System.out.println("Exception: " + ex);
    %>
    </body>
    </html>
    when i run this in the browser...i get JSP Pages displayed(but not the welcome...or login failed..)..which is under the html tag...
    but the tomcat server gives an error:
    Exception:com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has failed.java.net.ConnectException:connection refused.connect.
    Some of my questions...
    1)apache tomcat runs on port :8080 and in this code i use port :1433.Does this not have any bearing?
    when i change 1433 to 8080..it gives TDS prelogin response is incomplete.target server must be sql server 2000 or later.
    2)i use user=Administrator but when i go to Sql server management studio->object explorer->right-click->view connection properties..it gives user name as NEW-D348F33DAD2\Administrator...but if I use this it gives an error pointing to the forward slash(\).So what should be used?
    P.S. i have installed the jdbc driver and the database "webpage" has been created!

    anand_chhetri wrote:
    hello everyone....am new to JSP...:-)
    i use apache tomcat server 4.1.37,SQL SERVER 2005(Studio express),dreamweaver cs3..Tomcat is up to version 6; why are you using such an old one?
    Dreamweaver is irrelevant.
    Which JDK?
    >
    this is my first page...
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <form id="form1" name="form1" method="post" action="new2.jsp">
    <label>
    Username
    <input type="text" name="text1" id="text1" />
    </label>
    <p>
    <label>
    Password
    <input type="text" name="text2" id="text2" />
    </label>
    </p>
    <p>
    <label>
    <input type="submit" name="button1" id="button1" value="Submit" />
    </label>
    </p>
    </form>
    </body>
    </html>
    this runs fine..coz there are only HTML codes...now the problem part...OK.
    You don't need to import the Microsoft SQL server JDBC.
    <%@page contentType="text/html" import="com.microsoft.sqlserver.jdbc.*, java.sql.*"%>
    <%@page pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <h1>JSP Page</h1>Where do you think these come from? This page must be your "new2.jsp"
    <% String user = request.getParameter("text1");
    String pass = request.getParameter("text2");
    Connection con = null;
    try {
    Since you didn't get a ClassNotFoundException here, I'll assume that you got the JAR into the CLASSPATH.
    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");Your app logs in as admin? With no password? Very bad.
    con = DriverManager.getConnection("jdbc:sqlserver://localhost:1433;databaseName=webpage;user=Administrator");
    Statement stat=con.createStatement();
         ResultSet res =stat.executeQuery("select * from login");
    boolean l = false;
         while(res.next())
              if (user.equals(res.getString(2)) && pass.equals(res.getString(3)))
    l = true;
    if (l)
    out.println("<p>Welcome " + user + "</p>");
    else
    out.println("<p>Login Failed</p>" );
    con.close();
    } catch (ClassNotFoundException ex) {
    System.out.println("Exception: " + ex);
    catch (SQLException ex) {
    //Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
    System.out.println("Exception: " + ex);
    %>
    </body>
    </html>
    when i run this in the browser...i get JSP Pages displayed(but not the welcome...or login failed..)..which is under the html tag...
    but the tomcat server gives an error:
    Exception:com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has failed.java.net.ConnectException:connection refused.connect.Bad connection URL. Can you write a simple class that connects without Tomcat, one that you can run on the command line?
    Some of my questions...
    1)apache tomcat runs on port :8080 and in this code i use port :1433.Does this not have any bearing?No.
    when i change 1433 to 8080..it gives TDS prelogin response is incomplete.target server must be sql server 2000 or later.No - Tomcat listens on 8080, SQL Server listens on 1433. You need both.
    2)i use user=Administrator but when i go to Sql server management studio->object explorer->right-click->view connection properties..it gives user name as NEW-D348F33DAD2\Administrator...but if I use this it gives an error pointing to the forward slash(\).So what should be used?Look at the driver docs to see how to add a password.
    P.S. i have installed the jdbc driver and the database "webpage" has been created!What does "installed" mean? The JARs should be in Tomcat's common/lib directory.
    %

  • Install Jakarta-tomcat for JavaBeam and JSP

    Hi folks,
    I would like to setup Jakarta-tomcat so I can start learning JavaBeam and JSP programming, how do I setup it up, and where can I download Jakarta-tomcat? Do I have to purchase it or is licensing required?
    THank you.

    however, i'm thinking that javabeam's must still be in some early stage of a jsr committee, and the documentation is sparse.

  • Restarting of tomcat server while using jsp

    hi,
    Iam using a jsp page on tomcat server. It actually sends message to a phone, after that it comes back to the same jsp using the same url.
    But after it comes back, the jsp is not working properly. I have to restart tomcat server each time for it to work.
    As iam redirecting it back to the same jsp , i expect it to work properly as nothing is being changed. Its not practical to restart the server each time.
    Can anyone help me with this?
    Thanks in advance
    san

    Hi,
    Iam getting error at this particular point in the code
    DirContext ctx = new InitialDirContext(env);
    The function contains the following code
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,
    "com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.PROVIDER_URL,
    "ldap://" + ldapServer + ":" + String.valueOf(ldapPort) + "/" + rootDn);
    env.put(Context.SECURITY_AUTHENTICATION, "simple");
    env.put(Context.SECURITY_PRINCIPAL, ldapUserId);
    env.put(Context.SECURITY_CREDENTIALS, ldapPassword);
    DirContext ctx = new InitialDirContext(env);
    //at this point its gives array out of bound , java.util.vector error
    Attributes matchAttrs = new BasicAttributes(ignoreCase);
    if (matchRules != null) {
    Iterator attrIter = matchRules.keySet().iterator();
    while (attrIter.hasNext()) {
    String key = (String) attrIter.next();
    String value = (String) matchRules.get(key);
    matchAttrs.put(new BasicAttribute(key, value));
    response = ctx.search(searchBase, matchAttrs, returnAttrs);
    lastResult = new Vector();
    while (response.hasMore()) {
    HashMap attrMap = new HashMap();
    SearchResult sr = (SearchResult) response.next();
    Attributes attrs = sr.getAttributes();
    NamingEnumeration attrsEnum = attrs.getAll();
    while (attrsEnum.hasMore()) {
    Vector values = new Vector();
    Attribute attr = (Attribute) attrsEnum.next();
    for (int i = 0; i < attr.size(); i++) {
    values.add(attr.get(i));
    attrMap.put(attr.getID(), values);
    lastResult.add(attrMap);
    First time when i run it runs fine, but the second time , it gives error.

  • Print tomcat server vaiable and values

    How do I print Tomcat server configuration details? like environment variables, values, In PHP, I could print using phpinfo() function the phpinfo details. Is it possible something like that in JSP/Tomcat?
    like CATALINA_PATH

    Hi,
    Anybody? any suggestion?
    Thank you.
    ~vincent

  • Response from Tomcat Server slow and Invariable to JSP

    Hello,
    I have developed an application which is an INTRANET PORTAL in advanced java. My database is MySQL and Server is Tomcat V5.5
    The problem is server response is very slow and sometimes it stops responding, also when I try accessing it from remote machine I don't get response from my server.
    Please help...
    Thank and Regards

    since you posted to web server forum, i have to also add that web server 7 bundles a tomcat like web container within and can be used for your web serving needs. you can download web server 7 from http://www.sun.com/webserver

  • Tomcat BasicDataSource class and JSP

    HiFriends,
    I am trying to run this simple jsp example:
    <%@ page language="java" import="java.sql.*,javax.naming.InitialContext,javax.naming.Context,javax.sql.DataSource,org.apache.commons.dbcp.BasicDataSource" %>
    <body bgcolor="white">
    <font color="red">
    <%
    Connection conn = null;
    try {
    InitialContext initialContext = new InitialContext();
    Context context = (Context)initialContext.lookup("java:comp/env");
    DataSource ds = (DataSource)context.lookup("jdbc/juddidb");
    out.print(" DriverClassName: " + ((BasicDataSource) ds).getDriverClassName());
    out.print(" Url: " + ((BasicDataSource) ds).getUrl());
    out.print(" Username: " + ((BasicDataSource) ds).getUsername());
    out.print(" Password: " + ((BasicDataSource) ds).getPassword());
    out.print(" MaxActive: " + ((BasicDataSource) ds).getMaxActive());
    out.print(" MaxWait: " + ((BasicDataSource) ds).getMaxWait());
    out.print(" NumActive: " + ((BasicDataSource) ds).getNumActive());
    out.print(" numIdle: " + ((BasicDataSource) ds).getNumIdle());
    } catch (Exception e) {
          e.printStackTrace();
    %>But its giving me the following errors:
    exception
    javax.servlet.ServletException: org/apache/jsp/test_jsp (wrong name: org/apache/jsp/Test_jsp)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:244)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.NoClassDefFoundError: org/apache/jsp/test_jsp (wrong name: org/apache/jsp/Test_jsp)
         java.lang.ClassLoader.defineClass1(Native Method)
         java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         java.security.AccessController.doPrivileged(Native Method)
         java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:156)
         org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:69)
         org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:548)
         org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:136)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:307)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)Can someone please tell meif I have to set any classpath for the BasicDataSource class????

    exception
    javax.servlet.ServletException:
    org/apache/jsp/test_jsp (wrong name:
    org/apache/jsp/Test_jsp)
         org.apache.jasper.servlet.JspServlet.service(JspServl
    et.java:244)
         javax.servlet.http.HttpServlet.service(HttpServlet.ja
    va:802)
    root cause
    java.lang.NoClassDefFoundError:
    org/apache/jsp/test_jsp (wrong name:Something suggests me that this has nothing to do with the CLASSPATH, but simply the JSP name. I think there is a problem with the name you specified in the URL. Case-sensitivity might matter.
    Just trying to guess!
    Rich.

  • Lion Server Admin, Server, connection and authentication issues.

    I'm going out of my mind... I'd appreciate any help
    Mac OS X Server 10.7.2
    Mac Mini Server (no optical drive.  dual hard drives) 2.66 C2D / 4GB RAM
    So... I open Workgroup Manager, select menu: Server > Connect.  Then Enter:
    Address = Server.local
    User Name = Server Administrator
    and my password.
    Press the Connect button and it successfully opens the Workgroup Manager window and I can edit users etc. all perfecty fine.
    I can also confirm that the Server Administrator user has "administer this server" ticked on.
    Now the trouble begins...
    I open Server (ie. the new Lion Server application).
    It shows me the "Choose a Mac" window.  Two entries:
    1. "This Mac - Server"
    2. "Other Mac"
    I click the first entry & it slides down the sheet for entering username and password.  I enter exactly the same details as above and the sheet shakes left and right, essentially behaving as if I'd entered the wrong password.  Despite the fact that it's the same password as above.
    I try it from another machine as well, just to be sure, and I get the same result.
    Then I open Server Admin.
    At some point recently, I recall having essentially the same problem.  An attempt to connect to the server shook the authentication sheet essentially suggesting wrong password.
    More recently, Server.local now doesn't even show up in the Available Servers section.
    If I try Add Server from the Server menu. Then Enter the same details above I get a  "Could not connect..." message.
    So... I'm kinda baffled.  What on earth is going on?  The three different apps are telling me different things.  One works perfectly, one says it's running fine but I can't authenticate, and the other says it doesn't even exist.
    For what it's worth, I've tried using Workgroup Manager (the one thing that will connect and authenticate) to change/reset the password for the Server Administrator user, but no matter what I set it to I'm still getting all the same results as above.
    If anyone can give me any help here I'd be very grateful!!
    Thanks!
    David.

    Is there really no one who can help me with this? 

  • Remote session was disconnected because there are no remote desktop license servers available to provide a license. Please contact the server administrator."

    I am the Server Administrator and have server 2012 Standard running on a single computer for our small (50 employee) company.  It's primary role is to house one software application that manages our data.  Our employees need to remotely access this
    server to use this software program.  For the last 4 months we have successfully done that using Remote Desktop.
    Unfortunately our RDS trial period ran out on our Server, and so I have recently installed 21 RDS User CALs on to the server to still be able to access this server remotely.  When I installed them, using the Install Wizard, I selected 'User CALs' as that
    is what they are.  However, when I try to use remote desktop and access the server remotely, I get the message: "remote session was disconnected because there are no remote desktop license servers available to provide a license"
    Do I have to install the RDS User CALs as Device CALs instead even though they are USER CALs?? Did I forget to check a box or something?  Please help!  We are a Non-Profit and really can't afford Microsoft's $260 support fee when I have a feeling
    this has got to be an easy solution.

    Hi,
    1. Did you create an RDS deployment or just install the RD Session Host and RD Licensing Role Services on your server?
    2. If yes to #1, have you set the licensing mode and licensing server name in Server Manager -- RDS -- Overview -- Tasks -- Edit Deployment Properties -- RD Licensing tab?  Did you make your RDSH server part of a collection?  The RDSH server must
    be part of a collection in order for the deployment settings to apply.
    3. If no to #1, then please set the licensing mode/specify the licensing server name via group policy setting.  For example, you could use gpedit.msc and configure the following settings:
    Computer Configuration\ Administrative Templates\ Windows Components\ Remote Desktop Services\ Remote Desktop Session Host\ Licensing
    Use the specified Remote Desktop licensing servers
    Set the Remote Desktop licensing mode
    Thanks.
    -TP

  • Apache Tomcat 3.2.4 server and jsp

    I'm having particular trouble with my Tomcat server. Using relative URLs to things like other html and jsp pages are no trouble. Using URLs between jsp tags ( like defining the path for a File class ) sets the current path in the bin directory. This much, I've figured out. But when I try to load a java applet, it seems to set the current path to some third folder...
    I get a class not found exception for whatever I try to load, whether in bin or root folder. I know it's a matter of path, because I don't get any errors when accessing the same page without Tomcat. Someone, please help?

    I'm having particular trouble with my Tomcat server. Using relative URLs to things like other html and jsp pages are no trouble. Using URLs between jsp tags ( like defining the path for a File class ) sets the current path in the bin directory. This much, I've figured out. But when I try to load a java applet, it seems to set the current path to some third folder...
    I get a class not found exception for whatever I try to load, whether in bin or root folder. I know it's a matter of path, because I don't get any errors when accessing the same page without Tomcat. Someone, please help?

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

  • Re: [iPlanet-JATO] Tomcat 3.2 serving images and html?

    First of all David you are faster responding to email than I am. Thanks.
    We tried your scheme with no luck. You are using "ROOT" as your war file
    name ROOT, correct? Are you sure the jsp would reference
    "/images/MyProject/nppnback.gif"? Why is "MyProject" in there? Where is
    the directory "images" defined to Tomcat? Is it a default?
    Here's another try at explaining:
    In my JSP I have;
    <IMG SRC="/images/ef.gif" ALT=People Banner">
    My application is in webapps/EformsAppWar
    (jsps in EformsAppWar/EformsApp/eforms/*.jsp)
    (classes in EformsAppWar/WEB-INF/classes)
    so images are in webapps/EformsAppWar/images
    and there is, indeed a ef.gif there.
    However with no server.xml changes (everything default), Tomcat 3.2
    gives a 404 in his log and states in the 404 message that context is
    null (CTX < >) and ca't find /images/ef.gif + NULL.
    By the way I just noticed that in Tomcat 3.1 I have the images directory
    directly under webapps.
    ----- Original Message -----
    From: "David J.L. Martin" <<a href="/group/SunONE-JATO/post?protectID=114166018056146134184102046176231239071179066034">dave@t...</a>>
    Date: Wednesday, May 23, 2001 3:35 pm
    Subject: Re: [iPlanet-JATO] Tomcat 3.2 serving images and html?
    This works:
    If the doc root is webapps\ROOT --
    Using defaults...jsp's would be put in
    webapps\ROOT\MyProjectApp\MyProject\*.jsp
    and images would be put in webapps\ROOT\images\*.gif
    Then in your jsp...use the following reference:
    "/images/MyProject/nppnback.gif">
    That will work just using defaults and not playing with any of the
    config files...
    ie. webapps\ROOT\WEB-INF gets updated as well (with required
    classes).
    djm
    TechPie
    916 924-1832 (office)
    916 730-4743 (mobile)
    916 313-3531 (fax)
    <a href="/group/SunONE-JATO/post?protectID=114232044112042209130232046248130100239179057215113109152006048067">dmushrush@e...</a> wrote:
    Many of you are running Tomcat 3.2. Can anyone tell me how to get
    images to be served by Tomcat. In 3.1 if I referenced /images/image.gif> in my JSP, I could just place the images
    directory in the application
    (context) directory.
    The default docBase is webapp> that webapp> relative addressed as /images/image.gif but such is not the case.
    I have put the images directory almost everyplace possible with no luck.
    I have explicitly defined docBase in tomcat/conf/server.xml and still no
    luck.
    I currently have the following in conf/server.xml
    <Context path="/EformsAppWar"
    docBase="c:/tomcat/webapps/EformsAppWar"
    crossContext="true"
    debug="0"
    reloadable="true" >
    </Context>
    I place images in that directory structure but still take 404's and in
    the log it refers to context as /images ????
    I'm probably doing something (or not doing something) foolish. Anybody> have a remedy.
    <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166215146166214017110250006230056039126077176105140127082088124241215002153">[email protected]</a>
    <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166215146166214017110250006230056039126077176105140127082088124241215002153">[email protected]</a>

    First of all David you are faster responding to email than I am. Thanks.
    We tried your scheme with no luck. You are using "ROOT" as your war file
    name ROOT, correct? Are you sure the jsp would reference
    "/images/MyProject/nppnback.gif"? Why is "MyProject" in there? Where is
    the directory "images" defined to Tomcat? Is it a default?
    Here's another try at explaining:
    In my JSP I have;
    <IMG SRC="/images/ef.gif" ALT=People Banner">
    My application is in webapps/EformsAppWar
    (jsps in EformsAppWar/EformsApp/eforms/*.jsp)
    (classes in EformsAppWar/WEB-INF/classes)
    so images are in webapps/EformsAppWar/images
    and there is, indeed a ef.gif there.
    However with no server.xml changes (everything default), Tomcat 3.2
    gives a 404 in his log and states in the 404 message that context is
    null (CTX < >) and ca't find /images/ef.gif + NULL.
    By the way I just noticed that in Tomcat 3.1 I have the images directory
    directly under webapps.
    ----- Original Message -----
    From: "David J.L. Martin" <<a href="/group/SunONE-JATO/post?protectID=114166018056146134184102046176231239071179066034">dave@t...</a>>
    Date: Wednesday, May 23, 2001 3:35 pm
    Subject: Re: [iPlanet-JATO] Tomcat 3.2 serving images and html?
    This works:
    If the doc root is webapps\ROOT --
    Using defaults...jsp's would be put in
    webapps\ROOT\MyProjectApp\MyProject\*.jsp
    and images would be put in webapps\ROOT\images\*.gif
    Then in your jsp...use the following reference:
    "/images/MyProject/nppnback.gif">
    That will work just using defaults and not playing with any of the
    config files...
    ie. webapps\ROOT\WEB-INF gets updated as well (with required
    classes).
    djm
    TechPie
    916 924-1832 (office)
    916 730-4743 (mobile)
    916 313-3531 (fax)
    <a href="/group/SunONE-JATO/post?protectID=114232044112042209130232046248130100239179057215113109152006048067">dmushrush@e...</a> wrote:
    Many of you are running Tomcat 3.2. Can anyone tell me how to get
    images to be served by Tomcat. In 3.1 if I referenced /images/image.gif> in my JSP, I could just place the images
    directory in the application
    (context) directory.
    The default docBase is webapp> that webapp> relative addressed as /images/image.gif but such is not the case.
    I have put the images directory almost everyplace possible with no luck.
    I have explicitly defined docBase in tomcat/conf/server.xml and still no
    luck.
    I currently have the following in conf/server.xml
    <Context path="/EformsAppWar"
    docBase="c:/tomcat/webapps/EformsAppWar"
    crossContext="true"
    debug="0"
    reloadable="true" >
    </Context>
    I place images in that directory structure but still take 404's and in
    the log it refers to context as /images ????
    I'm probably doing something (or not doing something) foolish. Anybody> have a remedy.
    <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166215146166214017110250006230056039126077176105140127082088124241215002153">[email protected]</a>
    <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166215146166214017110250006230056039126077176105140127082088124241215002153">[email protected]</a>

  • 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

  • Connection pooling with SQL Server 2008 and Tomcat 6.0

    Hello Everybody,
    I'm creating a web application using struts 2.0 , tomcat 6.0 and sql server 2008.
    Everything works fine but i'm unable to create connection pooling with sql server 2008.Please help me to solve this issue.
    Code for this is as foolows:
    in my META-INF/context.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <Context path="/spas" docBase="spas"
    debug="5" reloadable="true" crossContext="true">
    <Resource
    name="jdbc/spas_new"
    auth="Container"
    type="javax.sql.DataSource"
    maxActive="20"
    maxIdle="10"
    maxWait="-1"
    user="spas_user"
    password="spas123"
    driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
    url="jdbc:sqlserver://HGL-0053\dbo:1433;databaseName=spas_new;responseBuffering=adaptive;"/>
    </Context>
    in my web.xml
    <resource-ref>
    <description>SQL Server Datasource</description>
    <res-ref-name>jdbc/spas_new</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    and in my ConnectionThread.java file i've used:
    Context ctx = new InitialContext();
    if(ctx == null )
    throw new Exception("Sorry! No Context Exception");
    DataSource ds = (DataSource)ctx.lookup("java:/comp/env/jdbc/spas_new");
    System.out.println("ds:"+ds);
    conn=ds.getConnection();
    Following is the exception:
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Login failed for user ''.)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
    at login.V_SPAS_ConnectionThread.getConnection(V_SPAS_ConnectionThread.java:87)
    at org.apache.jsp.login.v_005fspas_005flogin_005fpage_jsp._jspService(v_005fspas_005flogin_005fpage_jsp.java:95)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
    at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
    at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
    at org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1023)
    at org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(TilesRequestProcessor.java:345)
    at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:572)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:221)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
    at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:694)
    at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:665)
    at org.apache.jsp.index_jsp._jspService(index_jsp.java:54)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at login.V_SPAS_SecurityCheckFilter.doFilter(V_SPAS_SecurityCheckFilter.java:108)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    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:175)
    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.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user ''.

    Hi Karthikeyan,
    This is not the issue at all. I can open the management studio by the same login id and password and also i can make the database jdbc connection from plain java file.
    It does not give me any problem by them.
    I'm unable to find the actual problem. May be i'm missing something in connection pooling.
    Please help.
    Regards
    Mina

Maybe you are looking for

  • Upload and download of  excel file in the application server in background

    Hi all, i want to download the excel file from application server into internal table and after processing i have to upload to excel file in the application server in the background mode.. i mean i'll schedule the program in background. im using FM A

  • Why do I get error messages on installing??

    Every Adobe product I have downloaded in the past year or more won't install, including the Lightroom 3.5 upgrade. Anyone know why? I get an error message: a problem occurred while extracting some files. Check available space on the computer and the

  • Help! Is my computer finished??

    I am from the United States but I am currently traveling throughout Europe with my Macbook. I bought a European adaptor from an Apple store, plugged my computer in (it worked just fine) and the next morning I pulled my computer out of its case and it

  • Nano Automatically Ejecting

    Just got what I believe is a 6th gen Nano under the replacement program. I have songs stored on it and it has been sync'd. I have selected "manually manage music and videos" and the "enable disk use" is checked but grayed. When first plugged into my

  • Please anyone guide me??

    i want to kearn J2EE i don't know anything about it so how can i start int it???? and which book can i kearn from it?? and which server can i use ??? please any one answer me . thanks