RE: Multiple tomcat services?

2005-09-28 Thread Hardik Tank
Jens,

Uncheck the 'Service' option while installing. Windows
does not allow to have two services with same name.
So, don't install as Service.


Rgds,
Hardik Tank


--- Jens Nordberg [EMAIL PROTECTED] wrote:

 How do you mean? The install program for Tomcat
 5.5.9 doesn't allow me
 to change the name, or does it? As far as I can
 tell, I can only specify
 install directory, HTTP port, user name, password
 and jre.
 
 /Jens
 
 -Original Message-
 From: Arup Vidyerthy
 [mailto:[EMAIL PROTECTED] 
 Sent: den 28 september 2005 16:20
 To: 'Tomcat Users List'
 Subject: RE: Multiple tomcat services?
 
 Install it under a different name 
 
 -Original Message-
 From: Jens Nordberg [mailto:[EMAIL PROTECTED]
 
 Sent: 28 September 2005 15:13
 To: tomcat-user@jakarta.apache.org
 Subject: Multiple tomcat services?
 
 Hi, I'm trying to install multiple tomcats on my
 machine, which works
 quite
 well except for one thing. When I'm installing the
 second instance of
 Tomcat, I get the following error:
 
 Failed to install Tomcat5 service. Check your
 settings and permissions.
 Ignore and continue anyway (not recommended)?
 
  
 
 I chose to ignore and continue. Tomcat then
 installs, but no service is
 added in windows services. If I go to the bin
 library of the second
 tomcat
 and press tomcat5w, it opens the _first_ instance's
 application.
 
  
 
 Is there a way to get two services going when I have
 multiple tomcats?
 
  
 
 The first instance is a tomcat 5.0 and the second is
 a tomcat 5.5.9.
 
  
 
 Any suggestions?
 
 Kind regards
 
 /Jens
 
  
 
 
 
   

___
 
 To help you stay safe and secure online, we've
 developed the all new
 Yahoo! Security Centre. http://uk.security.yahoo.com
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SOAP on TOMCAT 5.0

2005-09-20 Thread Hardik Tank
hi,

u will get unsupported major.minor version 48.0
error when ur code has been compiled using higher
version of JDK (may be 1.5) and u r running it using
lower version of JDK/JRE (may be 1.4)

check ur setup and JRE/JDK once again.

rgds,
Hardik Tank


--- [EMAIL PROTECTED] wrote:

 
 Hi Guys,
 
 
 
 Some help required on using SOAP on Tomcat 5.0.
 
 
 
 I need to configure SOAP 2.3.1 with Tomcat 5.0
 locally on my machine.
 
 
 
 Following are the things I did:
 
 1) Copied the soap.war file under the webapps
 directory.
 
 2)Set the class paths in my system
 
 3) copied the latest version of
 activation.jar,mail.jar and
 xercesImpl.jar onto the lib directory of tomcat
 
 I am able to get the soap home page:
 http://localhost:8080/soap
 
 I am also able to Run the admin tool and deploy a
 sample webservice
 using the admin tool.
 
 Also the the webservice is listed as a deployed
 component.
 
 
 
 NOTE: Right now I am running the service and client
 from same server.
 However the problem persisted when I used different
 servers(Tomcat
 again) on different machines as well.
 
 
 
 As I see this leads to the creation of
 DeployedServices.ds xml
 descriptor on soap folder in tomcat.
 
 
 
 Yet I am not able to deploy the service through
 command line neither am
 I able to run the client program through command
 line.
 
 Both these actions throw the same error messages:
 
 java.lang.UnsupportedClassVersion error:
 org/w3c/dom/Node (unsupported
 major.minor version 48.0)
 
 
 
 As I understand this is because default dom api's in
 Tomcat are older
 versions which support Level 1 parsing.
 
 However all latest apis which might be used by SOAP
 are Level3 based.
 
 Hence I included the xml-apis.jar and xercesImpl.jar
 in the
 /common/endorsed directory in Tomcat. This is
 supposed to override the
 use of default jars.
 
 Still I am getting the same error.
 
 
 
 Is there something else I am missing too. Any sort
 of help on this
 welcome.
 
 Just wanted to give it another shot else I need to
 reinstall the latest
 version on Tomcat that is supposed to be free from
 this error
 
 
 
 
 
 Thanks
 
 Niladri
 
 
 
 
 
 
 
 Confidentiality Notice
 
 The information contained in this electronic message
 and any attachments to this message are intended
 for the exclusive use of the addressee(s) and may
 contain confidential or privileged information. If
 you are not the intended recipient, please notify
 the sender at Wipro or [EMAIL PROTECTED]
 immediately
 and destroy all copies of this message and any
attachments.




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: servlet mapping and url

2005-07-02 Thread Hardik Tank
you can configure your web.xml file and make index.jsp
file as an welcome file using,

welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list

now, create index.jsp file which will simply forward
the request to your servlet!

Rgds,
Hardik

--- s s [EMAIL PROTECTED] wrote:

 i want to invoke a servlet using url like
 http://localhost:8080 only
  
 i have done it using
 http://localhost:8080/index.html where index.html is
 a servlet. Is it possible to load this servlet as a
 default just like a default web page. The point is i
 want a servlet to recieve a request when url
 http://localhost:8080 is referenced i.e without the
 servlet name.
  
 is it possible?
  
  
 
 
   
 -
 Yahoo! Mail Mobile
  Take Yahoo! Mail with you! Check email on your
 mobile phone.




 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unauthorized users get 403

2005-07-02 Thread Hardik Tank
you can configure web.xml file with following entry,

error-page
  error-code403/error-code
  location/errorPage403.jsp/location
/error-page

you can show proper error message in errorPage403.jsp
page or if u want to show login page then put
'login.jsp?error=403' as location and handle the
passed parameter in login.jsp page

Rgds,
Hardik 


--- David Newman [EMAIL PROTECTED] wrote:

 I have setup an application in tomcat 5.5.9 with
 FORM based
 authentication.  Everything works, however, I've
 noticed that if a user
 successfully authenticates, but is not authorized by
 being in the
 specified role, they get the 403 not authorized
 page.  I would prefer
 they just get the login page again.  Is this
 possible?
 
 -Dave
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Changing the URL

2005-01-02 Thread Hardik Tank
Hi Mohit,

For the root application means to access your
application like http://localhost:8080/ do following,

Option 1:
 - Rename webapps/ROOT folder to any other name 
 - Rename your application folder in the webapps to
ROOT

Note: But this is not a proper approach!!

Option 2:
  - In the conf/server.xml file add following entry
for your application,
Context path= docBase=PED debug=0/
  - For information on Context refer Tomcat
Configuration manual.

Regarding alias for the host, you can set this only
you have two names configured by your N/W admin in the
DNS entries. Bcs, from the browser it will try to map
IP for the given host name, which will use DNS
entries.

To avoid typing port, you can set default port to 80
for your tomcat HTTP connector in conf/server.xml
file.

For SSL, refer tomcat documentation for setup details.

Hope, this will help you somewhat!

Bye
Hardik



--- Passsionate [EMAIL PROTECTED] wrote:

 Hi,
 
 I am using Tomcat -5.0.25 , i had made an
 application named PED and placed it in the webapps
 so when i type http://localhost:8080/PED . The
 application is working fine. Now what i want is to
 do something so that when i type www.PED.com , the
 application should run. For this i read the Tomcat
 Docs came to know about Alias Tag in HOST. And also
 of appBase attribute form where our applications are
 found. I put the Alias Tag and gave the hello. And
 also changed the appBase attrib. to webapps/PED .
 Now i thought that writing http://hello:8080 would
 start my application but that didn't happened.Even
 only placing the Alias tag and trying
 http://hello:8080/PED didn't work . Please let me
 know about this and also how the port is mapped .
 
  
 Also how can i introduce SSL in my appl. Tell me the
 steps or the relevant link.
 
 I am in immediate need.
 
 Please help me out.
 
 Thanks in advance.
 
 Bye
 Mohit. 
 
 Yahoo! India Matrimony: Find your life
partneronline.




__ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: can anybody please help me!!

2004-12-27 Thread Hardik Tank
Hi,

Are you using init() method of the servlet for
fetching init parameters like this?

String str =
getServletConfig().getInitParameter(param1);


Rgrds,
Hardik


--- Raasi Potluri [EMAIL PROTECTED] wrote:

 Dear Friends,
 
 I have written a simple servlet which reads a init
 parameter from the web.xml file and displays on the
 browser. I'm a beginner and trying to learn simple
 servlets, I have reached where I can read some init
 params from the web.xml file and displays on the
 browser, but all the simple servlets are working
 without any hassle, but reading init parameter
 returns
 null in the servlet, because I triend to print that
 on
 to the console, but it returns null, please help me,
 awaiting a reply, regards Raasi
 
 web.xml looks like this
 
 ?xml version=1.0 encoding=ISO-8859-1?
 !--
   Copyright 2004 The Apache Software Foundation
 
   Licensed under the Apache License, Version 2.0
 (the
 License);
   you may not use this file except in compliance
 with
 the License.
   You may obtain a copy of the License at
 
   http://www.apache.org/licenses/LICENSE-2.0
 
   Unless required by applicable law or agreed to in
 writing, software
   distributed under the License is distributed on an
 AS IS BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 either
 express or implied.
   See the License for the specific language
 governing
 permissions and
   limitations under the License.
 --
 
 web-app xmlns=http://java.sun.com/xml/ns/j2ee;


xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
 version=2.4
 
   display-nameWelcome to Tomcat/display-name
   description
  Welcome to Tomcat
   /description
 
 
 !-- JSPC servlet mappings start --
 
 servlet


servlet-nameorg.apache.jsp.index_jsp/servlet-name


servlet-classorg.apache.jsp.index_jsp/servlet-class
 /servlet
 
 servlet-mapping


servlet-nameorg.apache.jsp.index_jsp/servlet-name
 url-pattern/index.jsp/url-pattern
 /servlet-mapping
 
 
 servlet
 servlet-nameHelloServlet/servlet-name
 servlet-classHelloServlet/servlet-class
 /servlet
 
 
 servlet-mapping
 servlet-nameHelloServlet/servlet-name
 url-pattern/HelloServlet/url-pattern
 /servlet-mapping
 
 servlet
 

servlet-nameInternationalizedHelloWorld/servlet-name
 

servlet-classcom.jspbook.InternationalizedHelloWorld/servlet-class
   init-param
  param-namegreeting/param-name
  param-valueKisahairetu/param-value
   /init-param
 /servlet
 
 servlet-mapping
 

servlet-nameInternationalizedHelloWorld/servlet-name
 

url-pattern/InternationalizedHelloWorld/url-pattern
 /servlet-mapping
 
 !-- JSPC servlet mappings end --
 
 /web-app
 
 
 
   
 __ 
 Do you Yahoo!? 
 Yahoo! Mail - Helps protect you from nasty viruses. 
 http://promotions.yahoo.com/new_mail
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 




__ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: can anybody please help me!!

2004-12-27 Thread Hardik Tank
Hi,

Use init(ServletConfig config) method of servlet for
init parameters. bcs, init parameters will be set only
once it is initialised... so, u have to do the same in
the init() method only...

thanks.

--- Raasi Potluri [EMAIL PROTECTED] wrote:

 Hello Hardik,
 
 thanks for your reply, yeas, I'm using the same code
 as you written,
 
 thanx eversomuch, please help me out
 
 the code looks like this
 
 [code]
 
 
 package com.jspbook;
 
 import java.io.*;
 import javax.servlet.*;
 import javax.servlet.http.*;
 
 public class InternationalizedHelloWorld extends
 HttpServlet {
 
 public void doGet(HttpServletRequest request,
 HttpServletResponse response) throws IOException,
 ServletException {
 
   response.setContentType(text/html);
 
   PrintWriter out = response.getWriter();
 
   String greeting;
 
   greeting =
 getServletConfig().getInitParameter(greeting);
   
   if(greeting != null) {
 
   System.out.println(lopaliki vachav);
   
   out.println(html);
   out.println(head);
   out.println(titleShabbu Bhai/title);
   out.println(/head);
   out.println(body);
   out.println(h1 + greeting + /h1);
   out.println(/body);
   out.println(/html);
 
   }
 
   else {
 
   System.out.println(bayate unnav);
 
   out.println(html);
   out.println(head);
   out.println(titleShabbu Bhai/title);
   out.println(/head);
   out.println(body);
   out.println(h1Emiledura Dunna/h1);
   out.println(/body);
   out.println(/html);
   
   
   }   
   
  }
   }
 
 
 [code]
 
 
 --- Hardik Tank [EMAIL PROTECTED] wrote:
 
  Hi,
  
  Are you using init() method of the servlet for
  fetching init parameters like this?
  
  String str =
  getServletConfig().getInitParameter(param1);
  
  
  Rgrds,
  Hardik
  
  
  --- Raasi Potluri [EMAIL PROTECTED] wrote:
  
   Dear Friends,
   
   I have written a simple servlet which reads a
 init
   parameter from the web.xml file and displays on
  the
   browser. I'm a beginner and trying to learn
 simple
   servlets, I have reached where I can read some
  init
   params from the web.xml file and displays on the
   browser, but all the simple servlets are working
   without any hassle, but reading init parameter
   returns
   null in the servlet, because I triend to print
  that
   on
   to the console, but it returns null, please help
  me,
   awaiting a reply, regards Raasi
   
   web.xml looks like this
   
   ?xml version=1.0 encoding=ISO-8859-1?
   !--
 Copyright 2004 The Apache Software Foundation
   
 Licensed under the Apache License, Version 2.0
   (the
   License);
 you may not use this file except in compliance
   with
   the License.
 You may obtain a copy of the License at
   
 http://www.apache.org/licenses/LICENSE-2.0
   
 Unless required by applicable law or agreed to
  in
   writing, software
 distributed under the License is distributed
 on
  an
   AS IS BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
   either
   express or implied.
 See the License for the specific language
   governing
   permissions and
 limitations under the License.
   --
   
   web-app xmlns=http://java.sun.com/xml/ns/j2ee;
  
  
 

xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  
  
 
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
   version=2.4
   
 display-nameWelcome to Tomcat/display-name
 description
Welcome to Tomcat
 /description
   
   
   !-- JSPC servlet mappings start --
   
   servlet
  
  
 

servlet-nameorg.apache.jsp.index_jsp/servlet-name
  
  
 

servlet-classorg.apache.jsp.index_jsp/servlet-class
   /servlet
   
   servlet-mapping
  
  
 

servlet-nameorg.apache.jsp.index_jsp/servlet-name
   url-pattern/index.jsp/url-pattern
   /servlet-mapping
   
   
   servlet
  
 servlet-nameHelloServlet/servlet-name
  
  servlet-classHelloServlet/servlet-class
   /servlet
   
   
   servlet-mapping
  
 servlet-nameHelloServlet/servlet-name
   url-pattern/HelloServlet/url-pattern
   /servlet-mapping
   
   servlet
   
  
 

servlet-nameInternationalizedHelloWorld/servlet-name
   
  
 

servlet-classcom.jspbook.InternationalizedHelloWorld/servlet-class
 init-param
param-namegreeting/param-name
param-valueKisahairetu/param-value
 /init-param
   /servlet
   
   servlet-mapping
   
  
 

servlet-nameInternationalizedHelloWorld/servlet-name
   
  
 

url-pattern/InternationalizedHelloWorld/url-pattern
   /servlet-mapping
   
   !-- JSPC servlet mappings end --
   
   /web-app
   
   
   
 
   __ 
   Do you Yahoo!? 
   Yahoo! Mail - Helps protect you from nasty
  viruses. 
   http://promotions.yahoo.com/new_mail