Re: [INIMSS] Problem with IP Alias

2002-03-03 Thread Dino Cherian K

Hi


Would you please explin it a little bit.


Thanks

Dino


On Saturday 02 March 2002 23:25, you wrote:
  see intermixed




  Dino Cherian K [EMAIL PROTECTED] on 03/02/2002 04:36:10 AM

  Please respond to Tomcat Users List [EMAIL PROTECTED]

  To:   [EMAIL PROTECTED]
  cc:

  Subject:  [INIMSS] Problem with IP Alias

  Hi

  I am trying to configure a webserver running apache-1.3.19-5,
  tomcat-3.2.1-1
  and jdk-1.3.1_01-fcs  on  Redhat Linux 7.1 (glibc-2.2.2-10).

  The scenario is that the tomcat is configured and running on the default
  server perfectly. Recently I tried to add a domain with a seperate IP. I
  did
  the following things.
   **(1) I added the new IP (NEW_IP) in the network configuration as
  IP Alias
  of the one and only ethernet card in the server.
   **(2) I added the below lines in the apache's httpd.conf.

 VirtualHost NEW_IP
 ServerName new-domain.com
 ServerAlias www.new-domain.com
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /usr/www/new-domain
 Options Includes IncludesNOEXEC MultiViews Indexes
  FollowSymlinks
  SymLinksIfOwnerMatch
 JkMount /servlet/* ajp13
 JkMount /*.jsp ajp13
 Location /WEB-INF/
 AllowOverride None
 deny from all
 /Location
 ErrorLog logs/new-domain-error_log
 CustomLog logs/new-domain_log common
 /VirtualHost


   **(3) I added the below lines in the tomcat's server.xml.
  Host name=new-domain.com
  Context path=
   docBase=/usr/www/new-domain
   crossContext=true
   debug=0
   reloadable=true
   trusted=true 
  /Context
  /Host
  Host name=www.new-domain.com
  Context path=
   docBase=/usr/www/new-domain
   crossContext=true
   debug=0
   reloadable=true
   trusted=true 
  /Context
  /Host

   **(4) Then I copied a test.jsp and test.class into
  /usr/www/new-domain and
  /usr/www/new-domain/servlet respectively.

  Unpacked classes you wish to be visible to a single webapp are placed
 under webapp/WEB-INF/classes folder and packed classes under
  webapp/WEB-INF/lib folder.

   **(5) Now I restarted the services - network, httpd and tomcat.

  Then I pointed my browser to http://new-domain.com/test.jsp
  It worked fine. Then to http://new-domain.com/servlet/test . This didn't
  work. I gave the error message
 Not Found (404)
 Original request: /servlet/test
 Not found request: /servlet/test

  Do you have a test.class in the /usr/www/new-domain/WEB-INF/classes folder
  (assuming that there isn't a package statement in the source code)?

  Then by chance I pointed browser to
  http://new-domain.com/servlet/oldServlet
  and it worked fine. Here the oldServlet was actually one servlet in the
  servlet folder of the default server.

  What should I do to get my servlets being served from the new-domain's
  servlet folder itself.

  Please help me ASAP.

  Thanks

  Dino

  RS
  _
  Do You Yahoo!?
  Get your free @yahoo.com address at http://mail.yahoo.com


  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]









  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




[INIMSS] Problem with IP Alias

2002-03-02 Thread Dino Cherian K

Hi

I am trying to configure a webserver running apache-1.3.19-5, tomcat-3.2.1-1 
and jdk-1.3.1_01-fcs  on  Redhat Linux 7.1 (glibc-2.2.2-10).

The scenario is that the tomcat is configured and running on the default 
server perfectly. Recently I tried to add a domain with a seperate IP. I did 
the following things.
 ** (1) I added the new IP (NEW_IP) in the network configuration as IP Alias 
of the one and only ethernet card in the server.
 ** (2) I added the below lines in the apache's httpd.conf.

VirtualHost NEW_IP
ServerName new-domain.com
ServerAlias www.new-domain.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/www/new-domain
Options Includes IncludesNOEXEC MultiViews Indexes FollowSymlinks 
SymLinksIfOwnerMatch
JkMount /servlet/* ajp13
JkMount /*.jsp ajp13
Location /WEB-INF/
AllowOverride None
deny from all
/Location
ErrorLog logs/new-domain-error_log
CustomLog logs/new-domain_log common
/VirtualHost


 ** (3) I added the below lines in the tomcat's server.xml.
Host name=new-domain.com
Context path=
 docBase=/usr/www/new-domain
 crossContext=true
 debug=0
 reloadable=true
 trusted=true 
/Context
/Host
Host name=www.new-domain.com
Context path=
 docBase=/usr/www/new-domain
 crossContext=true
 debug=0
 reloadable=true
 trusted=true 
/Context
/Host

 ** (4) Then I copied a test.jsp and test.class into /usr/www/new-domain and 
/usr/www/new-domain/servlet respectively.

 ** (5) Now I restarted the services - network, httpd and tomcat.

Then I pointed my browser to http://new-domain.com/test.jsp
It worked fine. Then to http://new-domain.com/servlet/test . This didn't 
work. I gave the error message 
Not Found (404)
Original request: /servlet/test
Not found request: /servlet/test

Then by chance I pointed browser to http://new-domain.com/servlet/oldServlet 
and it worked fine. Here the oldServlet was actually one servlet in the 
servlet folder of the default server.

What should I do to get my servlets being served from the new-domain's 
servlet folder itself.

Please help me ASAP.

Thanks

Dino



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




[INIMSS] Problem with configuration. ContextManager: Assertion failed: container==null

2002-02-21 Thread Dino Cherian K

Hi

Please help me ASAP.

Anybody please help me in finding the reason for the error at the end of the 
below tomcat.log extract.

Why this error occurs

ContextManager: Assertion failed: container==null (no Default Context?)   
 2002-02-19 21:33:25 - Ctx() : Status code:404 request:R( /test.jsp) 
msg:null

I tried to fetch the URL http://192.168.1.100/test.jsp and the output was 

Not Found (404)
Original request: /test.jsp 
Not found request: /test.jsp

(The 192.168.1.100 is the ip of mydomain.com)

=
I am including the parts of the configuration files that I touched.
=

-

I am using tomcat3-3.3a-2 and apache-1.3.19-5

-
 apps-mydomain.xml
-
?xml version=1.0 encoding=ISO-8859-1?
Server
Host name=mydomain.com address=192.168.1.100
Alias name=www.mydomain.com/
Context path= docBase=/usr/www/mydomain reloadable=true 
trusted=true/
/Host
/Server

-
 httpd.conf
-
VirtualHost 192.168.1.100
ServerName mydomain.com
ServerAlias www.mydomain.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/www/mydomain
Options Includes IncludesNOEXEC MultiViews Indexes FollowSymlinks 
SymLinksIfOwnerMatch

JkMount /servlet/* ajp12
JkMount /*.jsp ajp12
Location /WEB-INF/
AllowOverride None
deny from all
/Location

ErrorLog logs/mydomain-error_log
CustomLog logs/mydomain_log common
/VirtualHost
-
  No other modifications of conf files were made for the website.
-


Thank You
Dino CK

 

2002-02-19 21:32:19 - SessionIdGenerator: Opening /dev/urandom
   2002-02-19 21:32:19 - ServerXmlReader: 
Config=$TOMCAT_HOME/conf/server.xml   
2002-02-19 21:32:19 - PathSetter: install=/var/tomcat3
   2002-02-19 21:32:19 - PathSetter: 
home=/etc/tomcat3  
2002-02-19 21:32:19 - ContextXmlReader: Context 
config=$TOMCAT_HOME/conf/apps-127.0.0.1.xml  2002-02-19 
21:32:19 - ContextXmlReader: Context config=$TOMCAT_HOME/conf/apps-admin.xml  
2002-02-19 21:32:19 - ContextXmlReader: Context 
config=$TOMCAT_HOME/conf/apps-examples.xml   2002-02-19 
21:32:19 - ContextXmlReader: Context 
config=$TOMCAT_HOME/conf/apps-mydomain.xml   2002-02-19 
21:32:19 - AutoWebApp: Loaded from config: DEFAULT:/examples  
2002-02-19 21:32:19 - ContextManager: Tomcat configured 
and in stable state  2002-02-19 21:32:19 - 
ContextManager: Adding  mydomain.com:/ROOT
 2002-02-19 21:32:19 - ContextManager: Adding  127.0.0.1:/ROOT
2002-02-19 21:32:19 - ContextManager: 
Adding  127.0.0.1:/examples
2002-02-19 21:32:19 - ContextManager: Adding  DEFAULT:/admin  
   2002-02-19 21:32:19 - ContextManager: Adding  
DEFAULT:/examples  EmbededTomcat: 
Init time 1544
2002-02-19 21:32:19 - Http10Interceptor: Starting on 8080 
   2002-02-19 21:32:20 - 
Ajp12Interceptor: Starting on 8007
 EmbededTomcat: Startup time 199  
2002-02-19 21:32:20 - 
Ajp13Interceptor: Starting on 8009
 2002-02-19 21:32:20 - Ajp12Interceptor: Using stop file: 
/var/spool/tomcat3/ajp12.id 2002-02-19 21:33:18 - 
ContextManager: Assertion failed: container==null (no Default Context?)   
 2002-02-19 21:33:18 - Ctx() : Status code:404 request:R( /test.jsp) 
msg:null 2002-02-19 21:33:21 - 
ContextManager: Assertion failed: container==null (no Default Context?)   
 2002-02-19 21:33:21 - Ctx() : Status code:404 request:R( /test.jsp) 
msg:null 2002-02-19 21:33:22 - 
ContextManager: Assertion failed: container==null (no Default 

Re: Reposting [INIMSS] How can I load a custom jar file for a particular web application. [a newbie question]

2002-02-19 Thread Dino Cherian K

Hi

Ya it worked. Thanks

What if the thirdparty library is available as classes in a heirarchy. That 
is they are arranged in folder structure.

Like

+ ClassA
|   |
|  ClassA1.class
|  ClassA2.class
|
+ ClassB
|   |
|  ClassB1.class
|  ClassB3.class
|
+ ClassC.class


Thanks
Dino Cherian K

On Tuesday 19 February 2002 16:30, you wrote:
  Putting the jar file in the ${TOMCAT_HOME}/webapps/yourapp/WEB-INF/libs
 directory will do the job.

  -Original Message-
  From: Dino Cherian K [mailto:[EMAIL PROTECTED]]
  Sent: 18 February 2002 08:17
  To: [EMAIL PROTECTED]
  Subject: Reposting [INIMSS] How can I load a custom jar file for a
  particular web application. [a newbie question]


  Hi

  Please help me ASAP.

  I am having a third party jar file that is to be loaded from jsp pages to
  attain some task. The particular jar file is to be used only buy one web
  application. Where should I place the files and what all should I modify
 to make it work?

  I am using tomcat 3.3 and  apache-1.3.19-5 on RedHat Linux 7.1.

  Thanks
  Dino CK


  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]




  ***
   This email/attachment(s) has been virus checked upon
   receipt at the OS and is free of all known viruses.
  ***






  ***
  For more information on Ordnance Survey products and services,
  visit our web site at http://www.ordnancesurvey.co.uk
  ***




  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: [INIMSS] How can I load a custom jar file for a particular web application. [a newbie question]

2002-02-19 Thread Dino Cherian K

Hi

Thanks for the help. I had already reposted the mail with the info you 
requested.

Thank You

On Tuesday 19 February 2002 19:29, you wrote:
  It would be extremely helpful if we knew what version of Tomcat is
 running. If we're talking TC 4, then place it in WEB-INF/lib of your webapp
 and then restart the app.  I believe that holds true for 3.3 as well (I'm
 more familiar with TC 4).  For versions before 3.3, the classloader system
 wasn't implemented yet and you'll have to put it in the classpath
 somewhere.

  --David

  On Monday 18 February 2002 02:12 am, you wrote:
   Hi
  
   Please help me ASAP.
  
   I am having a third party jar file that is to be loaded from jsp pages
   to attain some task. The particular jar file is to be used only buy one
   web application. Where should I place the files and what all should I
   modify to make it work?
  
   Thanks
   Dino CK

  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




[INIMSS] ContextManager: Assertion failed: container==null

2002-02-19 Thread Dino Cherian K

Hi

Anybody please help me in finding the reason for the error at the end of the 
below tomcat.log extract.

I actually want to know why this error occurs

ContextManager: Assertion failed: container==null (no Default Context?)   
 2002-02-19 21:33:25 - Ctx() : Status code:404 request:R( /test.jsp) 
msg:null


I tried to fetch the URL http://192.168.1.100/test.jsp and the output was 

Not Found (404)
Original request: /test.jsp 
Not found request: /test.jsp

(The 192.168.1.100 is the ip of mydomain.com)

Thank You
Dino CK

 

2002-02-19 21:32:19 - SessionIdGenerator: Opening /dev/urandom
   2002-02-19 21:32:19 - ServerXmlReader: 
Config=$TOMCAT_HOME/conf/server.xml   
2002-02-19 21:32:19 - PathSetter: install=/var/tomcat3
   2002-02-19 21:32:19 - PathSetter: 
home=/etc/tomcat3  
2002-02-19 21:32:19 - ContextXmlReader: Context 
config=$TOMCAT_HOME/conf/apps-127.0.0.1.xml  2002-02-19 
21:32:19 - ContextXmlReader: Context config=$TOMCAT_HOME/conf/apps-admin.xml  
2002-02-19 21:32:19 - ContextXmlReader: Context 
config=$TOMCAT_HOME/conf/apps-examples.xml   2002-02-19 
21:32:19 - ContextXmlReader: Context 
config=$TOMCAT_HOME/conf/apps-mydomain.xml   2002-02-19 
21:32:19 - AutoWebApp: Loaded from config: DEFAULT:/examples  
2002-02-19 21:32:19 - ContextManager: Tomcat configured 
and in stable state  2002-02-19 21:32:19 - 
ContextManager: Adding  mydomain.com:/ROOT
 2002-02-19 21:32:19 - ContextManager: Adding  127.0.0.1:/ROOT
2002-02-19 21:32:19 - ContextManager: 
Adding  127.0.0.1:/examples
2002-02-19 21:32:19 - ContextManager: Adding  DEFAULT:/admin  
   2002-02-19 21:32:19 - ContextManager: Adding  
DEFAULT:/examples  EmbededTomcat: 
Init time 1544
2002-02-19 21:32:19 - Http10Interceptor: Starting on 8080 
   2002-02-19 21:32:20 - 
Ajp12Interceptor: Starting on 8007
 EmbededTomcat: Startup time 199  
2002-02-19 21:32:20 - 
Ajp13Interceptor: Starting on 8009
 2002-02-19 21:32:20 - Ajp12Interceptor: Using stop file: 
/var/spool/tomcat3/ajp12.id 2002-02-19 21:33:18 - 
ContextManager: Assertion failed: container==null (no Default Context?)   
 2002-02-19 21:33:18 - Ctx() : Status code:404 request:R( /test.jsp) 
msg:null 2002-02-19 21:33:21 - 
ContextManager: Assertion failed: container==null (no Default Context?)   
 2002-02-19 21:33:21 - Ctx() : Status code:404 request:R( /test.jsp) 
msg:null 2002-02-19 21:33:22 - 
ContextManager: Assertion failed: container==null (no Default Context?)   
 2002-02-19 21:33:22 - Ctx() : Status code:404 request:R( /test.jsp) 
msg:null 2002-02-19 21:33:23 - 
ContextManager: Assertion failed: container==null (no Default Context?)   
 2002-02-19 21:33:23 - Ctx() : Status code:404 request:R( /test.jsp) 
msg:null 2002-02-19 21:33:24 - 
ContextManager: Assertion failed: container==null (no Default Context?)   
 2002-02-19 21:33:24 - Ctx() : Status code:404 request:R( /test.jsp) 
msg:null 2002-02-19 21:33:25 - 
ContextManager: Assertion failed: container==null (no Default Context?)   
 2002-02-19 21:33:25 - Ctx() : Status code:404 request:R( /test.jsp) 
msg:null 2002-02-19 21:33:25 - 
ContextManager: Assertion failed: container==null (no Default Context?)   
 2002-02-19 21:33:25 - Ctx() : Status code:404 request:R( /test.jsp) 
msg:null 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




[INIMSS] How can I load a custom jar file for a particular web application. [a newbie question]

2002-02-18 Thread Dino Cherian K

Hi

Please help me ASAP.

I am having a third party jar file that is to be loaded from jsp pages to 
attain some task. The particular jar file is to be used only buy one web 
application. Where should I place the files and what all should I modify to 
make it work?

Thanks
Dino CK

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: mod_rewrite Problem?

2002-02-04 Thread Dino Cherian K

Hi

Which version of Tomcat and Apache are you using.

Bye

[EMAIL PROTECTED] wrote:
 
 Hi, as  I am Newbie in Tomcat,I have a big problem with Rewriting to tomCat from 
Apache.
 Please send me you suggestions if you can.
 I have installed Apache(with mod_rewrite) + Tomcat4 with mod_webapp.
 In httpd.conf my settings goes
 {Let us suggest that our server Name is test.com}
 
 Load webapp_module libexec/mod_webapp.so
 Addmodule mod_webapp.c
 ...
 Virtual Host 
 ServerName test.com
 WebAppConnection warpConnection warp test.com:8008
 WebAppDeploy examples warpConnection /examples
 
 RewriteEngine On
 RewriteRule .* /Jump
 /VirtualHost
 
 and I want that every request coming to test.com like http://test.com/blahblahblah 
to be redirected to Java servlet script /Jump,but when I write URL like as:
 http://test.com/blahblahblah
 Apache says HTTP Error 404
 when I access like :
 http://test.com/examples/servlet/Jump
 it works
 How can I handle it ?
 
 
 
  -- Welcome to ClubBBQ!!! http://www.clubbbq.com --
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Why this happens

2002-02-02 Thread Dino Cherian K

Hi

I am trying to configure Tomcat 3.3a.rc2 on RedHat Linux 7.0 and Apache
1.3.12. 
Whe I look into the log file for the domain mydom.com it shows this.

2002-02-02 15:47:23 - mydom.com:: Class not found:
org.apache.jasper.servlet.JspServlet
2002-02-02 15:47:23 - mydom.com:: Status code:404 request:R(  +
/test.jsp + null) msg:null
2002-02-02 15:47:42 - mydom.com:: Status code:404 request:R(  +
/test.jsp + null) msg:null
2002-02-02 15:47:52 - mydom.com:: Status code:404 request:R(  +
/test.jsp + null) msg:null


When I look into the mod_jk.log it has the following messages.

[Sat Feb 02 15:47:14 2002]  [jk_connect.c (143)]: jk_open_socket,
connect() failed errno = 111
[Sat Feb 02 15:47:14 2002]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 111
[Sat Feb 02 15:47:14 2002]  [jk_ajp13_worker.c (635)]: Error connecting
to the Tomcat process.
[Sat Feb 02 15:47:14 2002]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 0
[Sat Feb 02 15:47:15 2002]  [jk_connect.c (143)]: jk_open_socket,
connect() failed errno = 111
[Sat Feb 02 15:47:15 2002]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 111
[Sat Feb 02 15:47:15 2002]  [jk_ajp13_worker.c (635)]: Error connecting
to the Tomcat process.
[Sat Feb 02 15:47:15 2002]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 1
[Sat Feb 02 15:47:15 2002]  [jk_connect.c (143)]: jk_open_socket,
connect() failed errno = 111
[Sat Feb 02 15:47:15 2002]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 111
[Sat Feb 02 15:47:15 2002]  [jk_ajp13_worker.c (635)]: Error connecting
to the Tomcat process.
[Sat Feb 02 15:47:15 2002]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 2


Anybody have any idea about the situtation. Please help me ASAP.

Thank You
Dino

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]