RE: Illegal Field Name Error

2005-10-12 Thread Raghupathy,Gurumoorthy
Can you prove me the action registration.RegistrationTypeAction as well ?


-Original Message-
From: Asad Habib [mailto:[EMAIL PROTECTED] 
Sent: 12 October 2005 12:42
To: Raghupathy,Gurumoorthy
Cc: [EMAIL PROTECTED]; 'Tomcat Users List'
Subject: RE: Illegal Field Name Error


Hello, below I have provided the struts configuration file:

?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE struts-config PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 1.2//EN
http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd;

struts-config
global-forwards
   forward name=home path=/home.jsp /
/global-forwards

action-mappings
   action path=/registrationType
type=registration.RegistrationTypeAction
  forward name=missing-registration-type
path=/missingRegistrationType.html /
   /action
/action-mappings
/struts-config

I am new to Struts so perhaps I overlooked something. Also, Anto, thanks 
for your input. I flushed the .class files and recompiled but that did not 
fix the problem. I also tried with a fresh copy of struts.jar. Your help 
would be greatly appreciated. Thanks.

- Asad


On Tue, 11 Oct 2005, Raghupathy,Gurumoorthy wrote:

 Cant you send the struts-config.xml ?

 -Original Message-
 From: Asad Habib [mailto:[EMAIL PROTECTED]
 Sent: 11 October 2005 14:59
 To: tomcat-user@jakarta.apache.org
 Subject: Illegal Field Name Error


 I am receiving the following error when trying to run a Struts
application.
 I
 checked and it seems that I do have all of the appropriate jar files
 installed.
 But for some reason, the Action class is not being recognized. Any help
 would
 be greatly appreciated. Thank you.

 - Asad


 HTTP Status 500 -

 type Exception report

 message

 description The server encountered an internal error () that prevented it
 from
 fulfilling this request.

 exception

 javax.servlet.ServletException: Illegal field name has inconsistent
 hierarchy
 in class
 registration/RegistrationTypeAction

 org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:293)


org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:16
 1)
 root cause

 java.lang.ClassFormatError: Illegal field name has inconsistent
hierarchy
 in
 class
 registration/RegistrationTypeAction
 java.lang.ClassLoader.defineClass1(Native Method)
 java.lang.ClassLoader.defineClass(ClassLoader.java:620)

 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)


org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
 ader.java:1629)


org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
 a:850)


org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
 a:1299)


org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
 a:1181)


org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117)


org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:14
 3)


org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcess
 or.java:280)


org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:218)

 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)

 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)


sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
 .java:25)
 java.lang.reflect.Method.invoke(Method.java:585)

 org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
 java.security.AccessController.doPrivileged(Native Method)
 javax.security.auth.Subject.doAsPrivileged(Subject.java:517)

 org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)


org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:16
 1)
 note The full stack trace of the root cause is available in the Apache
 Tomcat/5.5.9 logs.

 Apache Tomcat/5.5.9


 -
 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]



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



RE: Illegal Field Name Error

2005-10-11 Thread Raghupathy,Gurumoorthy
Cant you send the struts-config.xml ?

-Original Message-
From: Asad Habib [mailto:[EMAIL PROTECTED] 
Sent: 11 October 2005 14:59
To: tomcat-user@jakarta.apache.org
Subject: Illegal Field Name Error


I am receiving the following error when trying to run a Struts application.
I 
checked and it seems that I do have all of the appropriate jar files
installed. 
But for some reason, the Action class is not being recognized. Any help
would 
be greatly appreciated. Thank you.

- Asad


HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it
from 
fulfilling this request.

exception

javax.servlet.ServletException: Illegal field name has inconsistent
hierarchy 
in class
registration/RegistrationTypeAction

org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:293)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:16
1)
root cause

java.lang.ClassFormatError: Illegal field name has inconsistent hierarchy
in 
class
registration/RegistrationTypeAction
 java.lang.ClassLoader.defineClass1(Native Method)
 java.lang.ClassLoader.defineClass(ClassLoader.java:620)

java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo
ader.java:1629)

org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav
a:850)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1299)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1181)

org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117)

org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:14
3)

org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcess
or.java:280)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:218)

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)

org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 java.lang.reflect.Method.invoke(Method.java:585)

org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
 java.security.AccessController.doPrivileged(Native Method)
 javax.security.auth.Subject.doAsPrivileged(Subject.java:517)

org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:16
1)
note The full stack trace of the root cause is available in the Apache 
Tomcat/5.5.9 logs.

Apache Tomcat/5.5.9


-
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]



RE: How to get login username with pageContext?

2005-10-04 Thread Raghupathy,Gurumoorthy
%
String user = request.getRemoteUser();

%

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 04 October 2005 15:34
To: Tomcat Users List
Subject: How to get login username with pageContext?


%
pageContext.getRequest().???
List userRoleList =
UserRoleService.getInstance().getUserRoleList();
%

I fail to find getRemoteUser() in pageContext.getRequest
after login with JDBCRealm.
I'd like to pass it in as a parameter in getUserRoleList().

Thanks

-
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]



RE: How to logout after login with JDBCRealm?

2005-10-03 Thread Raghupathy,Gurumoorthy
What type of authentication are you using ? FORM / BASIC ?


If Basic then no you cant 
If form based then ( sesssion.invalidate() ) 

Guru

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 03 October 2005 03:08
To: Tomcat Users List
Subject: How to logout after login with JDBCRealm?


The webapp is enabled with JDBCRealm.
After login, how to logout without closing the browser?

Thnx

-
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]



FW: Apache and IIS

2005-09-30 Thread Raghupathy,Gurumoorthy
Proxy is may be on of the solution 

http://httpd.apache.org/docs/2.0/mod/mod_proxy.html#proxypass
http://httpd.apache.org/docs/2.0/mod/mod_proxy.html#proxypassreverse

Regards
Guru

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 30 September 2005 11:59
To: tomcat-user@jakarta.apache.org
Subject: Apache and IIS
Importance: High


I am trying to link Apache and IIS. I had already linked Apache and Tomcat
for processing .jsp files. Now I want to run .asp and /or .htm files having
in-code asp. Simple solution will do. I already tried LoadFile  Perl58.dll
available under Perl home and LoadModule mod_perl.so in httpd.conf. I am
using NT4.0 SP6a, Apache 2.0.44 and Tomcat 4.1.30.

regards
Rajeev Bahl

-
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]



RE: Struts Validation

2005-09-29 Thread Raghupathy,Gurumoorthy
Send your ApplicationResource.properties and alsi the struts-config.xml

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: 29 September 2005 17:52
To: Tomcat Users List
Subject: RE: Struts Validation


You need to copy some messages from validator-rules.xml's commented out
block.

-Original Message-
From: Samara, Fadi N Mr ACSIM/ASPEX [mailto:[EMAIL PROTECTED] 
Sent: September 29, 2005 12:44 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: Struts Validation

Dear list,

I have a very simple form that I am validating.  I enables the plugin and
the validation works fine, but when I submit an empty form, it shows NULL
instead of picking the correct msg for the particular field from the
properties files.  Any idea why this is happening ?
I tried all versions of the DTDs and still doesn't work.

Thanks
Fadi

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


!DSPAM:433c19d6207412972918781!

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



RE: change path of the session cookie

2005-09-26 Thread Raghupathy,Gurumoorthy
Why do you want it ?

-Original Message-
From: cristi [mailto:[EMAIL PROTECTED] 
Sent: 26 September 2005 14:12
To: Tomcat Users List
Subject: change path of the session cookie


Hello all

Is there any possibility of changing the path of the
session cookie ?

Thx.
Cristi Z.


-
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]



RE: Windows and Tomcat

2005-09-09 Thread Raghupathy,Gurumoorthy
Hello :)

-Original Message-
From: Lalit Batra [mailto:[EMAIL PROTECTED] 
Sent: 09 September 2005 14:18
To: Tomcat Users List
Subject: Re: Windows and Tomcat


I have received partial success. Windows has a bad habit to do things by 
default or to do things whcihc make no sense. 
The problem was due to inherritance/ permissions for Windows folder. 
Unsetting the read-only thing does not work, becasuse windows changes it to 
read-only by default. The only way one can work around is to change the 
folder options for XP, in view you have an option to change the security 
configuration. This will provide you with more granular (user based 
permissions for folders/files) access. Now you can change options you like. 
In unix chown and chmod would have solved the problems.

Thanks for help!!

Lalit

On 9/8/05, Robert Harper [EMAIL PROTECTED] wrote:
 
 Tomcat will also need write access rights. When it starts, it changes some
 of the XML configuration files and tries to create logs as well. You could
 give your user full control to the tree under your CATALINA_HOME. Since 
 you
 say that when you set the User to have power user rights it Tomcat seems 
 to
 run, I would guess that this would fix your problem. Logs of the error 
 might
 help more but if Tomcat cannot write to the directories, logs will not be
 able to be created.
 
 Not knowing more detail, this would be my guess.
 
 Robert S. Harper
 Information Access Technology, Inc.
 
 -Original Message-
 From: Lalit Batra [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 08, 2005 10:56 AM
 To: Tomcat Users List
 Subject: Re: Windows and Tomcat
 
 Robert,
 Thanks for replying!
 1) When I installed it I was in Admin user, and installed it with Service
 option. In windows services, Apache Tomcat we have an option of starting
 with USER. The service starts and shows me the owner as the User and 
 even
 in the Process information from (task Managger) I see User as the 
 process
 (tomcat) owner. So yes it starts with the USER I started the service with.
 
 2) User priveledges: The user has read+Execute permissions for the 
 webapps
 
 folder (changed it also for Aplication folder Tomcat under programs) and
 restarted many times.Still http://localhost does not come up. (I am using
 80, modified server to run on port 80).
 
 3) If I put the USER to Power User Group of XP everything works.
 
 
 please help
 
 thanks,
 Lalit
 
 
 On 9/8/05, Robert Harper [EMAIL PROTECTED] wrote:
 
  When you installed Tomcat, you were prompted if you want it to run as a
  service and if so, what user to use. You should be able to go into your
  Services app under ControlPannel\Administrative Tools\Services and 
 change
  the use and password that Tomcat starts with. If you need to, create an
  account with the rights you want and set the service to start with that
  account and the password to use. You can also set how Tomcat is to start
  as
  well.
 
  Robert S. Harper
  Information Access Technology, Inc.
  -Original Message-
  From: Lalit Batra [mailto:[EMAIL PROTECTED]
  Sent: Thursday, September 08, 2005 10:32 AM
  To: tomcat-user@jakarta.apache.org
  Subject: Windows and Tomcat
 
  Hi!
  I am new to the world of Tomcat and have recently installed 5.5.9 on a
  Windows (2003 and XP) Box. It works fine but only with Users having
  Administrative/power user privileges.
  1) When the service for tomcat is started with USER option, it does not 
 go
  and read the Webapps. The folder has read+execute, read options set for
  the
  normal USER.
  2) I have tried the same scenarios on both XP and Server 2003, the 
 result
  is
 
  same.
 
  Do we have to configure the tomcat-users.xml and if so then how do we 
 add
  the access for a normal user on Windows Box.
 
  Please help!
 
  Thanks,
  Lalit
 
 
  -
  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]
 


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



RE: Windows Authentication in Tomcat

2005-09-07 Thread Raghupathy,Gurumoorthy
http://jcifs.samba.org/
If you want more information let me know and I will send you the code 

-Original Message-
From: john polinsky [mailto:[EMAIL PROTECTED] 
Sent: 07 September 2005 11:28
To: tomcat-user@jakarta.apache.org
Subject: Windows Authentication in Tomcat


Hello there,

How Tomcat is usually configured when it is wanted to get 
information
from Windows Server (e.g. Active Directory running in W2k 
or Win2003)? 
What Realms should be used in Tomcat and how this is 
done, any document available?

Second question is, that if I e.g. for 
testing purposes want to use my local PC's Windows's username and 
passwords for Tomcat's authentication how that can be done? In this 
case I would have only my own PC running Windows without Windows 
Network Servers.

Can anyone give any tips to these questions?

Cheers!

-
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]



RE: getRealPath() returns real path plus context path

2005-09-06 Thread Raghupathy,Gurumoorthy
servletContext.getRealPath() is real path to the context path + the argument
...
So if you say servletContext.getRealPath(hithere) .. It will return
C:\path\to\tomcat\webapps\tool\hithere

Regards
Guru

-Original Message-
From: Franz-Josef Herpers [mailto:[EMAIL PROTECTED] 
Sent: 05 September 2005 20:40
To: Tomcat Users List
Subject: getRealPath() returns real path plus context path


Hi,

I've a problem when using ServletContext#getRealPath() with Tomcat 5.5.9.

My web application resides under the name tool in the webapps 
directory. When I call 
servletContext.getRealPath(request.getContextPath() I get the real path 
but always with the context path added at the end. That means a path 
like C:\path\to\tomcat\webapps\tool\tool.

Is there any explanation for this behaviour? Or am I doing something wrong?

Thanks for any hints in advance

Regards
Franz

-- 
Franz-Josef Herpers
Puschkinallee 9A
12435 Berlin
030/53 21 33 02
0173/54 23 666
[EMAIL PROTECTED]



-
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]



RE: How to get name of Engine a servlet is running in?

2005-09-02 Thread Raghupathy,Gurumoorthy
What yo uare doing is a very tomcat specifi thingy ... Use JNDI variable to
do things ...

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html

Regards
Guru

-Original Message-
From: Joe Reger, Jr. [mailto:[EMAIL PROTECTED] 
Sent: 02 September 2005 15:26
To: tomcat-user@jakarta.apache.org
Subject: How to get name of Engine a servlet is running in?


I'm trying to gain access to the name of the Engine that a servlet is 
running in. In most cases this will be Catalina as configured in the 
/conf/server.xml file. But when another Engine is configured, say 
CatalinaTesting, I need to get that name instead.

I've tried to navigate the methods and classes from:
request.getSession().getServletContext()
request.getSession()

but I haven't been able to find the Engine name in any of the attributes or 
properties.

Is there any way to get it? 

Actually, all I really need is a small string that's unique to each Engine 
configured on the server and stays the same after application 
deployments/restarts. What I'm currently using is code that grabs the last 
two directories in the root app path and concatenates them... something like

webappsROOT or webappsTestingROOT. It's unique, but ugly.

Thanks,

Joe

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



RE: Users Can See root files

2005-08-31 Thread Raghupathy,Gurumoorthy
If you are using apache as front end then  

LocationMatch (.*)/WEB-INF/(.*)
Deny from All
/LocationMatch


Regards
guru
-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED] 
Sent: 31 August 2005 16:24
To: tomcat-user@jakarta.apache.org
Subject: Users Can See root files


Hello,

I was showing someone my website the other day, and when they started
playing with the URL, they could see the jsp files, html files, and files
under the WEB-INF directory.

Is created a welcome-file-list in the web.xml, but I guess if someone
plays with the url and tries to get a look at the files that does not help.

How does one shut down all access to anything from a url 

Thanks
Scott

-
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]



RE: get is not supported

2005-08-24 Thread Raghupathy,Gurumoorthy
Put it in a package and it will run ... .

-Original Message-
From: Christian Stalp [mailto:[EMAIL PROTECTED] 
Sent: 24 August 2005 13:18
To: tomcat-user@jakarta.apache.org
Subject: get is not supported


Hello out there,
I working on a new servlet and it is very simple so far. But I cannot start 
it!?!
I get this error dumped on my browser:
[quote]
HTTP Status 405 - HTTP method GET is not supported by this URL

type Status report

message HTTP method GET is not supported by this URL

description The specified HTTP method is not allowed for the requested 
resource (HTTP method GET is not supported by this URL).
Apache Tomcat/5.5.9
[/quote]

The sourcecode is very simple so far...
[code]
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import com.softwareag.tamino.db.api.accessor.TAccessLocation;


public class Dialog extends HttpServlet {
   
   public void doGet ( HttpServletRequest req, HttpServletRequest res )
throws 
ServletException, IOException
   {
  res.setContentType ( text/html );
  PrintWriter out = res.getWriter();
  
  String name= req.getParameter( name );
  String vorname = req.getParameter( vorname );
  
  out.println( HTML);
  out.println( HEADTITLEAntwort/TITLE/HEAD );
  out.println( BODY);
  out.println( Name  + vorname +   + name );
  out.println( /BODY/HTML);
   }

}
[/code]

and the service-descriptor:
[code]
?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 
2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
  display-nameEingabe Ihrer Daten/display-name
  servlet
servlet-namehello/servlet-name
servlet-classDialog/servlet-class
  /servlet
  servlet-mapping
servlet-namehello/servlet-name
url-pattern/hello/url-pattern
  /servlet-mapping
/web-app
[/code]

Its really not complex so far, but I cannot find the problem.
Can anybody help me?

Gruss Christian

-- 
Christian Stalp
Institut für Medizinische Biometrie, Epidemiologie und Informatik
Johannes-Gutenberg-Universität Mainz
Tel.: 06131 / 17-3107
E-Mail: [EMAIL PROTECTED]

-
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]



RE: Http-status 500 error in Tomcat 4.1

2005-08-18 Thread Raghupathy,Gurumoorthy
Well I can also think of one more issue ... 
Installing tomcat in a directory with spaces in them 


I would rather suggest that you install tomcat in directory without spaces (
not C:\Program Files\Apache Group\Tomcat 4.1\ ) 
c:\Server\tomcat4.1\ will be a good option. I had loads of problems when I
installed tomcat to C:\Program Files\Apache Group\Tomcat 4.1\

Regards
Guru

-Original Message-
From: Rakesh [mailto:[EMAIL PROTECTED] 
Sent: 18 August 2005 10:01
To: Tomcat Users List
Subject: Re: Http-status 500 error in Tomcat 4.1


Hi subi,

you hav did servlet deployment almost correct but in url-pattern you hav
made a little mistake.Change it to:

servlet-mapping
 servlet-nameTestServlet/servlet-name
 url-pattern/servlet/TestServlet/url-pattern
/servlet-mapping

Try it and reply.

- Original Message - 
From: subi [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Thursday, August 18, 2005 11:28 AM
Subject: Http-status 500 error in Tomcat 4.1


Hello All,

I am using Tomcat 4.1. I just started working in it,

so this asking may be childish, if so, pls don't
mistake me.

Here is my webapp structure:

1. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\classes
   -here i have my servlet classes
2. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\jsp
-here i have a sample.htmfile
3. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\WEB-INF
   -here is the web.xml resides

my web.xml entry is like this:

!DOCTYPE web-app PUBLIC -//Sun Microsystems,
Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
servlet
  servlet-nameTestServlet/servlet-name
  servlet-classTestServlet/servlet-class
/servlet

servlet-mapping
  servlet-nameTestServlet/servlet-name

url-pattern/TestServlet/url-pattern
/servlet-mapping
/web-app

--
the sample.htm has the following entries:

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01
Transitional//EN
html
head
titleUntitled Document/title
meta http-equiv=Content-Type content=text/html;
charset=iso-8859-1
/head

body
pfont color=#99Hello, Welcome!/font /p
form
action=http:\\localhost:8080\testapp\TestServlet method=post
name=form1 target=_self
  input type=submit name=Submit value=Click Me
/form
pnbsp; /p
/body
/html

---

Here is what I done:
1. I started the Tomcat server
2. opened the IE browser and http://localhost:8080/testapp/jsp/sample.htm;
3. clicked the button which gives the error HTTP Status 500 -
TestServlet is not found

Please tell me what is the problem?


-- 
ilu,
subi


-
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]



RE: Http-status 500 error in Tomcat 4.1

2005-08-18 Thread Raghupathy,Gurumoorthy
Good spotted

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: 18 August 2005 10:00
To: Tomcat Users List
Subject: Re: Http-status 500 error in Tomcat 4.1


Just guessing, but are your servlets in a package? Packageless classes 
do not work. See http://jakarta.apache.org/tomcat/faq/classnotfound.html

Mark

subi wrote:
 Hello All,
 
 I am using Tomcat 4.1. I just started working in it,
  
 so this asking may be childish, if so, pls don't
 mistake me.
 
 Here is my webapp structure:
 
 1. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\classes 
-here i have my servlet classes
 2. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\jsp
 -here i have a sample.htmfile
 3. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\WEB-INF 
-here is the web.xml resides
 
 my web.xml entry is like this:
 
 !DOCTYPE web-app PUBLIC -//Sun Microsystems,
 Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
 web-app
   servlet
   servlet-nameTestServlet/servlet-name
   servlet-classTestServlet/servlet-class
   /servlet
   
   servlet-mapping
   servlet-nameTestServlet/servlet-name
  
 url-pattern/TestServlet/url-pattern
   /servlet-mapping
 /web-app
 
 --
 the sample.htm has the following entries:
 
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01
 Transitional//EN
 html
 head
 titleUntitled Document/title
 meta http-equiv=Content-Type content=text/html;
 charset=iso-8859-1
 /head
 
 body
 pfont color=#99Hello, Welcome!/font /p
 form
 action=http:\\localhost:8080\testapp\TestServlet method=post
 name=form1 target=_self
   input type=submit name=Submit value=Click Me
 /form
 pnbsp; /p
 /body
 /html
 
 ---
 
 Here is what I done:
 1. I started the Tomcat server
 2. opened the IE browser and
http://localhost:8080/testapp/jsp/sample.htm;
 3. clicked the button which gives the error HTTP Status 500 -
 TestServlet is not found
 
 Please tell me what is the problem?
 
 




-
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]



RE: Apache and Tomcat on separate hosts?

2005-08-17 Thread Raghupathy,Gurumoorthy
Try ...

In the workers2.properties

Change
host=ipaddressoftheremotemachine

Regards
Guru

-Original Message-
From: Jeff Schroeder [mailto:[EMAIL PROTECTED] 
Sent: 17 August 2005 14:17
To: tomcat-user@jakarta.apache.org
Subject: Apache and Tomcat on separate hosts?


I finally got Apache2 + mod_jk2 + tomcat 4.1 working with tomcat doing
vhosting on my laptop for development. The management said that is great
that I should now roll it over to the dev servers before putting it into
production.

I started setting up everything and was down to creating the vhost in
httpd.conf when I realized one fatal problem, Apache and Tomcat are on 2
separate servers. The way that I understand it, Apache finds a jsp page in
it's docroot and if the host is in workers2.properties, it gets handed over
to tomcat. 

If the webapp is not on the same box, how do you let apache find it to
hand over to tomcat? My first thought was NFS, but the change control board
frowns on any sort of filesharing among the servers. It's kind of important
to get this properly working, is there any other way? Thanks.

Jeff Schroeder
Web Administrator
Comair, Inc.



-
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]



RE: IBM IHS and TOMCAT 5.5.9

2005-08-09 Thread Raghupathy,Gurumoorthy
IBM HTTP SERVER  IS A IBM BRANDED VERSION OF APACHE ... 

http://www.google.co.uk/search?hl=enq=apache++%2B+tomcat+%2B+mod_jkmeta=

Will give you good answere ...

Guru



-Original Message-
From: Tom Spence [mailto:[EMAIL PROTECTED] 
Sent: 09 August 2005 16:51
To: Tomcat Users List
Subject: IBM IHS and TOMCAT 5.5.9



Hi,

I plan to use TOMCAT 5.5.9 for http server but my supervisor wants me to use
HTTP Server.

I am done for set up with HTTP Server so how can HTTP Server redirect to
TOMCAT?

I apprecaite your assist...

Tom


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



RE: Restarting Tomcat via Ant

2005-08-08 Thread Raghupathy,Gurumoorthy
project name=Learning default=reloadContext basedir=.

target name=reloadContext
get dest=stop.txt
src=http://localhost:8080/manager/stop?path=/Learning; 
username=adminUserName password=adminPassword/
loadfile property=STOPOUTPUT
srcfile=stop.txt/loadfile
echo${STOPOUTPUT}/echo
delete file=stop.txt/delete

get dest=start.txt
src=http://localhost:8080/manager/start?path=/Learning; 
username=adminUserNAme password=adminPassword/
loadfile property=STARTOUTPUT
srcfile=start.txt/loadfile
echo${STARTOUTPUT}/echo
delete file=start.txt/delete  
/target

/project


The only thing you need to change is the
http://localhost:8080/manager/stop?path=/Learning; of it ...

So if you want to do for www.manik.com for context /Learning

Then it will be http://www.manik.com/manager/stop?path=/Learning and 


if you want to do for www.guru.com for context /Learning

Then it will be http://www.guru.com/manager/stop?path=/Learning 


Hope you find this useful 


-Original Message-
From: itteerde (sent by Nabble.com) [mailto:[EMAIL PROTECTED] 
Sent: 08 August 2005 15:43
To: tomcat-user@jakarta.apache.org
Subject: Restarting Tomcat via Ant



Is there any way I can restart a remote Tomcat using an Ant task? I googled
a while and even found some sources but they were about HttpClient abusing
the manager application and exec calling the batches via net shares.

Anything better than the ManagerApp abuse?

thx in advance
--
Sent from the Tomcat - User forum at Nabble.com:
http://www.nabble.com/Restarting-Tomcat-via-Ant-t207149.html#a577719

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



RE: Major fopaw

2005-08-05 Thread Raghupathy,Gurumoorthy
Go to tomcat\conf\tomcat-users.xml 

-Original Message-
From: Jef Sullivan [mailto:[EMAIL PROTECTED] 
Sent: 05 August 2005 17:10
To: 'Tomcat Users List'
Subject: Major fopaw


I have made a major mistake and need some help from the group.
I have my system setup to run Jboss and Tomcat applications simultaneously.
I am having problems
with one of my Tomcat programs and need to access the manager section of
Tomcat. Unfortunately,
I cannot remember my username and password. Is there a way to determine what
that information is
without reinstalling Tomcat? Or, perhaps, reset the username and password? I
believe I know the username.

Please say yes,

Embarrassingly,


Jef Sullivan




-
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]



RE: SSL cert

2005-08-02 Thread Raghupathy,Gurumoorthy
Did you restart tomcat ?

-Original Message-
From: Andreas Andersson [mailto:[EMAIL PROTECTED] 
Sent: 02 August 2005 15:51
To: tomcat-user@jakarta.apache.org
Subject: SSL cert


Hi!

My certificate expired so I ordered a new one, I removed the old one in
my keystore and added the new one. I can look at my certificate with
keytool -list and its there and looks correct.

However, when I try to use the site it sends me the old one, claiming it
has expired.

Could I be doing anything wrong? Anyone else had this problem?

Thanks.
-- 
Andreas Andersson
IT Dept.
Travelstart Nordic
[EMAIL PROTECTED]
http://www.travelstart.se

-
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]



RE: Manager servlet to manage virtual hosts

2005-07-27 Thread Raghupathy,Gurumoorthy
You can do this with ant very nicely 

project name=Learning default=reloadContext basedir=.

target name=reloadContext
get dest=stop.txt
src=http://localhost:8080/manager/stop?path=/Learning; 
username=adminUserName password=adminPassword/
loadfile property=STOPOUTPUT
srcfile=stop.txt/loadfile
echo${STOPOUTPUT}/echo
delete file=stop.txt/delete

get dest=start.txt
src=http://localhost:8080/manager/start?path=/Learning; 
username=adminUserNAme password=adminPassword/
loadfile property=STARTOUTPUT
srcfile=start.txt/loadfile
echo${STARTOUTPUT}/echo
delete file=start.txt/delete  
/target

/project

The only thing you need to change is the
http://localhost:8080/manager/stop?path=/Learning; of it ...

So if you want to do for www.manik.com for context /Learning

Then it will be http://www.manik.com/manager/stop?path=/Learning and 


if you want to do for www.guru.com for context /Learning

Then it will be http://www.guru.com/manager/stop?path=/Learning 


Hope you find this useful 


Regards
Guru 

Guru Loves Tocmat and ant :)

Gurumoorthy Raghupathy
EMFS - Fidelity Investments International
Regret for the things we did can be tempered by time; it is regret for the
things we did not do that is inconsolable


To: tomcat-user@jakarta.apache.org
Subject: Manager servlet to manage virtual hosts


Hi,

I'm running TC 5.0.19 and have 8 virtual hosts on the box.

Each virtual host has a default (/) context with it's app deployed.

When I access tomcat on it's IP address on port 8080, I get the  
default tomcat root, with access to the admin and manager servlets.

Whenever I access the manager servlet though, I can only administer  
the root host and not contexts within the virtual hosts.

Essentially I need an easy mechanism to reload apps within the  
virtual hosts (wither via cmd line or www interface) without  
restarting tomcat or affecting the deployments on the other virtual  
hosts.

Any ideas on how I can best achieve this?

Thanks.
Manik

-
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]



RE: tomcat 5 - apache 2 - ldap

2005-07-27 Thread Raghupathy,Gurumoorthy
Ask tomcat  Because if sometime you change the webserver ( in the worst
case ) then you don't need to change anything :) 

Tomcat has good support for OpenLdap ... ( I have been using it for  1 year
) 

Guru


-Original Message-
From: Nili Adoram [mailto:[EMAIL PROTECTED] 
Sent: 27 July 2005 12:54
To: tomcat-user@jakarta.apache.org
Subject: tomcat 5 - apache 2 - ldap


Hi,

I need to setup the following system:

   - Tomcat 5.5.9
   - Apache 2 (using mod_jk)
   - Redhat 7.3
   - User authentication against Ldap (using OpenLdap)
   - Single sign-on (e.g. if the user is authenticated for entering a web
application he will not have to authenticate again when browsing a PHP
page)
   - Form-based authentication (login page)

I still need to figure out the following:

   - Should Tomcat or Apache do ldap authentication ?
   - How are credentials passed between Tomcat and Apache (to ensure single
sign-on) ?

Your help is appreciated.

-- 
Nili Adoram

-
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]



RE: tomcat 5 - apache 2 - ldap

2005-07-27 Thread Raghupathy,Gurumoorthy
If you use
Form-based authentication (login page) then tomcat needs to do it...

Regards
Guru

-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: 27 July 2005 13:02
To: 'Tomcat Users List'
Subject: RE: tomcat 5 - apache 2 - ldap


Ask tomcat  Because if sometime you change the webserver ( in the worst
case ) then you don't need to change anything :) 

Tomcat has good support for OpenLdap ... ( I have been using it for  1 year
) 

Guru


-Original Message-
From: Nili Adoram [mailto:[EMAIL PROTECTED] 
Sent: 27 July 2005 12:54
To: tomcat-user@jakarta.apache.org
Subject: tomcat 5 - apache 2 - ldap


Hi,

I need to setup the following system:

   - Tomcat 5.5.9
   - Apache 2 (using mod_jk)
   - Redhat 7.3
   - User authentication against Ldap (using OpenLdap)
   - Single sign-on (e.g. if the user is authenticated for entering a web
application he will not have to authenticate again when browsing a PHP
page)
   - Form-based authentication (login page)

I still need to figure out the following:

   - Should Tomcat or Apache do ldap authentication ?
   - How are credentials passed between Tomcat and Apache (to ensure single
sign-on) ?

Your help is appreciated.

-- 
Nili Adoram

-
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]

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



RE: Problem with Jasper-Need your help

2005-07-27 Thread Raghupathy,Gurumoorthy
%= request.getParameter(testParam) % may trow a null pointer  so try 

%= request.getParameter(testParam) == null ?  :
request.getParameter(testParam) %


Regards
Guru

-Original Message-
From: Panagiotis Karvounis [mailto:[EMAIL PROTECTED] 
Sent: 27 July 2005 13:23
To: tomcat-user@jakarta.apache.org
Subject: Problem with Jasper-Need your help


Hi.I am new with Tomcat and JSP and I need your help.

I am trying the following simple jsp:


!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
HTML
HEAD
TITLEJSP Expressions/TITLE
/HEAD
BODY
H2JSP Expressions/H2
UL
LICurrent time: %= new java.util.Date() %
LIYour hostname: %= request.getRemoteHost() %
LIYour session ID: %= session.getId() %
LIThe CODEtestParam/CODE form parameter:
%= request.getParameter(testParam) %
/UL
/BODY
/HTML



And I get this error:

type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
The method handlePageException(Exception) in the type PageContext is
not applicable for the arguments (Throwable)


org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3
28)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:382)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:280)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:259)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:247)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
44)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
96)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:302)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246)
javax.servlet.http.HttpServlet.service(HttpServlet.java)


note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.1 logs.

Can you help me?

Thanks 
Panagiotis

-
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]



RE: Manager servlet to manage virtual hosts

2005-07-27 Thread Raghupathy,Gurumoorthy
You can copy the manager.xml ( context definition ) from the 
www.myserver.com:8080/ webapps directory to the virtualhost webapps
directory and restart tomcat ... Then it will be available ...

Regards
Guru 

-Original Message-
From: Manik Surtani [mailto:[EMAIL PROTECTED] 
Sent: 27 July 2005 14:05
To: Tomcat Users List
Subject: Re: Manager servlet to manage virtual hosts



 Hi there.

 Yeah, this is pretty much what I want, only the problem is:

 www.myserver.com:8080/manager exists, but www.myvh_1.com:8080/ 
 manager and www.myvh_2.com:8080/manager, etc. does not exist ...

 For some reason the manager servlet is not avbl on my virtual hosts  
 and the manager on the main host can only manage contexts in that  
 host.

 Cheers,
 Manik









 On 27 Jul 2005, at 12:59, Raghupathy,Gurumoorthy wrote:


 You can do this with ant very nicely

 project name=Learning default=reloadContext basedir=.

 target name=reloadContext
 get dest=stop.txt
 src=http://localhost:8080/manager/stop?path=/Learning;
 username=adminUserName password=adminPassword/
 loadfile property=STOPOUTPUT
 srcfile=stop.txt/loadfile
 echo${STOPOUTPUT}/echo
 delete file=stop.txt/delete

 get dest=start.txt
 src=http://localhost:8080/manager/start?path=/Learning;
 username=adminUserNAme password=adminPassword/
 loadfile property=STARTOUTPUT
 srcfile=start.txt/loadfile
 echo${STARTOUTPUT}/echo
 delete file=start.txt/delete
 /target

 /project

 The only thing you need to change is the
 http://localhost:8080/manager/stop?path=/Learning; of it ...

 So if you want to do for www.manik.com for context /Learning

 Then it will be http://www.manik.com/manager/stop?path=/Learning and


 if you want to do for www.guru.com for context /Learning

 Then it will be http://www.guru.com/manager/stop?path=/Learning


 Hope you find this useful 


 Regards
 Guru

 Guru Loves Tocmat and ant :)

 Gurumoorthy Raghupathy
 EMFS - Fidelity Investments International
 Regret for the things we did can be tempered by time; it is regret  
 for the
 things we did not do that is inconsolable


 To: tomcat-user@jakarta.apache.org
 Subject: Manager servlet to manage virtual hosts


 Hi,

 I'm running TC 5.0.19 and have 8 virtual hosts on the box.

 Each virtual host has a default (/) context with it's app deployed.

 When I access tomcat on it's IP address on port 8080, I get the
 default tomcat root, with access to the admin and manager servlets.

 Whenever I access the manager servlet though, I can only administer
 the root host and not contexts within the virtual hosts.

 Essentially I need an easy mechanism to reload apps within the
 virtual hosts (wither via cmd line or www interface) without
 restarting tomcat or affecting the deployments on the other virtual
 hosts.

 Any ideas on how I can best achieve this?

 Thanks.
 Manik

 -
 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]






-
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]



RE: Instantiating an Application Scoped Bean

2005-07-27 Thread Raghupathy,Gurumoorthy
Define a servlet say com.guru.servlet.StartUpServlet 


And in the StartupServlet 


Overide the init() Method 


... init() {
super.init()
getServletContext().setAttribute(MyBean, MyBean);

}



And in WEB.XML 


servlet
servlet-nameStartUpServlet/servlet-name

servlet-classcom.guru.servlet.StartUpServlet/servlet-class
load-on-startup1/load-on-startup
/servlet


Regards
Guru


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 27 July 2005 14:41
To: tomcat-user@jakarta.apache.org
Subject: Instantiating an Application Scoped Bean



Hi,




I need some help on the following scenario:




As soon as I start my tomcat server, I need to populate an
application-scoped bean which will have values from the database.
Thereafter I should be able to access the bean across all JSP pages
using the jsp:useBean ... ...scope=application/ tag.




It'll be great if you guys can tell me how to initialize this bean at
server startup. Any specific web.xml entry to be recorded to map to the
servlet which does the DB operation?





Thanks!





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.

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



RE: Requests that are not handled by ROOT

2005-07-26 Thread Raghupathy,Gurumoorthy
Try filter map with * instead of /* 

Regards
Guru 

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: 26 July 2005 11:36
To: tomcat-user@jakarta.apache.org
Subject: Requests that are not handled by ROOT


Hi,
 
Mind's gone a little blank, should know this but our webapp has a setup such
that a filter maps /* requests and handles them.
 
However, Tomcat is preventing requests that do not match /abc with a 404 I
think because it thinks abc is another web application if it has /abc/def
 
E.g
 
/index.do HTTP/1.1 200 -
/utilities/index.do HTTP/1.1 404 -
 
My question is how do I get all requests (i.e both those above) to get
handled by the ROOT web application?
 
Cheers, Allistair


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Change Apache Run User

2005-07-22 Thread Raghupathy,Gurumoorthy
In httpd.conf ther us user and group .. Change that  

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 22 July 2005 15:22
To: tomcat-user@jakarta.apache.org
Subject: Change Apache Run User


 
I currently run startup scripts for Apache and Tomcat in the /etc/rc3.d
folder.  In the default setup the user 'nobody' is the one who the
Apache service runs as.  Does anyone know how to change the user that
Apache runs under?

Thanks for you help.


This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information.  If you have
received it in error, please notify the sender immediately and delete the
original.  Any other use of the email by you is prohibited.

-
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]



RE: Using a constant in a JSP

2005-07-20 Thread Raghupathy,Gurumoorthy

html:radio name=form property=frequencyType
value=%= FrequencyType.MEAL_TIME %  [...] /

Regards
Guru

-Original Message-
From: Guillaume Lederrey [mailto:[EMAIL PROTECTED] 
Sent: 20 July 2005 15:10
To: Tomcat Users List
Subject: Using a constant in a JSP


  Hello !

  This is probably a dumb question, but I'll try anyway. Please dont
laugh at my ignorance ;-)

  I'm trying to use a constant (static final String) that is defined
in a class. My code looks roughly so :


%@ page import='ch.tecost.siems.dao.care.planification.FrequencyType' %

[...]

html:radio name=form property=frequencyType
value=${FrequencyType.MEAL_TIME}  [...] /



Of course, this doesnt seem to work. What would be the right syntax ?
I'm a bit lost and dont know exactly what I should be looking for.
Yes, I tried Google with no success; or too much success (millions of
page that dont exactly tell me what to do in this case) ...

  Thanks a lot for the time you will take to make me less ignorant !


Guillaume

-
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]



RE: Using a constant in a JSP

2005-07-20 Thread Raghupathy,Gurumoorthy
logic:equals name=form property=frequencyType value=%=
FrequencyType.MEAL_TIME %
Guru Loves Struts 
/logic:equals

-Original Message-
From: Guillaume Lederrey [mailto:[EMAIL PROTECTED] 
Sent: 20 July 2005 15:29
To: Tomcat Users List
Subject: Re: Using a constant in a JSP


Next dummy question :

I have a test between a Constant and a page variable :

c:when test=${form.frequencyType == %
FrequencyType.MEAL_TIME.getValue(); %}

Which also doesnt use the right syntax ... If you're not bored yet,
could please help me a bit more ?

  Thanks a lot !

Guillaume

On 7/20/05, Guillaume Lederrey [EMAIL PROTECTED] wrote:
 On 7/20/05, Raghupathy,Gurumoorthy
 [EMAIL PROTECTED] wrote:
 
  html:radio name=form property=frequencyType
  value=%= FrequencyType.MEAL_TIME %  [...] /
 
  Regards
  Guru
 
 
   Thanks a lot ! Of course, it's obvious once we know it ...


-
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]



RE: Using a constant in a JSP

2005-07-20 Thread Raghupathy,Gurumoorthy
Sorry  My apologies ... Yes I am talking about struts taglibs ... 

Regards
Guru

I love Struts 

-Original Message-
From: Guillaume Lederrey [mailto:[EMAIL PROTECTED] 
Sent: 20 July 2005 15:58
To: Tomcat Users List
Subject: Re: Using a constant in a JSP


On 7/20/05, Raghupathy,Gurumoorthy
[EMAIL PROTECTED] wrote:
 logic:equals name=form property=frequencyType value=%=
 FrequencyType.MEAL_TIME %
 Guru Loves Struts
 /logic:equals

  Just a small correction for the next one who'll need this advice : 
The tag is logic:equal/ and NOT logic:equals/ (at least if we are
both talking about the struts-logic taglibs ...

-
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]



RE: Tomcat vs Jboss-Tomcat

2005-07-19 Thread Raghupathy,Gurumoorthy
For only jsp use tomcat ... More easy to configure and run 

-Original Message-
From: ohaya [mailto:[EMAIL PROTECTED] 
Sent: 19 July 2005 10:57
To: Tomcat Users List
Subject: Re: Tomcat vs Jboss-Tomcat


Sridhar,

For just JSPs, you only need Tomcat.  I think that JBoss will be needed
if you use EJBs.

Jim



Sridhar wrote:
 
 Hi Everybody,
 
 Is it any difference will come between Tomcat and Jboss-Tomcat.
 Which is best for Executing executing only JSPs.
 
 Regards
 Sridhar

-
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]



RE: Apache-like Deny/Allow directives

2005-07-18 Thread Raghupathy,Gurumoorthy
Cant you use 
Location /my_secured_resource
Order Deny,Allow
Deny from all
Allow from .company.com
/Location

Regards
Guru 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 18 July 2005 14:30
To: tomcat-user@jakarta.apache.org
Subject: Re: Apache-like Deny/Allow directives



The deny directives in the httpd.conf are not respected when it comes to
pages ending with either of the .jsp or .do extensions, and are therefore
relayed to Tomcat which then gives the response to the browser.

The Deny directives are not respected for these requests.

But I know that Apache still respects those directives, because all I can
access from outside of my .company.com domain is the plain html, without any
images or any style sheet. 

This behavior is confirmed by the Apache access.log and error.log

Finaly, to answer your question, my problem is not that I can't restrict
access to areas, it is that my restrictions defined in httpd.conf are not
respected when it comes to dynamic content.


Luc Boudreau
Université du Québec
Canada



-Message d'origine-
De : Justin Crabtree [mailto:[EMAIL PROTECTED] 
Envoyé : 15 juillet 2005 10:02
À : Tomcat Users List
Objet : Re: Apache-like Deny/Allow directives

[EMAIL PROTECTED] wrote:
 Is there any way, with Tomcat, to block connections from domains and allow
only certain ones, just like the Apache directive :
 
 Order Deny,Allow
 Deny from all
 Allow from .company.com
 
 I've setup my Apache server to do this, but since all the dynamic content
is relayed to tomcat (jsp's), it is still accessible to the internet.
 
 Luc Boudreau
 Université du Québec
 Canada


Is there a reason you can't use Apache directives on the areas you wish
to restrict?

-- 
Justin Crabtree
Java Programmer
Ozarks Technical Community College
447-7533

-
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]



RE: Apache-like Deny/Allow directives

2005-07-18 Thread Raghupathy,Gurumoorthy
Welcome ... 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 18 July 2005 16:57
To: tomcat-user@jakarta.apache.org
Subject: TR: Apache-like Deny/Allow directives



It seems that the Location directive is the right one to use. I've been
using the Directory directive and it didn't block the dynamic content. Now
that I've added the Location directive, it works and more, it adds a
supplemental security barrier.

Thanks a lot for your ideas, it really helped


Luc Boudreau
Université du Québec
Canada


-Message d'origine-
De : Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED] 
Envoyé : 18 juillet 2005 10:02
À : 'Tomcat Users List'
Objet : RE: Apache-like Deny/Allow directives

Cant you use 
Location /my_secured_resource
Order Deny,Allow
Deny from all
Allow from .company.com
/Location

Regards
Guru 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 18 July 2005 14:30
To: tomcat-user@jakarta.apache.org
Subject: Re: Apache-like Deny/Allow directives



The deny directives in the httpd.conf are not respected when it comes to
pages ending with either of the .jsp or .do extensions, and are therefore
relayed to Tomcat which then gives the response to the browser.

The Deny directives are not respected for these requests.

But I know that Apache still respects those directives, because all I can
access from outside of my .company.com domain is the plain html, without any
images or any style sheet. 

This behavior is confirmed by the Apache access.log and error.log

Finaly, to answer your question, my problem is not that I can't restrict
access to areas, it is that my restrictions defined in httpd.conf are not
respected when it comes to dynamic content.


Luc Boudreau
Université du Québec
Canada



-Message d'origine-
De : Justin Crabtree [mailto:[EMAIL PROTECTED] 
Envoyé : 15 juillet 2005 10:02
À : Tomcat Users List
Objet : Re: Apache-like Deny/Allow directives

[EMAIL PROTECTED] wrote:
 Is there any way, with Tomcat, to block connections from domains and allow
only certain ones, just like the Apache directive :
 
 Order Deny,Allow
 Deny from all
 Allow from .company.com
 
 I've setup my Apache server to do this, but since all the dynamic content
is relayed to tomcat (jsp's), it is still accessible to the internet.
 
 Luc Boudreau
 Université du Québec
 Canada


Is there a reason you can't use Apache directives on the areas you wish
to restrict?

-- 
Justin Crabtree
Java Programmer
Ozarks Technical Community College
447-7533

-
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]

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



RE: Tomcat Configuration

2005-07-14 Thread Raghupathy,Gurumoorthy
Context path= /myapplication docBase=
myapplication 
reloadable= true  crossContext= true   

Remove ( /webapps/ ) 

Regards
Guru
-Original Message-
From: Iin Nurhidayat [mailto:[EMAIL PROTECTED] 
Sent: 14 July 2005 12:14
To: Tomcat Users List
Subject: Tomcat Configuration



Hi All,

I have a problem with my deployment.

I have some servlets and one Login.html.
I will put my servlets and Login.html on
/myapplication

Based on book i have read :

a) I configure the server.xml
   Context path= /myapplication docBase=
/webapps/myapplication 
reloadable= true  crossContext= true   

Logger className=
org.apache.catalina.logger.FileLogger  
prefix= localhost_myapplication_log.  suffix= .txt
 
timestamp= true  /  
/Context  

b) I put Login.html under myapplication directory.
   $CATALINA_HOME\webapps\myapplication

c) I put servlets under classes directory
  
$CATALINA_HOME\webapps\myapplication\WEB-INF\classes.

But, Tomcat response is can not find /myapplication
(404).

Please advice ...


Thanks

- IN - 




Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

-
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]



RE: Tomcat Configuration

2005-07-14 Thread Raghupathy,Gurumoorthy
Did you restart tomcat ?

-Original Message-
From: Iin Nurhidayat [mailto:[EMAIL PROTECTED] 
Sent: 14 July 2005 13:30
To: Tomcat Users List
Subject: RE: Tomcat Configuration



Hi Guru,

i replced webapps but i have same problem also ...

Thanks

- IN - 


--- Raghupathy,Gurumoorthy
[EMAIL PROTECTED] wrote:

 Context path= /myapplication docBase=
 myapplication 
 reloadable= true  crossContext= true   
 
 Remove ( /webapps/ ) 
 
 Regards
 Guru
 -Original Message-
 From: Iin Nurhidayat [mailto:[EMAIL PROTECTED]
 
 Sent: 14 July 2005 12:14
 To: Tomcat Users List
 Subject: Tomcat Configuration
 
 
 
 Hi All,
 
 I have a problem with my deployment.
 
 I have some servlets and one Login.html.
 I will put my servlets and Login.html on
 /myapplication
 
 Based on book i have read :
 
 a) I configure the server.xml
Context path= /myapplication docBase=
 /webapps/myapplication 
 reloadable= true  crossContext= true   
 
 Logger className=
 org.apache.catalina.logger.FileLogger  
 prefix= localhost_myapplication_log.  suffix=
 .txt
  
 timestamp= true  /  
 /Context  
 
 b) I put Login.html under myapplication directory.
$CATALINA_HOME\webapps\myapplication
 
 c) I put servlets under classes directory
   

$CATALINA_HOME\webapps\myapplication\WEB-INF\classes.
 
 But, Tomcat response is can not find /myapplication
 (404).
 
 Please advice ...
 
 
 Thanks
 
 - IN - 
 
 
   
 
 Start your day with Yahoo! - make it your home page 
 http://www.yahoo.com/r/hs 
  
 

-
 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]
 
 


__
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]

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



RE: Tomcat Configuration

2005-07-14 Thread Raghupathy,Gurumoorthy
Send me the server.xml 

-Original Message-
From: Iin Nurhidayat [mailto:[EMAIL PROTECTED] 
Sent: 14 July 2005 13:36
To: Tomcat Users List
Subject: RE: Tomcat Configuration



yess 


--- Raghupathy,Gurumoorthy
[EMAIL PROTECTED] wrote:

 Did you restart tomcat ?
 
 -Original Message-
 From: Iin Nurhidayat [mailto:[EMAIL PROTECTED]
 
 Sent: 14 July 2005 13:30
 To: Tomcat Users List
 Subject: RE: Tomcat Configuration
 
 
 
 Hi Guru,
 
 i replced webapps but i have same problem also ...
 
 Thanks
 
 - IN - 
 
 
 --- Raghupathy,Gurumoorthy
 [EMAIL PROTECTED] wrote:
 
  Context path= /myapplication docBase=
  myapplication 
  reloadable= true  crossContext= true   
  
  Remove ( /webapps/ ) 
  
  Regards
  Guru
  -Original Message-
  From: Iin Nurhidayat
 [mailto:[EMAIL PROTECTED]
  
  Sent: 14 July 2005 12:14
  To: Tomcat Users List
  Subject: Tomcat Configuration
  
  
  
  Hi All,
  
  I have a problem with my deployment.
  
  I have some servlets and one Login.html.
  I will put my servlets and Login.html on
  /myapplication
  
  Based on book i have read :
  
  a) I configure the server.xml
 Context path= /myapplication docBase=
  /webapps/myapplication 
  reloadable= true  crossContext= true   
  
  Logger className=
  org.apache.catalina.logger.FileLogger  
  prefix= localhost_myapplication_log.  suffix=
  .txt
   
  timestamp= true  /  
  /Context  
  
  b) I put Login.html under myapplication directory.
 $CATALINA_HOME\webapps\myapplication
  
  c) I put servlets under classes directory

 

$CATALINA_HOME\webapps\myapplication\WEB-INF\classes.
  
  But, Tomcat response is can not find
 /myapplication
  (404).
  
  Please advice ...
  
  
  Thanks
  
  - IN - 
  
  
  
 
 
  Start your day with Yahoo! - make it your home
 page 
  http://www.yahoo.com/r/hs 
   
  
 

-
  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]
  
  
 
 
 __
 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]
 

-
 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]

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



RE: Tomcat and Apache

2005-07-11 Thread Raghupathy,Gurumoorthy
Check the permission in the work directory change it to 777 and try 

-Original Message-
From: Ivan Rodriguez [mailto:[EMAIL PROTECTED] 
Sent: 11 July 2005 15:14
To: Tomcat Users List
Subject: Re: Tomcat and Apache


I have the same issue! with debian sarge, and tomcat installed from scratch:

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
The return type is incompatible with JspSourceDependent.getDependants()



org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:84)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3
28)

org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)


jakarta-tomcat-5.5.9-src.tar.gz
Debian GNU/Linux 3.1
jdk1.5.0_03

No this isn't the solution. Tomcat and Apache are full independent. They
don't 
cooperate together nor they communicate. Apache listens at port 80 and
Tomcat 
at port 8180 ( its the Debian Solution ). 
But I cannot run tomcat under these configuration. I get an error dump each

time:
[quote]
HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it
from 
fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP
   at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:
432)
   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
142)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
nFilterChain.java:200)
   at org.apache.catalina.core.ApplicationFilterChain.access$000
(ApplicationFilterChain.java:51)
   at org.apache.cata.
..
[/quote]

Apache works fine and makes no trouble.

Gruss Christian

  



-
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]



RE: [OT] Recommend a UK Tomcat host

2005-07-08 Thread Raghupathy,Gurumoorthy
http://www.mycgiserver.com/

-Original Message-
From: Mark Benussi [mailto:[EMAIL PROTECTED] 
Sent: 08 July 2005 09:45
To: 'Tomcat Users List'
Cc: 'Struts Users Mailing List'
Subject: [OT] Recommend a UK Tomcat host


Apologies for the repost to the Tomcat list but I am getting desperate.


Can anyone recommend a UK based Tomcat hosting solution? I have been let
down by my current ISP (nameonthe.net) which has gone out of business.

 

Your help is greatly appreciated.

 

TIA Mark


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



RE: deny directory listing in tomcat

2005-07-05 Thread Raghupathy,Gurumoorthy
Change in tomcat\conf\web.xml 

servlet
servlet-namedefault/servlet-name
servlet-class
  org.apache.catalina.servlets.DefaultServlet
/servlet-class
init-param
param-namedebug/param-name
param-value0/param-value
/init-param
init-param
param-namelistings/param-name
param-valuetrue/param-value
/init-param
load-on-startup1/load-on-startup
/servlet

To

servlet
servlet-namedefault/servlet-name
servlet-class
  org.apache.catalina.servlets.DefaultServlet
/servlet-class
init-param
param-namedebug/param-name
param-value0/param-value
/init-param
init-param
param-namelistings/param-name
param-valuefalse/param-value
/init-param
load-on-startup1/load-on-startup
/servlet

Listing : false

Regards
Guru

-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED] 
Sent: 05 July 2005 11:55
To: Tomcat Users List
Subject: Re: deny directory listing in tomcat


On 7/5/05, vishwam [EMAIL PROTECTED] wrote:
 hi,
 
  iam using tomcat5.0, I have developed a web application on my server  and
I
 want to deny directory listing  in tomcat so that if any one types even
 http://localhost:8080 it should deny the listings.
 I tried by changing in
 web.xml  listings falselistings tag, but by this method I can prevent
 only my application.
 
 Can any one suggest the solution please.

put index.jsp or index.html in every folder.

-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

-
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]



RE: Remote deployment

2005-07-01 Thread Raghupathy,Gurumoorthy
Have you checked unison ? 

-Original Message-
From: Anoop kumar V [mailto:[EMAIL PROTECTED] 
Sent: 30 June 2005 18:43
To: Tomcat Users List
Subject: Re: Remote deployment


maybe you just want to ftp the files to the correct location...
u can ftp the war file  - that would be easier I think.

-Anoop

On 6/30/05, Vernon [EMAIL PROTECTED] wrote:
 I need to use the Ant to do remote deployment on TC,
 not using war file format if possible. I have done
 some search on the web and don't find the information
 I need. My development box is Window XP and the
 deployment box is Linux.
 
 Can any one point out an online documentation in this
 regard?
 
 Thanks.
 
 
 
 
 
 
 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]
 
 


-- 
Thanks and best regards,
Anoop

-
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]



RE: Application Level Classpath Setting

2005-07-01 Thread Raghupathy,Gurumoorthy
Put it in WEB-INF/lib

-Original Message-
From: Srinivas Ivaturi [mailto:[EMAIL PROTECTED] 
Sent: 01 July 2005 10:40
To: tomcat-user@jakarta.apache.org
Subject: Application Level Classpath Setting


Hi

I have a set of JAR files to be set into classpath. I cannot keep the
entire JARs into System classpath because of Windows OS restriction. Now
I want to put all the jars set to classpath only for that application
level for WAS. 

Thanks
Srinivas Ivaturi.


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



RE: tomcat default webapp

2005-07-01 Thread Raghupathy,Gurumoorthy
In the webapps directory there will be something called ROOT ... Change
the index.jsp inside that and point your browser to 
http://www.mydomain.com:8080

-Original Message-
From: Tony Smith [mailto:[EMAIL PROTECTED] 
Sent: 01 July 2005 18:39
To: Tomcat Users List
Subject: tomcat default webapp


I would like to set my web app as tomcat's default
app. Thus, if my visitor type
http://www.mydomain.com:8080, it will start my web
app, not the tomcat default. How can I do this? (I do
not want to change my web app's directory name, since
some people will still access my site from
http://www.mydomain.com/myapp). I found that people
talked about change the Context in Tomcat
5/conf/server.xml. But I can not found the commented
Context tag in my server.xml and do not know where to
put it. 

Could anyone help?

Thanks,





__ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail

-
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]



RE: Extra newline characters appenden to taglibs output?

2005-06-30 Thread Raghupathy,Gurumoorthy
Can you send the code of the sampleTag ? 

-Original Message-
From: Mikolaj Rydzewski [mailto:[EMAIL PROTECTED] 
Sent: 30 June 2005 10:30
To: Tomcat Users List
Subject: Extra newline characters appenden to taglibs output?


Hello,

I use Tomcat 5.0.30. I have problems with taglibs generated from 
tagfiles. Tomcat appends extra newline character at end of tag output. 
Example:

Tagfile with just one line, rally without newline characters, located 
in  WEB-INF/tags/sample.tag with one word:
Sample

And test jsp page:

!-- --tags:sample /!-- --

Output looks like this:

!-- --Sample
!-- --


Is there any way to avoid such behaviour? I wanted to use another 
tagfile to produce URL used in this way a href=tags:url ... //a 
and that newline is very unwanted.

-- 
Mikolaj Rydzewski  [EMAIL PROTECTED]
Becomo S.A.
tel. (12) 2927104



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



RE: http session lost between struts action

2005-06-27 Thread Raghupathy,Gurumoorthy
Well the issue is 

request.getSession(true)

Try something like 

MyObject myObj = new MyObject();
myObj.setAbc(Abc);
myObj,setDef(Def);
HttpSession session = request.getSession(false);

If ( session == null ) {
session = request.getSession(true);
}

session.setAttribute(MySessionName, myObj);




HttpSession session = request.getSession(false);

If ( session != null ) {
MyObject myObj =
(MyObject)request.getSession(true).getAttribute(MySessionName);
}


Because HttpSession session = request.getSession(true); will always create a
new session 

Regards
Guru 
-Original Message-
From: angelina zh [mailto:[EMAIL PROTECTED] 
Sent: 27 June 2005 17:18
To: Tomcat Users List
Subject: Re: http session lost between struts action


David,
 
Thanks a lot for your help.
 
My browser accepts cookies. Actually I inspected the cookies as well as the
session object when I was debugging. The cookies is a valid array with valid
sessionId inside and the method isRequestedSessionIdFromCookie() returns
true as long as the http session object is valid. But when the session got
lost, the cookies became to null and the method
isRequestedSessionIdFromCookie() returns false.
 
The links are the paths defined in the struct-config.xml file. The
jsessionid is still valid when the session get lost.
 
Here is how the code looks like in the LogInAction:
MyObject myObj = new MyObject();
myObj.setAbc(Abc);
myObj,setDef(Def);
HttpSession session = request.getSession(true);
session.setAttribute(MySessionName, myObj);
 
Here is how the code looks like in the following actions:
MyObject myObj =
(MyObject)request.getSession(true).getAttribute(MySessionName);
 
I have a FrontController servlet class to hand request and response. When a
link on the welcome page got clicked, I noticed that in the FrontController
servlet class, the session in the request became to null via eclipse's
debugging tool. (Before this point, the session is all valid.) Then in the
following action class, a new standard session got created. So my personal
session information totally lost.
 
Anything else I shall try?
 
Thanks so much!
 
Angelina

David Smith [EMAIL PROTECTED] wrote:
Check these:

1. Your browser is accepting cookies
2. Your links are being generated by taglibs that insure the jsessionid 
is attached if needed. I say if needed because if tomcat is getting a 
valid session cookie from your browser, the jsessionid won't be added to 
the link.

They don't both have to be done, but chances of eliminating errors are 
best if they are. Beyond that, I would have to suspect the way you are 
trying to access the session attributes either in setting them or in 
retrieving them. Could you post code snippets that show how you are 
setting and retrieving attributes?

--David




-
Yahoo! Sports
 Rekindle the Rivalries. Sign up for Fantasy Football

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



RE: Problem running three tomcats and not having a sticky session

2005-06-23 Thread Raghupathy,Gurumoorthy
http://raibledesigns.com/tomcat/

Do you have jvmRoute=tomcat1 in the Engine  tag ?

-Original Message-
From: Ralph Lange [mailto:[EMAIL PROTECTED] 
Sent: 23 June 2005 14:41
To: tomcat-user@jakarta.apache.org
Subject: Problem running three tomcats and not having a sticky session


Dear Tomcat users,
Our setup: cocon 2.1.5.1, tomcat 5.5.4,  jdk 1.5.0.
In order to manage much more requests, I have installed three tomcats 
connected to one apache via mod_jk's loadbalancer and on each of  the 
tomcats runs a cocoon.
The problem now is, when I build a session via Firefox, exactly one of 
the three cocoons should serve
subsequent requests, because it should be a sticky session.
But instead the three cocoons change in serving the request.
What can I do to have a sticky session?
Yours sincerely, Ralph Lange

-
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]



RE: default username/password for tomcat

2005-06-23 Thread Raghupathy,Gurumoorthy
Look in tomcat/conf/tomcat-user.xml 

-Original Message-
From: Tony Smith [mailto:[EMAIL PROTECTED] 
Sent: 23 June 2005 18:45
To: Tomcat Users List
Subject: default username/password for tomcat 


What is the default username/password for Tomcat
Manager? I can not log in to Tomcat Manager. I did not
set my own username/password when I instlled tomcat.
They must be the defualt.

Thanks,




 
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]

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



Documentation ... : Your Advices please

2005-06-22 Thread Raghupathy,Gurumoorthy
Hello All,
I am thinking of writing a document of how to set up. Apache +
tomcat + mod_jk with Apache using SSL. for free.
I am using Apache 1.3.* and Tomcat 4.1 and this works very nicely
 I have this running on my linux box for 2 years + now. 

I need your advice if I create a document of how to setup this will
it be use full. I am thinking that tomcat now being 5.5.* and 
apache 2.0.* will it be worth my time for the peoplpe or do you
think I should upgrade as well 

Regards
Guru 

Gurumoorthy Raghupathy
EMFS - Fidelity Investments International
* Tel: +44 1737 836798
* Internal: 8-724 6798
* Tel (R): +442086423806
* Mail-Zone : XTB2B
* E-Mail: mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 

Regret for the things we did can be tempered by time; it is regret for the
things we did not do that is inconsolable

Important: Fidelity Investments International, Fidelity Investment Services
Limited, Fidelity Pensions Management and Financial Administration Services
Limited (a Fidelity Group company) are all authorised and regulated in the
UK by the Financial Services Authority and have their registered offices at
Oakhill House, 130 Tonbridge Road, Hildenborough, Tonbridge, Kent TN11 9DZ.
Tel 01732 361144. Fidelity only gives information on products and does not
give investment advice to private clients based on individual circumstances.
Any comments or statements made are not necessarily those of Fidelity. The
information transmitted is intended only for the person or entity to which
it is addressed and may contain confidential and/or privileged material. If
you received this in error, please contact the sender and delete the
material from any computer. All e-mails sent from or to Fidelity may be
subject to our monitoring procedures. 'Direct link to Fidelitys website.
http://www.fidelity-international.com/world/index.html
http://www.fidelity-international.com/world/index.html 



RE: JBoss with Tomcat using Eclipse

2005-06-22 Thread Raghupathy,Gurumoorthy
I guess it should be http://localhost:81/fibo/ 

-Original Message-
From: Enda Dowling [mailto:[EMAIL PROTECTED] 
Sent: 22 June 2005 11:32
To: tomcat-user@jakarta.apache.org
Subject: JBoss with Tomcat using Eclipse


Hey!

  I downloaded the pug-ins for eclipse 3.0 to use JBoss. I followed a
tutorial on the internet
http://docs.jboss.com/jbosside/tutorial/build/en/html/debugging.html and it
all worked wellup until the very end. My file is deployed and works but when
try and run the file, it doesn't work. I think its to do with how I have
tomcat configured, cos everything else works. When I go to
http://localhost:81/fabio/ it doesn't find the requested file. Anyone know
what the problem might be? 

Thanks,

Enda

 

 


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



RE: JBoss with Tomcat using Eclipse

2005-06-22 Thread Raghupathy,Gurumoorthy
Are you running on the correct port ? 8080  or are you sure that it is 81 ?
What is th error you getting ? 404 ( produced by tomcat )  or any thing else
?

-Original Message-
From: Enda Dowling [mailto:[EMAIL PROTECTED] 
Sent: 22 June 2005 13:26
To: 'Tomcat Users List'
Subject: RE: JBoss with Tomcat using Eclipse


Sorry I just spelt it wrong in the email. Any other suggestions buddy?

-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: 22 June 2005 11:46
To: 'Tomcat Users List'
Subject: RE: JBoss with Tomcat using Eclipse

I guess it should be http://localhost:81/fibo/ 

-Original Message-
From: Enda Dowling [mailto:[EMAIL PROTECTED] 
Sent: 22 June 2005 11:32
To: tomcat-user@jakarta.apache.org
Subject: JBoss with Tomcat using Eclipse


Hey!

  I downloaded the pug-ins for eclipse 3.0 to use JBoss. I followed a
tutorial on the internet
http://docs.jboss.com/jbosside/tutorial/build/en/html/debugging.html and it
all worked wellup until the very end. My file is deployed and works but when
try and run the file, it doesn't work. I think its to do with how I have
tomcat configured, cos everything else works. When I go to
http://localhost:81/fabio/ it doesn't find the requested file. Anyone know
what the problem might be? 

Thanks,

Enda

 

 


-
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]

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



RE: New user, help!

2005-06-22 Thread Raghupathy,Gurumoorthy
Firtst read java / j2ee / jsp and some tutorials ... 
http://www.tusc.com.au/tutorial/html is a good place to start 

Guru


-Original Message-
From: Steve [mailto:[EMAIL PROTECTED] 
Sent: 22 June 2005 16:49
To: Tomcat Users List
Subject: Re: New user, help!


I am a newbie at this stuff also, and as I understand, for development I 
do not need to install Apache at all. Tomcat will act as a static web 
page server. I am using eclipse so I dont even want Apache installed. 
Just redirect everything to localhost:8080

Steve

Jon Wingfield wrote:

 You need some JkMount directives to tell Apache which requests to 
 forward to Tomcat.

 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/config/apache.html

 Jon

 Katherine Faella wrote:

 I am a new user of Apache and of Tomcat.  I am using a Redhat AS 4.0 
 system.  I am running Apache V2.0.54  and my version of Tomcat is 
 5.5.9. I believe my apache installation is okay because when I go to 
 localhost I see the apache welcome screen.  When I go to 
 localhost:8080 I see the Tomcat welcome screen.   For a short while, 
 when I went to localhost I actually saw the Tomcat welcome screen and 
 could run the samples there. The only thing missing were the Tomcat 
 icons etc.

 However,  I have improved my installation to the point where tomcat 
 is no longer serving for apache, ie. at localhost I see the apache 
 welcome screen.  When I peer around at various log files I do not see 
 any obvious errors.  Needless to say - I am going nowhere!

 Can anyone help me?  Point me in the right direction at least?!

 Thanks in advance,
 Kathy Faella
 University of Rhode Island

 a netstat -ln returns:
 Active Internet connections (only servers)
 Proto Recv-Q Send-Q Local Address   Foreign Address State
 tcp0  0 0.0.0.0:111 0.0.0.0:* LISTEN
 tcp0  0 127.0.0.1:631   0.0.0.0:* LISTEN
 tcp0  0 127.0.0.1:250.0.0.0:* LISTEN
 tcp0  0 :::127.0.0.1:8005   :::* LISTEN
 tcp0  0 :::8009 :::* LISTEN
 tcp0  0 :::80   :::* LISTEN
 tcp0  0 :::8080 :::* LISTEN
 tcp0  0 :::22   :::* LISTEN
 udp0  0 0.0.0.0:111 0.0.0.0:*
 udp0  0 0.0.0.0:631 0.0.0.0:*
 udp0  0 198.168.1.76:1230.0.0.0:*
 udp0  0 131.128.1.76:1230.0.0.0:*
 udp0  0 127.0.0.1:123   0.0.0.0:*
 udp0  0 0.0.0.0:123 0.0.0.0:*
 udp0  0 :::123  :::*
 Active UNIX domain sockets (only servers)
 Proto RefCnt Flags   Type   State I-Node Path
 unix  2  [ ACC ] STREAM LISTENING 5899   /dev/gpmctl
 unix  2  [ ACC ] STREAM LISTENING 5986 
 /tmp/.font-unix/fs7100
 unix  2  [ ACC ] STREAM LISTENING 5515 
 /var/run/acpid.socket
 unix  2  [ ACC ] STREAM LISTENING 6062 
 /var/run/dbus/system_bus_socket


 ***  To the default httpd.conf I added:

 LoadModule jk_module modules/mod_jk.so

 #
 # Configure mod_jk*** kmf ***
 #


 JkWorkersFile /usr/local/apache2/conf/workers.properties
 JkLogFile /usr/local/apache2/logs/mod_jk.log
 JkLogLevel info

 JkShmFile /var/log/httpd/jkshmfile
 JkShmSize 20M

 *** my workers.properties  ***

 # workers.properties.minimal -
 #
 # This file provides minimal jk configuration properties needed to
 # connect to Tomcat.
 #
 # The workers that jk should create and work with
 #
 worker.list=loadbalancer

 #
 # Defining a worker named ajp13w and of type ajp13
 # Note that the name and the type do not have to match.
 #
 worker.ajp13w.type=ajp13
 worker.ajp13w.host=localhost
 worker.ajp13w.port=8009

 # add any new workers to the list here to have them balanced
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp13w

 workers.tomcat_home=/usr/local/src/jakarta-tomcat-5.5.9
 workers.java_home=/usr/java/jdk1.5.0_03



 -
 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]





-- 
Rowan Cottage, Main Road, Littleton, Winchester, SO22 6QS
cellular 07791766560, 
landline: 01962 881924


-
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]



RE: Move Webapps

2005-06-22 Thread Raghupathy,Gurumoorthy
Change 
Host name=localhost debug=0 appBase=webapps 
   unpackWARs=true autoDeploy=true
To
Host name=localhost debug=0 appBase=D:\Data 
   unpackWARs=true autoDeploy=true
And restart tomcat 

guru
-Original Message-
From: MW [mailto:[EMAIL PROTECTED] 
Sent: 22 June 2005 17:24
To: tomcat-user@jakarta.apache.org
Subject: Move Webapps


I would like to move the Webapps
from the current default path (CATALINA_HOME\WEBAPPS) to a different
path on a different drive - let's say D:\DATA.  I would still prefer
to run the webserver from the default installation directory, as I
only want to move the webapps to serve them from another location.
What steps do I need to take to accomplish this?

-
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]



RE: Utilizing Port 81 for Apache/Tomcat

2005-06-21 Thread Raghupathy,Gurumoorthy
And also the port for ajp13 listener and worker.properties and server.xml ..
Make sure that they don't clash with each other

-Original Message-
From: Anand Vijay [mailto:[EMAIL PROTECTED] 
Sent: 21 June 2005 13:08
To: Tomcat Users List
Subject: Re: Utilizing Port 81 for Apache/Tomcat


U need to configure that in httpd.conf of new apapche instance

change directive port

regards
Vijay

[EMAIL PROTECTED] said the following on 21/06/2005 5:32 PM:

I am running Apache 1.3 and Tomcat 3.3 currently in my production
environment.  I want to test Apache 2.0 and Tomcat 5.5 in the same
environment and ensure that all the virtual hosts which I am accessing
are in fact accessible through that configuration.  In order to do this,
I must keep the current versions running as it is production
environment.  For the newer setup, I would like to utilize Port 81for
testing purposes.
 
Can anyone explain how I would do that by changing which configurations
and which files and how I would actually test it in that setup?  Also,
are there any other things I should be aware of in this situation?
 
Thanks.


This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information.  If you have
received it in error, please notify the sender immediately and delete
the original.  Any other use of the email by you is prohibited.

  


-
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]



RE: How to make tomcat work on a remote server?

2005-06-21 Thread Raghupathy,Gurumoorthy
Sorry could not get back to you earlier ... 

I think you are worker2.properties ... 

Remove 
LoadModule jk2_module modules/mod_jk2.so
Include /usr/local/tomcat/conf/auto/mod_jk2.conf


Your workers.
Should be somehting like this .. .. 

http://jakarta.apache.org/tomcat/connectors-doc/howto/workers.html

I will look into your problem from home ..  Have emailed my home address ...


Regards
Guru 

-Original Message-
From: sai krishna [mailto:[EMAIL PROTECTED] 
Sent: 21 June 2005 13:06
To: Tomcat Users List
Subject: RE: How to make tomcat work on a remote server?


 Can anyone help me out  here??
 Im unable to access my jsp page on the net. I get
internal server error. Im using included both mod_jk
and mod_jk2 module, /var/logs/httpd/log shows that
mod_jk2 starts but down below this module I loaded
mod_jk module so it will support JkMount command in
httpd.conf file. Can any one suggest m e the best
method to access jsp pages on tomcat 4.1.17 either
mod_jk/mod_jk2 connector and 2.0.52 apache on Fedora
box 2.
Today I added JkMount line in httpd.conf and rest
everything is same as my down files 
 
  server.xml is as following
  Server port=8005 shutdown=SHUTDOWN debug=0
!-- Define an Apache-Connector Service --
 Service name=Tomcat-Apache
   !-- Define a Coyote/JK2 AJP 1.3 Connector on
port 8009 --
  Connector
 className=org.apache.coyote.tomcat4.CoyoteConnector
  port=8009 minProcessors=5 maxProcessors=75
  enableLookups=true redirectPort=8443
  acceptCount=10 debug=0
  connectionTimeout=2
  useURIValidationHack=false
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
Engine name=Apache
  defaultHost=www.oursitename.com debug=0
  Logger
  className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/
  !-- Access log processes all requests for this
  virtual host. --
  Valve
 
className=org.apache.catalina.valves.AccessLogValve
  directory=logs  prefix=localhost_access_log.
  suffix=.txt
  pattern=common resolveHosts=false/
   Host name=www.oursitename.com debug=0

appBase=/home/httpd/vhosts/oursitename.com/httpdocs/
   unpackWARs=true autoDeploy=true
  Aliaslocalhost/Alias
  Aliaswww/Alias/Host
  AliasOur IP/Alias
  /Engine
   /Service
   /Server
  
  --
  httpd.conf file
LoadModule jk2_module modules/mod_jk2.so
LoadModule jk_module modules/mod_jk.so
Include /usr/local/tomcat/conf/auto/mod_jk2.conf
Include /usr/local/tomcat/conf/auto/mod_jk.conf
VirtualHost Our IP:80
  ServerName   oursite.com:80
  ServerAlias  www.oursite.com
  UseCanonicalName On
  DocumentRoot
   /home/httpd/vhosts/oursite.com/httpdocs
  CustomLog 
/home/httpd/vhosts/oursite.com/statistics/logs/access_log
   combined
  ErrorLog  
/home/httpd/vhosts/oursite.com/statistics/logs/error_log
  Alias /trainer
/home/httpd/vhosts/oursite.com/httpdocs/trainer

JkMount /trainer/*.jsp ajp13
JkMount /trainer/adminjsp/*.jsp ajp13
Directory
/home/httpd/vhosts/oursite.com/httpdocs/trainer/
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory
Location /trainer/WEB-INF/*
AllowOverride None 
deny from all 
/Location 
Location /trainer/META-INF/*
AllowOverride None
deny from all
/Location
Directory /home/httpd/vhosts/oursite.com/httpdocs/
Options None
AllowOverride None
/Directory

  ---
workers.properties
[logger.apache2]
level=DEBUG
  
[shm]
file=/home/httpd/vhosts/oursite.com/tomcatlog
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
 port=8009
 host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
 
# Uri mapping
[uri:ourIP/*.jsp]
worker=ajp13:localhost:8009
 
[uri:www.oursite.com/*.jsp]
worker=ajp13:localhost:8009

  --


__
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]

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



RE: How to make tomcat work on a remote server?

2005-06-21 Thread Raghupathy,Gurumoorthy
From my experience 
Your DocumentRoot should be different to the appBase of your virtual
host ... 
Set the document root to something else and try 


Regards
Guru


-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: 21 June 2005 13:45
To: 'Tomcat Users List'
Cc: '[EMAIL PROTECTED]'
Subject: RE: How to make tomcat work on a remote server?


Sorry could not get back to you earlier ... 

I think you are worker2.properties ... 

Remove 
LoadModule jk2_module modules/mod_jk2.so
Include /usr/local/tomcat/conf/auto/mod_jk2.conf


Your workers.
Should be somehting like this .. .. 

http://jakarta.apache.org/tomcat/connectors-doc/howto/workers.html

I will look into your problem from home ..  Have emailed my home address ...


Regards
Guru 

-Original Message-
From: sai krishna [mailto:[EMAIL PROTECTED] 
Sent: 21 June 2005 13:06
To: Tomcat Users List
Subject: RE: How to make tomcat work on a remote server?


 Can anyone help me out  here??
 Im unable to access my jsp page on the net. I get
internal server error. Im using included both mod_jk
and mod_jk2 module, /var/logs/httpd/log shows that
mod_jk2 starts but down below this module I loaded
mod_jk module so it will support JkMount command in
httpd.conf file. Can any one suggest m e the best
method to access jsp pages on tomcat 4.1.17 either
mod_jk/mod_jk2 connector and 2.0.52 apache on Fedora
box 2.
Today I added JkMount line in httpd.conf and rest
everything is same as my down files 
 
  server.xml is as following
  Server port=8005 shutdown=SHUTDOWN debug=0
!-- Define an Apache-Connector Service --
 Service name=Tomcat-Apache
   !-- Define a Coyote/JK2 AJP 1.3 Connector on
port 8009 --
  Connector
 className=org.apache.coyote.tomcat4.CoyoteConnector
  port=8009 minProcessors=5 maxProcessors=75
  enableLookups=true redirectPort=8443
  acceptCount=10 debug=0
  connectionTimeout=2
  useURIValidationHack=false
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
Engine name=Apache
  defaultHost=www.oursitename.com debug=0
  Logger
  className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/
  !-- Access log processes all requests for this
  virtual host. --
  Valve
 
className=org.apache.catalina.valves.AccessLogValve
  directory=logs  prefix=localhost_access_log.
  suffix=.txt
  pattern=common resolveHosts=false/
   Host name=www.oursitename.com debug=0

appBase=/home/httpd/vhosts/oursitename.com/httpdocs/
   unpackWARs=true autoDeploy=true
  Aliaslocalhost/Alias
  Aliaswww/Alias/Host
  AliasOur IP/Alias
  /Engine
   /Service
   /Server
  
  --
  httpd.conf file
LoadModule jk2_module modules/mod_jk2.so
LoadModule jk_module modules/mod_jk.so
Include /usr/local/tomcat/conf/auto/mod_jk2.conf
Include /usr/local/tomcat/conf/auto/mod_jk.conf
VirtualHost Our IP:80
  ServerName   oursite.com:80
  ServerAlias  www.oursite.com
  UseCanonicalName On
  DocumentRoot
   /home/httpd/vhosts/oursite.com/httpdocs
  CustomLog 
/home/httpd/vhosts/oursite.com/statistics/logs/access_log
   combined
  ErrorLog  
/home/httpd/vhosts/oursite.com/statistics/logs/error_log
  Alias /trainer
/home/httpd/vhosts/oursite.com/httpdocs/trainer

JkMount /trainer/*.jsp ajp13
JkMount /trainer/adminjsp/*.jsp ajp13
Directory
/home/httpd/vhosts/oursite.com/httpdocs/trainer/
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory
Location /trainer/WEB-INF/*
AllowOverride None 
deny from all 
/Location 
Location /trainer/META-INF/*
AllowOverride None
deny from all
/Location
Directory /home/httpd/vhosts/oursite.com/httpdocs/
Options None
AllowOverride None
/Directory

  ---
workers.properties
[logger.apache2]
level=DEBUG
  
[shm]
file=/home/httpd/vhosts/oursite.com/tomcatlog
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
 port=8009
 host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
 
# Uri mapping
[uri:ourIP/*.jsp]
worker=ajp13:localhost:8009
 
[uri:www.oursite.com/*.jsp]
worker=ajp13:localhost:8009

  --


__
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]

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



RE: How to make tomcat work on a remote server?

2005-06-21 Thread Raghupathy,Gurumoorthy
Hey just got it 

Look at : http://www.junlu.com/msg/170819.html 

-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: 21 June 2005 14:04
To: 'Tomcat Users List'
Cc: '[EMAIL PROTECTED]'
Subject: RE: How to make tomcat work on a remote server?


From my experience 
Your DocumentRoot should be different to the appBase of your virtual
host ... 
Set the document root to something else and try 


Regards
Guru


-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: 21 June 2005 13:45
To: 'Tomcat Users List'
Cc: '[EMAIL PROTECTED]'
Subject: RE: How to make tomcat work on a remote server?


Sorry could not get back to you earlier ... 

I think you are worker2.properties ... 

Remove 
LoadModule jk2_module modules/mod_jk2.so
Include /usr/local/tomcat/conf/auto/mod_jk2.conf


Your workers.
Should be somehting like this .. .. 

http://jakarta.apache.org/tomcat/connectors-doc/howto/workers.html

I will look into your problem from home ..  Have emailed my home address ...


Regards
Guru 

-Original Message-
From: sai krishna [mailto:[EMAIL PROTECTED] 
Sent: 21 June 2005 13:06
To: Tomcat Users List
Subject: RE: How to make tomcat work on a remote server?


 Can anyone help me out  here??
 Im unable to access my jsp page on the net. I get
internal server error. Im using included both mod_jk
and mod_jk2 module, /var/logs/httpd/log shows that
mod_jk2 starts but down below this module I loaded
mod_jk module so it will support JkMount command in
httpd.conf file. Can any one suggest m e the best
method to access jsp pages on tomcat 4.1.17 either
mod_jk/mod_jk2 connector and 2.0.52 apache on Fedora
box 2.
Today I added JkMount line in httpd.conf and rest
everything is same as my down files 
 
  server.xml is as following
  Server port=8005 shutdown=SHUTDOWN debug=0
!-- Define an Apache-Connector Service --
 Service name=Tomcat-Apache
   !-- Define a Coyote/JK2 AJP 1.3 Connector on
port 8009 --
  Connector
 className=org.apache.coyote.tomcat4.CoyoteConnector
  port=8009 minProcessors=5 maxProcessors=75
  enableLookups=true redirectPort=8443
  acceptCount=10 debug=0
  connectionTimeout=2
  useURIValidationHack=false
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
Engine name=Apache
  defaultHost=www.oursitename.com debug=0
  Logger
  className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/
  !-- Access log processes all requests for this
  virtual host. --
  Valve
 
className=org.apache.catalina.valves.AccessLogValve
  directory=logs  prefix=localhost_access_log.
  suffix=.txt
  pattern=common resolveHosts=false/
   Host name=www.oursitename.com debug=0

appBase=/home/httpd/vhosts/oursitename.com/httpdocs/
   unpackWARs=true autoDeploy=true
  Aliaslocalhost/Alias
  Aliaswww/Alias/Host
  AliasOur IP/Alias
  /Engine
   /Service
   /Server
  
  --
  httpd.conf file
LoadModule jk2_module modules/mod_jk2.so
LoadModule jk_module modules/mod_jk.so
Include /usr/local/tomcat/conf/auto/mod_jk2.conf
Include /usr/local/tomcat/conf/auto/mod_jk.conf
VirtualHost Our IP:80
  ServerName   oursite.com:80
  ServerAlias  www.oursite.com
  UseCanonicalName On
  DocumentRoot
   /home/httpd/vhosts/oursite.com/httpdocs
  CustomLog 
/home/httpd/vhosts/oursite.com/statistics/logs/access_log
   combined
  ErrorLog  
/home/httpd/vhosts/oursite.com/statistics/logs/error_log
  Alias /trainer
/home/httpd/vhosts/oursite.com/httpdocs/trainer

JkMount /trainer/*.jsp ajp13
JkMount /trainer/adminjsp/*.jsp ajp13
Directory
/home/httpd/vhosts/oursite.com/httpdocs/trainer/
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory
Location /trainer/WEB-INF/*
AllowOverride None 
deny from all 
/Location 
Location /trainer/META-INF/*
AllowOverride None
deny from all
/Location
Directory /home/httpd/vhosts/oursite.com/httpdocs/
Options None
AllowOverride None
/Directory

  ---
workers.properties
[logger.apache2]
level=DEBUG
  
[shm]
file=/home/httpd/vhosts/oursite.com/tomcatlog
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
 port=8009
 host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
 
# Uri mapping
[uri:ourIP/*.jsp]
worker=ajp13:localhost:8009
 
[uri:www.oursite.com/*.jsp]
worker=ajp13:localhost:8009

  --


__
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]

-
To unsubscribe, e-mail: [EMAIL

RE: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solari s 10

2005-06-21 Thread Raghupathy,Gurumoorthy
Did you start apache as root ? You need root access to start any service for
ports less than 1024 

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: 21 June 2005 14:17
To: 'Tomcat Users List'
Subject: RE: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solari s
10


Can you replace that *:80m with something like host.com:80 or ip:80?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: June 21, 2005 3:54 AM
To: Tomcat Users List
Subject: RE: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solaris
10


I'm sorry for the flood but as I'm new to this list, I wondered why I did 
not receive back the
message I posted. So now, I suppose its a rule in ezmlm.
Sorry again.

Phillip, I applied your suggestions with no more success.
As my test environment is on a sigle machine for apache and tomcat, it's 
difficult to check if 
mod_jk try to open a connection with TC. A truss off httpd don't show any 
socket stuff with TC.

I wonder compilation stuff is OK.
apache:
./configure --prefix=/usr/local/apache2 --enable-mods-shared=all 
--enable-ssl=shared --enable-ssl --with-ssl=/usr/local/ssl 
--with-mpm=worker

tomcat:
./configure --with-apxs=/usr/local/apache2/bin/apxs


+--+
  Pierre Lebrun / ARTIC
  tel 02 31 32 45 36
  fax 02 31 62 04 65
+--+

Phillip Qin [EMAIL PROTECTED] a écrit sur 20/06/2005 20:45:20 :

 Please do not post same question three times.
 
 Jk works with apache 2.0.54 and tomcat 5.5.9. I hope this is not a 
 typo
in
 your workers.properties.
 
 worker.ajp13w.port=8009k
 
 
 Change this JkAutoAlias   /usr/local/jakarta-tomcat-5.5.9/webapps/ROOT 
to
 JkAutoAlias   /usr/local/jakarta-tomcat-5.5.9/webapps/
 
 You need to unmount /favicon too.
 
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: June 20, 2005 6:10 AM
 To: Tomcat Users List
 Subject: Cannot Front tomcat 5.5.9 with Apache 2.0.54, ajp13 on Solaris 
10
 
 
 Hi,
 
 I'm stuck while trying to front tomcat 5.5.9 with Apache 2.0.54 and
ajp13 
 on Solaris 10.
 I followed docs from tomcat website and the excellent best practices
 from Mladen Turk with no more success.
 
 mod_jk says it cannot find a worker for the worker name of httpd.conf
and 
 return error 500
 
 Apache is compiled with MPM worker with all modules enabled Here under
are
 log and config files.
 
 I wonder if tomcat 5.5.9 realy works with apache 2.0.54 and mod_jk.
 
 
 
 Thanks for your help
 Pierre
 
 
 Log from mod_jk
 

 =
 [Mon Jun 20 11:55:33 2005] [4832:0027] [debug]
 map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI 
 '/favicon.ico' from 1 maps
 [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context 
 URI '/*'
 [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (468): Found a wildchar match 
 ajp13w - /*
 [Mon Jun 20 11:55:33 2005] [4832:0027] [debug] jk_handler::mod_jk.c 
 (1814): Into handler jakarta-servlet worker=ajp13w r-proxyreq=0 [Mon 
Jun 20
 11:55:33 2005] [4832:0027] [debug]
 wc_get_worker_for_name::jk_worker.c (105): did not find a worker ajp13w 
[Mon
 Jun 20 11:55:33 2005] [4832:0027] [info]  jk_handler::mod_jk.c
 (1986): Could not find a worker for worker name=ajp13w
 

 ==
 
 
 
 
 
 
 =
 VH conf in HTTPD.CONF 
 =
 
 NameVirtualHost *:80
 
 VirtualHost *:80
 
ServerNamesa1.tomcat.fr
ServerAlias   sa1
DocumentRoot  /usr/local/jakarta-tomcat-5.5.9/webapps/ROOT
 
JkWorkersFile /usr/local/jakarta-tomcat-5.5.9/conf/workers.properties
JkLogFile /usr/local/apache2/logs/jk-sa1.log
JkAutoAlias   /usr/local/jakarta-tomcat-5.5.9/webapps/ROOT
 
JkMount  /* ajp13w
 
 /VirtualHost
 
 
 =
 workers.properties 
 =
 # workers.properties.minimal -
 #
 # This file provides minimal jk configuration properties needed to #
connect
 to Tomcat. # # The workers that jk should create and work with # 
 worker.list=ajp13w # # Defining a worker named ajp13w and of type 
 ajp13
#
 Note that the name and the type do not have to match. # 
 worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost 
 worker.ajp13w.port=8009k
 
 
 

 
 serverl.xml
 

 
 
 Server port=8005 shutdown=SHUTDOWN
 
 

RE: running tomcat on port 80

2005-06-21 Thread Raghupathy,Gurumoorthy
Is it unix / linux box ?  Then yo need to be root when you start tomcat  

-Original Message-
From: Tony Smith [mailto:[EMAIL PROTECTED] 
Sent: 21 June 2005 17:47
To: tomcat-user@jakarta.apache.org
Subject: running tomcat on port 80


Hi, Can I run Tomcat 5.0 on port 80? I do not want my
visitor have to type the port number. 

After setting 80
as port number in the server.xml and starting tomcat,
I got the following error message:

SEVERE: Error starting endpoint
java.net.BindException:permission denied:80

Thanks,





 
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]

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



RE: How to make tomcat work on a remote server?

2005-06-20 Thread Raghupathy,Gurumoorthy
Well 
Points you need to tell us 

1. Is apache on the same machine as tomcat ?
what is the name of machine ( ip address ) of apache 
what is the name of machine ( ip address ) of tomcat 
2. how are you accessing apache ( http://servername/ )  ???

Send me the httpd.conf and the server.xml and the worker.properties ...

We will have a look and let you know 

Regards
Guru



-Original Message-
From: sai krishna [mailto:[EMAIL PROTECTED] 
Sent: 20 June 2005 10:24
To: Tomcat Users List
Subject: Re: How to make tomcat work on a remote server?


I think you  I didnt make myself enough clear?

I repeat here.

 Im able to access in localhost all the jsp files and
able to run them.But when im aceesing it through
internet, I should see the jsp examples running, but
im unable to execute them.
what should I do to run them, like what should be my
server.xml configuration set to.How should I give
permissions my other java coders to upload their files
i.e how to go with workers.properties etc. Im running
tomcat and apache and tryin to access the jsp pages
through apache using mod_jk connector, but im unable
to do that?

what could be the fault?  

hope im clear enough this time

Sai Krishna 

--- Aleksandar Valchev [EMAIL PROTECTED]
wrote:

 On Monday 20 June 2005 10:00, Anand Vijay wrote:
  Hi
 
  Check hosts file for access.
 Or check for firewall that blocks traffic on port
 8080 if hosts file is 
 correct.
 
  regards
  Vijay
 
  sai krishna said the following on 20/06/2005 12:24
 PM:
  Hello,
   Im a newbie to tomcat.
   I was trying to install on a remote server. I
 could
   install it on the localhost perfectly I can see
 it
   when  I connect through lynx localhost:8080 I
 can see
   default tomcat page.
   But when I was trying its IP from a remote place
   http://IP-Address:8080
   Im unable to access it.
   Can some one tell me what could have gone wrong
  
   Details
   -
   OS:Fedora core 2
   Im using httpd2.0.54
   jk1.3-6 connector
   and in conf file I added this line
  
   Include /usr/local/tomcat/conf/auto/mod_jk.conf
   and how should be virtualhost entry , adding a
   remote
   user so that I can access it from my work place
   and workers.properties
   worker.list=ajp13
   worker.ajp13.port=8009
   worker.ajp13.host=localhost
   worker.ajp13.type=ajp13
  
   anything more needed here. Jus let me know
  
   Thank You
   Sai Krishna
  
 
 __
  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]
 
 

-
  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! 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]

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



RE: How to make tomcat work on a remote server?

2005-06-20 Thread Raghupathy,Gurumoorthy
Well I only know mod_jk ... Not mod_jk2 ... 

-Original Message-
From: sai krishna [mailto:[EMAIL PROTECTED] 
Sent: 20 June 2005 12:11
To: Tomcat Users List
Subject: RE: How to make tomcat work on a remote server?


Yes tomcat and apache are running on the same server

Im trying to access jsp pages through apache using
mod_jk2 connector now.
and `hostname` gives someother host existing on the
same server, and apache IP is default configured to
this hostname.
Im trying to access jsp files by putting them in the
same html directory i.e
http://oursite.com/ should give index.html or
index.jsp

we are running tomcat and apache together on the same
server simultaneously 

server.xml is as following
Server port=8005 shutdown=SHUTDOWN debug=0
  !-- Define an Apache-Connector Service --
  
Service name=Tomcat-Apache
 
!-- Define a Coyote/JK2 AJP 1.3 Connector on port
8009 --
Connector
className=org.apache.coyote.tomcat4.CoyoteConnector
port=8009 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=2
useURIValidationHack=false
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/

Engine name=Apache
defaultHost=www.oursitename.com debug=0

Logger
className=org.apache.catalina.logger.FileLogger
prefix=apache_log. suffix=.txt
timestamp=true/
!-- Access log processes all requests for this
virtual host. --
Valve
className=org.apache.catalina.valves.AccessLogValve
directory=logs  prefix=localhost_access_log.
suffix=.txt
pattern=common resolveHosts=false/

Host name=www.oursitename.com debug=0
appBase=/home/httpd/vhosts/oursitename.com/httpdocs/

unpackWARs=true autoDeploy=true
Aliaslocalhost/Alias
Aliaswww/Alias/Host
AliasOur IP/Alias
/Engine

/Service

/Server

--
httpd.conf file

VirtualHost Our IP:80
ServerName   oursite.com:80
ServerAlias  www.oursite.com
UseCanonicalName On
DocumentRoot
/home/httpd/vhosts/oursite.com/httpdocs

CustomLog 
/home/httpd/vhosts/oursite.com/statistics/logs/access_log
 combined
ErrorLog  
/home/httpd/vhosts/oursite.com/statistics/logs/error_log

---
workers.properties
[logger.apache2]
level=DEBUG

[shm]
file=/home/httpd/vhosts/oursite.com/tomcatlog
size=1048576
  
# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
  
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Uri mapping
[uri:ourIP/*.jsp]
worker=ajp13:localhost:8009

[uri:www.oursite.com/*.jsp]
worker=ajp13:localhost:8009

--

Thank You
Sai Krishna
--- Raghupathy,Gurumoorthy
[EMAIL PROTECTED] wrote:

 Well 
   Points you need to tell us 
   
   1. Is apache on the same machine as tomcat ?
   what is the name of machine ( ip address ) of
 apache 
   what is the name of machine ( ip address ) of
 tomcat 
   2. how are you accessing apache (
 http://servername/ )  ???
 
 Send me the httpd.conf and the server.xml and the
 worker.properties ...
 
 We will have a look and let you know 
 
 Regards
 Guru
 
   
 
 -Original Message-
 From: sai krishna [mailto:[EMAIL PROTECTED] 
 Sent: 20 June 2005 10:24
 To: Tomcat Users List
 Subject: Re: How to make tomcat work on a remote
 server?
 
 
 12:24
  PM:
   Hello,
Im a newbie to tomcat.
I was trying to install on a remote server. I
  could
install it on the localhost perfectly I can
 see
  it
when  I connect through lynx localhost:8080 I
  can see
default tomcat page.
But when I was trying its IP from a remote
 place
http://IP-Address:8080
Im unable to access it.
Can some one tell me what could have gone
 wrong
   
Details
-
OS:Fedora core 2
Im using httpd2.0.54
jk2.0 connector
and in conf file I added this line
   
Include
 /usr/local/tomcat/conf/auto/mod_jk.conf
and how should be virtualhost entry , adding a
remote
user so that I can access it from my work
 place
and workers.properties
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
   
anything more needed here. Jus let me know
   
Thank You
Sai Krishna
   
  
 
 __
   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]
  
  
 

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

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

RE: How to make tomcat work on a remote server?

2005-06-20 Thread Raghupathy,Gurumoorthy
Send me your httpd.conf / worker.properties / server.xml 

Regardds
Guru 

-Original Message-
From: sai krishna [mailto:[EMAIL PROTECTED] 
Sent: 20 June 2005 12:30
To: Tomcat Users List
Subject: RE: How to make tomcat work on a remote server?



Ok, explain for mod_jk, I can configure it and have it
here. mod_jk2 is not a requirement here. Iwas trying
to run tomcat with apache
 
--- Raghupathy,Gurumoorthy
[EMAIL PROTECTED] wrote:

 Well I only know mod_jk ... Not mod_jk2 ... 
 
 -Original Message-
 From: sai krishna [mailto:[EMAIL PROTECTED] 
 Sent: 20 June 2005 12:11
 To: Tomcat Users List
 Subject: RE: How to make tomcat work on a remote
 server?
 
 
 Yes tomcat and apache are running on the same server
 
 Im trying to access jsp pages through apache using
 mod_jk2 connector now.
 and `hostname` gives someother host existing on the
 same server, and apache IP is default configured to
 this hostname.
 Im trying to access jsp files by putting them in the
 same html directory i.e
 http://oursite.com/ should give index.html or
 index.jsp
 
 we are running tomcat and apache together on the
 same
 server simultaneously 
 
 server.xml is as following
 Server port=8005 shutdown=SHUTDOWN debug=0
   !-- Define an Apache-Connector Service --
   
 Service name=Tomcat-Apache
  
 !-- Define a Coyote/JK2 AJP 1.3 Connector on port
 8009 --
 Connector

className=org.apache.coyote.tomcat4.CoyoteConnector
 port=8009 minProcessors=5 maxProcessors=75
 enableLookups=true redirectPort=8443
 acceptCount=10 debug=0 connectionTimeout=2
 useURIValidationHack=false

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
 
 Engine name=Apache
 defaultHost=www.oursitename.com debug=0
 
 Logger
 className=org.apache.catalina.logger.FileLogger
 prefix=apache_log. suffix=.txt
 timestamp=true/
 !-- Access log processes all requests for this
 virtual host. --
 Valve

className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=localhost_access_log.
 suffix=.txt
 pattern=common resolveHosts=false/
 
 Host name=www.oursitename.com debug=0

appBase=/home/httpd/vhosts/oursitename.com/httpdocs/
 
 unpackWARs=true autoDeploy=true
 Aliaslocalhost/Alias
 Aliaswww/Alias/Host
 AliasOur IP/Alias
 /Engine
 
 /Service
 
 /Server
 
 --
 httpd.conf file
 
 VirtualHost Our IP:80
 ServerName   oursite.com:80
 ServerAlias  www.oursite.com
 UseCanonicalName On
 DocumentRoot
 /home/httpd/vhosts/oursite.com/httpdocs
 
 CustomLog 

/home/httpd/vhosts/oursite.com/statistics/logs/access_log
  combined
 ErrorLog  

/home/httpd/vhosts/oursite.com/statistics/logs/error_log
 
 ---
 workers.properties
 [logger.apache2]
 level=DEBUG
 
 [shm]
 file=/home/httpd/vhosts/oursite.com/tomcatlog
 size=1048576
   
 # Example socket channel, override port and host.
 [channel.socket:localhost:8009]
 port=8009
 host=127.0.0.1
   
 # define the worker
 [ajp13:localhost:8009]
 channel=channel.socket:localhost:8009
 
 # Uri mapping
 [uri:ourIP/*.jsp]
 worker=ajp13:localhost:8009
 
 [uri:www.oursite.com/*.jsp]
 worker=ajp13:localhost:8009
 
 --
 
 Thank You
 Sai Krishna
 --- Raghupathy,Gurumoorthy
 [EMAIL PROTECTED] wrote:
 
  Well 
  Points you need to tell us 
  
  1. Is apache on the same machine as tomcat ?
  what is the name of machine ( ip address ) of
  apache 
  what is the name of machine ( ip address ) of
  tomcat 
  2. how are you accessing apache (
  http://servername/ )  ???
  
  Send me the httpd.conf and the server.xml and the
  worker.properties ...
  
  We will have a look and let you know 
  
  Regards
  Guru
  
  
  
  -Original Message-
  From: sai krishna [mailto:[EMAIL PROTECTED] 
  Sent: 20 June 2005 10:24
  To: Tomcat Users List
  Subject: Re: How to make tomcat work on a remote
  server?
  
  
  12:24
   PM:
Hello,
 Im a newbie to tomcat.
 I was trying to install on a remote server.
 I
   could
 install it on the localhost perfectly I can
  see
   it
 when  I connect through lynx localhost:8080
 I
   can see
 default tomcat page.
 But when I was trying its IP from a remote
  place
 http://IP-Address:8080
 Im unable to access it.
 Can some one tell me what could have gone
  wrong

 Details
 -
 OS:Fedora core 2
 Im using httpd2.0.54
 jk2.0 connector
 and in conf file I added this line

 Include
  /usr/local/tomcat/conf/auto/mod_jk.conf
 and how should be virtualhost entry , adding
 a
 remote
 user so that I can access it from my work
  place
 and workers.properties
 worker.list=ajp13
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13

 anything more needed here. Jus let me know

 Thank You
 Sai Krishna

   
  
 
 __
Do

RE: Reject access to some files

2005-06-13 Thread Raghupathy,Gurumoorthy
Put it under WEB-INF 

-Original Message-
From: Rene Guenther [mailto:[EMAIL PROTECTED] 
Sent: 13 June 2005 05:57
To: tomcat-user@jakarta.apache.org
Subject: Reject access to some files


Hello,

 

how to reject access to files? E.g. I got property files and war files in my
root directory and I they must not be readable via HTTP Request.

Do I have to use the Security Manager?

 

Thanks

René


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



RE: Servlet Concurrency Issues

2005-06-08 Thread Raghupathy,Gurumoorthy
For thread safe programs
1. Declare all your variables within your method.
2. Do not declare static ( class level ) variables.
3. Pass Parameters from one method to another rather than accessing
global variables.

Regards
Guru

-Original Message-
From: Michael Pasko [mailto:[EMAIL PROTECTED] 
Sent: 08 June 2005 13:33
To: 'Tomcat Users List'
Subject: RE: Servlet Concurrency Issues


Thanks Chuck, that was exactly the problem.  I was under the very poor
assumption that a new thread and newly instantiated servlet object was
created every time a request was made, instead of all threads working on
only one instance of an object.  To mimic the desired behavior I've fixed
the problem by adding this (implements SingleThreadModel)...

public class ServletName implements SingleThreadModel

Now it would seem that if several 100 people were to access a servlet that
every time the following code was hit by a new thread:

PrintWriter out = response.getWriter();

It would direct all output (using out.println()) from all threads to the
most recent person to access the servlet.  

Follow up question:  With this in mind, what is the most common method of
writing thread safe code?  

Thank you very much for your help.

-Mike

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 07, 2005 1:15 PM
To: Tomcat Users List
Subject: RE: Servlet Concurrency Issues

 From: Michael Pasko [mailto:[EMAIL PROTECTED] 
 Subject: Servlet Concurrency Issues
 
 I started allowing other users on it, I stumbled on some problems.
 Basically what happens, when user A submits the form, and then 2 
 seconds later user B submits the same form.  User A stops getting 
 results, and User B receives the output for his request as well as
 the end of User A's request.

Probably not a configuration problem but rather implementation errors in
your servlet or some related object (such as the DB connection).
There's normally only one copy of the servlet object, and it will be
used concurrently by multiple threads.  Make sure you're not storing
request-specific information in there.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
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]

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



RE: Virtual host, workers file and httpd.conf settings for SSL

2005-06-07 Thread Raghupathy,Gurumoorthy
Change 
From   DocumentRoot  C:/tomcat/Tomcat_5.5.9/webapps/idm
To  DocumentRoot c:/Apache/Apache2/htdocs

Regards
Guru

-Original Message-
From: Gessendorfer, Thomas [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2005 11:43
To: tomcat-user@jakarta.apache.org
Subject: Virtual host, workers file and httpd.conf settings for SSL


Hello,

just installed Apache and Tomcat with the JK Connector and it works for
=
1 worker on my machine.

Now I installed a new Application for which I want to have SSL access.
So I made a new virtual host in my hhtpd.conf that looks like this for =
the standard and the SSL host:

VirtualHost *:80
ServerAdmin  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]=20
DocumentRoot c:/Apache/Apache2/htdocs
ServerName   idmsrv1.example.net
ErrorLog  logs/idmsrv1.example.net-error.log
CustomLog  logs/idmsrv1.example.net-access.log common /VirtualHost
VirtualHost *:443
  ServerAdmin  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]=20
  DocumentRoot  C:/tomcat/Tomcat_5.5.9/webapps/idm
  ServerName  idm.example.net
  ServerAlias  idm
  ErrorLog  logs/idm.example.net-error.log
  CustomLog  logs/idm.example.net-access.log common=20
  SSLEngine On
  SSLCertificateFile conf/ssl/identity.crt
  SSLCertificateKeyFile conf/ssl/server.key /VirtualHost=20

=20

The JK Part of my httpd.conf looks like this:

# Update this path to match your modules location
LoadModulejk_module  modules/mod_jk.so
 =20

# Where to find workers.properties
# Update this path to match your conf directory location (put =
workers.properties next to httpd.conf) JkWorkersFile
conf/workers.properties # Where to put jk logs # Update this path to
match your logs directory location (put mod_jk.log = next to access_log)
JkLogFile logs/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevelinfo
# Select the log format
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
# JkOptions indicate to send SSL KEY SIZE,=20
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format=20
JkRequestLogFormat %w %V %T
# send all Servlet Examples to worker1
JkMount /servlets-examples* worker1
# send all JSP Examples to worker1
JkMount /jsp-examples* worker1
# send all Servlet Examples to worker1
JkMount /tomcat-docs* worker1
# send all IDM Examples to worker1
JkMount /idm* worker1

Everything is sent to worker now in my workers.properties file:

# Define 1 real worker using ajp13
worker.list=3Dworker1

# Set properties for worker1 (ajp13)
worker.worker1.type=3Dajp13
worker.worker1.host=3Dlocalhost
worker.worker1.port=3D8009
worker.worker1.lbfactor=3D50
worker.worker1.cachesize=3D10
worker.worker1.cache_timeout=3D600
worker.worker1.socket_keepalive=3D1
worker.worker1.reclycle_timeout=3D300

SSL is already working and I set up this idm.example.net host which =
should be O.K. too.

When I now access the host idm.example.net from the Webbrowser, I see =
the source Code of the /idm/*.jsp site not the correct Website.
Tomcat is not starting the WebApp.

What and how do I have to configure the virtual host, the httpd.conf JK
= configurations and the worker file to get the Webapp working
correctly?
Do I have to set up a second worker (as ajp13?)?


-
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]



RE: Virtual host, workers file and httpd.conf settings for SSL

2005-06-07 Thread Raghupathy,Gurumoorthy
The do 
JkMount /*.jsp worker1

Restart both the servers 
and say https://yourservername/index.jsp 

Regard
Guru


-Original Message-
From: Gessendorfer, Thomas [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2005 12:28
To: Tomcat Users List
Subject: AW: Virtual host, workers file and httpd.conf settings for SSL



Then I see the starting page of the Apache2 Installation...

Regards,

Tom

-Ursprüngliche Nachricht-
Von: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 7. Juni 2005 13:07
An: 'Tomcat Users List'
Betreff: RE: Virtual host, workers file and httpd.conf settings for SSL

Change 
From   DocumentRoot  C:/tomcat/Tomcat_5.5.9/webapps/idm
To  DocumentRoot c:/Apache/Apache2/htdocs

Regards
Guru

-Original Message-
From: Gessendorfer, Thomas [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2005 11:43
To: tomcat-user@jakarta.apache.org
Subject: Virtual host, workers file and httpd.conf settings for SSL


Hello,

just installed Apache and Tomcat with the JK Connector and it works for
=
1 worker on my machine.

Now I installed a new Application for which I want to have SSL access.
So I made a new virtual host in my hhtpd.conf that looks like this for =
the standard and the SSL host:

VirtualHost *:80
ServerAdmin  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]=20
DocumentRoot c:/Apache/Apache2/htdocs
ServerName   idmsrv1.example.net
ErrorLog  logs/idmsrv1.example.net-error.log
CustomLog  logs/idmsrv1.example.net-access.log common /VirtualHost
VirtualHost *:443
  ServerAdmin  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]=20
  DocumentRoot  C:/tomcat/Tomcat_5.5.9/webapps/idm
  ServerName  idm.example.net
  ServerAlias  idm
  ErrorLog  logs/idm.example.net-error.log
  CustomLog  logs/idm.example.net-access.log common=20
  SSLEngine On
  SSLCertificateFile conf/ssl/identity.crt
  SSLCertificateKeyFile conf/ssl/server.key /VirtualHost=20

=20

The JK Part of my httpd.conf looks like this:

# Update this path to match your modules location
LoadModulejk_module  modules/mod_jk.so
 =20

# Where to find workers.properties
# Update this path to match your conf directory location (put =
workers.properties next to httpd.conf) JkWorkersFile
conf/workers.properties # Where to put jk logs # Update this path to
match your logs directory location (put mod_jk.log = next to access_log)
JkLogFile logs/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevelinfo
# Select the log format
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
# JkOptions indicate to send SSL KEY SIZE,=20
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format=20
JkRequestLogFormat %w %V %T
# send all Servlet Examples to worker1
JkMount /servlets-examples* worker1
# send all JSP Examples to worker1
JkMount /jsp-examples* worker1
# send all Servlet Examples to worker1
JkMount /tomcat-docs* worker1
# send all IDM Examples to worker1
JkMount /idm* worker1

Everything is sent to worker now in my workers.properties file:

# Define 1 real worker using ajp13
worker.list=3Dworker1

# Set properties for worker1 (ajp13)
worker.worker1.type=3Dajp13
worker.worker1.host=3Dlocalhost
worker.worker1.port=3D8009
worker.worker1.lbfactor=3D50
worker.worker1.cachesize=3D10
worker.worker1.cache_timeout=3D600
worker.worker1.socket_keepalive=3D1
worker.worker1.reclycle_timeout=3D300

SSL is already working and I set up this idm.example.net host which =
should be O.K. too.

When I now access the host idm.example.net from the Webbrowser, I see =
the source Code of the /idm/*.jsp site not the correct Website.
Tomcat is not starting the WebApp.

What and how do I have to configure the virtual host, the httpd.conf JK
= configurations and the worker file to get the Webapp working
correctly?
Do I have to set up a second worker (as ajp13?)?


-
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]





-
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]



RE: Validation Frame work

2005-05-24 Thread Raghupathy,Gurumoorthy
This also does the validation on serverside and it is declarative rather
than programatic :)
It can be done in a single xml   :) no need to write extra code :) 
html:errors/ does it all for the serverside :)

Regards
Guru

-Original Message-
From: raja buddha [mailto:[EMAIL PROTECTED] 
Sent: 24 May 2005 16:05
To: [EMAIL PROTECTED]; tomcat-user@jakarta.apache.org
Subject: Validation Frame work


Hi all
In struts why do we need validation frame work  we have java script
to do validations. Is there any extra advantage of using the validation
frame work

raj

_
On the road to retirement? Check out MSN Life Events for advice on how to 
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


-
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]



RE: Tomcat totally ignores my timeout-settings

2005-05-18 Thread Raghupathy,Gurumoorthy
Are you creating a basic authentication or form based authentication ?

-Original Message-
From: Hendrik Neumann [mailto:[EMAIL PROTECTED] 
Sent: 18 May 2005 14:11
To: tomcat-user@jakarta.apache.org
Subject: Tomcat totally ignores my timeout-settings


Hi everybody,

I have the following problem:  I have created and registered an 
HttpSessionListener which sets the MaxInactiveInterval to 120 seconds in the

sessionCreated-method, whenever a new session is created. Then I have 
System.out.println(session is killed) in the sessionDestroyed-method of 
this listener. But the sessionDestroyed-method is never called and the 
session is NEVER killed. I have also a 
session-config
session-timeout2/session-timeout
/session-config
in my web.xml but this doesn't help ether. 

What am I doing wrong? Why doesn't tomcat kill my session, why does it
ignore 
my settings?

The following is a small part from my logfile. As you can see, the timeout
is 
never called by tomcat (look at the time-values). The session is only 
destroyed if the user uses the logout-button:


##  /var/log/messages/tomcat5/ catalina.out  ###

new session-object created, # '9A8DC55C6B8043AA6BE12E9027699C64'
 - CreationTime (DD.MM.YY HH:MM): 18.05.05 14:11
 - MaxInactiveInterval: 120 seconds
 - Web-Browser: Mozilla/5.0 (compatible; Konqueror/3.4; Linux 
2.6.11-gentoo-r8; X11; i686; de) KHTML/3.4.0 (like Gecko)

logged in: admin (Administrator, 11)', from session-id 
'9A8DC55C6B8043AA6BE12E9027699C64'
 - Time (DD.MM.YY HH:MM): 18.05.05 14:15

admin (Administrator, 9A8DC55C6B8043AA6BE12E9027699C64) manually logs out!
 - Time (DD.MM.YY HH:MM): 18.05.05 14:20

session destroyed for 9A8DC55C6B8043AA6BE12E9027699C64 (username: admin)
 


What can I do to solve this problem?

Greetings,
Hendrik 


-
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]



RE: mod_jk shows source - Apache 2.0.53 mod_jk 1.2.12

2005-05-13 Thread Raghupathy,Gurumoorthy
Try to point your documentroot to point somewhere else and try ... 

-Original Message-
From: Stanislav Bauer [mailto:[EMAIL PROTECTED] 
Sent: 13 May 2005 08:46
To: Tomcat Users List
Subject: mod_jk shows source - Apache 2.0.53 mod_jk 1.2.12


Hi,

I'm trying to connect Apache with TC to serve www.domain.com for 
instance. I have a

VirtualHost
ServerName www.domain.com
DocumentRoot /.../webapps/domain
JkMount /domain worker1
JkMount /domain/* worker1
JkAutoAlias /
/VirtualHost

But for certain pages I get the source code instead of the TC result. 
Wat directive I a have to use?

Directly with :8080 the pages are fine.

Thanx

-
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]



RE: mod_jk shows source - Apache 2.0.53 mod_jk 1.2.12

2005-05-13 Thread Raghupathy,Gurumoorthy
Can you tell me the listing of the /.../webapps/domain directory ?

Regards
Guru

-Original Message-
From: Stanislav Bauer [mailto:[EMAIL PROTECTED] 
Sent: 13 May 2005 09:08
To: Tomcat Users List
Subject: Re: mod_jk shows source - Apache 2.0.53 mod_jk 1.2.12


No its no a problem of finding the right file. It shows the right one, 
i.e. index.jsp but it shows the source and does not execute it. It seems 
to be for dynamic pages. For instance I have a response.Redirect() in 
index.jsp.

SB

Raghupathy,Gurumoorthy wrote:

Try to point your documentroot to point somewhere else and try ... 

-Original Message-
From: Stanislav Bauer [mailto:[EMAIL PROTECTED] 
Sent: 13 May 2005 08:46
To: Tomcat Users List
Subject: mod_jk shows source - Apache 2.0.53 mod_jk 1.2.12


Hi,

I'm trying to connect Apache with TC to serve www.domain.com for 
instance. I have a

VirtualHost
ServerName www.domain.com
DocumentRoot /.../webapps/domain
JkMount /domain worker1
JkMount /domain/* worker1
JkAutoAlias /
/VirtualHost

But for certain pages I get the source code instead of the TC result. 
Wat directive I a have to use?

Directly with :8080 the pages are fine.

Thanx

-
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]



  


-
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]



RE: tomcat exits after the JasperReport window is closed

2005-05-13 Thread Raghupathy,Gurumoorthy
In ireport change the format fro mthe menu

From Build Menu check PDF preview.

Regards
Guru 

-Original Message-
From: U K Laxmi [mailto:[EMAIL PROTECTED] 
Sent: 13 May 2005 09:13
To: Tomcat Users List
Subject: tomcat exits after the JasperReport window is closed


I'm just started using JasperReports along with
iReport to generate reports for my web application.
I'm using apache+tomcat as my web server and JSP+Html
as my web development technology. 

I've created a sample report using JasperReports 
Jsps. When i click on the hyperlink, it shows the
report in jasper viewer. But once i close jasper
viewer, my tomcat exits.

I'm using tomcat 5.5.7 and apache 2.0.52.

Is anyone know what is causing the problem? Pls help.

I've one more requirement. When the report button is
clicked, report is shown in Jasper Viewer and html
version of that report is generated and stored in some
directory as a html file. I want the HTML report file
to be shown when the report button is clicked. How can
this be achieved? If this is done, i guess the earlier
problem gets solved.

Anyone has any ideas, pls inform.

Thanks.



Discover Yahoo! 
Have fun online with music videos, cool games, IM and more. Check it out! 
http://discover.yahoo.com/online.html

-
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]



RE: Tomcat and SuSE 9.3...

2005-05-12 Thread Raghupathy,Gurumoorthy
Wht is the problem ?

-Original Message-
From: Quinton Delpeche [mailto:[EMAIL PROTECTED] 
Sent: 12 May 2005 12:34
To: Tomcat Users List
Subject: Tomcat and SuSE 9.3...


Hello everybody,

I have been doing some research and there seems to be a problem with Tomcat 
and SuSE 9.3 professional.

I haven't managed to find a solution yet or figure out one for myself.

Does anybody have a suggestion?

I do NOT want to role back to 9.2 as this is now out of the question due to 
other factors involved.

Any help will be greatly appreciated and thank-you in advance.

Q
-- 
Quinton Delpeche
Internal Systems Developer
Softline VIP

Telephone: +27 12 420 7000
Direct:+27 12 420 7007
Facsimile: +27 12 420 7344

http://www.vippayroll.co.za/

Don't feed the bats tonight.

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



RE: how to access JSPs using servername/~username

2005-05-12 Thread Raghupathy,Gurumoorthy
No this is not true 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html

Its says ... 


==
Many web servers can automatically map a request URI starting with a tilde
character (~) and a username to a directory (commonly named public_html)
in that user's home directory on the server. You can accomplish the same
thing in Catalina by using a special Listener element like this (on a Unix
system that uses the /etc/passwd file to identify valid users):

   
 Host name=localhost ...
  ...
  Listener className=org.apache.catalina.startup.UserConfig
directoryName=public_html
userClass=org.apache.catalina.startup.PasswdUserDatabase/
  ...
/Host

  
   

On a server where /etc/passwd is not in use, you can request Catalina to
consider all directories found in a specified base directory (such as
c:\Homes in this example) to be considered user home directories for the
purposes of this directive:

   
 Host name=localhost ...
  ...
  Listener className=org.apache.catalina.startup.UserConfig
directoryName=public_html
homeBase=c:\Homes
userClass=org.apache.catalina.startup.HomesUserDatabase/
  ...
/Host

  
   

If a user home directory has been set up for a user named craigmcc, then its
contents will be visible from a client browser by making a request to a URL
like:

   
 http://www.mycompany.com:8080/~craigmcc


==

  
   


-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] 
Sent: 12 May 2005 12:47
To: Tomcat Users List
Subject: Re: how to access JSPs using servername/~username


Akhthar Parvez. K wrote:

Hi,

I used to access the html webpages using
servername.(http://servername/~username)
But I am not able to access JSPs in the above fashion. What could be added
into server.xml
so that I can access jsps using servername.(http://servername/~username)
  


There is no ellegant solution, like in Apache HTTPD (UserDir directive).

Firstly, Tomcat doesn't really care about users on the system or their 
home directories. Secondly, it deals with Web Applications, known as 
Contexts, rather than directories. Sure, you can keep your JSPs in a 
directory, but they can also be in a WAR file.

So, with Tomcat there is no UserDir concept.

What I usually do, is one VHost - one user account and then create 
webapps dir for TC web applications.

Nix.

-
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]



RE: newbie tips - how to deploy tomcat/mod_jk

2005-05-11 Thread Raghupathy,Gurumoorthy
http://www.one0.com/html/downloads.php download the pdf document ... 


Guru

-Original Message-
From: mbneto [mailto:[EMAIL PROTECTED] 
Sent: 11 May 2005 14:52
To: Tomcat Users List
Subject: newbie tips - how to deploy tomcat/mod_jk


Hi,
I am looking for tips for beginners regarding deploying tomcat/mod_jk.

I have some basic questions such as where do I put the jsp and java
files, how do I configure those directories if I need to point to a
different location etc.

regards,
mb

-
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]



RE: url-pattern in web.xml -- looking for explanations and best p ractice

2005-05-11 Thread Raghupathy,Gurumoorthy
In your webapp have dir 

http://servername:port/context/static/ for all your static content

http://servername:port/context/dynamic/ for all your dynamic content


URL Pattern
URL-pattern/dynamic/*/URL-pattern


guru
-Original Message-
From: Tim Diggins [mailto:[EMAIL PROTECTED] 
Sent: 11 May 2005 15:26
To: tomcat-user@jakarta.apache.org
Subject: url-pattern in web.xml -- looking for explanations and best
practice


Hi-

I'm trying to configure my tomcat 5.0.28 webapp so that one servlet (a 
Spring dispatcher as it happens, but that's irrelevant) receives 
virtually everything except standard static non-text file patterns 
(*.css, *.png, *.gif, etc.) which I want served up statically.

I've been trying various options for url-pattern within servlet mapping 
and have been getting very confused... Some questions therefore...

1) Is there a definition / documentation of what the syntax for a 
url-pattern is?  I've tried and tried googling and looking, but can't 
find such a thing (I'm not sure that it's standardised across different 
containers, but there seems to be no definition in the tomcat docs that 
I could find). Obviously, if anyone can refer me to this, then I don't 
need the other questions answered!


2) is there any way to say - if a url includes a ~ (tilde character) 
then route it to a particular servlet. The following give errors:
   url-pattern*~*/url-pattern
   url-pattern~//url-pattern
   url-pattern~*/url-pattern

But oddly the following doesn't:
   url-pattern*.~/url-pattern

*error looks like:
11-May-2005 15:13:07 org.apache.catalina.startup.ContextConfig 
applicationConfig
SEVERE: Parse error in application web.xml 
java.lang.IllegalArgumentException: Invalid url-pattern ~/*.* in 
servlet mapping
 at 
org.apache.commons.digester.Digester.createSAXException(Digester.java
:2540)
 at 
org.apache.commons.digester.Digester.createSAXException(Digester.java
:2566)
--

3) is there any way to specify NO extension (like a request for 
directory) and exclude things with an extension?

4) is there any way to specify what you want to go to the default 
(static) servlet and then state a sink for anything else (invert the 
default-specific servlet mapping in other words).

5) is there some obvious best practice I'm missing here (excluding 
making my urls less interpretable).

Many thanks

Tim

-
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]



RE: Restrict access to webapps for IPs

2005-05-10 Thread Raghupathy,Gurumoorthy
Nopt in web.xml but in server.xml in your context/context


-Original Message-
From: Altrock, Jens [mailto:[EMAIL PROTECTED] 
Sent: 10 May 2005 15:13
To: 'Tomcat Users List'
Subject: AW: Restrict access to webapps for IPs


Hm... won't work :(

I added to noe of the apps in webapps/name_of_app/WEB-INF/web.xml the
following:

Valve className=org.apache.catalina.valves.RemoteAddrValve
allow=192.100.46.*/

right after the web-app tag in the xml file.
But people can access that application from the internet anyway...


 -Ursprüngliche Nachricht-
 Von: Lutz Zetzsche [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 10. Mai 2005 16:00
 An: Tomcat Users List
 Betreff: Re: Restrict access to webapps for IPs
 
 
 Hi Jens,
 
 Altrock, Jens schrieb:
  Ok, got that. But do I need to install the regular 
 expressions library?
 
 To my practical knowledge, the RemoteAddrValve will work out 
 of the box.
 You don't have to install additional libraries to get it work.
 
 
  And how to say that I want a whole subnet to be added?
 
 For allowing a whole subnet, just use an asterisk in the 
 allow attribute
 value:
 
  Valve ... allow=192.168.0.*/
 
 
 Lutz
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
###
Diese Nachricht wurde von F-Secure Anti-Virus gescannt.

This message has been scanned by F-Secure Anti-Virus.


-
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]



RE: error trying to run a jsp

2005-05-10 Thread Raghupathy,Gurumoorthy
Please check If the directory
/usr/local/tomcat/jakarta-tomcat-5/build/work/Catalina/localhost/ has
write permission for wwwrun user ?


Guru

-Original Message-
From: Fay, Michael [mailto:[EMAIL PROTECTED] 
Sent: 10 May 2005 17:17
To: 'Tomcat Users List'
Subject: error trying to run a jsp


We are getting the following error when trying use a jsp, either directly
through tomcat, or through apache with the tomcat connector:

 

type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP
 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
65)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
93)
 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause 

java.io.FileNotFoundException:
/usr/local/tomcat/jakarta-tomcat-5/build/work/Catalina/localhost/jsp-example
s/org/apache/jsp/jsptest0509_jsp.java (No such file or directory)
java.io.FileOutputStream.open(Native Method)
java.io.FileOutputStream.init(FileOutputStream.java:179)
java.io.FileOutputStream.init(FileOutputStream.java:70)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:131)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
56)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
93)
 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.5 logs.

 

 

I know nothing about tomcat or jsp, and our web people keep insisting that
this means that java_home isn't set right, though it's set in all the
startup scripts. Can anyone give me any ideas here? 


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



RE: No action instance for path

2005-05-05 Thread Raghupathy,Gurumoorthy
Is that struts ?

-Original Message-
From: g k [mailto:[EMAIL PROTECTED] 
Sent: 05 May 2005 15:51
To: tomcat-user@jakarta.apache.org
Subject: No action instance for path


Can anyone advise - i get the following error when i try to invoke JSP.


HTTP Status 500 - No action instance for path /OrderMessage could be created




type Status report

message No action instance for path /OrderMessage could be created

description The server encountered an internal error (No action instance for

path /OrderMessage could be created) that prevented it from fulfilling this 
request.



-
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]



RE: No action instance for path

2005-05-05 Thread Raghupathy,Gurumoorthy
Are you using struts ? 

-Original Message-
From: g k [mailto:[EMAIL PROTECTED] 
Sent: 05 May 2005 15:51
To: tomcat-user@jakarta.apache.org
Subject: No action instance for path


Can anyone advise - i get the following error when i try to invoke JSP.


HTTP Status 500 - No action instance for path /OrderMessage could be created




type Status report

message No action instance for path /OrderMessage could be created

description The server encountered an internal error (No action instance for

path /OrderMessage could be created) that prevented it from fulfilling this 
request.



-
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]



RE: No action instance for path

2005-05-05 Thread Raghupathy,Gurumoorthy
Check your jsp for html:form tag .. And in the action=/OrderMessage  of
that tag .. Find the corresponding action path in struts config.xml 

If this is the case check the type and make sure that class is available 

Many thanks 
Guru

-Original Message-
From: g k [mailto:[EMAIL PROTECTED] 
Sent: 05 May 2005 16:00
To: tomcat-user@jakarta.apache.org
Subject: RE: No action instance for path


Yes

From: Raghupathy,Gurumoorthy [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Subject: RE: No action instance for path
Date: Thu, 5 May 2005 15:56:14 +0100

Are you using struts ?

-Original Message-
From: g k [mailto:[EMAIL PROTECTED]
Sent: 05 May 2005 15:51
To: tomcat-user@jakarta.apache.org
Subject: No action instance for path


Can anyone advise - i get the following error when i try to invoke JSP.


HTTP Status 500 - No action instance for path /OrderMessage could be 
created

---
-


type Status report

message No action instance for path /OrderMessage could be created

description The server encountered an internal error (No action instance 
for

path /OrderMessage could be created) that prevented it from fulfilling this
request.



-
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]




-
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]



RE: Interface to admin manager web application

2005-04-29 Thread Raghupathy,Gurumoorthy
Well you can use a httpurlConnection ? In your java code to do the work 

Regards
Guru

-Original Message-
From: Atanu Neogi [mailto:[EMAIL PROTECTED] 
Sent: 29 April 2005 00:42
To: Tomcat Users List
Subject: Interface to admin  manager web application


Hi,
 I need to write a non-browser GUI application to do the same set of 
actions currently performed by the HTML interface of the Tomcat manager 
and admin web applications. I looked at whatever documentation is 
currently avialable for JMX proxy servlet. Before I delve into the Tomcat 
source code to figure out the calls myself, I would request if anyone has 

a. a comprehensive list of JMX query commands to do all the actions that 
can be done via admin or manager 

 and/or

b. the list of corresponding HTTP GET or POST interfaces (the ones used by 
the browser GUI for admin or manager) 

to kindly forward me the same.

Thanks a lot for your help. Regards.

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



RE: deploy using manager

2005-04-28 Thread Raghupathy,Gurumoorthy
Delete the work dir and reload 

-Original Message-
From: Jiang, Peiyun [mailto:[EMAIL PROTECTED] 
Sent: 28 April 2005 17:24
To: 'Tomcat Users List'
Subject: deploy using manager


From tomcat /manager/ did:
(1) remove application
(2) uploaded war from PC to server to install
(3) optionally reload/stop/start, sometimes repeatedly

Tomcat still running the old version.

Any known reasons?

Peiyun Jiang

-
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]



RE: Problems declaring same servlet-class with diff names

2005-04-27 Thread Raghupathy,Gurumoorthy
This is to with struts not tomcat ... 

The below link can help  ( for struts )

http://struts.apache.org/userGuide/configuration.html#dd_config_modules

Regards
Guru


-Original Message-
From: Meghana Joglekar [mailto:[EMAIL PROTECTED] 
Sent: 27 April 2005 00:54
To: tomcat
Subject: Problems declaring same servlet-class with diff names


Hi,

We are trying to integrate 2 products, both running on tomcat. They
both use same servlet class but refer to using different
servlet-name. here is a snippet from web.xml

--
servlet
servlet-namecontrol/servlet-name
 
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
param-nameconfig/param-name
param-value
/WEB-INF/struts/struts-config_guide.xml
/param-value
/init-param
load-on-startup300/load-on-startup
/servlet
servlet
servlet-nameaction/servlet-name
 
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
param-nameconfig/param-name
param-value/WEB-INF/struts-config.collage.xml/param-value
/init-param
init-param
param-namedetail/param-name
param-value2/param-value
/init-param
 load-on-startup20/load-on-startup
/servlet


and there are mappings called '/control/*' and '/action/*' for both of
them respectively. But the reference loaded at later point of time
does not servlet instance for that class and all requests result in
'Invalid path requested' errors. e.g In above case 'control' servlet
is to be loaded after 'action' and all '/control/*' requests fail.
Is the configuration correct? If it is is this known bug and is there
any fix/workaround?
Any suggestion, advice is appreciated.

Thanks in advance,
Meghana.

-
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]



RE: apache + tomcat + JK connector configuration

2005-04-27 Thread Raghupathy,Gurumoorthy
http://www.one0.com/html/downloads.php

Download the pdf ( nice ) / doc version Nice :o)

Guru 

-Original Message-
From: anshul shrivastava [mailto:[EMAIL PROTECTED] 
Sent: 26 April 2005 18:08
To: Tomcat Users List
Subject: Re: apache + tomcat + JK connector configuration
Importance: High



Hi all,

This is my first post to group. I've already asked this problem in popular
forums, but can't resolve. Hope, someone of you'll help. Thank you, in
advance, very much.

I'm using Tomcat Apache Tomcat/5.0.16 on jdk 1.5.0 ( port 8080 ). I've
installed Apache2 ( port 80 ) using MSI installer on Windows 200
Professional. I want to use mod_jserv and connect Tomcat, Apache and
database MySQL.

I read, it is better not to process .html requests by Tomcat, instead by
Apache. Also, I want to run .jsp files from ~/wwwroot ( Apache is already
working PHP files in ~/wwwroot ). Someone of you, said to forward, .jsp to
Apache using .htaccess. Also, it can be done by Apache Module, how ? Please
also tell me, where ( exact url ) can I download jk_connecter or mod_jserv ?
( I've already downloaded something! ).

Please help.
anshul shrivastava
( I'm very new to Java; swithcing to Java! from PHP )

What is the username/password for http://localhost:8080/admin/

What is catalina, by the way ? ( h'ven't seen it in previous versions ).




- Original Message - 
From: Delphine Lê [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Sent: Monday, April 18, 2005 6:26 PM
Subject: RE: apache + tomcat + JK connector configuration

Bob,
Thank you but Apache doesn't start if I add this line.
The Apache config I have is:

LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel debug
JkMount /examples worker1

It seems to works fine (see the logs in my very first message).
And also, I can see that it automatically creates a mod_jk.conf file in
$TOMCAT_HOME\conf\auto
Regards

-Original Message-
From: Robert Harrison [mailto:[EMAIL PROTECTED] 
Sent: vendredi 15 avril 2005 19:52
To: Tomcat Users List
Subject: Re: apache + tomcat + JK connector configuration
Delphine,
Have you added JkSet config.file ... to your apache config file?
Bob

On 4/14/05, Delphine Lê [EMAIL PROTECTED] wrote:
 I tried this, but it didn't help unfortunately
 Thank you
 
  Are you using load balance in your app?  If not, you probably don't
need
  this line:
 
  worker.worker1.lbfactor=50
 
  Try to use this configuration in the server.xml
 
  Connector className=org.apache.ajp.tomcat4.Ajp13Connector
  port=6969 minProcessors=5 maxProcessors=75
  enableLookups=false acceptCount=10 debug=0/
 
  Hope this helps...
 
  -Original Message-
  From: Delphine Lê [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, April 13, 2005 6:41 PM
  To: tomcat-user@jakarta.apache.org
  Subject: RE: apache + tomcat + JK connector configuration
 
  thank you, but it's got them:
 
  # Define 1 real worker using ajp13
  worker.list=worker1
  # Set properties for worker1 (ajp13)
  worker.worker1.type=ajp13
  worker.worker1.host=localhost
  worker.worker1.port=6969
  worker.worker1.lbfactor=50
  worker.worker1.cachesize=10
  worker.worker1.cache_timeout=600
  worker.worker1.socket_keepalive=1
  worker.worker1.reclycle_timeout=300
 
  Post the workers.properties file.  You probably need to include
these
  lines in that file:
 
  worker.list=worker1
  worker.worker1.port=6969
 
  -Original Message-
  From: Delphine Lê [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, April 13, 2005 2:01 PM
  To: tomcat-user@jakarta.apache.org
  Subject: apache + tomcat + JK connector configuration
 
 
  Hello,
 
  Has anyone had any success in configuring Apache (2.0.53) with
Tomcat
  (4.1.29) in Windows XP, using a recent JK connector ?
 
  We have a server running with the JK2 connector and I'm trying to
  replace it with the latest JK connector (JK-1.2.10), the reason
being
  that JK2 is officially unsupported as of 15 Nov 2004 and we're
  experiencing a problem with truncated requests due to this
connector.
 
  In Apache, I configured a worker called worker1 and I send
everything
  from context /examples to this worker following
  http://jakarta.apache.org/tomcat/connectors-doc/howto/quick.html.
 
  The configuration looks fine, since I can see in the following
lines in
  mod_jk.log:
 
  [Wed Apr 13 18:49:13 2005] [debug]
  uri_worker_map_add::jk_uri_worker_map.c (269): exact rule
  /examples=worker1 was added
 
  [Wed Apr 13 18:49:13 2005] [debug] build_worker_map::jk_worker.c
(219):
  creating worker worker1
 
  [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c
(125):
  about to create instance worker1 of ajp13
 
  [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c
(138):
  about to validate and init worker1
 
  [Wed Apr 13 18:49:13 2005] [debug] ajp_validate::jk_ajp_common.c
(1781):
  worker worker1 contact is 'localhost:6969'
 
  However, if I send a 

RE: problem with compilation of jsp

2005-04-26 Thread Raghupathy,Gurumoorthy
Please look at the list. This is because Tomcat has been installed on
program files a directory with spaces ... 
Please install tomcat in a directory without space c:\Server\Tomcat and
you should be fine 

Regards
Guru


-Original Message-
From: vishwam [mailto:[EMAIL PROTECTED] 
Sent: 26 April 2005 11:32
To: tomcat-user@jakarta.apache.org
Subject: problem with compilation of jsp 


hi 
i hhave installed new apache tomcat on my system, iam facing problem when
executing jsp files
i have set 
classpath  as  C:\Java\jdk1.5.0\lib;C:\Program
Files\Java\jre1.5.0\lib;C:\Program Files\Apache Software Foundation\Tomcat
5.0\common\lib

java_home as C:\Java\jdk1.5.0

catalina_home as C:\Program Files\Apache Software Foundation\Tomcat 5.0;
but iam getting the below error message
the root cause is
 
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
can any one help  solve this this problem please?



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



RE: Tutorial

2005-04-26 Thread Raghupathy,Gurumoorthy
Nice one 

http://www.tusc.com.au/tutorial/html/


Apache/Tomcat: doc | pdf

http://www.one0.com/html/downloads.php  : Click on the doc / pdf link 

Regards
Guru 



-Original Message-
From: Eugene Poole [mailto:[EMAIL PROTECTED] 
Sent: 26 April 2005 12:32
To: tomcat-user@jakarta.apache.org
Subject: Tutorial


I'm looking for a Tomcat tutorial that works!  I want to teach myself, 
if possible.  Where can I find a tutorial that covers Apache, Tomcat, 
Java2 1.4.x, and a database (hopefully Oracle) running on Fedora Core 3?

Gene
[EMAIL PROTECTED]



-
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]



RE: JDBCRealm Configuration

2005-04-21 Thread Raghupathy,Gurumoorthy
Put your classes.zip in tomcat\common\lib 

Regards
Guru 

-Original Message-
From: Jiang, Peiyun [mailto:[EMAIL PROTECTED] 
Sent: 21 April 2005 17:16
To: 'Tomcat Users List'
Subject: JDBCRealm Configuration


I got the Exception when starting tomcat. What's wrong with it?

Peiyun
---
Realm
   className=org.apache.catalina.realm.JDBCRealm
   driverName=oracle.jdbc.driver.OracleDriver
   connectionURL=jdbc:oracle:thin:@111.111.111.111:1521:x
   connectionName=X
   connectionPassword=XX
   userTable=X_USERS
   userNameCol=ID
   userCredCol=PASSWORD
   userRoleTable=X_USER_ROLES
   roleNameCol=ROLE
   debug=99 /

Exception opening database connection
java.sql.SQLException: oracle.jdbc.driver.OracleDriver
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:589)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:663)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4248)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
23)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.
java:903)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at
org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at
org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:7
6)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1567)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:488)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483
)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
at
org.apache.catalina.startup.HostConfig.checkContextLastModified(HostConfig.j
ava:800)
at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1085)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:327)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:119)
at
org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.java:80
0)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1619)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1628)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Cont
ainerBase.java:1608)
at java.lang.Thread.run(Thread.java:534)



-
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]



RE: Multiple services in single Tomcat instance

2005-04-20 Thread Raghupathy,Gurumoorthy
Try this 

Service name=RequestsFromPort6000
  Connector protocol=HTTP/1.1 port=6000/
  Engine debug=0 defaultHost=localhost name=Standalone
Host appBase=c:\projects name=localhost unpackWARs=false
autoDeploy=false deployOnStartup=false
  Context docBase=app6000 path=/app6000
reloadable=false/
/Host
  /Engine
/Service  

Service name=RequestsFromPort7000
  Connector protocol=HTTP/1.1 port=7000/
  Engine debug=0 defaultHost=localhost name=Standalone
Host appBase=c:\projects name=localhost unpackWARs=false
autoDeploy=false deployOnStartup=false
  Context docBase=app7000 path=/app7000
reloadable=false/
/Host
  /Engine
/Service

-Original Message-
From: Gary Hirschhorn [mailto:[EMAIL PROTECTED] 
Sent: 19 April 2005 16:58
To: Tomcat Users List
Subject: RE: Multiple services in single Tomcat instance


We are using all of the following URL formats to access Tomcat.  There
is a singe IP address on the machine, and a single domain name
registered for the IP address.

http://localhost:6000/app6000
http://localhost:7000/app7000
http://machinename.hostname.com:6000/app6000 
http://machinename.hostname.com:7000/app7000


-Original Message-
From: Raghupathy,Gurumoorthy
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 19, 2005 7:56 AM
To: 'Tomcat Users List'
Subject: RE: Multiple services in single Tomcat instance

How are you accessing tomcat ? 

http://localhost:7000/
http://localhost:6000/

???

-Original Message-
From: Gary Hirschhorn [mailto:[EMAIL PROTECTED] 
Sent: 19 April 2005 15:34
To: tomcat-user@jakarta.apache.org
Subject: Multiple services in single Tomcat instance


We would like to have a single Tomcat instance running as a web server
that allows requests received on one port to go to one context and
requests on another port to go to a second context.  Is there a way to
do this?  We tried putting the following in our server.xml, but requests
meant for the first service (port 6000) were recieved by the second
service (port 7000). Thank you for any help.

Service name=RequestsFromPort6000
  Connector protocol=HTTP/1.1 port=6000/
  Engine debug=0 defaultHost=localhost name=Standalone
Host appBase=c:/projects name=localhost unpackWARs=false
autoDeploy=false deployOnStartup=false
  Context docBase=/app6000 path=/app6000
reloadable=false/
/Host
  /Engine
/Service  

Service name=RequestsFromPort7000
  Connector protocol=HTTP/1.1 port=7000/
  Engine debug=0 defaultHost=localhost name=Standalone
Host appBase=c:/projects name=localhost unpackWARs=false
autoDeploy=false deployOnStartup=false
  Context docBase=/app7000 path=/app7000
reloadable=false/
/Host
  /Engine
/Service

-
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]


-
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]



RE: can't see a tomcat installation on home network

2005-04-20 Thread Raghupathy,Gurumoorthy
Yes, this is what I wanted to convey 
 
telnet to linux mahcine on port 8080 to check if it responding 



-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED] 
Sent: 20 April 2005 15:00
To: Tomcat Users List
Subject: Re: can't see a tomcat installation on home network


Nikola Milutinovic wrote:

 Try SSH, instead of Telnet. Download PuTTY and install it.

Sheesh, no, don't confuse the issue.

This is not about the OP trying to open a shell on a remote system,
it's about *using telnet* as a command-line tool to try to connect
to an arbitrary remote port -- in this case port 8080, (hopefully)
opened by Tomcat. SSH isn't part of this picture.

FWIW!
-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

   dream.  code.



-
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]



RE: To find user name

2005-04-20 Thread Raghupathy,Gurumoorthy
request.getRemoteUser()

Please read the spec 



-Original Message-
From: Ramu, Vinod [mailto:[EMAIL PROTECTED] 
Sent: 20 April 2005 15:17
To: tomcat-user@jakarta.apache.org
Subject: To find user name


Hi All,

Could any one of you please let me know how to get the username?

For example, let's assume that I use BASIC authentication to authorize
the users of my site and I have a user who has logged in successfully.
During the coarse of this user's session, if I need to know the username
with which he logged in then what should I do?

Is it stored in the session object?
Or should we build a customized code such as a ServletFilter to trap the
username/password?

Any suggestions will be of great help to me.

Thanks,
VinodRamu

-
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]



RE: using manager with apache virtual host

2005-04-20 Thread Raghupathy,Gurumoorthy
Send me the httpd.conf 

-Original Message-
From: Amir S [mailto:[EMAIL PROTECTED] 
Sent: 20 April 2005 16:02
To: tomcat-user@jakarta.apache.org
Subject: using manager with apache virtual host


Hi,
I have a Jakarta 5.0.28 standalone and manager is working just fine.
when I try to operate manager (on Solaris 9) with Jakarta  connected to
apache 2.
the apache is redirecting the requests to the apache webapp root.
How can I use manager with apache virtual host?
 
Regards,
Amir S
 

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



RE: Need help exporting contexts not under webapps/

2005-04-19 Thread Raghupathy,Gurumoorthy
Not clear what you want.

Send me the details

Where is your static document ( The directory )
How do want to access it ? ( the URL )  
Which version of TOMCAT YOU ARE USING 
Send me your server.xml 

Regards
Guru 

-Original Message-
From: J. Ryan Earl [mailto:[EMAIL PROTECTED] 
Sent: 18 April 2005 19:16
To: tomcat-user@jakarta.apache.org
Subject: Need help exporting contexts not under webapps/


Hello,

I'm in the process of bringing an in-house application up under Tomcat.
Previously we were using Jetty as the servlet container, but for various
reason I'm trying to get said application running with Tomcat 5.5.9 and Java
1.5.0.

The problem I'm having is that there are two directories with a large amount
of static files (pictures, videos, documents, and other forms of media) that
are mounted outside of the webapps/ home.  Under Jetty, there is a
configuration directive that I can use to export these directories under a
URL path.  I'm trying to do that in Tomcat, and the documentation has been
somewhat confusing.

What I've gathered is that this type of configuration should be put under
${CATALINA_HOME}/conf/context.xml however I have been able to do this
successfully.  I've tried putting the following in context.xml but it gives
me errors:

Context path=/DOCS docBase=/mnt/CMFiles/DOCS
 debug=0
/Context

So my question is, in short, given a directory structure of static files,
how do you get Tomcat to serve said static content off of an arbitrary URI?
Ideas?

Thanks in advance,
-ryan


-
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]



RE: Need help exporting contexts not under webapps/

2005-04-19 Thread Raghupathy,Gurumoorthy
Hello,

In your aegean.xml  try 

?xml version=1.0 encoding=UTF-8?
Context
path=/aegean docbase=c:\www\aegean
reloadable=true
  WatchedResourceWEB-INF/web.xml/WatchedResource

/Context

and then stop and start tocmat. 
Go to the manager application and see if you can see the application
started ? 
if not try to start it. If yes then try the link
http://www.peacham.com/aegean
If it does not look into the logs 


Regards
Guru 

-Original Message-
From: Fritz Schneider [mailto:[EMAIL PROTECTED] 
Sent: 19 April 2005 13:25
To: 'Tomcat Users List'
Subject: RE: Need help exporting contexts not under webapps/


Guru,

Earl isn't the only one trying to do this. Here are the details for my
attempts which may or may not be similar to his:

 - Running TC 5.5.8, JVM 1.5.0_02-b09 under Win XP Pro SP2
 - I have a set of static pages (starting with index.htm) stored at
C:\www\aegean
 - C:\www\agean\WEB-INF\web.xml contains web-app/
 - I wish to access them as http://www.peacham.com/aegean
 - aegean is just one of many such directories.
 - It works if I copy it to {TOMCAT_BASE}\webapps\aegean but that creates
maintenance headaches by coupling the TC directory structure to the web site
directory structure.
 - I have tried building a webapps/aegean directory with just WEB-INF and
adding aegean.xml to {TOMCAT-BASE}\conf\Catalina\localhost containing:

?xml version=1.0 encoding=UTF-8?
Context
path=/aegean docbase=c:/www/aegean
reloadable=true
  WatchedResourceWEB-INF/web.xml/WatchedResource
/Context

but all I get is 404 errors and no hint of other errors in the logs. I have
tried a couple of variations with equally poor results.

Thanks for any help you can give

Fritz

-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: Tuesday, April 19, 2005 1:10 AM
To: 'Tomcat Users List'
Subject: RE: Need help exporting contexts not under webapps/

Not clear what you want.

Send me the details

Where is your static document ( The directory )
How do want to access it ? ( the URL )  
Which version of TOMCAT YOU ARE USING 
Send me your server.xml 

Regards
Guru 

-Original Message-
From: J. Ryan Earl [mailto:[EMAIL PROTECTED] 
Sent: 18 April 2005 19:16
To: tomcat-user@jakarta.apache.org
Subject: Need help exporting contexts not under webapps/


Hello,

I'm in the process of bringing an in-house application up under Tomcat.
Previously we were using Jetty as the servlet container, but for various
reason I'm trying to get said application running with Tomcat 5.5.9 and Java
1.5.0.

The problem I'm having is that there are two directories with a large amount
of static files (pictures, videos, documents, and other forms of media) that
are mounted outside of the webapps/ home.  Under Jetty, there is a
configuration directive that I can use to export these directories under a
URL path.  I'm trying to do that in Tomcat, and the documentation has been
somewhat confusing.

What I've gathered is that this type of configuration should be put under
${CATALINA_HOME}/conf/context.xml however I have been able to do this
successfully.  I've tried putting the following in context.xml but it gives
me errors:

Context path=/DOCS docBase=/mnt/CMFiles/DOCS
 debug=0
/Context

So my question is, in short, given a directory structure of static files,
how do you get Tomcat to serve said static content off of an arbitrary URI?
Ideas?

Thanks in advance,
-ryan


-
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]


-
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]



RE: Tomcat and SSL

2005-04-19 Thread Raghupathy,Gurumoorthy
How did you create the certificate ? And with what details ?


-Original Message-
From: Marcos Ferreira [mailto:[EMAIL PROTECTED] 
Sent: 19 April 2005 13:39
To: tomcat-user@jakarta.apache.org
Subject: Tomcat and SSL



Hi,

I'm having problems using Tomcat with SSL Protocol.
I setup Client Authentication in Tomcat administration tool.
When i try to use access a page that needs a certificate, i receive error
DNS Error cause the site is unreachable.

Is there anyone who knows how to solve this problem.

Thanks.


PS.:

Tomcat 5.0.28
Windows 2000
Port 8443 listener OK

**
Informação transmitida destina-se apenas à pessoa a quem foi endereçada e
pode conter informação confidencial, legalmente protegida e para
conhecimento exclusivo do destinatário. Se o leitor desta advertência não
for o seu destinatário, fica ciente de que sua leitura, divulgação ou cópia
é estritamente proibida. Caso a mensagem tenha sido recebida por engano,
favor comunicar ao remetente e apagar o texto de qualquer computador.


The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon this information, by person or entity
other than the intended recipient is prohibited. If you received this in
error, please contact the sender and delete the material from any computer.
**

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



RE: Multiple services in single Tomcat instance

2005-04-19 Thread Raghupathy,Gurumoorthy
How are you accessing tomcat ? 

http://localhost:7000/
http://localhost:6000/

???

-Original Message-
From: Gary Hirschhorn [mailto:[EMAIL PROTECTED] 
Sent: 19 April 2005 15:34
To: tomcat-user@jakarta.apache.org
Subject: Multiple services in single Tomcat instance


We would like to have a single Tomcat instance running as a web server
that allows requests received on one port to go to one context and
requests on another port to go to a second context.  Is there a way to
do this?  We tried putting the following in our server.xml, but requests
meant for the first service (port 6000) were recieved by the second
service (port 7000). Thank you for any help.

Service name=RequestsFromPort6000
  Connector protocol=HTTP/1.1 port=6000/
  Engine debug=0 defaultHost=localhost name=Standalone
Host appBase=c:/projects name=localhost unpackWARs=false
autoDeploy=false deployOnStartup=false
  Context docBase=/app6000 path=/app6000
reloadable=false/
/Host
  /Engine
/Service  

Service name=RequestsFromPort7000
  Connector protocol=HTTP/1.1 port=7000/
  Engine debug=0 defaultHost=localhost name=Standalone
Host appBase=c:/projects name=localhost unpackWARs=false
autoDeploy=false deployOnStartup=false
  Context docBase=/app7000 path=/app7000
reloadable=false/
/Host
  /Engine
/Service

-
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]



RE: Virtual domain problem

2005-04-18 Thread Raghupathy,Gurumoorthy
Do you use tomcat as standalone ?  
Send me the server.xml 


However try 


Engine defaultHost=www.nacion.com name=Catalina

   Host appBase=webapps name=www.nacion.com debug=0

  Logger className=org.apache.catalina.logger.FileLogger 

 suffix=.txt 

 prefix=localhost_log. 

 timestamp=true/

  Context path= docBase=ROOT debug=0/

   /Host
   Host appBase=webapps2 name=www.revistaperfil.com debug=0

  Logger className=org.apache.catalina.logger.FileLogger 

 suffix=.txt 

 prefix=revistaperfil_log. 

 timestamp=true/

   Context path= docBase=Perfil debug=0/

   /Host

/Engine


Try this and let me know 


Regards
Guru 



-Original Message-
From: Lorenzo Jiménez [mailto:[EMAIL PROTECTED] 
Sent: 16 April 2005 01:35
To: Tomcat Users List
Subject: Virtual domain problem
Importance: High


Hi,

 

I have one domain www.nacion.com http://www.nacion.com/  and another
domain www.revistaperfil.com http://www.revistaperfil.com/ .

Both domains land on the same ip.

 

We want to have the apps of nacion.com in webapps directory, and the apps
from revistaperfil.com in webapps2.

 

In server.xml we have:

 

Engine defaultHost=localhost name=Catalina

   !-- This Host is the default Host --

   Host appBase=webapps name=localhost debug=0

  Logger className=org.apache.catalina.logger.FileLogger 

 suffix=.txt 

 prefix=localhost_log. 

 timestamp=true/

  Context path= docBase=ROOT debug=0/

   /Host

   !-- This Host is the www.revistaperfil.com --

   Host appBase=webapps2  name=www.revistaperfil.com debug=0

  Logger className=org.apache.catalina.logger.FileLogger 

 suffix=.txt 

 prefix=revistaperfil_log. 

 timestamp=true/

   Context path= docBase=Perfil debug=0/

   /Host

   Realm className=org.apache.catalina.realm.UserDatabaseRealm/

/Engine

 

The problem is that when he start Tomcat, when we load www.revistaperfil.com
http://www.revistaperfil.com/  we land in www.nacion.com
http://www.nacion.com/ .

 

How can we configure Tomcat so it can take the correct action depending on
the domain asked?

Do we need to change the context.xml from the webapps also?

 

We don't have Apache installed, only Tomcat 5.

 

Thanks very much,

 

Lorenzo


-

Si usted no es el destinatario indicado en este mensaje o responsable como
persona 
de la entrega del mensaje, no debe copiar o reenviar este mensaje, por favor
notifique 
al correo [EMAIL PROTECTED] Para más referencia sobre términos
importantes 
relacionados a este correo visite
http://www.nacion.com/disclaimer/index_es2.htm

If you are not the addressee indicated in this message (or responsible for
delivery of the 
message to such person), you may not copy or send this message to anyone,
please notify
to [EMAIL PROTECTED] Click here for important additional terms relating
to this e-mail. 
http://www.nacion.com/disclaimer/index_en2.htm

-



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



RE: Directory listing

2005-04-15 Thread Raghupathy,Gurumoorthy
For tomcat  :
http://www.jroller.com/page/coreteam/?anchor=disable_directory_listing_in_to
mcat 

For Apache  :   
Directory YourdocumentRoot
Options -Indexes
/Directory 

Hope this helps 

Guru 


-Original Message-
From: dummy [mailto:[EMAIL PROTECTED] 
Sent: 15 April 2005 05:00
To: Tomcat (E-mail)
Subject: Directory listing



How can I disable both the apache and tomcat 5.5 from displaying the
directory of my web application ?


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



RE: Getting Env Vars from Apache 2

2005-04-12 Thread Raghupathy,Gurumoorthy
Are you using modk jk ?
If yes then file is worth printing 


http://jakarta.apache.org/tomcat/connectors-doc/config/printer/apache.html



-Original Message-
From: Hoda Nadeem [mailto:[EMAIL PROTECTED] 
Sent: 11 April 2005 22:18
To: tomcat-user@jakarta.apache.org
Subject: Getting Env Vars from Apache 2


I'm having trouble getting Apache environment variables through Tomcat
4.1, for example, I would like to get the mod_ssl additional environment
variable SSL_CLIENT_CERT. 
 
How do I get that value on the requesting server from Apache?
 
Thanks.

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



RE: RequestDispatcher.forward() to doc located on HTTP Server

2005-04-12 Thread Raghupathy,Gurumoorthy
Forward only works within a context 

-Original Message-
From: Ron Crayton [mailto:[EMAIL PROTECTED] 
Sent: 11 April 2005 19:36
To: tomcat-user@jakarta.apache.org
Subject: RequestDispatcher.forward() to doc located on HTTP Server


Is it possible to use Request.forward() to forward a request to an html
document located on an HTTP Server?
 
I'm using Tomcat 5.5.7 and Apache 2.0.
 
I have a document setting in the htdocs folder of Apache 2.0 that I'm trying
to forward to from an application deployed in Tomcat 5.5.7.
 
I have this context in my server.xml file:
 
Context path=/LoginApp docBase=LoginApp debug=0 reloadable=true
crossContext=true
Logger className=org.apache.catalina.logger.FileLogger prefix=LoginApp.
suffix=.log timestamp=true/
/Context
 
I have this code in my app:
 
ServletContext context = getServletConfig().getServletContext();
String uri = request.getQueryString();

ServletContext foreignContext = context.getContext(/);
RequestDispatcher requestDispatcher =
foreignContext.getRequestDispatcher(uri);
requestDispatcher.forward(request, response);
 
The uri comes from the query string of the original request.
When the code runs it says that the requested resource is not available -
Error 404.
 
Am I trying to do something that's impossible?
 
Please help.
 
 


-
Do you Yahoo!?
 Yahoo! Small Business - Try our new resources site! 

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



RE: Check deployment dir programatically

2005-04-12 Thread Raghupathy,Gurumoorthy
Why  dont you setup a JNDI variable for your context which will set the
value of base directory ... And then use it in your app... 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html

We use JNDI ... :o) 


-Original Message-
From: Michal Kwiatek [mailto:[EMAIL PROTECTED] 
Sent: 12 April 2005 10:16
To: Tomcat Users List
Subject: Check deployment dir programatically


Hello all,

How can I programatically check the absolute path to the deployment
direcotory (webapps/myApp directory) on the server?

request.getSession().getServletContext().getResourceAsStream(fileName)
works fine to read a file from the direcory, but I see no equivalent to
check the root deployment directory.

Thanks in advance,
Michal.

-
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]



RE: Check deployment dir programatically

2005-04-12 Thread Raghupathy,Gurumoorthy
Using JNDI variables is considered a good option as it is part of J2EE specs
... 
And that it is supported by all j2ee app servers and web containers. 

I cant think of anything else  because your context can come from not only
base webapps but from any where else 
Example : manager / admin application in tomcat  

So better use JNDI variable to the fullpath of the configuration file and
then open it :o)

This is because if you deploy the app as a .war then you wont be able to do
getResourceAsStream(fileName) withing that context.

Need more help ?
Email me 


Regards
Guru 


-Original Message-
From: Michal Kwiatek [mailto:[EMAIL PROTECTED] 
Sent: 12 April 2005 10:35
To: Tomcat Users List
Subject: RE: Check deployment dir programatically


This is a solution. I'll do it if there's not a better one. Any other
ideas?

Michal. 

 -Original Message-
 From: Raghupathy,Gurumoorthy 
 [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, April 12, 2005 11:27 AM
 To: 'Tomcat Users List'
 Subject: RE: Check deployment dir programatically
 
 Why  dont you setup a JNDI variable for your context which 
 will set the value of base directory ... And then use it in 
 your app... 
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources
 -howto.html
 
 We use JNDI ... :o) 
 
 
 -Original Message-
 From: Michal Kwiatek [mailto:[EMAIL PROTECTED]
 Sent: 12 April 2005 10:16
 To: Tomcat Users List
 Subject: Check deployment dir programatically
 
 
 Hello all,
 
 How can I programatically check the absolute path to the deployment
 direcotory (webapps/myApp directory) on the server?
 
 request.getSession().getServletContext().getResourceAsStream(fileName)
 works fine to read a file from the direcory, but I see no 
 equivalent to
 check the root deployment directory.
 
 Thanks in advance,
 Michal.
 
 -
 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]
 
 

-
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]



  1   2   >