Re: tomcat deployment

2002-04-30 Thread Nathan Coast

Thanks,

 
 It seems you are looking for a difficult way.
 I think the easiest way would be having some ant targets that put your war files in 
TOMCAT_HOME/webapps. Don't forget to have unpackWARs to be true in the Host element 
(in server.xml).
 

does this work for updates to the war file?  If I update the war file 10 times, 
will re-copying the file to the webapps directory re-deploy the webapp?

Nathan


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




Lifecycle error

2002-04-30 Thread muralipn


Hello
I get get this error sometimes when compile a java file and
run the application

 WebappClassLoader: Lifecycle error : CL stopped 

Your help is needed.

From
Murali




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




server.xml - context parameter question

2002-04-30 Thread Tom Bednarz

Hi

I have a problem in initializing my web application. The application stores
all of its configuration parameters in a database table. My application has
an initialization servlet which loads beside other things the configuration.
Initially this is done in the init method, over time it is periodically done
in a separate thread.

The problem is, that I need to compose a JDBC connect URL. One of the
components of this URL is the name or IP address of the database server.
This information cannot be put in the web.xml of the web application since
it depends on the runtime environment and cannot be pre-defined at
development time. To access the configuration information in the database I
need this JDBC connect URL. So I was looking for a possibility to define
parameters OUTSIDE my web application.

I found a context tag under the host tag in the server.xml file. The TOMCAT
documentation says:

   snip 
You can configure named values that will be made visible to the web
application as servlet context initialization parameters by nesting
Parameter elements inside this element. For example, you can create an
initialization parameter like this:

Context ...
  ...
  Parameter name=companyName value=My Company, Incorporated
 override=false/
  ...
/Context



This is equivalent to the inclusion of the following element in the web
application deployment descriptor (/WEB-INF/web.xml):

context-param
  param-namecompanyName/param-name
  param-valueMy Company, Incorporated/param-value
/context-param



but does not require modification of the deployment descriptor to customize
this value.

-- end --

So I did the following:

Context path=/MyWebapp docBase=MyWebapp debug=0 privileged=true
 Parameter name=DBServer value=MyDatabaseServer override=false/
/Context

In the init() method of my initialization servlet (preload=1) I did the
following:

for (java.util.Enumeration e = config.getInitParameterNames();
e.hasMoreElements();)
mAppLog.debug(\t+(String)e.nextElement());

where config is the ServletConfig object which is a parameter of the
HttpServlet.init(..) method. I expected to find the name DBServer as a
parameter name but it does NOT appear. Only those parameters defined in the
web applications web.xml file appear!

Could anybody explain me what I am doing wrong? What happens to context
entries in the server.xml file if the named context is NOT YET installed
e.g. is in the webapps directory as .war file?

Any help would be greatly appreciated.

Thomas


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




RE: server.xml - context parameter question

2002-04-30 Thread Abraham Fathman

Tom,

I haven't done this before but I thought that it might help you out.

Instead of using the server.xml you could try adding your variables as
system properties. I believe you can do this by creating a setenv.sh/bat
file in your bin directory. Here you can set an environmental variable
JAVA_OPTS=-Ddbserer=dbserver.

The catalina scripts should call this setenv script which will set the
JAVA_OPTS env variable. Then your code should be able to get this
property from the System.getProperty(dbserver) line.

Just a thought. Hope it helps,

Abe

-Original Message-
From: Tom Bednarz [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 30, 2002 3:18 AM
To: Tomcat User List
Subject: server.xml - context parameter question


Hi

I have a problem in initializing my web application. The application
stores all of its configuration parameters in a database table. My
application has an initialization servlet which loads beside other
things the configuration. Initially this is done in the init method,
over time it is periodically done in a separate thread.

The problem is, that I need to compose a JDBC connect URL. One of the
components of this URL is the name or IP address of the database server.
This information cannot be put in the web.xml of the web application
since it depends on the runtime environment and cannot be pre-defined at
development time. To access the configuration information in the
database I need this JDBC connect URL. So I was looking for a
possibility to define parameters OUTSIDE my web application.

I found a context tag under the host tag in the server.xml file. The
TOMCAT documentation says:

   snip 
You can configure named values that will be made visible to the web
application as servlet context initialization parameters by nesting
Parameter elements inside this element. For example, you can create an
initialization parameter like this:

Context ...
  ...
  Parameter name=companyName value=My Company, Incorporated
 override=false/
  ...
/Context



This is equivalent to the inclusion of the following element in the web
application deployment descriptor (/WEB-INF/web.xml):

context-param
  param-namecompanyName/param-name
  param-valueMy Company, Incorporated/param-value /context-param



but does not require modification of the deployment descriptor to
customize this value.

-- end --

So I did the following:

Context path=/MyWebapp docBase=MyWebapp debug=0
privileged=true
 Parameter name=DBServer value=MyDatabaseServer
override=false/ /Context

In the init() method of my initialization servlet (preload=1) I did the
following:

for (java.util.Enumeration e = config.getInitParameterNames();
e.hasMoreElements();)
mAppLog.debug(\t+(String)e.nextElement());

where config is the ServletConfig object which is a parameter of the
HttpServlet.init(..) method. I expected to find the name DBServer as a
parameter name but it does NOT appear. Only those parameters defined in
the web applications web.xml file appear!

Could anybody explain me what I am doing wrong? What happens to context
entries in the server.xml file if the named context is NOT YET installed
e.g. is in the webapps directory as .war file?

Any help would be greatly appreciated.

Thomas


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



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




Re: tomcat deployment

2002-04-30 Thread Oki DZ

On 04/30 13:50 Nathan Coast wrote:
 does this work for updates to the war file?  If I update the war file 10 times, 
 will re-copying the file to the webapps directory re-deploy the webapp?

You need to delete the directory of your webapp; it wouldn't be that hard. In addition 
to copying the war file, the ant target should delete the directory particular to the 
war file.

I think it would be nicer if you could deploy the webapp directly using ant; so 
instead of by creating a war file and let Tomcat to deploy it, you could just copy the 
modified servlets into the context directory. Then use the reload feature of the 
particular context (defined in server.xml); Tomcat would know the newer servlets and 
load them accordingly.

Oki

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




ajp12, error

2002-04-30 Thread Jens Thielen

hi,
i'm using Tomcat 3.3.1 with Apache 1.3.22 (mod_jk)

Since we have problems with ajp13(?), Tomcat and apache hang up after a
while, i tried using ajp12. But when i activate it i get 

[Tue Apr 30 09:28:37 2002]  [jk_ajp12_worker.c (503)]:
ajpv12_handle_response, error reading header line
[Tue Apr 30 09:28:37 2002]  [jk_ajp12_worker.c (163)]: Into
jk_endpoint_t::done
[Tue Apr 30 09:28:37 2002]  [jk_lb_worker.c (349)]: In
jk_endpoint_t::service, none recoverable error...
[Tue Apr 30 09:28:37 2002]  [jk_lb_worker.c (369)]: In
jk_endpoint_t::service: NULL Parameters
[Tue Apr 30 09:28:37 2002]  [jk_lb_worker.c (378)]: Into jk_endpoint_t::done

Can anybody help me?


Jens

 dmc news 
Sie wollen wissen wie gut Ihr Multimedia-Dienstleister ist?
dmc belegt unter den größten 50 Dienstleistern Platz 5, in der
Empfehlbarkeit Platz 3 und im Preis-Leistungs-Verhältnis
sogar Platz 1. Alle Rankings unter -www.benchpark.de

--
jens thielen [ mailto:[EMAIL PROTECTED]] [ http://www.dmc.de]
digital media center gmbh
marienstrasse 41 
d-70178 stuttgart (germany)
fon [49].[711].601747-50
fax [49].[711].601747-77


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




Where do I edit /etc/tomcat4/conf/tomcat4.conf in Windows 2000? Want to edit LANG setting

2002-04-30 Thread Tony

Hi Folks

Where is the

/etc/tomcat4/conf/tomcat4.conf 

file which is found on a Linux tomcat install found in a Windows install.  I want to 
edit
the LANG setting

Cheers

Tony

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




Problem with Connectors - Urgent help required Please!!!

2002-04-30 Thread Raja Sekhar

Hi,

I am very new to Apache  Tomcat. The configuration what I have is

Redhat Linux 7.1
Apache 1.3.23
Tomcat 4.0.3.

I have installed Apache  Tomcat successfully and they are running fine. Now the 
problem is how to route the request from Apache to Tomcat. Please suggest me the best 
connector to use. This should support SSL for me. I have configured Apache with 
mod-ssl for SSL. I have a servlet on Tomcat which should be able to get these SSL 
Environment variables. So in such scenarios, what connector can I use  please give a 
URL or procedure how to install this connector.

p.s : I read through the tomcat documentation or archives where I found your comments 
on connectors. I am confused which one to use  as such I dont find any mod_jk 
packages or native directories in my 4.0.3 binary installation. But all the documents 
which I get on the internet site talk about how to configure mod_jk with Tomcat. 
Please help me out because this is a urgent task for me.

Thanks  Regards,

..Raj


Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at 
http://www.eudoramail.com

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




indexed property type ie String [] for handling my checkboxes is converting the String to another value

2002-04-30 Thread Chuck Amadi

Hi  I have a indexed property type ie String [] for handling my checkboxes.

 I have provided a suitable getter  setter method as below
 I have also declared the variable  a private String [] opportunity;
and a constructor opportunity = new String [] {1};


public String[] getOpportunity(){
retun opportunity;
}

public void setOpportunity(String [] opportunity ) {
opportunity = opportunity;
}

public String isCbSelected (String s) {
boolean found=false;
if (!opportunity[0].equals(1)){
for (int i = 0; i opportunity.length;i++){
if (opportunity[i].equals(s)){
found=true;
break
}
}
if (found) return checked;
}
return ;
}

Thus i have scriplet code in my jsp for displaying the indexed property 
type but on checking my database it is populating it with another value
as the jsp:setProperty is converting the String to another value ie 
[Ljava.lang.String;@13a9bc77 in the database table's (opportunity)column 
field .

My array elements are obviously being converted , so i can i ensure that 
the array returns the predefined name attributes as below

input tupe=checkbox name=opportunity value=Contact
%formHandler.isCbSelected(contact)%

input tupe=checkbox name=opportunity value=viewpoint
%formHandler.isCbSelected(viewpoint)%

I am aware that there is a custom tag alternative but im hoping to 
utilise the memento pattern for form  processing .
Any suggestions

Cheers Chuck Amadi
System Programmer

Rhaglennydd Systemai



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




tomcat 4 logging extended NCSA

2002-04-30 Thread Lea Allison


 Hi
 
 can anyone tell me what I have to do to get Tomcat 4.0.2 logging in
 extended NCSA format for use with a web stats program?
 
 Thanks
 
 Lea

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




RE: Apache login attempts

2002-04-30 Thread Collins, Jim

Any Apache gurus out there who know how I can force Apache to give a user
more than one login attempt if they enter the wrong user name or password.

Thanks

Jim.

 -Original Message-
 From: Collins, Jim [mailto:[EMAIL PROTECTED]]
 Sent: 26 April 2002 13:47
 To: 'Tomcat Users List'
 Subject: Apache login attempts
 
 
 I know this is not a Tomcat problem but does anyone know how 
 I can configure
 Apache to allow a user more than on login attempt.
 
 Many thanks
 
 Jim.
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any 
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and 
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



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




Re: server.xml - context parameter question

2002-04-30 Thread Tom Bednarz

Abe,

Thanks for the input. It is not that easy since I run TOMCAT on W2K as a
system service. There is a batch file which allows settings of environment
variables. However I think it would be better to set application specific
variables in an application context and environment variables for container
configuration only. But thanks for the input anyway.

Tom


- Original Message -
From: Abraham Fathman [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, April 30, 2002 9:31 AM
Subject: RE: server.xml - context parameter question


 Tom,

 I haven't done this before but I thought that it might help you out.

 Instead of using the server.xml you could try adding your variables as
 system properties. I believe you can do this by creating a setenv.sh/bat
 file in your bin directory. Here you can set an environmental variable
 JAVA_OPTS=-Ddbserer=dbserver.

 The catalina scripts should call this setenv script which will set the
 JAVA_OPTS env variable. Then your code should be able to get this
 property from the System.getProperty(dbserver) line.

 Just a thought. Hope it helps,

 Abe

 -Original Message-
 From: Tom Bednarz [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 30, 2002 3:18 AM
 To: Tomcat User List
 Subject: server.xml - context parameter question


 Hi

 I have a problem in initializing my web application. The application
 stores all of its configuration parameters in a database table. My
 application has an initialization servlet which loads beside other
 things the configuration. Initially this is done in the init method,
 over time it is periodically done in a separate thread.

 The problem is, that I need to compose a JDBC connect URL. One of the
 components of this URL is the name or IP address of the database server.
 This information cannot be put in the web.xml of the web application
 since it depends on the runtime environment and cannot be pre-defined at
 development time. To access the configuration information in the
 database I need this JDBC connect URL. So I was looking for a
 possibility to define parameters OUTSIDE my web application.

 I found a context tag under the host tag in the server.xml file. The
 TOMCAT documentation says:

    snip 
 You can configure named values that will be made visible to the web
 application as servlet context initialization parameters by nesting
 Parameter elements inside this element. For example, you can create an
 initialization parameter like this:

 Context ...
   ...
   Parameter name=companyName value=My Company, Incorporated
  override=false/
   ...
 /Context



 This is equivalent to the inclusion of the following element in the web
 application deployment descriptor (/WEB-INF/web.xml):

 context-param
   param-namecompanyName/param-name
   param-valueMy Company, Incorporated/param-value /context-param



 but does not require modification of the deployment descriptor to
 customize this value.

 -- end --

 So I did the following:

 Context path=/MyWebapp docBase=MyWebapp debug=0
 privileged=true
  Parameter name=DBServer value=MyDatabaseServer
 override=false/ /Context

 In the init() method of my initialization servlet (preload=1) I did the
 following:

 for (java.util.Enumeration e = config.getInitParameterNames();
 e.hasMoreElements();)
 mAppLog.debug(\t+(String)e.nextElement());

 where config is the ServletConfig object which is a parameter of the
 HttpServlet.init(..) method. I expected to find the name DBServer as a
 parameter name but it does NOT appear. Only those parameters defined in
 the web applications web.xml file appear!

 Could anybody explain me what I am doing wrong? What happens to context
 entries in the server.xml file if the named context is NOT YET installed
 e.g. is in the webapps directory as .war file?

 Any help would be greatly appreciated.

 Thomas


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



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




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




TOMCAT SSL !!!

2002-04-30 Thread t . riteshmenon

Hi All,

My application requires that certain pages on the site are accessed via SSL,
is
there a way in tomcat to reject the connection of http to a specific page
(ie securePage.jsp) but still allow http access to other pages (ie.
standardPage.jsp).

Also i'm using cookies - so i wanted to know whether these cookies will
be visible in both the http  https contexts.

Thanks in advance,

Ritesh

This message contains privileged and confidential information and is
intended only for the individual named.If you are not the intended recipient
you should not disseminate,distribute,store,print, copy or deliver this
message.Please notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system.E-mail
transmission cannot be guaranteed to be secure or error-free as information
could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or
contain viruses.The sender therefore does not accept liability for any
errors or omissions in the contents of this message which arise as a result
of e-mail transmission. If verification is required please request a
hard-copy version.


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




mod_jk for Apache 2 on Win32?

2002-04-30 Thread Goetz Botterweck

WHAT I WANT TO DO
  Integrating Apache 2 and Tomcat 4 on the Win32 platform.

PROBLEM
  Could not find a mod_jk module which works with Apache 2.

WHAT I TRIED ALREADY
  AFAIK it does not make a difference whether I use Tomcat 3.x or 4.x =
Tried the mod_jk module in the Tomcat 3.x distribution.

Since I could not find a version for apache 2.0 I tried the apache 1.3
version
(http://jakarta.apache.org/builds/jakarta-tomcat/native-3.3/win32/apache
1.3/mod_jk.dll). This was rejected by apache with the message Cannot
load C:/apps/apache2/modules/mod_jk.dll into server: The specified
module could not be found. Of course I checked the path three times.

  So I assume that this .dll is only working for Apache 1.3

QUESTIONS
- Where can I get a mod_jk.dll for Apache 2?
- Do I have to built it myself?

Thanks for any suggestions
Goetz

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




Servlet init() callin twice on startup. PLease help.

2002-04-30 Thread Steven Elliott

 -Original Message-
 From: IvanLatysh [mailto:[EMAIL PROTECTED]]
 Sent: 29 April 2002 19:17
 To: Tomcat Apache
 Subject: Servlet init() callin twice on startup. PLease help.

 I have servlet that executing on start up.
 And when I see log - i can see that servlet was started twice.
 I need to start it one.
 Where I am wrong ?

 Sincerely yours, Ivan Latysh.
 [EMAIL PROTECTED]
 http://ivan.yourmail.com

The *problem* is related to multiple class loaders, specifically the Tomcat
container classloader which for some reason will load and init servlets
indicated as load-on-startup in web.xml files belonging to applications
heirarchically contained within the Tomcat webapps directory.  IOW your
servlet is being loaded on startup by not only your application but also by
the Tomcat container.  For this reason you are seeing it being loaded (and
inited) twice.

Not sure why this happens but maybe if Craig or one of the other developers
has a moment to explain because I've not seen it documented, I just know
this from testing.

What I've learned from my tests is that from your application you will never
see the servlet instanced by the container context nor will you be
influenced by the container instance changing class variables, etc: it is as
if two instances had been created by two different VM's.  So in most cases
unless you are sensitive to the resources being consumed you would never
notice two instances of you servlet are being load-on-startup.

But there are cases when this behavior is problematic.  In my case the init
method of the servlet was used to set in motion a separate class; a
scheduler which periodically emailed reports and sent messages.  Of course
initing two instances of this servlet caused duplicate threads to run.  You
seem to have a similar problem and even implementing a singleton pattern
made no difference because of course the class was being instantiated by two
different classloaders.

I have found one way to get around this problem (there are certainly
others).  Put the servlet as another separate application within your
application.  It would look something like the following:

webapps
  |
  | YourApplicationDirectory
 |
 |--- internalApplicationDirectory
 |  WEB-INF
 |  | classes
 |  | your servlet
 |  | web.xml (w/your servlet
 | load-on-startup )
 | ---WEB-INF
|  classes
|  lib
|  web.xml

In my case my YourApplicationDirectory is the appBase of a virtual host.  So
I am able to declare host  unpackWARs=true which will autoload
my internalApplicationDirectory.  I am NOT SURE if this method will work in
your case because I do not know what your server.xml or your application
web.xml files look like.

I am sure there are other ways around the problem, I just haven't had time
to test them and from what I can see the next version of Tomcat (4.1.x) will
be somewhat different (i.e. Things like global resources, JMX, etc) so I am
waiting before I put a lot of effort into testing 4.0.x.

Hope the above helps.

Steven


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




Re: jdbc realm + form authenication setup

2002-04-30 Thread julie . f . mccabe


Hello

Thanks for the below info, I read the servlet spec and it helped, but I
still can not get the form based authenication to work.  I have attached
the web.xml and tomcat-users.xml files, the welcome-file should be
restricted, it does bring up the login page but then it displays the failed
login page - is there still something wrong with this set up.

Thanks
Julie

web.xml
welcome-file-list
 welcome-file/assistant/restricted/test.htm/welcome-file
/welcome-file-list
security-constraint
 web-resource-collection
   web-resource-nameAssistant/web-resource-name
   !-- Define the context-relative URL(s) to be protected --
   url-pattern/restricted/*/url-pattern
   http-methodPOST/http-method
   http-methodGET/http-method
 /web-resource-collection
 auth-constraint
   !-- Anyone with one of the listed roles may access this area --
   role-namemanager/role-name
 /auth-constraint
  /security-constraint
  login-config
 auth-methodFORM/auth-method
 form-login-config
   form-login-page/login.htm/form-login-page
   form-error-page/loginFailed.htm/form-error-page
 /form-login-config
  /login-config
  security-role
 role-namemanager/role-name
  /security-role

tomcat-users.xml
tomcat-users
  user name=operate password=operatethis roles=manager /
/tomcat-users







[EMAIL PROTECTED] on 04/29/2002 02:58:49 PM

Please respond to [EMAIL PROTECTED]

To:[EMAIL PROTECTED]
cc:
Subject:Re: jdbc realm + form authenication setup


Hi Julie,

In your web.xml file if you specify auth-method FORM you have to give it
two
form names like so:
auth-methodFORM/auth-method
 form-login-config
form-login-page/login.htm/form-login-page
form-error-page/loginFailed.htm/form-error-page
 /form-login-config

You only use realm-name if you are using the BASIC authentication scheme.

You have to provide the pages for form-login and form-error.  In the login
page you must have a form with action j_security_check, like so.

  form name=login method=post action=j_security_check

That form has to have a field called j_username and another called
j_password.

Does your Sybase driver info work without security?  Also you may not want
to digest your passwords until you get everything else working to eliminate
that as the source of the error.

To get details on setting up the web.xmlfile and server.xml files download
the Servlet 2.3 specification from java.sun.com.

It's fairly short and is in pdf format.

Hope this helps,

Rick


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 29, 2002 11:48 AM
Subject: jdbc realm + form authenication setup


 Hello

 I have been unable to set up jdbc realm with form authenication method.
I
 have the jsp, the server.xml and web.xml files configured but it doesn't
 work - I am missing sometime but have not found a good resource to
explain
 exactly what this is.  Does anybody have an example/know of a good
 resource?   Using Tomcat 4.0 and Sybase.

 in server.xml
 Realm className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=com.sybase.jdbc2.jdbc.SybDriver digest=digest
connectionURL
 =jdbc:sybase:Tds:server:port/db?user=useramp;password=user userTable=
 userTable userNameCol=nameTable userCredCol=user_pswd userRoleTable
=
 roles roleNameCol=roleName/

 in web.xml
 security-constraint
   web-resource-collection
  web-resource-nameConfiguration/web-resource-name
  !-- Define the context-relative URL(s) to be protected --
  url-pattern/assistant/url-pattern
   /web-resource-collection
   auth-constraint
  !-- Anyone with one of the listed roles may access this area --
  role-nameoperate/role-name
   /auth-constraint
 /security-constraint
 login-config
   auth-methodFORM/auth-method
   realm-nameEBasic Authentication Area/realm-name
 /login-config

 Thanks
 Julie


 This communication is for informational purposes only.  It is not
intended
as
 an offer or solicitation for the purchase or sale of any financial
instrument
 or as an official confirmation of any transaction. All market prices,
data
 and other information are not warranted as to completeness or accuracy
and
 are subject to change without notice. Any comments or statements made
herein
 do not necessarily reflect those of J.P. Morgan Chase  Co., its
 subsidiaries and affiliates.


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




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








This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy 

Re: TOMCAT SSL !!!

2002-04-30 Thread Steve D George


Hi, have a look for postings titled 'How to enforce SSL' that were posted
over the last few days. Assuming you have gone through the How-to-SSL
document in the tomcat docs and set up a certificate, to enforce SSL for a
certain directory in your context, you need something like this in your
web.xml.

!-- Define a Security Constraint on this Application --
  security-constraint
web-resource-collection
  web-resource-nameEntire Application/web-resource-name
  url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
  role-nametrackeruser/role-name
/auth-constraint
user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
  /security-constraint

  !-- Define the Login Configuration for this Application --
  login-config
auth-methodBASIC/auth-method
realm-nameLocation Tracker Application/realm-name
  /login-config

The important piece is the user-data-constraint and the
transport-guarantee. This tells tomcat that all requests to the url pattern
(in my case it is the whole of my context) should be sent over HTTPS. If a
request is received over HTTP, tomcat will redirect the request at whatever
port is defined in server.xml as the 'redirectPort' for the HTTP connector.
This is probably 8443. You then need to make sure that you have an SSL only
connector on that port but I guess you should already have that if you've
got the SSL working already.

Cheers.

Steve.



   

  t.riteshmenon@iflexso

  lutions.com  To:   
[EMAIL PROTECTED]
   cc: 

  30/04/2002 11:10 Subject:  TOMCAT  SSL !!!  

  Please respond to

  Tomcat Users List  

   

   





Hi All,

My application requires that certain pages on the site are accessed via
SSL,
is
there a way in tomcat to reject the connection of http to a specific page
(ie securePage.jsp) but still allow http access to other pages (ie.
standardPage.jsp).

Also i'm using cookies - so i wanted to know whether these cookies will
be visible in both the http  https contexts.

Thanks in advance,

Ritesh


This message contains privileged and confidential information and is
intended only for the individual named.If you are not the intended
recipient
you should not disseminate,distribute,store,print, copy or deliver this
message.Please notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system.E-mail
transmission cannot be guaranteed to be secure or error-free as information
could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or
contain viruses.The sender therefore does not accept liability for any
errors or omissions in the contents of this message which arise as a result
of e-mail transmission. If verification is required please request a
hard-copy version.



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





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




tomcat4 context problem

2002-04-30 Thread userlist
Hi everybody,
I am using 
tomcat4-4.0-1
tomcat4-webapps-4.0-1  
mod_webapp-1.0-1 
rpms and I have set apache - tomcat connection successfully.
So now I can access sample servlet as 
http://192.168.0.26:8180/examples/servlet/HelloWorldExample
as well as 
http://192.168.0.26/examples/servlet/HelloWorldExample

But now I want to access this servlet using following URL
http://192.168.0.26/servlet/HelloWorldExample
I already have an web application which I am running on tomcat 3.2.1 with such access paths. 

Can you give me any pointers in setting apache-tomcat4 to work like this?

thanks
amol

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


Re: Problem with Connectors - Urgent help required Please!!!

2002-04-30 Thread adrianthiele

Raja Sekhar wrote:

Hi,

I am very new to Apache  Tomcat. The configuration what I have is

Redhat Linux 7.1
Apache 1.3.23
Tomcat 4.0.3.

I have installed Apache  Tomcat successfully and they are running fine. Now the 
problem is how to route the request from Apache to Tomcat. Please suggest me the best 
connector to use. This should support SSL for me. I have configured Apache with 
mod-ssl for SSL. I have a servlet on Tomcat which should be able to get these SSL 
Environment variables. So in such scenarios, what connector can I use  please give a 
URL or procedure how to install this connector.

p.s : I read through the tomcat documentation or archives where I found your comments 
on connectors. I am confused which one to use  as such I dont find any mod_jk 
packages or native directories in my 4.0.3 binary installation. But all the documents 
which I get on the internet site talk about how to configure mod_jk with Tomcat. 
Please help me out because this is a urgent task for me.

Thanks  Regards,

..Raj


Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at 
http://www.eudoramail.com

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



  

In Tomcat 4 the connectors have been moved to their own release 
(jakarta-connectors*-src)
it contains mod_jk , mod_webapp , etc.. There is also binaries of the 
mod_jk.so and webapp.so
available for linux.




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




FileLogger Question

2002-04-30 Thread rainer jünger

Hi,

we would like to have a log directory for every virtual host running on our box.
Therfore we where setting up the Logger/ tag within the server.xml File to the 
following values:
Logger className=org.apache.catalina.logger.FileLogger
directory=/home/wwa-m/public_html/docroot/WEB-INF/log/
prefix=wwa-m. 
sufix =.log
timestamp=true/
And now the problem:
the logs are not being writen to the configured directory, even though it exist!!

any suggestions??

R.



Re: jdbc realm + form authenication setup /solution/end

2002-04-30 Thread julie . f . mccabe


Hello again,

I found the solution, tomcat-users.xml was in the wrong directory.

Thanks
Julie.





[EMAIL PROTECTED] on 04/30/2002 06:26:17 AM

Please respond to [EMAIL PROTECTED]

To:[EMAIL PROTECTED]
cc:
Subject:Re: jdbc realm + form authenication setup



Hello

Thanks for the below info, I read the servlet spec and it helped, but I
still can not get the form based authenication to work.  I have attached
the web.xml and tomcat-users.xml files, the welcome-file should be
restricted, it does bring up the login page but then it displays the failed
login page - is there still something wrong with this set up.

Thanks
Julie

web.xml
welcome-file-list
 welcome-file/assistant/restricted/test.htm/welcome-file
/welcome-file-list
security-constraint
 web-resource-collection
   web-resource-nameAssistant/web-resource-name
   !-- Define the context-relative URL(s) to be protected --
   url-pattern/restricted/*/url-pattern
   http-methodPOST/http-method
   http-methodGET/http-method
 /web-resource-collection
 auth-constraint
   !-- Anyone with one of the listed roles may access this area --
   role-namemanager/role-name
 /auth-constraint
  /security-constraint
  login-config
 auth-methodFORM/auth-method
 form-login-config
   form-login-page/login.htm/form-login-page
   form-error-page/loginFailed.htm/form-error-page
 /form-login-config
  /login-config
  security-role
 role-namemanager/role-name
  /security-role

tomcat-users.xml
tomcat-users
  user name=operate password=operatethis roles=manager /
/tomcat-users







[EMAIL PROTECTED] on 04/29/2002 02:58:49 PM

Please respond to [EMAIL PROTECTED]

To:[EMAIL PROTECTED]
cc:
Subject:Re: jdbc realm + form authenication setup


Hi Julie,

In your web.xml file if you specify auth-method FORM you have to give it
two
form names like so:
auth-methodFORM/auth-method
 form-login-config
form-login-page/login.htm/form-login-page
form-error-page/loginFailed.htm/form-error-page
 /form-login-config

You only use realm-name if you are using the BASIC authentication scheme.

You have to provide the pages for form-login and form-error.  In the login
page you must have a form with action j_security_check, like so.

  form name=login method=post action=j_security_check

That form has to have a field called j_username and another called
j_password.

Does your Sybase driver info work without security?  Also you may not want
to digest your passwords until you get everything else working to eliminate
that as the source of the error.

To get details on setting up the web.xmlfile and server.xml files download
the Servlet 2.3 specification from java.sun.com.

It's fairly short and is in pdf format.

Hope this helps,

Rick


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 29, 2002 11:48 AM
Subject: jdbc realm + form authenication setup


 Hello

 I have been unable to set up jdbc realm with form authenication method.
I
 have the jsp, the server.xml and web.xml files configured but it doesn't
 work - I am missing sometime but have not found a good resource to
explain
 exactly what this is.  Does anybody have an example/know of a good
 resource?   Using Tomcat 4.0 and Sybase.

 in server.xml
 Realm className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=com.sybase.jdbc2.jdbc.SybDriver digest=digest
connectionURL
 =jdbc:sybase:Tds:server:port/db?user=useramp;password=user userTable=
 userTable userNameCol=nameTable userCredCol=user_pswd userRoleTable
=
 roles roleNameCol=roleName/

 in web.xml
 security-constraint
   web-resource-collection
  web-resource-nameConfiguration/web-resource-name
  !-- Define the context-relative URL(s) to be protected --
  url-pattern/assistant/url-pattern
   /web-resource-collection
   auth-constraint
  !-- Anyone with one of the listed roles may access this area --
  role-nameoperate/role-name
   /auth-constraint
 /security-constraint
 login-config
   auth-methodFORM/auth-method
   realm-nameEBasic Authentication Area/realm-name
 /login-config

 Thanks
 Julie


 This communication is for informational purposes only.  It is not
intended
as
 an offer or solicitation for the purchase or sale of any financial
instrument
 or as an official confirmation of any transaction. All market prices,
data
 and other information are not warranted as to completeness or accuracy
and
 are subject to change without notice. Any comments or statements made
herein
 do not necessarily reflect those of J.P. Morgan Chase  Co., its
 subsidiaries and affiliates.


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




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








This communication is for 

SUMMARY: Apache 2.0.35 + Tomcat 4.0.3 under Windows 2000/XP

2002-04-30 Thread Frederick Aubert

Hi Everybody,

INTRO: I don't seem to be the only one having problems configuring Apache
2.0.35 and Tomcat 4.0.3. So I am going to try to summarize every tips and
problems found so far and I'd like to suggest we all treat this topic as a
single topic instead of concurrently having three or four topics about the
same thing.

OBJECTIVE: integrating Tomcat 4.0.3 in Apache 2.0.35 under Windows 2000/XP
in order to serve JSP and Servlet requests. Nothing fancy, no special
features expected (ie. load balancing), at least during the first stage of
the configuration.

SUGGESTION: use of mod_webapp module, since mod_jk1 module seems not to be
developed and tested under the previously mentioned settings and since
mod_jk2 seems under heavy development and unfortunately not expected soon.
BUT other working and suitable suggestion to achieve the objective are more
than welcome...

QUESTION: as anyone succeeded in the specified task? using mod_webapp module
or other solution.

CURRENT PROBLEM: there is actually a installation guide line showing how to
achieve the specified task. However it seems outdated since several users
had Apache refusing to load mod_webapp module even having followed the
installation step. To summarize here are the steps we all fully double
checked to make sure no mistakes were done:

1) Install Apache 2.0.35 (as a Win service), make sure it's running. DONE
2) Install Tomcat 4.0.3 (as a Win service), make sure it's running. DONE
3) Copy mod_webapp.so to apache/modules/ directory. DONE double checked
4a) Copy libapr.dll to apache/modules/ directory. DONE double checked
(if 4b) done maybe not required)
4b) Copy libapr.dll to to windows/system32/ directory. DONE double checked
(if 4a) maybe not required)
5) Add LoadModule webapp_module modules/mod_webapp.so in Apache httpd.conf
DONE double checked
6) Test Apache httpd using Apache.exe -t in the console. FAILED: Cannot load
APACHE_PATH/modules/mod_webapp.so into server: The specified module could
not be found.

QUESTIONS: are we missing a step? Or is there some bug there making the
whole undertaking impossible? Would it be a Tomcat, an Apache, or a web_app
problem?

POTENTIALLY LINKED PROBLEM: some of us also tried to integrate PHP4.2 under
the same environment. The same problem has been reported whenever
LoadModule php4_module PHP_PATH/sapi/php4apache.dll was added in the
Apache httpd.conf. That seems surprisingly similar to us. Would it be an
Apache problem? Is there some problem in the way Apache 2 is working with
modules in its Windows release?

Sincerely, Frederick Aubert

 Hello,
 
 In the  webapp-module-1.0-tc40-windows.zip was a libapr.dll.
 
 INSTALL.TXT says
 Another note for Windows: copy also the libapr.dll file with the module,
 or
 your Apache 1.3 web server will refuse to start reporting that the WebApp
 module cannot be loaded.
 
 This applies to Windows only.
 
 Good luck!
 Dennis


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




JSP Servlets error: NullPointerException

2002-04-30 Thread hector De Caceres

hello!
I'm tryng to serve JSP pages and Servlets.
For that I'm using Tomcat4.0 configured in stand-alone
mode , and JDK1.3.1 for Linux.
I have put JSP pages under the
$CATALINA_HOME/weapps/myAplication directory and the
servlets are hunging under 
$CATALINA_HOME/webapps/myAplication/WEB-INF/classes/mypackage/
directory.
But when I request a JSP page from a Browser ( I'm
using the Opera 5.0 browser) that are using 
the servlets ( If the JSP page don't call to a servlet
, Tomcat serve this page O.K),
Tomcat response me with this error:

A Servlet Exception Has Occurred
java.lang.NullPointerException
at
org.apache.jsp.inicio$jsp._jspService(inicio$jsp.java:81)
at
org.apache.jasper.runtime.HttpJspBase.service(Unknown
Source)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
Source)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown
Source)
at
org.apache.jasper.servlet.JspServlet.service(Unknown
Source)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
Source)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
Source)
at
org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardContextValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardContext.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardHostValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)
at
org.apache.catalina.valves.AccessLogValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardEngineValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at
org.apache.catalina.connector.http.HttpProcessor.process(Unknown
Source)
at
org.apache.catalina.connector.http.HttpProcessor.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:484)

If you have any idea of what are producing this error
, please! 
write a e-mail to: [EMAIL PROTECTED]

Thanks for your help!

___
Do You Yahoo!?
Yahoo! Messenger
Comunicación instantánea gratis con tu gente.
http://messenger.yahoo.es

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




JSP Servlets error: NullPointerException

2002-04-30 Thread hector De Caceres

hello!
I'm tryng to serve JSP pages and Servlets.
For that I'm using Tomcat4.0 configured in stand-alone
mode , and JDK1.3.1 for Linux.
I have put JSP pages under the
$CATALINA_HOME/weapps/myAplication directory and the
servlets are hunging under 
$CATALINA_HOME/webapps/myAplication/WEB-INF/classes/mypackage/
directory.
But when I request a JSP page from a Browser ( I'm
using the Opera 5.0 browser) that are using 
the servlets ( If the JSP page don't call to a servlet
, Tomcat serve this page O.K),
Tomcat response me with this error:

A Servlet Exception Has Occurred
java.lang.NullPointerException
at
org.apache.jsp.inicio$jsp._jspService(inicio$jsp.java:81)
at
org.apache.jasper.runtime.HttpJspBase.service(Unknown
Source)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
Source)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown
Source)
at
org.apache.jasper.servlet.JspServlet.service(Unknown
Source)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
Source)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
Source)
at
org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardContextValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardContext.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardHostValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)
at
org.apache.catalina.valves.AccessLogValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardEngineValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at
org.apache.catalina.connector.http.HttpProcessor.process(Unknown
Source)
at
org.apache.catalina.connector.http.HttpProcessor.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:484)

If you have any idea of what are producing this error
, please! 
write a e-mail to: [EMAIL PROTECTED]

Thanks for your help!

___
Do You Yahoo!?
Yahoo! Messenger
Comunicación instantánea gratis con tu gente.
http://messenger.yahoo.es

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




R: JSP Servlets error: NullPointerException

2002-04-30 Thread Grava



 -Messaggio originale-
 Da: hector De Caceres [mailto:[EMAIL PROTECTED]] 
 Inviato: martedì 30 aprile 2002 13.43
 A: [EMAIL PROTECTED]
 Oggetto: JSP  Servlets error: NullPointerException
 
 
 hello!
 I'm tryng to serve JSP pages and Servlets.
 For that I'm using Tomcat4.0 configured in stand-alone
 mode , and JDK1.3.1 for Linux.
 I have put JSP pages under the 
 $CATALINA_HOME/weapps/myAplication directory and the servlets 
 are hunging under 
 $CATALINA_HOME/webapps/myAplication/WEB-INF/classes/mypackage/
 directory.
 But when I request a JSP page from a Browser ( I'm
 using the Opera 5.0 browser) that are using 
 the servlets ( If the JSP page don't call to a servlet
 , Tomcat serve this page O.K),
 Tomcat response me with this error:
 

 
 If you have any idea of what are producing this error
 , please! 
 write a e-mail to: [EMAIL PROTECTED]
 
 Thanks for your help!
 
 ___
 Do You Yahoo!?
 Yahoo! Messenger
 Comunicación instantánea gratis con tu gente. 
 http://messenger.yahoo.es
 
 --
 To unsubscribe:   
 mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 

Are you sure you map the servlets in your web.xml, have U tried to call
directly the servlet (if U can)?

Bye, Grava



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




Re: tomcat4 context problem

2002-04-30 Thread rsequeira


Move the HelloWorldExample servlet under the webapps/ROOT/WEB-INF
directory.  Also uncomment the Context entry for ROOT in server.xml (if it
isn't already)

RS





[EMAIL PROTECTED] on 04/30/2002 05:53:29 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:tomcat users list [EMAIL PROTECTED]
cc:

Subject:tomcat4 context problem

Hi everybody,
I am using
tomcat4-4.0-1
tomcat4-webapps-4.0-1
mod_webapp-1.0-1
rpms and I have set apache - tomcat connection successfully.
So now I can access sample servlet as
http://192.168.0.26:8180/examples/servlet/HelloWorldExample
as well as
http://192.168.0.26/examples/servlet/HelloWorldExample

But now I want to access this servlet using following URL
http://192.168.0.26/servlet/HelloWorldExample
I already have an web application which I am running on tomcat 3.2.1 with
such access paths.

Can you give me any pointers in setting apache-tomcat4 to work like this?

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








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




Receipt of 30/04/102 12:48 message

2002-04-30 Thread Andrew . Bate


Re:R: JSP  Servlets error: NullPointerException




**
This message has been sent via the Internet. Internet communications 
are not secure against interception or modification. Severn Trent 
Systems therefore can not guarantee that this message has not been
modified in transit, and this message should not be viewed as 
contractually binding.

This message and any files transmitted with it are confidential and 
intended solely for the use of the addressee. If you have received 
this message in error please notify the sender and destroy your
copies of the message and any attached files. 
***
Severn Trent Systems Ltd : a part of Severn Trent plc. 
Registered in England and Wales Registration No. 2394552


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




Re: R: JSP Servlets error: NullPointerException

2002-04-30 Thread hector De Caceres

 --- Grava [EMAIL PROTECTED] escribió:  
 
  -Messaggio originale-
  Da: hector De Caceres [mailto:[EMAIL PROTECTED]] 
  Inviato: martedì 30 aprile 2002 13.43
  A: [EMAIL PROTECTED]
  Oggetto: JSP  Servlets error:
 NullPointerException
  
  
  hello!
  I'm tryng to serve JSP pages and Servlets.
  For that I'm using Tomcat4.0 configured in
 stand-alone
  mode , and JDK1.3.1 for Linux.
  I have put JSP pages under the 
  $CATALINA_HOME/weapps/myAplication directory and
 the servlets 
  are hunging under 
 

$CATALINA_HOME/webapps/myAplication/WEB-INF/classes/mypackage/
  directory.
  But when I request a JSP page from a Browser ( I'm
  using the Opera 5.0 browser) that are using 
  the servlets ( If the JSP page don't call to a
 servlet
  , Tomcat serve this page O.K),
  Tomcat response me with this error:
  
 
  
  If you have any idea of what are producing this
 error
  , please! 
  write a e-mail to: [EMAIL PROTECTED]
  
  Thanks for your help!
  
 

___
  Do You Yahoo!?
  Yahoo! Messenger
  Comunicación instantánea gratis con tu gente. 
  http://messenger.yahoo.es
  
  --
  To unsubscribe:   
 
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
  
  
 
 Are you sure you map the servlets in your web.xml,
 have U tried to call
 directly the servlet (if U can)?
 
 Bye, Grava
 
Thanks for  your response , but I forgot to write
how I've mapped my Servlet (it is one servlet that are
hunging under
$CATALINA_HOME/webapps/myAplication/WEB-INF/classes/mypackage/
and its name is GNServletContext)  in my web.xml:
  servlet
servlet-nameGNServletContext/servlet-name
   
servlet-classorg.apache.catalina.servlets.GNServletContext/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
!-- Uncomment this to enable read and write
access --
!--
init-param
  param-namereadonly/param-name
  param-valuefalse/param-value
/init-param
--
!--load-on-startup1/load-on-startup--
  /servlet

  !-- The mapping for the webdav servlet --
  servlet-mapping
servlet-nameGNServletContext/servlet-name
url-pattern/mypackage//url-pattern
  /servlet-mapping

Are the servlet correctly mapped?.
Could the error be in servlet-class tags?
I don't know what put between these tags.
I have probed with put:
servlet-class//localhost:8080/myAplication/WEB-INF/classes/mypackage/GNServletContext/servlet-class
But the same error appear in the browser.
Can you say me what I have to put between this tags?.
A lot of Thanks!

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

___
Do You Yahoo!?
Yahoo! Messenger
Comunicación instantánea gratis con tu gente.
http://messenger.yahoo.es

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




Re: R: JSP Servlets error: NullPointerException

2002-04-30 Thread hector De Caceres

 --- Grava [EMAIL PROTECTED] escribió:  
 
  -Messaggio originale-
  Da: hector De Caceres [mailto:[EMAIL PROTECTED]] 
  Inviato: martedì 30 aprile 2002 13.43
  A: [EMAIL PROTECTED]
  Oggetto: JSP  Servlets error:
 NullPointerException
  
  
  hello!
  I'm tryng to serve JSP pages and Servlets.
  For that I'm using Tomcat4.0 configured in
 stand-alone
  mode , and JDK1.3.1 for Linux.
  I have put JSP pages under the 
  $CATALINA_HOME/weapps/myAplication directory and
 the servlets 
  are hunging under 
 

$CATALINA_HOME/webapps/myAplication/WEB-INF/classes/mypackage/
  directory.
  But when I request a JSP page from a Browser ( I'm
  using the Opera 5.0 browser) that are using 
  the servlets ( If the JSP page don't call to a
 servlet
  , Tomcat serve this page O.K),
  Tomcat response me with this error:
  
 
  
  If you have any idea of what are producing this
 error
  , please! 
  write a e-mail to: [EMAIL PROTECTED]
  
  Thanks for your help!
  
 

___
  Do You Yahoo!?
  Yahoo! Messenger
  Comunicación instantánea gratis con tu gente. 
  http://messenger.yahoo.es
  
  --
  To unsubscribe:   
 
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
  
  
 
 Are you sure you map the servlets in your web.xml,
 have U tried to call
 directly the servlet (if U can)?
 
 Bye, Grava
 
Thanks for  your response , but I forgot to write
how I've mapped my Servlet (it is one servlet that are
hunging under
$CATALINA_HOME/webapps/myAplication/WEB-INF/classes/mypackage/
and its name is GNServletContext)  in my web.xml:
  servlet
servlet-nameGNServletContext/servlet-name
   
servlet-classorg.apache.catalina.servlets.GNServletContext/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
!-- Uncomment this to enable read and write
access --
!--
init-param
  param-namereadonly/param-name
  param-valuefalse/param-value
/init-param
--
!--load-on-startup1/load-on-startup--
  /servlet

  !-- The mapping for the webdav servlet --
  servlet-mapping
servlet-nameGNServletContext/servlet-name
url-pattern/mypackage//url-pattern
  /servlet-mapping

Are the servlet correctly mapped?.
Could the error be in servlet-class tags?
I don't know what put between these tags.
I have probed with put:
servlet-class//localhost:8080/myAplication/WEB-INF/classes/mypackage/GNServletContext/servlet-class
But the same error appear in the browser.
Can you say me what I have to put between this tags?.
A lot of Thanks!

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

___
Do You Yahoo!?
Yahoo! Messenger
Comunicación instantánea gratis con tu gente.
http://messenger.yahoo.es

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




Re: Where do I edit /etc/tomcat4/conf/tomcat4.conf in Windows 2000? Want to edit LANG setting

2002-04-30 Thread Tom Bednarz

Tony,

There is no such file on Windows. Usually you install Tomcat as service on
NT/W2K. You have to pass all parameters to the TOMCAT.exe file.

Type Tomcat /? and you will get command line help. The whole thing is not so
easy and it took me quite a while to figure it out! So I have written a
small batch file to install the service and one to remove the service. Here
is the code for those who are interested:

 snip install ---
@echo off
d:
cd \Tomcat4.0\bin

tomcat.exe -install Apache Tomcat
C:\JavaSoft\jdk1.3.1_01\jre\bin\hotspot\jvm.dll -jvm_option -Djava.class.pat
h=D:\Tomcat4.0\bin\bootstrap.jar -jvm_option -Dcatalina.home=d:\tomcat4.0 -j
vm_option -Xms128M -jvm_option -Xmx256M -start
org.apache.catalina.startup.BootstrapService -params start -stop
org.apache.catalina.startup.BootstrapService -params stop -out
d:\tomcat4.0\logs\service.out -err d:\tomcat4.0\logs\service.err

- snip remove service ---
@echo off
d:
cd \Tomcat4.0\bin
tomcat -uninstall Apache Tomcat


Please note that you have to write tomcat.exe command on ONE SINGLE line!

You can also use regedit.exe and edit the keys
HKEY_LOKAL_MACHINE\SYSTEM\CurrentControlSet\Services\Your apache service
name. Be careful when modifying the registry using regedit. If you do
something wrong it can destroy your system!

Good look!

Tom

- Original Message -
From: Tony [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 30, 2002 9:59 AM
Subject: Where do I edit /etc/tomcat4/conf/tomcat4.conf in Windows 2000?
Want to edit LANG setting


 Hi Folks

 Where is the

 /etc/tomcat4/conf/tomcat4.conf

 file which is found on a Linux tomcat install found in a Windows install.
I want to edit
 the LANG setting

 Cheers

 Tony

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




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




port 80 !!??

2002-04-30 Thread Tevfik Aytekin

Hi,
I suppose this question should have been answered, but I could not find a
satisfactory answer in the archives.
Isn't it possible to run tomcat as standalone on port 80 with a user other
then root. Apache server manages to do this. But as far as I can see tomcat
can not. I wonder why? Can someone answer?
This ability of tomcat would have been great since we did not need neither
apache nor mod_jk, etc.
Also since apache and mod_jk are written in C it troubles many people to get
them run on different platforms. So I do not understand why tomcat do not
have the ability run on port 80 with a user other than root.

Thanks in advance.
TA.


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




Re: SUMMARY: Apache 2.0.35 + Tomcat 4.0.3 under Windows 2000/XP

2002-04-30 Thread @Basebeans.com

Subject: Re: SUMMARY: Apache 2.0.35 + Tomcat 4.0.3 under Windows 2000/XP
From: Bruno V [EMAIL PROTECTED]
 ===
I tried to search for guides and howto to install Tomcat and Apache WITH 
a WARP connector (mod_webapp)

Here is what I found so far :

http://www.codesta.com/knowledge/technical/tomcat_warp_apache/page_01.jsp 
codesta  by Joseph Molnar April 17, 2002

http://dcb.sun.com/practices/howtos/tomcat_apache.jsp
SUN  by Don MacVittie December 20, 2001

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/warp.html
Tomcat  (few info)

http://www.galatea.com/flashguides/
Galatea Flashguides  recents How-To (too short ?)

http://www.ajug.org/howto/tomcat4.html
ajug.org focus on Linux (Atlanta Java Users Group)


I will try to keep it up to date on 
http://bruno.vernay.free.fr/HowTo/bWebServerHowTo/pr01.html

I will update this next week. I didn't find much How-to about mod_jk.

I guess that there are better place for this kind of info, but didn't 
find it. Maybe it should be on the Tomcat site to avoid an explosion of 
the mailing list ? By the way, the mailing list should be separated by 
installation  configuration and web application ... if possible ...



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




RE: port 80 !!??

2002-04-30 Thread Renato Romano

That's because on Unix-like systems well-known port numbers, like www
(port 80), or ftp, telnet etc, are system-reserved to the root user. No
other user can open server sockets on ports less than 1024. You should
run it as root, or have another user having system administrator
prvileges.
Renato


Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_


-Original Message-
From: Tevfik Aytekin [mailto:[EMAIL PROTECTED]] 
Sent: martedì 30 aprile 2002 14.32
To: Tomcat Users List
Subject: port 80 !!??


Hi,
I suppose this question should have been answered, but I could not find
a satisfactory answer in the archives. Isn't it possible to run tomcat
as standalone on port 80 with a user other then root. Apache server
manages to do this. But as far as I can see tomcat can not. I wonder
why? Can someone answer? This ability of tomcat would have been great
since we did not need neither apache nor mod_jk, etc. Also since apache
and mod_jk are written in C it troubles many people to get them run on
different platforms. So I do not understand why tomcat do not have the
ability run on port 80 with a user other than root.

Thanks in advance.
TA.


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



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




Re: Resolution to JNDI DataSource=null problem

2002-04-30 Thread Chris Faulkner

HI

Thanks for the notes about the JNDI datasource=null problem I've got this working on 
my system, although only with mod_jk and not mod_webapp.

I want to get the pooling going so the paragraph below is helpful. What I;d also like 
to know is where and how you specify the pool parameters, for the Tyrex 
ConnectionPool. I am familiar with JBOSS where you 
can specify parameters regarding the pool (eg max no. of connections, how long to keep 
open, etc). Is the same possible with Tyrex and Tomcat ?

Or does anyone have sample config about how to do this with 
OracleConnectionPoolDataSource ?

Thanks

Chris

Then I started getting connections, and threw a small party to celebrate.
They weren't pooling properly, and I found some notes on the net about
that as well.  Instead of getting a datasource from the contect:
   DataSource ds = (DataSource)envCtx.lookup(jdbc/datafoo);
   Connection c = ds.getConnection();
To get a connection from a pool with Tyrex, one does this:
   ConnectionPoolDataSource pds = 
(ConnectionPoolDataSource)envCtx.lookup(jdbc/datafoo);
   PooledConnection ds = pds.getPooledConnection();
   Connection c = ds.getConnection();

Hopefully my experiences here will be of help to others by way of
searching the list :)

   Nick

-- 
The aptly-named morons.org is an obscenity-laced screed...
   -- Robert P. Lockwood, Catholic League director of research
Nick Johnson, version 2.0 http://www.spatula.net/



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






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




RE: port 80 !!??

2002-04-30 Thread Tevfik Aytekin

But apache server can manage to bind to port 80 with another user.
What I am asking is why tomcat can not do this. Is it becasue it is written
in Java?

TA.

-Original Message-
From: Renato Romano [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 3:30 PM
To: 'Tomcat Users List'
Subject: RE: port 80 !!??


That's because on Unix-like systems well-known port numbers, like www
(port 80), or ftp, telnet etc, are system-reserved to the root user. No
other user can open server sockets on ports less than 1024. You should
run it as root, or have another user having system administrator
prvileges.
Renato


Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_


-Original Message-
From: Tevfik Aytekin [mailto:[EMAIL PROTECTED]]
Sent: martedì 30 aprile 2002 14.32
To: Tomcat Users List
Subject: port 80 !!??


Hi,
I suppose this question should have been answered, but I could not find
a satisfactory answer in the archives. Isn't it possible to run tomcat
as standalone on port 80 with a user other then root. Apache server
manages to do this. But as far as I can see tomcat can not. I wonder
why? Can someone answer? This ability of tomcat would have been great
since we did not need neither apache nor mod_jk, etc. Also since apache
and mod_jk are written in C it troubles many people to get them run on
different platforms. So I do not understand why tomcat do not have the
ability run on port 80 with a user other than root.

Thanks in advance.
TA.


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



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


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




anyone is exceptional with jsp scriplets plz help with this .

2002-04-30 Thread chuck amadi

Hi if anyone is exceptional with jsp scriplets plz help with this .

I was able to get the index array property to print out the converted 
string's nevetheless
it needs a further String to ensure that in case more than on e checkbox 
is selected that all the indexed array properties will populate my 
PostgreSql db. al attempts got to within two errors Plz send any 
suggestions.

%-- Sciptlet Code froagment --%
%
String []opportunity = formHandler.getOpportunity();
if (!opportunity[0].equals(1)) {
out.println(ul);
for (int i =0; iopportunity.length;i++)
out.println(li+opportunity[i]);
out.println(/ul);
} else out.println(Nothing was selected);

String allOps =;
for(int i =0; iopportunity.length;i++){
allOps = opportunity[1];
%

Cheers Chuck Amadi
Systems Programmer
Rhaglennydd Systemau



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




Re: port 80 !!??

2002-04-30 Thread Bruce Stephens

Tevfik Aytekin [EMAIL PROTECTED] writes:

 But apache server can manage to bind to port 80 with another user.
 What I am asking is why tomcat can not do this. Is it becasue it is
 written in Java?

Apache doesn't (and can't) do this, as far as I know.  I've never seen
it do this, anyway.

Apache can end up running as non-root, but if it's listening on port
80, then it started running as root and then dropped root privilege
after establishing the listening socket.

That kind of thing may not be easy to do in Java, I don't know.

[...]

-- 
Bruce Stephens  [EMAIL PROTECTED]
ACI Worldwide/MessagingDirect   URL:http://www.MessagingDirect.com/

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




Re: port 80 !!?? Running !

2002-04-30 Thread adrianthiele

Tevfik , I have mine running on port 80, I just grepped Server.xml and 
changed the port number from 8080 to 80 no the non ssl http config. It 
only needs to be changed in one spot.
I just ran apachectl stop the startup.sh and everything is fine.

Adrian


Tevfik Aytekin wrote:

But apache server can manage to bind to port 80 with another user.
What I am asking is why tomcat can not do this. Is it becasue it is written
in Java?

TA.

-Original Message-
From: Renato Romano [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 3:30 PM
To: 'Tomcat Users List'
Subject: RE: port 80 !!??


That's because on Unix-like systems well-known port numbers, like www
(port 80), or ftp, telnet etc, are system-reserved to the root user. No
other user can open server sockets on ports less than 1024. You should
run it as root, or have another user having system administrator
prvileges.
Renato


Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_


-Original Message-
From: Tevfik Aytekin [mailto:[EMAIL PROTECTED]]
Sent: martedì 30 aprile 2002 14.32
To: Tomcat Users List
Subject: port 80 !!??


Hi,
I suppose this question should have been answered, but I could not find
a satisfactory answer in the archives. Isn't it possible to run tomcat
as standalone on port 80 with a user other then root. Apache server
manages to do this. But as far as I can see tomcat can not. I wonder
why? Can someone answer? This ability of tomcat would have been great
since we did not need neither apache nor mod_jk, etc. Also since apache
and mod_jk are written in C it troubles many people to get them run on
different platforms. So I do not understand why tomcat do not have the
ability run on port 80 with a user other than root.

Thanks in advance.
TA.


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



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


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



  





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




Re: JSP Servlets error: NullPointerException

2002-04-30 Thread Todd Kaplinger

Keep the generated java code from the jsp file and look at line 81.
org.apache.jsp.inicio$jsp._jspService(inicio$jsp.java:81)
This should provide some insight.


From: hector De Caceres [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: JSP  Servlets error: NullPointerException
Date: Tue, 30 Apr 2002 13:41:36 +0200 (CEST)

hello!
I'm tryng to serve JSP pages and Servlets.
For that I'm using Tomcat4.0 configured in stand-alone
mode , and JDK1.3.1 for Linux.
I have put JSP pages under the
$CATALINA_HOME/weapps/myAplication directory and the
servlets are hunging under
$CATALINA_HOME/webapps/myAplication/WEB-INF/classes/mypackage/
directory.
But when I request a JSP page from a Browser ( I'm
using the Opera 5.0 browser) that are using
the servlets ( If the JSP page don't call to a servlet
, Tomcat serve this page O.K),
Tomcat response me with this error:

A Servlet Exception Has Occurred
java.lang.NullPointerException
at
org.apache.jsp.inicio$jsp._jspService(inicio$jsp.java:81)
at
org.apache.jasper.runtime.HttpJspBase.service(Unknown
Source)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
Source)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown
Source)
at
org.apache.jasper.servlet.JspServlet.service(Unknown
Source)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
Source)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
Source)
at
org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardContextValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardContext.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardHostValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)
at
org.apache.catalina.valves.AccessLogValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardEngineValve.invoke(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
Source)
at
org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at
org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
at
org.apache.catalina.connector.http.HttpProcessor.process(Unknown
Source)
at
org.apache.catalina.connector.http.HttpProcessor.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:484)

If you have any idea of what are producing this error
, please!
write a e-mail to: [EMAIL PROTECTED]

Thanks for your help!

___
Do You Yahoo!?
Yahoo! Messenger
Comunicación instantánea gratis con tu gente.
http://messenger.yahoo.es

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



_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




RE: port 80 !!?? Running !

2002-04-30 Thread Tevfik Aytekin

Adrian, I do not understand your answer.
Is your tomcat running on port 80 with a user other then root?
If yes, please tell me how you achieve this.

Thanks.
TA.

-Original Message-
From: adrianthiele [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 11:53 AM
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: port 80 !!?? Running !


Tevfik , I have mine running on port 80, I just grepped Server.xml and
changed the port number from 8080 to 80 no the non ssl http config. It
only needs to be changed in one spot.
I just ran apachectl stop the startup.sh and everything is fine.

Adrian


Tevfik Aytekin wrote:

But apache server can manage to bind to port 80 with another user.
What I am asking is why tomcat can not do this. Is it becasue it is written
in Java?

TA.

-Original Message-
From: Renato Romano [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 3:30 PM
To: 'Tomcat Users List'
Subject: RE: port 80 !!??


That's because on Unix-like systems well-known port numbers, like www
(port 80), or ftp, telnet etc, are system-reserved to the root user. No
other user can open server sockets on ports less than 1024. You should
run it as root, or have another user having system administrator
prvileges.
Renato


Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_


-Original Message-
From: Tevfik Aytekin [mailto:[EMAIL PROTECTED]]
Sent: martedì 30 aprile 2002 14.32
To: Tomcat Users List
Subject: port 80 !!??


Hi,
I suppose this question should have been answered, but I could not find
a satisfactory answer in the archives. Isn't it possible to run tomcat
as standalone on port 80 with a user other then root. Apache server
manages to do this. But as far as I can see tomcat can not. I wonder
why? Can someone answer? This ability of tomcat would have been great
since we did not need neither apache nor mod_jk, etc. Also since apache
and mod_jk are written in C it troubles many people to get them run on
different platforms. So I do not understand why tomcat do not have the
ability run on port 80 with a user other than root.

Thanks in advance.
TA.


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



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


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









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


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




Auth errors

2002-04-30 Thread John M . Hollingsworth

Hello.  I'm using Tomcat 4.0.3 against a MySQL MyISAM database for authentication.  
Suddenly, I'm getting back Access denied for user, but the user is valid, as is the 
table.

Here's a snippet of my server.xml


  !-- Because this Realm is here, an instance will be shared globally --

  !-- Realm className=org.apache.catalina.realm.MemoryRealm / --

  !-- Replace the above Realm with one of the following to get a Realm
   stored in a database and accessed via JDBC --


  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=org.gjt.mm.mysql.Driver
  
connectionURL=jdbc:mysql://localhost/tomcatusers?user=zoidburg;password=alien
  userTable=authusers userNameCol=user_name userCredCol=user_pass
  userRoleTable=authroles roleNameCol=user_role /

I have tried re-adding the user to my table, and I have tried dropping the table and 
building a new one.  Nothing seems to be working.

Here is the copy of the stout.log:
Create Catalina server
Starting service Tomcat-Standalone
Apache Tomcat/4.0.3
Catalina.start: LifecycleException:  Exception opening database connection:  
java.sql.SQLException: Invalid authorization specification: Access denied for user: 
'jmhollin;password@localhost' (Using password: NO)
LifecycleException:  Exception opening database connection:  java.sql.SQLException: 
Invalid authorization specification: Access denied for user: 
'zoidburg;password@localhost' (Using password: NO)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at org.apache.catalina.core.StandardService.start(StandardService.java:388)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:261)
at 
org.apache.catalina.startup.CatalinaService.execute(CatalinaService.java:172)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
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.catalina.startup.BootstrapService.main(BootstrapService.java:428)
- Root Cause -
java.sql.SQLException: Invalid authorization specification: Access denied for user: 
'zoidburg;password@localhost' (Using password: NO)
at org.gjt.mm.mysql.MysqlIO.init(Unknown Source)
at org.gjt.mm.mysql.Connection.connectionInit(Unknown Source)
at org.gjt.mm.mysql.jdbc2.Connection.connectionInit(Unknown Source)
at org.gjt.mm.mysql.Driver.connect(Unknown Source)
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:548)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at org.apache.catalina.core.StandardService.start(StandardService.java:388)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:261)
at 
org.apache.catalina.startup.CatalinaService.execute(CatalinaService.java:172)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
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.catalina.startup.BootstrapService.main(BootstrapService.java:428)


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




test

2002-04-30 Thread Frank Diakovasilis

test



RE: port 80 !!?? Running !

2002-04-30 Thread Ion Larrañaga

Normal users cannot open sockets on ports less than 1024. Apache
avoids this problem by starting as root, creating and binding a
socket in port 80 and then switching to another user (nobody).
As the socket has already been bound by root, nobody can
use it. Note the difference: nobody uses the socket, does not
bind it to port 80 (which only root can do).

What Tomcat cannot do is switch from root to nobody. It either
starts as root or as nobody, and stays with that user for all its
execution. If it starts as root it can create sockets in port 1024. 
If it starts as nobody, it cannot, so it has to use port 8080 or similar.

Anyway, using mod_jk is quite easy, and there are lots of docs available
that explain how to connect Apache and Tomcat.

Hope now it is clear enough,

   Ion

-Mensaje original-
De: Tevfik Aytekin [mailto:[EMAIL PROTECTED]]
Enviado el: martes, 30 de abril de 2002 15:10
Para: Tomcat Users List
Asunto: RE: port 80 !!?? Running !


Adrian, I do not understand your answer.
Is your tomcat running on port 80 with a user other then root?
If yes, please tell me how you achieve this.

Thanks.
TA.


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




Re: port 80 !!?? Running !

2002-04-30 Thread adrianthiele

Yes , a non root process cannot bind to a port under 80. Apache actually 
starts one process as root according to ps -U root. the child processes 
are started as www.

Adrian


Tevfik Aytekin wrote:

Adrian, I do not understand your answer.
Is your tomcat running on port 80 with a user other then root?
If yes, please tell me how you achieve this.

Thanks.
TA.

-Original Message-
From: adrianthiele [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 11:53 AM
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: port 80 !!?? Running !


Tevfik , I have mine running on port 80, I just grepped Server.xml and
changed the port number from 8080 to 80 no the non ssl http config. It
only needs to be changed in one spot.
I just ran apachectl stop the startup.sh and everything is fine.

Adrian


Tevfik Aytekin wrote:

  

But apache server can manage to bind to port 80 with another user.
What I am asking is why tomcat can not do this. Is it becasue it is written
in Java?

TA.

-Original Message-
From: Renato Romano [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 3:30 PM
To: 'Tomcat Users List'
Subject: RE: port 80 !!??


That's because on Unix-like systems well-known port numbers, like www
(port 80), or ftp, telnet etc, are system-reserved to the root user. No
other user can open server sockets on ports less than 1024. You should
run it as root, or have another user having system administrator
prvileges.
Renato


Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_


-Original Message-
From: Tevfik Aytekin [mailto:[EMAIL PROTECTED]]
Sent: martedì 30 aprile 2002 14.32
To: Tomcat Users List
Subject: port 80 !!??


Hi,
I suppose this question should have been answered, but I could not find
a satisfactory answer in the archives. Isn't it possible to run tomcat
as standalone on port 80 with a user other then root. Apache server
manages to do this. But as far as I can see tomcat can not. I wonder
why? Can someone answer? This ability of tomcat would have been great
since we did not need neither apache nor mod_jk, etc. Also since apache
and mod_jk are written in C it troubles many people to get them run on
different platforms. So I do not understand why tomcat do not have the
ability run on port 80 with a user other than root.

Thanks in advance.
TA.


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



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


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











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


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



  





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




Question about security...

2002-04-30 Thread Jean-Luc BEAUDET

Hi everybody !

Working on SOLARIS8 with Apache1.3.22/Tomcat 4.0.2-Final and Warp 1.0.2

I find the http://MyServer/webapp-info very usefull for many things.

I customized the manager to manage my Servlets Zone and it works good
with the basic tomcat-users.xml method.

I added

WebAppInfo /webapp-info

in my Apache's httpd.conf.

I'd like to know if there is a way to have the same identication way
than
manager to get more security on my site.

Any help welcome.

Jean-Luc B :O)


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




Re: port 80 !!?? Running !

2002-04-30 Thread adrianthiele

You said you were concerned about mod_jk so you didn`t want to just 
map tomcat request
to port 80 .
If you are running under 1.3 , mod_jk is really simple to get up to 
speed with. I built it on freeBSD with only minor changes to the make 
file. Linux has binaries of mod_jk.so available.
recently I have also got mod_webapp to run quite well under 1.3 and 
Apache2. If you need assistance , let me know.
If your running under windows, I think people are having alot of 
trouble with connectors.

Tevfik Aytekin wrote:

Adrian, I do not understand your answer.
Is your tomcat running on port 80 with a user other then root?
If yes, please tell me how you achieve this.

Thanks.
TA.

-Original Message-
From: adrianthiele [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 11:53 AM
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: port 80 !!?? Running !


Tevfik , I have mine running on port 80, I just grepped Server.xml and
changed the port number from 8080 to 80 no the non ssl http config. It
only needs to be changed in one spot.
I just ran apachectl stop the startup.sh and everything is fine.

Adrian


Tevfik Aytekin wrote:

  

But apache server can manage to bind to port 80 with another user.
What I am asking is why tomcat can not do this. Is it becasue it is written
in Java?

TA.

-Original Message-
From: Renato Romano [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 3:30 PM
To: 'Tomcat Users List'
Subject: RE: port 80 !!??


That's because on Unix-like systems well-known port numbers, like www
(port 80), or ftp, telnet etc, are system-reserved to the root user. No
other user can open server sockets on ports less than 1024. You should
run it as root, or have another user having system administrator
prvileges.
Renato


Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_


-Original Message-
From: Tevfik Aytekin [mailto:[EMAIL PROTECTED]]
Sent: martedì 30 aprile 2002 14.32
To: Tomcat Users List
Subject: port 80 !!??


Hi,
I suppose this question should have been answered, but I could not find
a satisfactory answer in the archives. Isn't it possible to run tomcat
as standalone on port 80 with a user other then root. Apache server
manages to do this. But as far as I can see tomcat can not. I wonder
why? Can someone answer? This ability of tomcat would have been great
since we did not need neither apache nor mod_jk, etc. Also since apache
and mod_jk are written in C it troubles many people to get them run on
different platforms. So I do not understand why tomcat do not have the
ability run on port 80 with a user other than root.

Thanks in advance.
TA.


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



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


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











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


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



  





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




Increase heap size for NT Service

2002-04-30 Thread Mary Loos Sage

Tomcat 4.0.3 NT service on Windows 2000 


I am trying to increase the heap size to run a servlet that needs lots
of memory.  I set the system environment variable:

CATALINA_OPTS=-Xmx256m

Everything works fine when I start tomcat from the commandline, but I
run out of memory when I start the NT service.  

Is the NT services running startup.bat?  (I tried to look at the source
in the CVS baseline but everything was in the Attic).  Is there anything
else I need to do to increase the maximum heap size of the JVM of the NT
service?

Thanks,
Mary Loos Sage
Veridian Systems
Arlington, VA

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




How to change the jsp file expansion rules

2002-04-30 Thread Ed Rouse

I have hit the file name too long barrier. The problem isn't the filename
per say, but the way tomcat is creating the .java and .class names from the
jsp. When expanding the jsp, it is including the directory structure in the
file name. It also creates the directory structure, but doesn't put any
files in it.

Example:
jsp/one/two/three/filename.jsp becomes

_0002fjsp_0002fone_0002ftwo_0002fthree_0002ffilename_0002ejspfilename.class
_0002fjsp_0002fone_0002ftwo_0002fthree_0002ffilename_0002ejspfilename_jsp_0.
java

but the subdirectory three under jsp/one/two is empty.

Is there any way to change this behavior so that it will place
'filename_0002ejspfilename.class' et al in the proper directory?

Thanks, Ed.

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




Re: tomcat 4.1 source

2002-04-30 Thread adrianthiele

Nathan Coast wrote:

 hi,

 can someone let me know where to find the tomcat 4.1 sources? trying 
 to find the ant deploy task code.

 thanks
 Nathan



http://jakarta.apache.org/builds/jakarta-tomcat-4.0/test/v4.1.0/





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







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




RE: How to change the jsp file expansion rules

2002-04-30 Thread Larry Isaacs

Only Tomcat 3.2.x and earlier use this form of name mangling
and file placement.  Both Tomcat 3.3.x and Tomcat 4.x place
files in the appropriate directory with a name that is not
lengthened much by mangling.  You will need to upgrade to get
this new behavior.

Cheers,
Larry

 -Original Message-
 From: Ed Rouse [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, April 30, 2002 10:33 AM
 To: 'Tomcat Users List'
 Subject: How to change the jsp file expansion rules
 
 
 I have hit the file name too long barrier. The problem isn't 
 the filename
 per say, but the way tomcat is creating the .java and .class 
 names from the
 jsp. When expanding the jsp, it is including the directory 
 structure in the
 file name. It also creates the directory structure, but 
 doesn't put any
 files in it.
 
 Example:
 jsp/one/two/three/filename.jsp becomes
 
 _0002fjsp_0002fone_0002ftwo_0002fthree_0002ffilename_0002ejspf
 ilename.class
 _0002fjsp_0002fone_0002ftwo_0002fthree_0002ffilename_0002ejspf
 ilename_jsp_0.
 java
 
 but the subdirectory three under jsp/one/two is empty.
 
 Is there any way to change this behavior so that it will place
 'filename_0002ejspfilename.class' et al in the proper directory?
 
 Thanks, Ed.
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




RE: How to change the jsp file expansion rules

2002-04-30 Thread Ed Rouse

Thank you so much. Love that open source!

 -Original Message-
 From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 30, 2002 10:43 AM
 To: 'Tomcat Users List'
 Subject: RE: How to change the jsp file expansion rules
 
 
 Only Tomcat 3.2.x and earlier use this form of name mangling
 and file placement.  Both Tomcat 3.3.x and Tomcat 4.x place
 files in the appropriate directory with a name that is not
 lengthened much by mangling.  You will need to upgrade to get
 this new behavior.
 
 Cheers,
 Larry
 
  -Original Message-
  From: Ed Rouse [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, April 30, 2002 10:33 AM
  To: 'Tomcat Users List'
  Subject: How to change the jsp file expansion rules
  
  
  I have hit the file name too long barrier. The problem isn't 
  the filename
  per say, but the way tomcat is creating the .java and .class 
  names from the
  jsp. When expanding the jsp, it is including the directory 
  structure in the
  file name. It also creates the directory structure, but 
  doesn't put any
  files in it.
  
  Example:
  jsp/one/two/three/filename.jsp becomes
  
  _0002fjsp_0002fone_0002ftwo_0002fthree_0002ffilename_0002ejspf
  ilename.class
  _0002fjsp_0002fone_0002ftwo_0002fthree_0002ffilename_0002ejspf
  ilename_jsp_0.
  java
  
  but the subdirectory three under jsp/one/two is empty.
  
  Is there any way to change this behavior so that it will place
  'filename_0002ejspfilename.class' et al in the proper directory?
  
  Thanks, Ed.
  
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




IE 5.5 and keytool names?

2002-04-30 Thread David Farb

This is probably a dumb question, but I don't have the time to research the
answer.

I am using Tomcat 4.0.3 and have generated an SSL keystore and it all works
fine. But when I access the site from Internet Explorer 5.5 it keeps
complaining that The name on the security certificate does not match the
name of the site.

Ok, which names have to match? The full login name is
https://localhost:8443/HomeFix/login.jsp, where in keytool do you specify
this name?

Thanks
David Farb



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




index.jsp: Invalid jsp:include tag...

2002-04-30 Thread Jean Fotovat

hello community,

could someone tell me why i've got this error under jbuilder, when trying to run a jsp 
file ?
index.jsp: Invalid jsp:include tag...

thanks

jean fotovat




Re: IE 5.5 and keytool names?

2002-04-30 Thread David Farb

Never mind, it is apparently supposed to be the domain name when keytool
asks for your first and last name, as well as your organizational unit:

CN=domain name
OU=domain name

seems to work.

GEFGW

- Original Message -
From: David Farb [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, April 30, 2002 9:47 AM
Subject: IE 5.5 and keytool names?


 This is probably a dumb question, but I don't have the time to research
the
 answer.

 I am using Tomcat 4.0.3 and have generated an SSL keystore and it all
works
 fine. But when I access the site from Internet Explorer 5.5 it keeps
 complaining that The name on the security certificate does not match the
 name of the site.

 Ok, which names have to match? The full login name is
 https://localhost:8443/HomeFix/login.jsp, where in keytool do you specify
 this name?

 Thanks
 David Farb



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




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




Re: tomcat deployment

2002-04-30 Thread Craig R. McClanahan



On Tue, 30 Apr 2002, Oki DZ wrote:

 Date: Tue, 30 Apr 2002 14:31:13 +0700
 From: Oki DZ [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: tomcat deployment

 On 04/30 13:50 Nathan Coast wrote:
  does this work for updates to the war file?  If I update the war file 10 times,
  will re-copying the file to the webapps directory re-deploy the webapp?

 You need to delete the directory of your webapp; it wouldn't be that
 hard. In addition to copying the war file, the ant target should delete
 the directory particular to the war file.

 I think it would be nicer if you could deploy the webapp directly using
 ant; so instead of by creating a war file and let Tomcat to deploy it,
 you could just copy the modified servlets into the context directory.
 Then use the reload feature of the particular context (defined in
 server.xml); Tomcat would know the newer servlets and load them
 accordingly.


See the custom Ant tasks that are supported in the nightly builds, and
will be released in Tomcat 4.1, for precisely this feature.  The custom
tasks interact with the Manager webapp, and can do basically everything
you can do with the Manager webapp directly.

 Oki

Craig


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




jsp configuration

2002-04-30 Thread Charles Smith

My adminstrator recently install jakarta-tomcat-4.0.1 for AIX and I am 
trying to create my own jsp.  When I run the example jsp's and servlets in 
%:8080/examples/jsp/index.html they work fine.


When I run the HelloWorld exapmle jsp and servlet in 
%8080/tomcat-docs/appdev/sample/web/index.html I get and error that says:



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

exception

java.lang.NullPointerException
  at org.apache.jsp.hello$jsp._jspService(hello$jsp.java:58)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

and more of the same



I read over the documentation and I am pretty sure everything is where it is 
supposed to be. Any help would be greatly appreciated

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




Serving static content with Apache Webserver using mod_webapp (WARP) and mod_rewrite

2002-04-30 Thread Thorsten Barth

Hello,

I found my solution for deploying webapps with mod_webapp and serving only 
dynamic content directly with apache.

In my case, I wanted the document root level to be dynamic, so mounting my 
app into a subdirectory didn´t work for me.

So I wrote:

RewriteEngine On
RewriteRule ^/static/(.*)$   /static/$1   [L]
RewriteRule ^/(.+)\.gif$ $1.gif[L]
WebAppDeploy ROOT warpconn /

and - IT WORKS! Apache with active mod_rewrite seems to omit checking if 
mod_webapp likes to serve the URL unless you specify [PT] in the flags of 
the rewrite rule.

Hope it helps

Bye

-- 
Thorsten Barth

Web Arts AG
eConsulting eStrategy eSuccess
---
Max-Planck-Str. 9
61381 Friedrichsdorf
---
Tel.: +49.6172.599833
Fax : +49.6172.599830
[EMAIL PROTECTED]
www.web-arts.com


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




RE: tomcat deployment

2002-04-30 Thread Whitcomb, Roger

When I have done this, I shutdown Tomcat, deleted the directory and restarted Tomcat 
again.  This worked fine.  But, I believe there is a way with the Manager app that 
you can do it, and I believe there is a setting in the server.xml that will enable 
automatic updates (at the expense of extra checking on every access to see if the file 
is new).  So, I would search the Tomcat docs . . . .

Roger Whitcomb
Computer Associates
Senior Software Engineer
Development
Phone: +1 408 965 8653
FAX: +1 408 965 8805
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 


-Original Message-
From: Nathan Coast [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 29, 2002 11:50 PM
To: Tomcat Users List
Subject: Re: tomcat deployment


Thanks,

 
 It seems you are looking for a difficult way.
 I think the easiest way would be having some ant targets that put your war files in 
TOMCAT_HOME/webapps. Don't forget to have unpackWARs to be true in the Host element 
(in server.xml).
 

does this work for updates to the war file?  If I update the war file 10 times, 
will re-copying the file to the webapps directory re-deploy the webapp?

Nathan


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

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




Re: Apache 2, Tomcat 4 and mod_jk2

2002-04-30 Thread Anthony W. Marino

One last question is how does coyote fit into this whole picture?
Where/how is the best way to obtain the latest coyote stuff (ie; coyote jar 
drop, build from srcxxx) ?

Thank You,
Anthony


 On Fri, 26 Apr 2002, Michael Delamere wrote:
  Me again :-)
 
  An interesting thing is that the source-files at cvs seem to be different
  to the ones that you can download from the jakarta site.

 Use the cvs, let me know ( or post on tomcat-dev ) if it doesn't work.

 We changed the name to mod_jk2 ( and all functions internally ) so
 that mod_jk and mod_jk2 can be used at the same time.

 If you want to have fun ( and you're on Unix) you could try the
 unix domain sockets. JNI is still tricky and there's a small
 piece that's not ready ( but the basic stuff works - not the
 sessions ).

 Costin

  For example.
 
  in the tar archive which you can download from the jakarta site, the
  directory:
  src/jk/native2/server/apache2 contains a source-file called  mod_jk.c
 
  whereas the same location on the cvs server has a file called mod_jk2.c.
 
  Although this doesn´t mean much, it at least shows some form of a change
 
  :-).  It might be worth trying to compile this version and see if it runs
 
  more reliably.  I´m going to give it a go.
 
  bye Michael Delamere
 
 
  - Original Message -
  From: Michael Delamere [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Friday, April 26, 2002 5:03 PM
  Subject: Re: Apache 2, Tomcat 4 and mod_jk2
 
   I just found an interesting post here about the ajp14 connector.  At
   this point though no testing had been done on apache2 :-).
 
  http://archives2.real-time.com/pipermail/tomcat-devel/2001-June/018332.ht
 ml
 
   bye Michael Delamere
  
  
   - Original Message -
   From: Michael Delamere [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Friday, April 26, 2002 4:30 PM
   Subject: Re: Apache 2, Tomcat 4 and mod_jk2
  
Well there appears to be a jk_ajp14_worker.  I wonder if this is
the reason for mod_jk2 being so unstable at present.  It might be
worth a
 
  test
 
to see if it works better with AJP14 (if at all) instead of AJP13.
   
bye Michael Delamere
   
   
- Original Message -
From: Anthony W. Marino [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, April 26, 2002 4:09 PM
Subject: Re: Apache 2, Tomcat 4 and mod_jk2
   
 The example for mod_jk2 shows a worker's config for AJP13 but I
   
thought
   
 that jk2 is AJP14?

 Anthony

  Thanks to Michael Delamere and Pascal Forget, I'm happy to shout
  out that there's a HOWTO for setting up Apache 2, mod_jk2 and
  Tomcat on Linux (and therefore probably other UNIX flavours)
 
  It's linked from http://www.pubbitch.org/jboss
 
  Regards,
 
  Simon

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



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




Re: TOMCAT SSL !!!

2002-04-30 Thread Jacob Kjome

Looks like Steve D. George already answered the SSL setup question,
but as far as cookies go.  No, you cannot share cookies between http
and https.  The reason is not a deficiency in Tomcat or Apache, the
reason is security.  Actually, you might be able to read cookies set
in http while in https, but most certainly *not* vice-vera.

Take a look at the Netscape Cookie Spec for more info:
http://www.netscape.com/newsref/std/cookie_spec.html

Jake

Tuesday, April 30, 2002, 5:10:45 AM, you wrote:

tric Hi All,

tric My application requires that certain pages on the site are accessed via SSL,
tric is
tric there a way in tomcat to reject the connection of http to a specific page
tric (ie securePage.jsp) but still allow http access to other pages (ie.
tric standardPage.jsp).

tric Also i'm using cookies - so i wanted to know whether these cookies will
tric be visible in both the http  https contexts.

tric Thanks in advance,

tric Ritesh
tric 
tric This message contains privileged and confidential information and is
tric intended only for the individual named.If you are not the intended recipient
tric you should not disseminate,distribute,store,print, copy or deliver this
tric message.Please notify the sender immediately by e-mail if you have received
tric this e-mail by mistake and delete this e-mail from your system.E-mail
tric transmission cannot be guaranteed to be secure or error-free as information
tric could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or
tric contain viruses.The sender therefore does not accept liability for any
tric errors or omissions in the contents of this message which arise as a result
tric of e-mail transmission. If verification is required please request a
tric hard-copy version.
tric 

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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




Re: mod_jk for Apache 2 on Win32?

2002-04-30 Thread Jacob Kjome

Hello Goetz,

This has been all over the list so a simple search would be in order
here, but here is where you can find the mod_jk.dll for Apache2:
http://www.acg-gmbh.de/mod_jk/

You also might neeed an updated workers.properties file.  I'll attach
mine for reference.

Jake


Tuesday, April 30, 2002, 5:13:19 AM, you wrote:

GB WHAT I WANT TO DO
GB   Integrating Apache 2 and Tomcat 4 on the Win32 platform.

GB PROBLEM
GB   Could not find a mod_jk module which works with Apache 2.

GB WHAT I TRIED ALREADY
GB   AFAIK it does not make a difference whether I use Tomcat 3.x or 4.x =
GB Tried the mod_jk module in the Tomcat 3.x distribution.

GB Since I could not find a version for apache 2.0 I tried the apache 1.3
GB version
GB (http://jakarta.apache.org/builds/jakarta-tomcat/native-3.3/win32/apache
GB 1.3/mod_jk.dll). This was rejected by apache with the message Cannot
GB load C:/apps/apache2/modules/mod_jk.dll into server: The specified
GB module could not be found. Of course I checked the path three times.

GB   So I assume that this .dll is only working for Apache 1.3

GB QUESTIONS
GB - Where can I get a mod_jk.dll for Apache 2?
GB - Do I have to built it myself?

GB Thanks for any suggestions
GB Goetz

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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


workers.properties
Description: Binary data

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


Re: Apache 2, Tomcat 4 and mod_jk2

2002-04-30 Thread Anthony W. Marino

One last thing is that I'm going to be using TC4.1 with Apache2, if that 
matter.

Anthony

 One last question is how does coyote fit into this whole picture?
 Where/how is the best way to obtain the latest coyote stuff (ie; coyote jar
 drop, build from srcxxx) ?

 Thank You,
 Anthony

  On Fri, 26 Apr 2002, Michael Delamere wrote:
   Me again :-)
  
   An interesting thing is that the source-files at cvs seem to be
   different to the ones that you can download from the jakarta site.
 
  Use the cvs, let me know ( or post on tomcat-dev ) if it doesn't work.
 
  We changed the name to mod_jk2 ( and all functions internally ) so
  that mod_jk and mod_jk2 can be used at the same time.
 
  If you want to have fun ( and you're on Unix) you could try the
  unix domain sockets. JNI is still tricky and there's a small
  piece that's not ready ( but the basic stuff works - not the
  sessions ).
 
  Costin
 
   For example.
  
   in the tar archive which you can download from the jakarta site, the
   directory:
   src/jk/native2/server/apache2 contains a source-file called  mod_jk.c
  
   whereas the same location on the cvs server has a file called
   mod_jk2.c.
  
   Although this doesn´t mean much, it at least shows some form of a
   change
  
   :-).  It might be worth trying to compile this version and see if it
   : runs
  
   more reliably.  I´m going to give it a go.
  
   bye Michael Delamere
  
  
   - Original Message -
   From: Michael Delamere [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Friday, April 26, 2002 5:03 PM
   Subject: Re: Apache 2, Tomcat 4 and mod_jk2
  
I just found an interesting post here about the ajp14 connector.  At
this point though no testing had been done on apache2 :-).
  
   http://archives2.real-time.com/pipermail/tomcat-devel/2001-June/018332.
  ht ml
  
bye Michael Delamere
   
   
- Original Message -
From: Michael Delamere [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, April 26, 2002 4:30 PM
Subject: Re: Apache 2, Tomcat 4 and mod_jk2
   
 Well there appears to be a jk_ajp14_worker.  I wonder if this is
 the reason for mod_jk2 being so unstable at present.  It might be
 worth a
  
   test
  
 to see if it works better with AJP14 (if at all) instead of AJP13.

 bye Michael Delamere


 - Original Message -
 From: Anthony W. Marino [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, April 26, 2002 4:09 PM
 Subject: Re: Apache 2, Tomcat 4 and mod_jk2

  The example for mod_jk2 shows a worker's config for AJP13 but
  I

 thought

  that jk2 is AJP14?
 
  Anthony
 
   Thanks to Michael Delamere and Pascal Forget, I'm happy to
   shout out that there's a HOWTO for setting up Apache 2, mod_jk2
   and Tomcat on Linux (and therefore probably other UNIX
   flavours)
  
   It's linked from http://www.pubbitch.org/jboss
  
   Regards,
  
   Simon
 
  --
  To unsubscribe:
  mailto:[EMAIL PROTECTED] For
  additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list:
  mailto:[EMAIL PROTECTED]

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

-- 
Anthony W. Marino
Pres./CTO, AWM Objects
email:  [EMAIL PROTECTED]
phone:  (732) 610-2441


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




server.xml question

2002-04-30 Thread rainer jünger

Hi,

I asked the same question some hours ago already but no one responded.
Is my question so difficult or can no one understand it ???

We would like to have a log directory for every virtual host running on our box.
Therfore we were setting up the Logger/ tag within the server.xml file to the 
following attributes:
Logger className=org.apache.catalina.logger.FileLogger
directory=/home/wwa-m/public_html/docroot/WEB-INF/log/
prefix=wwa-m. 
sufix =.log
timestamp=true/
And now the problem:
the logs are not being writen to the configured directory, even though the directory 
exist!!

any suggestions??

R.



Re: mod_jk for Apache 2 on Win32?

2002-04-30 Thread bm

HI jake

I copied the mod_jk into the modules dir of the apache
and then used your workers file also.what else i need to do  ?

Can you please help me doing this apache 2 and tomcat 4 combination?
If you have any small write up ,,, pls send it to me


I appreciate your help

thanks in advance
BM

Jacob Kjome wrote:

 Hello Goetz,

 This has been all over the list so a simple search would be in order
 here, but here is where you can find the mod_jk.dll for Apache2:
 http://www.acg-gmbh.de/mod_jk/

 You also might neeed an updated workers.properties file.  I'll attach
 mine for reference.

 Jake

 Tuesday, April 30, 2002, 5:13:19 AM, you wrote:

 GB WHAT I WANT TO DO
 GB   Integrating Apache 2 and Tomcat 4 on the Win32 platform.

 GB PROBLEM
 GB   Could not find a mod_jk module which works with Apache 2.

 GB WHAT I TRIED ALREADY
 GB   AFAIK it does not make a difference whether I use Tomcat 3.x or 4.x =
 GB Tried the mod_jk module in the Tomcat 3.x distribution.

 GB Since I could not find a version for apache 2.0 I tried the apache 1.3
 GB version
 GB (http://jakarta.apache.org/builds/jakarta-tomcat/native-3.3/win32/apache
 GB 1.3/mod_jk.dll). This was rejected by apache with the message Cannot
 GB load C:/apps/apache2/modules/mod_jk.dll into server: The specified
 GB module could not be found. Of course I checked the path three times.

 GB   So I assume that this .dll is only working for Apache 1.3

 GB QUESTIONS
 GB - Where can I get a mod_jk.dll for Apache 2?
 GB - Do I have to built it myself?

 GB Thanks for any suggestions
 GB Goetz

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

 --
 Best regards,
  Jacobmailto:[EMAIL PROTECTED]

   
  Name: workers.properties
workers.propertiesType: unspecified type (application/octet-stream)
  Encoding: base64

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


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




RE: server.xml question

2002-04-30 Thread Whitcomb, Roger

Is it as simple as you misspelled suffix?

Roger Whitcomb
Computer Associates
Senior Software Engineer
Development
Phone: +1 408 965 8653
FAX: +1 408 965 8805
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 


-Original Message-
From: rainer jünger [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 9:48 AM
To: Tomcat Users List
Subject: server.xml question


Hi,

I asked the same question some hours ago already but no one responded.
Is my question so difficult or can no one understand it ???

We would like to have a log directory for every virtual host running on our box.
Therfore we were setting up the Logger/ tag within the server.xml file to the 
following attributes:
Logger className=org.apache.catalina.logger.FileLogger
directory=/home/wwa-m/public_html/docroot/WEB-INF/log/
prefix=wwa-m. 
sufix =.log
timestamp=true/
And now the problem:
the logs are not being writen to the configured directory, even though the directory 
exist!!

any suggestions??

R.

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




HELP! BASIC authentication and security-constraint issue, 3.2.3

2002-04-30 Thread Roland Chan

Hello,
 
I'm having an issue with testing BASIC authentication with 3.2.3.
Althought the window prompting for username and password appear,
regardless of the values it always allows access to the requested page.
Can anyone point me in the right direction.  I am currently using JBOSS
with embedded tomcat 3.2.3, but have also tried this on standalone
3.2.3.  Is this just a version problem?  Here are the relevant contents
of my web.xml:
 
   security-constraint
  web-resource-collection
 web-resource-nameABC/web-resource-name
 url-pattern/*/url-pattern
  /web-resource-collection
  auth-constraint
 role-nameabc/role-name
  /auth-constraint
   /security-constraint
   login-config
  auth-methodBASIC/auth-method
  realm-nameABCRealm/realm-name
   /login-config
 
My tomcat-users.xml:
 
user name=roland password=tutu22 roles=its /
 
Your help is appreciated!  Thanks!
 
 



Re: server.xml question

2002-04-30 Thread rainer jünger

thanks Roger,

well the misspelling was happend only in the email.
In the server.xml it is spelled correctly...

rainer jünger


 Is it as simple as you misspelled suffix?

 Roger Whitcomb
 Computer Associates
 Senior Software Engineer
 Development
 Phone: +1 408 965 8653
 FAX: +1 408 965 8805
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]


 -Original Message-
 From: rainer jünger [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 30, 2002 9:48 AM
 To: Tomcat Users List
 Subject: server.xml question


 Hi,

 I asked the same question some hours ago already but no one responded.
 Is my question so difficult or can no one understand it ???

 We would like to have a log directory for every virtual host running on
our box.
 Therfore we were setting up the Logger/ tag within the server.xml file
to the following attributes:
 Logger className=org.apache.catalina.logger.FileLogger
 directory=/home/wwa-m/public_html/docroot/WEB-INF/log/
 prefix=wwa-m.
 sufix =.log
 timestamp=true/
 And now the problem:
 the logs are not being writen to the configured directory, even though the
directory exist!!

 any suggestions??

 R.

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




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




RE: server.xml question

2002-04-30 Thread Whitcomb, Roger

Here are some suggestions:
- Are the log files being written ANYWHERE?  Or not at all?
- What if you use a relative path (such as logs)?
- Are the permissions set correctly for your directory?
- What if you DON'T use the trailing / on the directory name?

Roger Whitcomb
Computer Associates
Senior Software Engineer
Development
Phone: +1 408 965 8653
FAX: +1 408 965 8805
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 


-Original Message-
From: rainer jünger [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 10:49 AM
To: Tomcat Users List
Subject: Re: server.xml question


thanks Roger,

well the misspelling was happend only in the email.
In the server.xml it is spelled correctly...

rainer jünger


 Is it as simple as you misspelled suffix?

 Roger Whitcomb
 Computer Associates
 Senior Software Engineer
 Development
 Phone: +1 408 965 8653
 FAX: +1 408 965 8805
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]


 -Original Message-
 From: rainer jünger [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 30, 2002 9:48 AM
 To: Tomcat Users List
 Subject: server.xml question


 Hi,

 I asked the same question some hours ago already but no one responded.
 Is my question so difficult or can no one understand it ???

 We would like to have a log directory for every virtual host running on
our box.
 Therfore we were setting up the Logger/ tag within the server.xml file
to the following attributes:
 Logger className=org.apache.catalina.logger.FileLogger
 directory=/home/wwa-m/public_html/docroot/WEB-INF/log/
 prefix=wwa-m.
 sufix =.log
 timestamp=true/
 And now the problem:
 the logs are not being writen to the configured directory, even though the
directory exist!!

 any suggestions??

 R.

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




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

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




RE: Apache 2.0x with Tomcat 4.0x?

2002-04-30 Thread Jack Frosch

Thanks Brett (and thanks for the link).

I've read a lot of posts here about using mod_jk with Tomcat 4.0x/Apache
2.0x, but not about Warp.

I'll read through the archives.

Jack

-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED]] 
Sent: Monday, April 29, 2002 9:22 PM
To: 'Tomcat Users List'
Subject: RE: Apache 2.0x with Tomcat 4.0x?


searching the archives will turn up about 100 such messages.
http://www.mail-archive.com

-Original Message-
From: Jack Frosch [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 30 April 2002 12:19 PM
To: 'Tomcat-User'
Subject: Apache 2.0x with Tomcat 4.0x?


Now that Apache 2.0x has been released, I'm wondering if Tomcat 4.0x can
work with it, using the Warp connector or something else?
 
Thanks.
 
Jack


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




RE: server.xml question

2002-04-30 Thread Phillip Morelock

At Tuesday, 30 April 2002, you wrote:

Here are some suggestions:
- Are the log files being written ANYWHERE?  Or not at all?
- What if you use a relative path (such as logs)?
- Are the permissions set correctly for your directory?
- What if you DON'T use the trailing / on the directory name?


Actually suggestion number two reminds me:  isn't it true that tomcat 
by default only allows itself to write files underneath TOMCAT_HOME? 
maybe this doesn't apply to log files.

I had a problem a while back as far as trying to write uploaded files 
to a different directory -- I had two choices: mess with the security 
manager or choose a path under TOMCAT_HOME. I chose the latter  ;
)


 Hi,

 I asked the same question some hours ago already but no one responded.

 Is my question so difficult or can no one understand it ???

 We would like to have a log directory for every virtual host running 
on
our box.
 Therfore we were setting up the Logger/ tag within the server.
xml file
to the following attributes:
 Logger className=org.apache.catalina.logger.FileLogger
 directory=/home/wwa-m/public_html/docroot/WEB-INF/log/
 prefix=wwa-m.
 sufix =.log
 timestamp=true/
 And now the problem:
 the logs are not being writen to the configured directory, even 
though the
directory exist!!








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




Re: server.xml question

2002-04-30 Thread rainer jünger

Hi,


 Actually suggestion number two reminds me:  isn't it true that tomcat
 by default only allows itself to write files underneath TOMCAT_HOME?
 maybe this doesn't apply to log files.

 I had a problem a while back as far as trying to write uploaded files
 to a different directory -- I had two choices: mess with the security
 manager or choose a path under TOMCAT_HOME. I chose the latter  ;
 )


the following is written at:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/logger.html

directory:
Absolute or relative pathname of a directory in which log files created by
this logger will be placed. If a relative path is specified, it is
interpreted as relative to $CATALINA_HOME. If no directory attribute is
specified, the default value is logs (relative to $CATALINA_HOME).

so it should definately be possible to write logs somewhere else ?!

rainer jünger



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




Re: server.xml question

2002-04-30 Thread rainer jünger


Hi Roger,



 - Are the permissions set correctly for your directory?
that was the reason (stupid me!)
chmod 777 ... solved the problem

is it normal that there are only very view infos being writen in?? I thougt
it is also the access log and the error log?
Sofar there are only infos concerning starting and stopping the container
(of course that doesn't proove weather errors are logged or not!)

thanks, rainer



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




RE: server.xml question

2002-04-30 Thread Whitcomb, Roger

Depends on exactly what level you defined Logger at.  If defined at the
Engine level, you will get very few messages (mostly startup and shutdown
of the servlet container) (normally in 'catalina.log.xxx.txt' files):
2002-04-01 22:28:37 Ajp13Processor[8009][4] Stopping background thread
2002-04-01 22:28:37 Ajp13Processor[8009][3] Stopping background thread
2002-04-01 22:28:37 Ajp13Processor[8009][2] Stopping background thread
2002-04-01 22:28:37 Ajp13Processor[8009][1] Stopping background thread
2002-04-01 22:28:37 Ajp13Processor[8009][0] Stopping background thread
2002-04-01 22:28:37 Ajp13Connector[8009] Stopping background thread
2002-04-01 22:28:53 HttpConnector Opening server socket on all host IP
addresses
2002-04-01 22:29:12 HttpConnector[8080] Starting background thread
2002-04-01 22:29:12 HttpProcessor[8080][0] Starting background thread
2002-04-01 22:29:12 HttpProcessor[8080][1] Starting background thread
2002-04-01 22:29:12 HttpProcessor[8080][2] Starting background thread

However, if you define the Logger at the Host level, then you get MUCH
more (every access to that host) (normally in 'hostname_log.xxx.txt' files):
127.0.0.1 - - [26/Mar/2002:09:23:51 -0800] GET /login.jsp HTTP/1.1 200
4406
127.0.0.1 - - [26/Mar/2002:09:23:51 -0800] GET /testit.jpg HTTP/1.1 304 -
127.0.0.1 - - [26/Mar/2002:09:23:51 -0800] GET /testit2.jpg HTTP/1.1 304 -
127.0.0.1 - - [26/Mar/2002:09:23:53 -0800] GET /tomcat-power.gif HTTP/1.1
304 -

The default server.xml should have both levels of Logger defined in there.
Look at all the definitions . . . .

Roger Whitcomb
Computer Associates
Senior Software Engineer
Development
Phone: +1 408 965 8653
FAX: +1 408 965 8805
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 


-Original Message-
From: rainer jünger [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 11:52 AM
To: Tomcat Users List
Subject: Re: server.xml question



Hi Roger,



 - Are the permissions set correctly for your directory?
that was the reason (stupid me!)
chmod 777 ... solved the problem

is it normal that there are only very view infos being writen in?? I thougt
it is also the access log and the error log?
Sofar there are only infos concerning starting and stopping the container
(of course that doesn't proove weather errors are logged or not!)

thanks, rainer



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

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




strange behaviour with servlets on WinNT

2002-04-30 Thread Edson Alves Pereira

 Before i had some problems to make Tomcat understand my JSP pages and servlets, now 
Tomcat work fine with my JSP pages, but when i post a servlet IExplorer try to 
download my class file. Why this happen?

 PS.: I have a WinNT with Apache 1.3.2 and Tomcat 4.0.3

  With best wishes,
  Edson Alves Pereira


__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/


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




Re[2]: mod_jk for Apache 2 on Win32?

2002-04-30 Thread Jacob Kjome

Hello bm,

You will need to create a mod_jk.conf that looks something like the
ones I am attaching (hint, I created mod_jk.conf with Tomcat 3.3.1 by having my
webapps installed there and starting it up with the -autoconf
switch...then I modified the paths to work with my Tomcat 4.x.x
config).  mod_jk.conf will make Apache2 serve static stuff and
mod_jk.conf-alt will make Apache2 forward *everything* to Tomcat.
The advantage of the former is that it takes a load off Tomcat, the
advantage of the latter is that you need not worry about special
mappings matching up with those in your web.xml.

Then, you need the following at the end of your httpd.conf:

# Include the configuration for Apache Jakarta Tomcat 4.x.x/Apache Web Server Adapter
Include C:/Program Files/Apache 
Group/Jakarta/tomcat-4-nightly-20020404/conf/mod_jk/mod_jk.conf

Just point that Include directive to wherever you are storing
mod_jk.conf.

That should be about it.

jake

Tuesday, April 30, 2002, 11:50:21 AM, you wrote:

bpc HI jake

bpc I copied the mod_jk into the modules dir of the apache
bpc and then used your workers file also.what else i need to do  ?

bpc Can you please help me doing this apache 2 and tomcat 4 combination?
bpc If you have any small write up ,,, pls send it to me


bpc I appreciate your help

bpc thanks in advance
bpc BM

bpc Jacob Kjome wrote:

 Hello Goetz,

 This has been all over the list so a simple search would be in order
 here, but here is where you can find the mod_jk.dll for Apache2:
 http://www.acg-gmbh.de/mod_jk/

 You also might neeed an updated workers.properties file.  I'll attach
 mine for reference.

 Jake

 Tuesday, April 30, 2002, 5:13:19 AM, you wrote:

 GB WHAT I WANT TO DO
 GB   Integrating Apache 2 and Tomcat 4 on the Win32 platform.

 GB PROBLEM
 GB   Could not find a mod_jk module which works with Apache 2.

 GB WHAT I TRIED ALREADY
 GB   AFAIK it does not make a difference whether I use Tomcat 3.x or 4.x =
 GB Tried the mod_jk module in the Tomcat 3.x distribution.

 GB Since I could not find a version for apache 2.0 I tried the apache 1.3
 GB version
 GB (http://jakarta.apache.org/builds/jakarta-tomcat/native-3.3/win32/apache
 GB 1.3/mod_jk.dll). This was rejected by apache with the message Cannot
 GB load C:/apps/apache2/modules/mod_jk.dll into server: The specified
 GB module could not be found. Of course I checked the path three times.

 GB   So I assume that this .dll is only working for Apache 1.3

 GB QUESTIONS
 GB - Where can I get a mod_jk.dll for Apache 2?
 GB - Do I have to built it myself?

 GB Thanks for any suggestions
 GB Goetz

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

 --
 Best regards,
  Jacobmailto:[EMAIL PROTECTED]

   
  Name: workers.properties
workers.propertiesType: unspecified type (application/octet-stream)
  Encoding: base64

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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


mod_jk.conf-alt
Description: Binary data

## Auto generated on Thu Mar 28 11:31:25 CST 2002##

IfModule !mod_jk.c
  LoadModule jk_module modules/mod_jk.dll
/IfModule

JkWorkersFile C:/Program Files/Apache 
Group/Jakarta/tomcat-4-nightly-20020404/conf/mod_jk/workers.properties
JkLogFile C:/Program Files/Apache 
Group/Jakarta/tomcat-4-nightly-20020404/logs/mod_jk.log

JkLogLevel emerg



 /admin 

# Static files 
Alias /admin C:/Program Files/Apache 
Group/Jakarta/tomcat-4-nightly-20020404/webapps/admin

Directory C:/Program Files/Apache 
Group/Jakarta/tomcat-4-nightly-20020404/webapps/admin
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm 
/Directory


# Deny direct access to WEB-INF and META-INF
#
Location /admin/WEB-INF/*
AllowOverride None
deny from all
/Location

Location /admin/META-INF/*
AllowOverride None
deny from all
/Location
#
# Use Directory too. On Windows, Location doesn't work unless case matches
#
Directory C:/Program Files/Apache 
Group/Jakarta/tomcat-4-nightly-20020404/webapps/admin/WEB-INF/
AllowOverride None
deny from all
/Directory

Directory C:/Program Files/Apache 
Group/Jakarta/tomcat-4-nightly-20020404/webapps/admin/META-INF/
AllowOverride None
deny from all
/Directory

JkMount /admin/servlet  ajp13
JkMount /admin/servlet/*  ajp13
JkMount /admin/*.jsp ajp13

 /tomcat-docs 

# Static files 
Alias /tomcat-docs C:/Program 

Problem in writing my own web application??????

2002-04-30 Thread Suresh Akula

I am very new to tomcat. I am trying to write a web application and deploy 
it on tomcat. I am failing to do so in various forms:
My web application is an applet GUI which has two textfields and 
button..once u enter data onto 1st textfiled and press the button the 
request goes to servlet and the servlet sends back the data along with some 
appened value and displays it onto the second textfield of the 
html(applet)page.This is something like applet to servlet communication.
i want to deploy this servlet as web component onto tomcat. I modified the 
server.xml(configuration file ) and added the following code

Context path=/testbasicservlet docBase=myownservlet
   debug=0  reloadable=true
  /Context
Also i changed $tomcat_home/webapps/myownservlet/web-inf/web.xml(deployment 
descriptor file) to

web-app
welcome-file-list
   welcome-file/servlets/helloservletone.html/welcome-file
/welcome-file-list
/web-app

i have servlets and web-inf directory under 
$tomcat_home/webapps/myownservlet


So when i run http://localhost:8080/testbasicservlet i am able to see 
helloservletone.html page but this html page is not able to load the java 
applet which has GUI in it.the source code for this html file is

html
body
h1Applet to to Servlet Communication/h1br
applet code = AppletThread.class width = 400 height = 400 name = a3 align 
= left
param name = abc value = a4
/applet
/body
/html

ths helloservletone.html brings up empty gui applet(it ddoesn't load 
appletThread.class which has GUI) I donno where to place applet class file 
and servlet class file in tomcat server.since my gui doesn't come up i am 
not able to test the servlet functionality. It is sort of difficult to put 
in word my problem. if it is clear can anyone please let me know how to do 
this
Thanks Much in advance



_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




Re[2]: Where do I edit /etc/tomcat4/conf/tomcat4.conf in Windows 2000? Want to edit LANG setting

2002-04-30 Thread Jacob Kjome

Hello Tom,

A bit more reusable batch command would be:

Install Catalina Service:

%CATALINA_HOME%\bin\tomcat.exe -install Apache-Catalina 
%JAVA_HOME%\jre\bin\server\jvm.dll 
-Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar 
-Dcatalina.home=%CATALINA_HOME% %CATALINA_OPTS% -Xrs -start 
org.apache.catalina.startup.Bootstrap -params start -stop 
org.apache.catalina.startup.Bootstrap -params stop -out 
%CATALINA_HOME%\logs\stdout.log -err %CATALINA_HOME%\logs\stderr.log

Uninstall Catalina Service:

%CATALINA_HOME%\bin\tomcat.exe -uninstall Apache-Catalina


That is cut and paste for anyone without having to modify the paths to
Tomcat or Java.  It will just grab those paths from the preset
environment vars.

Also, what is that -jvm_option?  I haven't seen that before?  My
%CATALINA_OPTS% evironment var looks like: -server -Xms8m -Xmx128m.
Should I be using -jvm_option?

jake

Tuesday, April 30, 2002, 7:15:35 AM, you wrote:

TB Tony,

TB There is no such file on Windows. Usually you install Tomcat as service on
TB NT/W2K. You have to pass all parameters to the TOMCAT.exe file.

TB Type Tomcat /? and you will get command line help. The whole thing is not so
TB easy and it took me quite a while to figure it out! So I have written a
TB small batch file to install the service and one to remove the service. Here
TB is the code for those who are interested:

TB  snip install ---
TB @echo off
TB d:
TB cd \Tomcat4.0\bin

TB tomcat.exe -install Apache Tomcat
TB C:\JavaSoft\jdk1.3.1_01\jre\bin\hotspot\jvm.dll -jvm_option -Djava.class.pat
TB h=D:\Tomcat4.0\bin\bootstrap.jar -jvm_option -Dcatalina.home=d:\tomcat4.0 -j
TB vm_option -Xms128M -jvm_option -Xmx256M -start
TB org.apache.catalina.startup.BootstrapService -params start -stop
TB org.apache.catalina.startup.BootstrapService -params stop -out
TB d:\tomcat4.0\logs\service.out -err d:\tomcat4.0\logs\service.err

TB - snip remove service ---
TB @echo off
TB d:
TB cd \Tomcat4.0\bin
TB tomcat -uninstall Apache Tomcat


TB Please note that you have to write tomcat.exe command on ONE SINGLE line!

TB You can also use regedit.exe and edit the keys
TB HKEY_LOKAL_MACHINE\SYSTEM\CurrentControlSet\Services\Your apache service
name. Be careful when modifying the registry using regedit. If you do
TB something wrong it can destroy your system!

TB Good look!

TB Tom

TB - Original Message -
TB From: Tony [EMAIL PROTECTED]
TB To: [EMAIL PROTECTED]
TB Sent: Tuesday, April 30, 2002 9:59 AM
TB Subject: Where do I edit /etc/tomcat4/conf/tomcat4.conf in Windows 2000?
TB Want to edit LANG setting


 Hi Folks

 Where is the

 /etc/tomcat4/conf/tomcat4.conf

 file which is found on a Linux tomcat install found in a Windows install.
TB I want to edit
 the LANG setting

 Cheers

 Tony

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




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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




Re: port 80 !!?? Running !

2002-04-30 Thread Lauren Commons

I also got Tomcat to listen on port 80 by changing the
port number in Server.xml.  My problem is I can only
browse from the local (server) machine.  If I point my
browser on another machine on the same network to the
server's ip address I get no response (I think that
was what happened; I can't test it now to recall
exactly what happens...)

I'm guessing this is a unix thing, but am not sure.
I'm running on Redhat 7.2

--- adrianthiele [EMAIL PROTECTED] wrote:
 Tevfik , I have mine running on port 80, I just
 grepped Server.xml and 
 changed the port number from 8080 to 80 no the non
 ssl http config. It 
 only needs to be changed in one spot.
 I just ran apachectl stop the startup.sh and
 everything is fine.
 
 Adrian
 
 
 Tevfik Aytekin wrote:
 
 But apache server can manage to bind to port 80
 with another user.
 What I am asking is why tomcat can not do this. Is
 it becasue it is written
 in Java?
 
 TA.
 
 -Original Message-
 From: Renato Romano
 [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 30, 2002 3:30 PM
 To: 'Tomcat Users List'
 Subject: RE: port 80 !!??
 
 
 That's because on Unix-like systems well-known port
 numbers, like www
 (port 80), or ftp, telnet etc, are system-reserved
 to the root user. No
 other user can open server sockets on ports less
 than 1024. You should
 run it as root, or have another user having system
 administrator
 prvileges.
 Renato
 
 
 Renato Romano
 Sistemi e Telematica S.p.A.
 Calata Grazie - Vial Al Molo Giano
 16127 - GENOVA
 
 e-mail: [EMAIL PROTECTED]
 Tel.:   010 2712603
 _
 
 
 -Original Message-
 From: Tevfik Aytekin
 [mailto:[EMAIL PROTECTED]]
 Sent: martedì 30 aprile 2002 14.32
 To: Tomcat Users List
 Subject: port 80 !!??
 
 
 Hi,
 I suppose this question should have been answered,
 but I could not find
 a satisfactory answer in the archives. Isn't it
 possible to run tomcat
 as standalone on port 80 with a user other then
 root. Apache server
 manages to do this. But as far as I can see tomcat
 can not. I wonder
 why? Can someone answer? This ability of tomcat
 would have been great
 since we did not need neither apache nor mod_jk,
 etc. Also since apache
 and mod_jk are written in C it troubles many people
 to get them run on
 different platforms. So I do not understand why
 tomcat do not have the
 ability run on port 80 with a user other than root.
 
 Thanks in advance.
 TA.
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 
 
   
 
 
 
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


=
-
Mr Lauren Commons
DISCLAIMER: The opinions expressed 
ARE in fact those of my employer.

__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

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




Re: Problem in writing my own web application??????

2002-04-30 Thread Jacob Kjome

Hello Suresh,

Your class would have to exist in the root of the myownservlet
directory in order to be loaded as an applet. This doesn't have
anything to do with Tomcat.  It has to do with Web server mapping.  If
you are pulling up the home page in the path:
http://localhost:8080/testbasicservlet/

Then the path that the web browser will attempt to load the Applet
class is at the root of your webapp such as:
http://localhost:8080/testbasicservlet/AppletThread.class

Make sure you put your class there.  the WEB-INF/classes directory is
not the place to put Applets, only servlets.  BTW, make sure that
WEB-INF is in all caps.  Case matters.  I see you've written it as
web-inf a lot, so I thought I'd add that comment.

Jake

Tuesday, April 30, 2002, 3:36:45 PM, you wrote:

SA I am very new to tomcat. I am trying to write a web application and deploy 
SA it on tomcat. I am failing to do so in various forms:
SA My web application is an applet GUI which has two textfields and 
SA button..once u enter data onto 1st textfiled and press the button the 
SA request goes to servlet and the servlet sends back the data along with some 
SA appened value and displays it onto the second textfield of the 
SA html(applet)page.This is something like applet to servlet communication.
SA i want to deploy this servlet as web component onto tomcat. I modified the 
SA server.xml(configuration file ) and added the following code

SA Context path=/testbasicservlet docBase=myownservlet
SAdebug=0  reloadable=true
SA   /Context
SA Also i changed $tomcat_home/webapps/myownservlet/web-inf/web.xml(deployment 
SA descriptor file) to

SA web-app
SA welcome-file-list
SAwelcome-file/servlets/helloservletone.html/welcome-file
SA /welcome-file-list
SA /web-app

SA i have servlets and web-inf directory under 
SA $tomcat_home/webapps/myownservlet


SA So when i run http://localhost:8080/testbasicservlet i am able to see 
SA helloservletone.html page but this html page is not able to load the java 
SA applet which has GUI in it.the source code for this html file is

SA html
SA body
SA h1Applet to to Servlet Communication/h1br
SA applet code = AppletThread.class width = 400 height = 400 name = a3 align 
= left
SA param name = abc value = a4
SA /applet
SA /body
SA /html

SA ths helloservletone.html brings up empty gui applet(it ddoesn't load 
SA appletThread.class which has GUI) I donno where to place applet class file 
SA and servlet class file in tomcat server.since my gui doesn't come up i am 
SA not able to test the servlet functionality. It is sort of difficult to put 
SA in word my problem. if it is clear can anyone please let me know how to do 
SA this
SA Thanks Much in advance



SA _
SA MSN Photos is the easiest way to share and print your photos: 
SA http://photos.msn.com/support/worldwide.aspx


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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




Re: port 80 !!?? Running !

2002-04-30 Thread adrianthiele

The Process must run as root,  If you can see it on yours , you 
should be able to see it from others. If I start the whole tomcat 
process as another user it can start on any port over 1024.
Do you use localhost to see the servlet on your machiine ?  Can you 
use the ip address to view it ?

Lauren Commons wrote:

I also got Tomcat to listen on port 80 by changing the
port number in Server.xml.  My problem is I can only
browse from the local (server) machine.  If I point my
browser on another machine on the same network to the
server's ip address I get no response (I think that
was what happened; I can't test it now to recall
exactly what happens...)

I'm guessing this is a unix thing, but am not sure.
I'm running on Redhat 7.2

--- adrianthiele [EMAIL PROTECTED] wrote:
  

Tevfik , I have mine running on port 80, I just
grepped Server.xml and 
changed the port number from 8080 to 80 no the non
ssl http config. It 
only needs to be changed in one spot.
I just ran apachectl stop the startup.sh and
everything is fine.

Adrian


Tevfik Aytekin wrote:



But apache server can manage to bind to port 80
  

with another user.


What I am asking is why tomcat can not do this. Is
  

it becasue it is written


in Java?

TA.

-Original Message-
From: Renato Romano
  

[mailto:[EMAIL PROTECTED]]


Sent: Tuesday, April 30, 2002 3:30 PM
To: 'Tomcat Users List'
Subject: RE: port 80 !!??


That's because on Unix-like systems well-known port
  

numbers, like www


(port 80), or ftp, telnet etc, are system-reserved
  

to the root user. No


other user can open server sockets on ports less
  

than 1024. You should


run it as root, or have another user having system
  

administrator


prvileges.
Renato


Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_


-Original Message-
From: Tevfik Aytekin
  

[mailto:[EMAIL PROTECTED]]


Sent: martedì 30 aprile 2002 14.32
To: Tomcat Users List
Subject: port 80 !!??


Hi,
I suppose this question should have been answered,
  

but I could not find


a satisfactory answer in the archives. Isn't it
  

possible to run tomcat


as standalone on port 80 with a user other then
  

root. Apache server


manages to do this. But as far as I can see tomcat
  

can not. I wonder


why? Can someone answer? This ability of tomcat
  

would have been great


since we did not need neither apache nor mod_jk,
  

etc. Also since apache


and mod_jk are written in C it troubles many people
  

to get them run on


different platforms. So I do not understand why
  

tomcat do not have the


ability run on port 80 with a user other than root.

Thanks in advance.
TA.


--
To unsubscribe:  
  

mailto:[EMAIL PROTECTED]


For additional commands:
  

mailto:[EMAIL PROTECTED]


Troubles with the list:
  

mailto:[EMAIL PROTECTED]



--
To unsubscribe:  
  

mailto:[EMAIL PROTECTED]


For additional commands:
  

mailto:[EMAIL PROTECTED]


Troubles with the list:
  

mailto:[EMAIL PROTECTED]


--
To unsubscribe:  
  

mailto:[EMAIL PROTECTED]


For additional commands:
  

mailto:[EMAIL PROTECTED]


Troubles with the list:
  

mailto:[EMAIL PROTECTED]



 

  



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





=
-
Mr Lauren Commons
DISCLAIMER: The opinions expressed 
ARE in fact those of my employer.

__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

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



  





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




Problems with Tomcat 3.1.1

2002-04-30 Thread ayuda técnica en embelecos . com

Hi guys! I'm pretty new to this environment, so be gentle.  My server runs
on Apache 1.3.22 with Tomcat 3.1.1 to handle jsp.  The problem is that every
other day, sometimes every day, it gets hung or frozen.  The user trying
to access my pages will only get the standard windows page which states that
the page could not be accessed, after a while.  I use a service that
monitors my site, they called it a Time-Out Error.  Have any of you ever
encountered this problem?  Any suggestions on what to look for?  I have been
reading jasper.log and can not figure out a pattern, so as to blame
anything in particular.  By the way, I'm not a programmer but can work
around some stuff.

Thanks!


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




Re: Problems with Tomcat 3.1.1

2002-04-30 Thread Jacob Kjome

Hello ayuda,

You should seriously consider upgrading from Tomcat 3.1.1.  It is
ancient and you won't find a whole lot of support for it.  Move to
tomcat 3.3.x or 4.x.x.  If you have questions when using those
products, you will probably get some useful response from other users.

Jake

Tuesday, April 30, 2002, 4:34:52 PM, you wrote:

ateec Hi guys! I'm pretty new to this environment, so be gentle.  My server runs
ateec on Apache 1.3.22 with Tomcat 3.1.1 to handle jsp.  The problem is that every
ateec other day, sometimes every day, it gets hung or frozen.  The user trying
ateec to access my pages will only get the standard windows page which states that
ateec the page could not be accessed, after a while.  I use a service that
ateec monitors my site, they called it a Time-Out Error.  Have any of you ever
ateec encountered this problem?  Any suggestions on what to look for?  I have been
ateec reading jasper.log and can not figure out a pattern, so as to blame
ateec anything in particular.  By the way, I'm not a programmer but can work
ateec around some stuff.

ateec Thanks!


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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




Re: mod_jk for Apache 2 on Win32?

2002-04-30 Thread bm

Hi jakes

How to switch the -autoconf in tomcat 3.3.1
thanks in advance
I appreciate your help
BM

Jacob Kjome wrote:

 Hello bm,

 You will need to create a mod_jk.conf that looks something like the
 ones I am attaching (hint, I created mod_jk.conf with Tomcat 3.3.1 by having my
 webapps installed there and starting it up with the -autoconf
 switch...then I modified the paths to work with my Tomcat 4.x.x
 config).  mod_jk.conf will make Apache2 serve static stuff and
 mod_jk.conf-alt will make Apache2 forward *everything* to Tomcat.
 The advantage of the former is that it takes a load off Tomcat, the
 advantage of the latter is that you need not worry about special
 mappings matching up with those in your web.xml.

 Then, you need the following at the end of your httpd.conf:

 # Include the configuration for Apache Jakarta Tomcat 4.x.x/Apache Web Server Adapter
 Include C:/Program Files/Apache 
Group/Jakarta/tomcat-4-nightly-20020404/conf/mod_jk/mod_jk.conf

 Just point that Include directive to wherever you are storing
 mod_jk.conf.

 That should be about it.

 jake

 Tuesday, April 30, 2002, 11:50:21 AM, you wrote:

 bpc HI jake

 bpc I copied the mod_jk into the modules dir of the apache
 bpc and then used your workers file also.what else i need to do  ?

 bpc Can you please help me doing this apache 2 and tomcat 4 combination?
 bpc If you have any small write up ,,, pls send it to me

 bpc I appreciate your help

 bpc thanks in advance
 bpc BM

 bpc Jacob Kjome wrote:

  Hello Goetz,
 
  This has been all over the list so a simple search would be in order
  here, but here is where you can find the mod_jk.dll for Apache2:
  http://www.acg-gmbh.de/mod_jk/
 
  You also might neeed an updated workers.properties file.  I'll attach
  mine for reference.
 
  Jake
 
  Tuesday, April 30, 2002, 5:13:19 AM, you wrote:
 
  GB WHAT I WANT TO DO
  GB   Integrating Apache 2 and Tomcat 4 on the Win32 platform.
 
  GB PROBLEM
  GB   Could not find a mod_jk module which works with Apache 2.
 
  GB WHAT I TRIED ALREADY
  GB   AFAIK it does not make a difference whether I use Tomcat 3.x or 4.x =
  GB Tried the mod_jk module in the Tomcat 3.x distribution.
 
  GB Since I could not find a version for apache 2.0 I tried the apache 1.3
  GB version
  GB (http://jakarta.apache.org/builds/jakarta-tomcat/native-3.3/win32/apache
  GB 1.3/mod_jk.dll). This was rejected by apache with the message Cannot
  GB load C:/apps/apache2/modules/mod_jk.dll into server: The specified
  GB module could not be found. Of course I checked the path three times.
 
  GB   So I assume that this .dll is only working for Apache 1.3
 
  GB QUESTIONS
  GB - Where can I get a mod_jk.dll for Apache 2?
  GB - Do I have to built it myself?
 
  GB Thanks for any suggestions
  GB Goetz
 
  GB --
  GB To unsubscribe:   mailto:[EMAIL PROTECTED]
  GB For additional commands: mailto:[EMAIL PROTECTED]
  GB Troubles with the list: mailto:[EMAIL PROTECTED]
 
  --
  Best regards,
   Jacobmailto:[EMAIL PROTECTED]
 

   Name: workers.properties
 workers.propertiesType: unspecified type (application/octet-stream)
   Encoding: base64
 

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

 --
 Best regards,
  Jacobmailto:[EMAIL PROTECTED]

   
   Name: mod_jk.conf-alt
mod_jk.conf-altType: unspecified type (application/octet-stream)
   Encoding: base64

   Name: mod_jk.conf
mod_jk.confType: Plain Text (text/plain)
   Encoding: base64

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



Re: Apache 2.0x with Tomcat 4.0x?

2002-04-30 Thread Jeffrey Bonevich

Try mod_webapp instead of Warp in your search (mod_webapp = apache 
module; Warp = tomcat connector).  There is actually a very good 
guideline to follow now at http://www.pubbitch.org/jboss.html

jeff

Jack Frosch wrote:

 Thanks Brett (and thanks for the link).
 
 I've read a lot of posts here about using mod_jk with Tomcat 4.0x/Apache
 2.0x, but not about Warp.
 
 I'll read through the archives.
 
 Jack
 
 -Original Message-
 From: Brett Porter [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, April 29, 2002 9:22 PM
 To: 'Tomcat Users List'
 Subject: RE: Apache 2.0x with Tomcat 4.0x?
 
 
 searching the archives will turn up about 100 such messages.
 http://www.mail-archive.com
 
 -Original Message-
 From: Jack Frosch [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, 30 April 2002 12:19 PM
 To: 'Tomcat-User'
 Subject: Apache 2.0x with Tomcat 4.0x?
 
 
 Now that Apache 2.0x has been released, I'm wondering if Tomcat 4.0x can
 work with it, using the Warp connector or something else?
  
 Thanks.
  
 Jack
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 


-- 
Jeffrey Bonevich
Ann Arbor, Michigan
[EMAIL PROTECTED]
http://www.bonevich.com

Hwæt! Wë Gär-Dena   in geär-dagum,
peod-cyninga,   prym gefrünon,
hü ða aepelingas   ellen fremedon!


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




Re: Apache 2, Tomcat 4 and mod_jk2

2002-04-30 Thread Jeffrey Bonevich

Is there a useful table anywhere documenting the relationship(s) of the 
various apache modules to the various tomcat connectors?  Something like 
this:

module 
connector
== 

n/a (standalone)HttpConnector
mod_webapp 
Warp
mod_jk 
? (AJP13??)
mod_jk2 
? (AJP14??)
mod_jserv 
? (none - pre-Connector?)

Are there multiple Connectors that can be used for a given module?

This might be a useful heuristic to use in documentation.

jeff

[EMAIL PROTECTED] wrote:

 On Fri, 26 Apr 2002, Michael Delamere wrote:
 
 
Me again :-)

An interesting thing is that the source-files at cvs seem to be different to
the ones that you can download from the jakarta site.

 
 Use the cvs, let me know ( or post on tomcat-dev ) if it doesn't work.
 
 We changed the name to mod_jk2 ( and all functions internally ) so 
 that mod_jk and mod_jk2 can be used at the same time. 
 
 If you want to have fun ( and you're on Unix) you could try the 
 unix domain sockets. JNI is still tricky and there's a small 
 piece that's not ready ( but the basic stuff works - not the 
 sessions ). 
 
 Costin
 
 
 
For example.

in the tar archive which you can download from the jakarta site, the
directory:
src/jk/native2/server/apache2 contains a source-file called  mod_jk.c

whereas the same location on the cvs server has a file called mod_jk2.c.

Although this doesn´t mean much, it at least shows some form of a change
:-).  It might be worth trying to compile this version and see if it runs
more reliably.  I´m going to give it a go.

bye Michael Delamere


- Original Message -
From: Michael Delamere [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, April 26, 2002 5:03 PM
Subject: Re: Apache 2, Tomcat 4 and mod_jk2



I just found an interesting post here about the ajp14 connector.  At this
point though no testing had been done on apache2 :-).



http://archives2.real-time.com/pipermail/tomcat-devel/2001-June/018332.html

bye Michael Delamere


- Original Message -
From: Michael Delamere [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, April 26, 2002 4:30 PM
Subject: Re: Apache 2, Tomcat 4 and mod_jk2



Well there appears to be a jk_ajp14_worker.  I wonder if this is the
reason for mod_jk2 being so unstable at present.  It might be worth a

test

to see if it works better with AJP14 (if at all) instead of AJP13.

bye Michael Delamere


- Original Message -
From: Anthony W. Marino [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, April 26, 2002 4:09 PM
Subject: Re: Apache 2, Tomcat 4 and mod_jk2



The example for mod_jk2 shows a worker's config for AJP13 but I

thought

that jk2 is AJP14?

Anthony



Thanks to Michael Delamere and Pascal Forget, I'm happy to shout out
that there's a HOWTO for setting up Apache 2, mod_jk2 and Tomcat on
Linux (and therefore probably other UNIX flavours)

It's linked from http://www.pubbitch.org/jboss

Regards,

Simon



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


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


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


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


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


-- 
Jeffrey Bonevich
Ann Arbor, Michigan
[EMAIL PROTECTED]
http://www.bonevich.com

Hwæt! Wë Gär-Dena   in geär-dagum,
peod-cyninga,   prym gefrünon,
hü ða aepelingas   ellen fremedon!


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




ap_table_get error

2002-04-30 Thread Chris Nallo

I'm using tomcat 4.0.3 and Apache 2.0.35.  I'm having a problem with
mod_webapp.so.  I can start tomcat fine but when I start apache I get this
error

mod_webapp.so: undefined symbol: ap_table_get

Thanks
Chris Nallo


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




Re: mod_jk for Apache 2 on Win32?

2002-04-30 Thread bm

hi jakes

thanks a lot
it works for me
Pls ignore my previous mail regarding autoconf switch.
I appreciate your help
BM


Jacob Kjome wrote:

 Hello bm,

 You will need to create a mod_jk.conf that looks something like the
 ones I am attaching (hint, I created mod_jk.conf with Tomcat 3.3.1 by having my
 webapps installed there and starting it up with the -autoconf
 switch...then I modified the paths to work with my Tomcat 4.x.x
 config).  mod_jk.conf will make Apache2 serve static stuff and
 mod_jk.conf-alt will make Apache2 forward *everything* to Tomcat.
 The advantage of the former is that it takes a load off Tomcat, the
 advantage of the latter is that you need not worry about special
 mappings matching up with those in your web.xml.

 Then, you need the following at the end of your httpd.conf:

 # Include the configuration for Apache Jakarta Tomcat 4.x.x/Apache Web Server Adapter
 Include C:/Program Files/Apache 
Group/Jakarta/tomcat-4-nightly-20020404/conf/mod_jk/mod_jk.conf

 Just point that Include directive to wherever you are storing
 mod_jk.conf.

 That should be about it.

 jake

 Tuesday, April 30, 2002, 11:50:21 AM, you wrote:

 bpc HI jake

 bpc I copied the mod_jk into the modules dir of the apache
 bpc and then used your workers file also.what else i need to do  ?

 bpc Can you please help me doing this apache 2 and tomcat 4 combination?
 bpc If you have any small write up ,,, pls send it to me

 bpc I appreciate your help

 bpc thanks in advance
 bpc BM

 bpc Jacob Kjome wrote:

  Hello Goetz,
 
  This has been all over the list so a simple search would be in order
  here, but here is where you can find the mod_jk.dll for Apache2:
  http://www.acg-gmbh.de/mod_jk/
 
  You also might neeed an updated workers.properties file.  I'll attach
  mine for reference.
 
  Jake
 
  Tuesday, April 30, 2002, 5:13:19 AM, you wrote:
 
  GB WHAT I WANT TO DO
  GB   Integrating Apache 2 and Tomcat 4 on the Win32 platform.
 
  GB PROBLEM
  GB   Could not find a mod_jk module which works with Apache 2.
 
  GB WHAT I TRIED ALREADY
  GB   AFAIK it does not make a difference whether I use Tomcat 3.x or 4.x =
  GB Tried the mod_jk module in the Tomcat 3.x distribution.
 
  GB Since I could not find a version for apache 2.0 I tried the apache 1.3
  GB version
  GB (http://jakarta.apache.org/builds/jakarta-tomcat/native-3.3/win32/apache
  GB 1.3/mod_jk.dll). This was rejected by apache with the message Cannot
  GB load C:/apps/apache2/modules/mod_jk.dll into server: The specified
  GB module could not be found. Of course I checked the path three times.
 
  GB   So I assume that this .dll is only working for Apache 1.3
 
  GB QUESTIONS
  GB - Where can I get a mod_jk.dll for Apache 2?
  GB - Do I have to built it myself?
 
  GB Thanks for any suggestions
  GB Goetz
 
  GB --
  GB To unsubscribe:   mailto:[EMAIL PROTECTED]
  GB For additional commands: mailto:[EMAIL PROTECTED]
  GB Troubles with the list: mailto:[EMAIL PROTECTED]
 
  --
  Best regards,
   Jacobmailto:[EMAIL PROTECTED]
 

   Name: workers.properties
 workers.propertiesType: unspecified type (application/octet-stream)
   Encoding: base64
 

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

 --
 Best regards,
  Jacobmailto:[EMAIL PROTECTED]

   
   Name: mod_jk.conf-alt
mod_jk.conf-altType: unspecified type (application/octet-stream)
   Encoding: base64

   Name: mod_jk.conf
mod_jk.confType: Plain Text (text/plain)
   Encoding: base64

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


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




How to change Apache Directives generated by Tomcat

2002-04-30 Thread Michael H. Wuest

Hi everyone,

I have Apache 2.0.35 and Tomcat 4.0.3 installed and running. My question is how do I 
set the Apache 'Options - Directives' in tomcat to generate
'Options -Indexes' for example.

Setting the StaticInterceptor in server.xml doesn't work.
Setting 
init-param
  param-namelistings/param-name
  param-valuefalse/param-value
/init-param
 
in web.xml doesn't work either. The output generated by Tomcat (auto/mod_jk.conf) 
always has the 'Options Indexes' set for each directory. I need to have Tomcat 
generate 'Options -Indexes' to prevent index listings.

Does any one know how to do this? 

Thanks,
Michael



Re: mod_jk for Apache 2 on Win32?

2002-04-30 Thread bm

Hi

then we need to set up open SSL on top of this combination
apache2.0.35+tomcat4.0.3+SSL

Any body has any idea of SSL combination for this suite ?

Jake. do you have any tips and tricks .? I appreciate your contribution.

thanks
BM

[EMAIL PROTECTED] wrote:

 hi jakes

 thanks a lot
 it works for me
 Pls ignore my previous mail regarding autoconf switch.
 I appreciate your help
 BM

 Jacob Kjome wrote:

  Hello bm,
 
  You will need to create a mod_jk.conf that looks something like the
  ones I am attaching (hint, I created mod_jk.conf with Tomcat 3.3.1 by having my
  webapps installed there and starting it up with the -autoconf
  switch...then I modified the paths to work with my Tomcat 4.x.x
  config).  mod_jk.conf will make Apache2 serve static stuff and
  mod_jk.conf-alt will make Apache2 forward *everything* to Tomcat.
  The advantage of the former is that it takes a load off Tomcat, the
  advantage of the latter is that you need not worry about special
  mappings matching up with those in your web.xml.
 
  Then, you need the following at the end of your httpd.conf:
 
  # Include the configuration for Apache Jakarta Tomcat 4.x.x/Apache Web Server 
Adapter
  Include C:/Program Files/Apache 
Group/Jakarta/tomcat-4-nightly-20020404/conf/mod_jk/mod_jk.conf
 
  Just point that Include directive to wherever you are storing
  mod_jk.conf.
 
  That should be about it.
 
  jake
 
  Tuesday, April 30, 2002, 11:50:21 AM, you wrote:
 
  bpc HI jake
 
  bpc I copied the mod_jk into the modules dir of the apache
  bpc and then used your workers file also.what else i need to do  ?
 
  bpc Can you please help me doing this apache 2 and tomcat 4 combination?
  bpc If you have any small write up ,,, pls send it to me
 
  bpc I appreciate your help
 
  bpc thanks in advance
  bpc BM
 
  bpc Jacob Kjome wrote:
 
   Hello Goetz,
  
   This has been all over the list so a simple search would be in order
   here, but here is where you can find the mod_jk.dll for Apache2:
   http://www.acg-gmbh.de/mod_jk/
  
   You also might neeed an updated workers.properties file.  I'll attach
   mine for reference.
  
   Jake
  
   Tuesday, April 30, 2002, 5:13:19 AM, you wrote:
  
   GB WHAT I WANT TO DO
   GB   Integrating Apache 2 and Tomcat 4 on the Win32 platform.
  
   GB PROBLEM
   GB   Could not find a mod_jk module which works with Apache 2.
  
   GB WHAT I TRIED ALREADY
   GB   AFAIK it does not make a difference whether I use Tomcat 3.x or 4.x =
   GB Tried the mod_jk module in the Tomcat 3.x distribution.
  
   GB Since I could not find a version for apache 2.0 I tried the apache 1.3
   GB version
   GB (http://jakarta.apache.org/builds/jakarta-tomcat/native-3.3/win32/apache
   GB 1.3/mod_jk.dll). This was rejected by apache with the message Cannot
   GB load C:/apps/apache2/modules/mod_jk.dll into server: The specified
   GB module could not be found. Of course I checked the path three times.
  
   GB   So I assume that this .dll is only working for Apache 1.3
  
   GB QUESTIONS
   GB - Where can I get a mod_jk.dll for Apache 2?
   GB - Do I have to built it myself?
  
   GB Thanks for any suggestions
   GB Goetz
  
   GB --
   GB To unsubscribe:   mailto:[EMAIL PROTECTED]
   GB For additional commands: mailto:[EMAIL PROTECTED]
   GB Troubles with the list: mailto:[EMAIL PROTECTED]
  
   --
   Best regards,
Jacobmailto:[EMAIL PROTECTED]
  
 
Name: workers.properties
  workers.propertiesType: unspecified type (application/octet-stream)
Encoding: base64
  
 
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
 
  --
  Best regards,
   Jacobmailto:[EMAIL PROTECTED]
 

Name: mod_jk.conf-alt
 mod_jk.conf-altType: unspecified type (application/octet-stream)
Encoding: base64
 
Name: mod_jk.conf
 mod_jk.confType: Plain Text (text/plain)
Encoding: base64
 

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


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




How do you hide tomcat server identification ?

2002-04-30 Thread adrianthiele

I wanted to hide the servlet engine. does anyone know how to change the 
server response ?

Adrian


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




http://localhost:8180/manager/list returning 404 on Tomcat4.0.3/Redhat 7.0/JDK 1.3.1

2002-04-30 Thread Tino Dai

Hi Everyone,

  I am having trouble getting the http://localhost:8180/manager/list
(Tomcat 4.0.3 defaults to port 8180) to return anything but a 404. I
have configured both my /conf/server.xml and /conf/tomcat-users.xml to
the proper specs, yet it still doesn't work. I have include a snippet of
my server.xml and tomcat-users.xml with this email. Thanks in advance!


Tino

tomcat-users.xml:
tomcat-users
  user name=oberoc  password=oberoc roles=manager /
/tomcat-users

server.xml
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8180 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8543
   acceptCount=10 debug=0 connectionTimeout=6/






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




webapp/buildconf.sh

2002-04-30 Thread Kaveh Ghahremani

I'm trying to follow Simon's page about integrating Apache 2.0 and
Tomcat. After downloading the source for mod_webapp and unpacking it, I
get the following message when trying to run the buildconf shell script:

--- Cannot run APR buildconf script
Don't a forget to download a copy of the APR sources, and to run
the buildconf script for it:
  # cd [path to APR sources]
  # ./buildconf
  # cd [path to WebApp sources]
Then remember to run ./configure script including the command line
option --with-apr=[path to APR sources]
--- Creating WebApp configure script
Creating configure ...
./support/buildconf.sh: autoconf: command not found
--- All done


can anyone help ?

Kaveh


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




RE: webapp/buildconf.sh

2002-04-30 Thread Kaveh Ghahremani

I just found out that I had to install the autoconf utility. Answered my
own question. =]

-Original Message-
From: Kaveh Ghahremani [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 30, 2002 11:07 PM
To: [EMAIL PROTECTED]
Subject: webapp/buildconf.sh

I'm trying to follow Simon's page about integrating Apache 2.0 and
Tomcat. After downloading the source for mod_webapp and unpacking it, I
get the following message when trying to run the buildconf shell script:

--- Cannot run APR buildconf script
Don't a forget to download a copy of the APR sources, and to run
the buildconf script for it:
  # cd [path to APR sources]
  # ./buildconf
  # cd [path to WebApp sources]
Then remember to run ./configure script including the command line
option --with-apr=[path to APR sources]
--- Creating WebApp configure script
Creating configure ...
./support/buildconf.sh: autoconf: command not found
--- All done


can anyone help ?

Kaveh


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



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




Re: Problem in writing my own web application??????

2002-04-30 Thread Suresh Akula

I havent got any answer yet..can anyone please help me on this..
Thanks much in advance
suresh akula


From: Suresh Akula [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Problem in writing my own web application??
Date: Tue, 30 Apr 2002 20:36:45 +

I am very new to tomcat. I am trying to write a web application and deploy 
it on tomcat. I am failing to do so in various forms:
My web application is an applet GUI which has two textfields and 
button..once u enter data onto 1st textfiled and press the button the 
request goes to servlet and the servlet sends back the data along with some 
appened value and displays it onto the second textfield of the 
html(applet)page.This is something like applet to servlet communication.
i want to deploy this servlet as web component onto tomcat. I modified the 
server.xml(configuration file ) and added the following code

Context path=/testbasicservlet docBase=myownservlet
  debug=0  reloadable=true
  /Context
Also i changed $tomcat_home/webapps/myownservlet/web-inf/web.xml(deployment 
descriptor file) to

web-app
welcome-file-list
   welcome-file/servlets/helloservletone.html/welcome-file
/welcome-file-list
/web-app

i have servlets and web-inf directory under 
$tomcat_home/webapps/myownservlet


So when i run http://localhost:8080/testbasicservlet i am able to see 
helloservletone.html page but this html page is not able to load the java 
applet which has GUI in it.the source code for this html file is

html
body
h1Applet to to Servlet Communication/h1br
applet code = AppletThread.class width = 400 height = 400 name = a3 
align = left
param name = abc value = a4
/applet
/body
/html

ths helloservletone.html brings up empty gui applet(it ddoesn't load 
appletThread.class which has GUI) I donno where to place applet class file 
and servlet class file in tomcat server.since my gui doesn't come up i am 
not able to test the servlet functionality. It is sort of difficult to put 
in word my problem. if it is clear can anyone please let me know how to do 
this
Thanks Much in advance



_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




apache+tomcat question

2002-04-30 Thread Eduardo Gargiulo

Hi all. I'm newbie to tomcat.

I'm running apache 1.3.24 and tomcat 4.0.3.
I could connect tomcat using port 8180 (default debian install) but i
don't know how to access examples context using port 80. How should i
configure apache and tomcat to do that? (i'm using mod_jk).

What documents (for newbies and poor english;) should i read to start
working with tomcat?

-- 
Eduardo Gargiulo
^ejg(-.*)?@ar\.homelinux\.org$



msg52603/pgp0.pgp
Description: PGP signature


Re: mod_jk for Apache 2 on Win32?

2002-04-30 Thread Jacob Kjome

Hmmm... unfortunately, you might have to move back to Apache 1.3.xx for 
ssl.  Tomcat supports it, but Apache2 for windows currently doesn't have 
ssl enabled.  Some bug that they need to figure out.  It will probably be 
in the next release.  I assume that in order for Apache to forward ssl 
requests, it must support mod_ssl first.

I have not done much with ssl and Tomcat or Apache, but I've seen lots of 
advice on how to set this up on the list.

Do a search on the thread tomcat and SSL (keyfile password).  That shows 
a step-by-step process of using the keysign tool and configuring your 
server.xml.

Let me know if you find any specific setup that needs to be done with 
mod_jk and ssl.  I don't yet have any info on that, but it might already 
exist in the Tomcat-docs, so you might want to check there first.

Jake

At 05:39 PM 4/30/2002 -0700, you wrote:
Hi

then we need to set up open SSL on top of this combination
apache2.0.35+tomcat4.0.3+SSL

Any body has any idea of SSL combination for this suite ?

Jake. do you have any tips and tricks .? I appreciate your 
contribution.

thanks
BM

[EMAIL PROTECTED] wrote:

  hi jakes
 
  thanks a lot
  it works for me
  Pls ignore my previous mail regarding autoconf switch.
  I appreciate your help
  BM
 
  Jacob Kjome wrote:
 
   Hello bm,
  
   You will need to create a mod_jk.conf that looks something like the
   ones I am attaching (hint, I created mod_jk.conf with Tomcat 3.3.1 by 
 having my
   webapps installed there and starting it up with the -autoconf
   switch...then I modified the paths to work with my Tomcat 4.x.x
   config).  mod_jk.conf will make Apache2 serve static stuff and
   mod_jk.conf-alt will make Apache2 forward *everything* to Tomcat.
   The advantage of the former is that it takes a load off Tomcat, the
   advantage of the latter is that you need not worry about special
   mappings matching up with those in your web.xml.
  
   Then, you need the following at the end of your httpd.conf:
  
   # Include the configuration for Apache Jakarta Tomcat 4.x.x/Apache 
 Web Server Adapter
   Include C:/Program Files/Apache 
 Group/Jakarta/tomcat-4-nightly-20020404/conf/mod_jk/mod_jk.conf
  
   Just point that Include directive to wherever you are storing
   mod_jk.conf.
  
   That should be about it.
  
   jake
  
   Tuesday, April 30, 2002, 11:50:21 AM, you wrote:
  
   bpc HI jake
  
   bpc I copied the mod_jk into the modules dir of the apache
   bpc and then used your workers file also.what else i need to do  ?
  
   bpc Can you please help me doing this apache 2 and tomcat 4 
 combination?
   bpc If you have any small write up ,,, pls send it to me
  
   bpc I appreciate your help
  
   bpc thanks in advance
   bpc BM
  
   bpc Jacob Kjome wrote:
  
Hello Goetz,
   
This has been all over the list so a simple search would be in order
here, but here is where you can find the mod_jk.dll for Apache2:
http://www.acg-gmbh.de/mod_jk/
   
You also might neeed an updated workers.properties file.  I'll attach
mine for reference.
   
Jake
   
Tuesday, April 30, 2002, 5:13:19 AM, you wrote:
   
GB WHAT I WANT TO DO
GB   Integrating Apache 2 and Tomcat 4 on the Win32 platform.
   
GB PROBLEM
GB   Could not find a mod_jk module which works with Apache 2.
   
GB WHAT I TRIED ALREADY
GB   AFAIK it does not make a difference whether I use Tomcat 3.x 
 or 4.x =
GB Tried the mod_jk module in the Tomcat 3.x distribution.
   
GB Since I could not find a version for apache 2.0 I tried the 
 apache 1.3
GB version
GB 
 (http://jakarta.apache.org/builds/jakarta-tomcat/native-3.3/win32/apache
GB 1.3/mod_jk.dll). This was rejected by apache with the message 
 Cannot
GB load C:/apps/apache2/modules/mod_jk.dll into server: The specified
GB module could not be found. Of course I checked the path three 
 times.
   
GB   So I assume that this .dll is only working for Apache 1.3
   
GB QUESTIONS
GB - Where can I get a mod_jk.dll for Apache 2?
GB - Do I have to built it myself?
   
GB Thanks for any suggestions
GB Goetz
   
GB --
GB To 
 unsubscribe:   mailto:[EMAIL PROTECTED]
GB For additional commands: 
 mailto:[EMAIL PROTECTED]
GB Troubles with the list: 
 mailto:[EMAIL PROTECTED]
   
--
Best regards,
 Jacobmailto:[EMAIL PROTECTED]
   

 
 Name: workers.properties
   workers.propertiesType: unspecified type 
 (application/octet-stream)
 Encoding: base64
   

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

Re: Problem in writing my own web application??????

2002-04-30 Thread Jacob Kjome

hmmm.. you must have missed the email I sent to the list.  Check again 
because I replied to this message.

Jake

At 04:00 AM 5/1/2002 +, you wrote:
I havent got any answer yet..can anyone please help me on this..
Thanks much in advance
suresh akula


From: Suresh Akula [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Problem in writing my own web application??
Date: Tue, 30 Apr 2002 20:36:45 +

I am very new to tomcat. I am trying to write a web application and 
deploy it on tomcat. I am failing to do so in various forms:
My web application is an applet GUI which has two textfields and 
button..once u enter data onto 1st textfiled and press the button the 
request goes to servlet and the servlet sends back the data along with 
some appened value and displays it onto the second textfield of the 
html(applet)page.This is something like applet to servlet communication.
i want to deploy this servlet as web component onto tomcat. I modified 
the server.xml(configuration file ) and added the following code

Context path=/testbasicservlet docBase=myownservlet
debug=0  reloadable=true
  /Context
Also i changed 
$tomcat_home/webapps/myownservlet/web-inf/web.xml(deployment descriptor 
file) to

web-app
welcome-file-list
   welcome-file/servlets/helloservletone.html/welcome-file
/welcome-file-list
/web-app

i have servlets and web-inf directory under $tomcat_home/webapps/myownservlet


So when i run http://localhost:8080/testbasicservlet i am able to see 
helloservletone.html page but this html page is not able to load the java 
applet which has GUI in it.the source code for this html file is

html
body
h1Applet to to Servlet Communication/h1br
applet code = AppletThread.class width = 400 height = 400 name = a3 
align = left
param name = abc value = a4
/applet
/body
/html

ths helloservletone.html brings up empty gui applet(it ddoesn't load 
appletThread.class which has GUI) I donno where to place applet class 
file and servlet class file in tomcat server.since my gui doesn't come up 
i am not able to test the servlet functionality. It is sort of difficult 
to put in word my problem. if it is clear can anyone please let me know 
how to do this
Thanks Much in advance



_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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



Re: FileLogger Question

2002-04-30 Thread Oki DZ

On 04/30 18:07 rainer jünger wrote:
 And now the problem:
 the logs are not being writen to the configured directory, even though it exist!!

Just in case Tomcat expects all log files reside in $TOMCAT_HOME/logs, you can always 
use links to redirect the output of the Logger. I wanted the logs in 
/var/log/tomcat, so I made a link to it: ln -s /var/log/tomcat $TOMCAT_HOME/logs. Of 
course, you have to delete the logs directory first.

Oki


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




Re: Problem in writing my own web application??????

2002-04-30 Thread Suresh Akula

HI Jake
i couldn't find ur reply. can u resend it again..i am still trying to find 
solution
Thanks
suresh akula


From: Jacob Kjome [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Problem in writing my own web application??
Date: Tue, 30 Apr 2002 23:29:17 -0500

hmmm.. you must have missed the email I sent to the list.  Check again
because I replied to this message.

Jake

At 04:00 AM 5/1/2002 +, you wrote:
I havent got any answer yet..can anyone please help me on this..
Thanks much in advance
suresh akula


From: Suresh Akula [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Problem in writing my own web application??
Date: Tue, 30 Apr 2002 20:36:45 +

I am very new to tomcat. I am trying to write a web application and
deploy it on tomcat. I am failing to do so in various forms:
My web application is an applet GUI which has two textfields and
button..once u enter data onto 1st textfiled and press the button the
request goes to servlet and the servlet sends back the data along with
some appened value and displays it onto the second textfield of the
html(applet)page.This is something like applet to servlet communication.
i want to deploy this servlet as web component onto tomcat. I modified
the server.xml(configuration file ) and added the following code

Context path=/testbasicservlet docBase=myownservlet
debug=0  reloadable=true
  /Context
Also i changed
$tomcat_home/webapps/myownservlet/web-inf/web.xml(deployment descriptor
file) to

web-app
welcome-file-list
   welcome-file/servlets/helloservletone.html/welcome-file
/welcome-file-list
/web-app

i have servlets and web-inf directory under 
$tomcat_home/webapps/myownservlet


So when i run http://localhost:8080/testbasicservlet i am able to see
helloservletone.html page but this html page is not able to load the java
applet which has GUI in it.the source code for this html file is

html
body
h1Applet to to Servlet Communication/h1br
applet code = AppletThread.class width = 400 height = 400 name = a3
align = left
param name = abc value = a4
/applet
/body
/html

ths helloservletone.html brings up empty gui applet(it ddoesn't load
appletThread.class which has GUI) I donno where to place applet class
file and servlet class file in tomcat server.since my gui doesn't come up
i am not able to test the servlet functionality. It is sort of difficult
to put in word my problem. if it is clear can anyone please let me know
how to do this
Thanks Much in advance



_
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx


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




_
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx


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




_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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




Re: Apache 2, Tomcat 4 and mod_jk2

2002-04-30 Thread costinm

On Tue, 30 Apr 2002, Anthony W. Marino wrote:

 One last question is how does coyote fit into this whole picture?
 Where/how is the best way to obtain the latest coyote stuff (ie; coyote jar 
 drop, build from srcxxx) ?

Coyote is the new 'connector API' - the java side of jk is independent
of tomcat version ( or even more - is container independent ). The Coyote 
API is currently supported in 3.3, 4.0, 4.1. 

It abstracts the container and the protocol - right now jk ( with all it's 
sub-protocols ) and a HTTP/1.1 implementation.


Costin


 
 Thank You,
 Anthony
 
 
  On Fri, 26 Apr 2002, Michael Delamere wrote:
   Me again :-)
  
   An interesting thing is that the source-files at cvs seem to be different
   to the ones that you can download from the jakarta site.
 
  Use the cvs, let me know ( or post on tomcat-dev ) if it doesn't work.
 
  We changed the name to mod_jk2 ( and all functions internally ) so
  that mod_jk and mod_jk2 can be used at the same time.
 
  If you want to have fun ( and you're on Unix) you could try the
  unix domain sockets. JNI is still tricky and there's a small
  piece that's not ready ( but the basic stuff works - not the
  sessions ).
 
  Costin
 
   For example.
  
   in the tar archive which you can download from the jakarta site, the
   directory:
   src/jk/native2/server/apache2 contains a source-file called  mod_jk.c
  
   whereas the same location on the cvs server has a file called mod_jk2.c.
  
   Although this doesn´t mean much, it at least shows some form of a change
  
   :-).  It might be worth trying to compile this version and see if it runs
  
   more reliably.  I´m going to give it a go.
  
   bye Michael Delamere
  
  
   - Original Message -
   From: Michael Delamere [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Friday, April 26, 2002 5:03 PM
   Subject: Re: Apache 2, Tomcat 4 and mod_jk2
  
I just found an interesting post here about the ajp14 connector.  At
this point though no testing had been done on apache2 :-).
  
   http://archives2.real-time.com/pipermail/tomcat-devel/2001-June/018332.ht
  ml
  
bye Michael Delamere
   
   
- Original Message -
From: Michael Delamere [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, April 26, 2002 4:30 PM
Subject: Re: Apache 2, Tomcat 4 and mod_jk2
   
 Well there appears to be a jk_ajp14_worker.  I wonder if this is
 the reason for mod_jk2 being so unstable at present.  It might be
 worth a
  
   test
  
 to see if it works better with AJP14 (if at all) instead of AJP13.

 bye Michael Delamere


 - Original Message -
 From: Anthony W. Marino [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, April 26, 2002 4:09 PM
 Subject: Re: Apache 2, Tomcat 4 and mod_jk2

  The example for mod_jk2 shows a worker's config for AJP13 but I

 thought

  that jk2 is AJP14?
 
  Anthony
 
   Thanks to Michael Delamere and Pascal Forget, I'm happy to shout
   out that there's a HOWTO for setting up Apache 2, mod_jk2 and
   Tomcat on Linux (and therefore probably other UNIX flavours)
  
   It's linked from http://www.pubbitch.org/jboss
  
   Regards,
  
   Simon
 
  --
  To unsubscribe:  
  mailto:[EMAIL PROTECTED] For additional
  commands: mailto:[EMAIL PROTECTED] Troubles
  with the list: mailto:[EMAIL PROTECTED]

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


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




  1   2   >