OT: Apache & Tomcat

2001-12-02 Thread S.Jyotinarayan



Hi all,
I would like help on a couple of things. I have 
Apache and Tomcat running on my system.
 
1) I want to configure the httpd.conf file of 
Apache such that my Servername is somethings like 'ifpintranet.org' instead of 
the computer name or its ip address. I want to do this on my intranet. I 
have not registered 'ifpintranet.org' anywhere. Is this possible?
 
2) I would like to configure Tomcat and Apache to 
run together and my Tomcat related applications to run on 'ifpintranet.org' 
instead of 'computername:8080'
 
How could I do this?
Thanks a lot in advance
Jyotinarayanan


Re: QUESTION ON APACHE / TOMCAT

2001-11-30 Thread S.Jyotinarayan



If Tomcat 4.0 is running on a system called COMP1 
with a project named PROJ1, we would run the project in the following manner 
right?
http://COMP1:8080/PROJ1/index.htm
 
Instead of having the above as the address, could I 
have something like http://mydomain/PROJ1/index.htm
 
Thanks a lot in advance
 

  - Original Message - 
  From: 
  Paul 
  Foxton 
  To: [EMAIL PROTECTED] 
  Sent: Monday, November 26, 2001 3:48 
  PM
  Subject: Re: QUESTION ON APACHE / 
  TOMCAT
  
  
Sorry, but thats 
incorrect.
 
Tomcat is a servlet engine, also referred to as a 
servlet container. This means that it is an application server which serves 
up your jsp/servlets.
 
Tomcat also has its own webserver integrated which 
runs by default on port 8080 for tomcat 3X and (I think) 8081 for tomcat 4X. 
You can change the port to 80 with version 3 or 4 but I think with 3 you 
need to run Tomcat as root.
 
The only reason you'd need to use tomcat with 
apache is if your site has a lot of static files ( straight html and images) 
since apache will serve this content marginally faster. Also, if your site 
includes some perl say, you might want to use apache for its perl support, 
and hook it up to Tomcat for your jsp/servlets.
 
If 
your webapp is mainly dynamic jsp pages/servlets and you dont need perl or 
php support theres no need to use apache _and_ Tomcat, Tomcat can do 
everyhting you need on its own.
 
Hope this helps
 
paul
  
-Original Message-From: Raj Chanian 
[mailto:[EMAIL PROTECTED]]Sent: 26 November 2001 
10:15To: [EMAIL PROTECTED]Subject: Re: 
QUESTION ON APACHE / TOMCAT

No,
 
With Tomcat you 
just get the servlet engine. This needs to be integrated with Apache, use 
mod_jk and also update the conf file, instructions for the integration are 
on Suns Web Site.
 

Regards,
 
Raj
-Original 
Message-From: Daliso 
Zuze [mailto:[EMAIL PROTECTED]] Sent: 26 November 2001 
10:13To: 
[EMAIL PROTECTED]Subject: QUESTION ON APACHE / 
TOMCAT
 

 

Hello 
All,

 

I just have a small question 
about the apache web server and tomcat. When I downlaod and install Tomcat, 
what am I really getting? Is it the apache web server enhanced with the 
Tomcat container or is Tomcat a different web server all 
together?

 

If I already have an Apache web 
server already installed, how do I add the functionality provided by 
Tomcat?

 

Thanks,

 

Daliso


Error: [Microsoft][ODBC SQL Server Driver] Optional feature not implemented

2001-11-19 Thread S.Jyotinarayan



I am running on Win2k OS, Tomcat 4 Application 
server and MS SQL Server 2kas DB. I have made an ODBC connection and dns is 
manu. I am running thefollowing code as per your instructions and i am 
getting some errors displayed below the code ). Please tell me where's 
the mistake.Thanx in 
advanceJyoti.Manu 
Collection
  function butFn(buttonAction,submitPage)
  {
    if(buttonAction=="Back" || buttonAction=="First" || buttonAction=="Prev"
|| buttonAction=="Next" || buttonAction=="Last")
    {
  document.reader.action=submitPage;
  document.reader.submit();
    }
  }
<%@ page language="java" import="java.sql.*" %>Manu Collection<%  int inc = 0;  String from=request.getParameter("from");  if (from=="F") { inc=1; }  else if(from=="P") { inc=Integer.parseInt(request.getParameter("inc")); }  else if(from=="N") { inc=Integer.parseInt(request.getParameter("inc")); }  else if(from=="L") { inc=-1; }  Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");  Connection myConn = DriverManager.getConnection("jdbc:odbc:manu");   // Error might be here  Statement stmt = myConn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);  String qry="";  ResultSet myResultSet=null;  if(inc==0) {    qry="select * from tblMS";    myResultSet = stmt.executeQuery(qry);    myResultSet.absolute(inc);    session.setAttribute("rsSession",myResultSet);  } else if(inc>0) {    myResultSet=(ResultSet)session.getAttribute("rsSession");    myResultSet.absolute(inc);  }  String MSID = myResultSet.getString("MSID");  String msOldNo = myResultSet.getString("msOldNo");  String msTitle = myResultSet.getString("msTitle");  String msAuthor = myResultSet.getString("msAuthor");%>      MSID              msOldNo                  msTitle              msAuthor                        >                    A Servlet Exception Has OccurredException Report:javax.servlet.ServletException: [Microsoft][ODBC SQL Server Driver]Optionalfeature not implemented atorg.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:457) at org.apache.jsp.manutst$jsp._jspService(manutst$jsp.java:133) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264) atorg.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264) atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) atorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215) atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) atorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) atorg.apache.catalina.core.StandardContext.invoke(StandardContext.java:2366) atorg.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) atorg.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) atorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) atorg.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) atorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) atorg.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1005) atorg.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1098) at java.lang.Thread.run(Unknown Source)Root Cause:java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Optional featurenot implemented at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source) at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source) at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(Unknown Source) at org.apache.jsp.m