Apache installer requesting for machine restart

2001-07-05 Thread Eitan Ben Noach

Hello,

We want to launch Apache installer from our product installer.

Does any body can tell us, under which circumstances Apache installer
requests
for machine restart ( Windows NT & 2000 )?

Thanks,

Eitan Ben-Noach




strange way to start tomcat

2001-07-05 Thread Alex Madon

Hello
I downloaded tomcat 3.2.2 binaries distribution and installed it in my
/opt (SuSE linux 7.0) dir.

The sequence from the doc:
TOMCAT_HOME=/opt/jakarta-tomcat-3.2.2 ; export TOMCAT_HOME;
JAVA_HOME=/usr/lib/jdk1.1.8/; export JAVA_HOME;
bin/startup.sh

didn't work:
the server serves pages only very very slow (have to wait to minutes to
get a page)
when I connect to port 8080.

The only way I found to make it work is to issue the forllowing sequence
of
startup.sh and shutdown.sh:

bin/startup.sh
bin/shutdown.sh 
bin/startup.sh
bin/startup.sh

Follwos the output of issuing the commands.
Does somebody has an idea to make it work on the
first bin/startup.sh?

Thanks
Alex



---
torino:/opt/jakarta-tomcat-3.2.2 # bin/tomcat.sh start
Using classpath:
/opt/jakarta-tomcat-3.2.2/lib/ant.jar:/opt/jakarta-tomcat-3.2.2/lib/jasper.jar:/opt/jakarta-tomcat-3.2.2/lib/jaxp.jar:/opt/jakarta-tomcat-3.2.2/lib/parser.jar:/opt/jakarta-tomcat-3.2.2/lib/servlet.jar:/opt/jakarta-tomcat-3.2.2/lib/test:/opt/jakarta-tomcat-3.2.2/lib/webserver.jar
torino:/opt/jakarta-tomcat-3.2.2 # Starting tomcat. Check
logs/tomcat.log for error messages 
2001-07-05 09:49:40 - ContextManager: Adding context Ctx( /examples )
2001-07-05 09:49:40 - ContextManager: Adding context Ctx( /admin )
2001-07-05 09:49:40 - ContextManager: Adding context Ctx(  )
2001-07-05 09:49:40 - ContextManager: Adding context Ctx( /test )
2001-07-05 09:49:46 - PoolTcpConnector: Starting HttpConnectionHandler
on 8080

torino:/opt/jakarta-tomcat-3.2.2 # 
torino:/opt/jakarta-tomcat-3.2.2 # bin/tomcat.sh stop 
Using classpath:
/opt/jakarta-tomcat-3.2.2/lib/ant.jar:/opt/jakarta-tomcat-3.2.2/lib/jasper.jar:/opt/jakarta-tomcat-3.2.2/lib/jaxp.jar:/opt/jakarta-tomcat-3.2.2/lib/parser.jar:/opt/jakarta-tomcat-3.2.2/lib/servlet.jar:/opt/jakarta-tomcat-3.2.2/lib/test:/opt/jakarta-tomcat-3.2.2/lib/webserver.jar
Stop tomcat
2001-07-05 09:49:46 - PoolTcpConnector: Starting Ajp12ConnectionHandler
on 8007
torino:/opt/jakarta-tomcat-3.2.2 # bin/tomcat.sh start
Using classpath:
/opt/jakarta-tomcat-3.2.2/lib/ant.jar:/opt/jakarta-tomcat-3.2.2/lib/jasper.jar:/opt/jakarta-tomcat-3.2.2/lib/jaxp.jar:/opt/jakarta-tomcat-3.2.2/lib/parser.jar:/opt/jakarta-tomcat-3.2.2/lib/servlet.jar:/opt/jakarta-tomcat-3.2.2/lib/test:/opt/jakarta-tomcat-3.2.2/lib/webserver.jar
torino:/opt/jakarta-tomcat-3.2.2 # Starting tomcat. Check
logs/tomcat.log for error messages 
2001-07-05 09:49:55 - ContextManager: Adding context Ctx( /examples )
2001-07-05 09:49:55 - ContextManager: Adding context Ctx( /admin )
2001-07-05 09:49:55 - ContextManager: Adding context Ctx(  )
2001-07-05 09:49:55 - ContextManager: Adding context Ctx( /test )
FATAL:java.net.BindException: Address already in use
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:363)
at java.net.ServerSocket.(ServerSocket.java:138)
at java.net.ServerSocket.(ServerSocket.java:102)
at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:97)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:239)
at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)

torino:/opt/jakarta-tomcat-3.2.2 # 
torino:/opt/jakarta-tomcat-3.2.2 # bin/tomcat.sh start
Using classpath:
/opt/jakarta-tomcat-3.2.2/lib/ant.jar:/opt/jakarta-tomcat-3.2.2/lib/jasper.jar:/opt/jakarta-tomcat-3.2.2/lib/jaxp.jar:/opt/jakarta-tomcat-3.2.2/lib/parser.jar:/opt/jakarta-tomcat-3.2.2/lib/servlet.jar:/opt/jakarta-tomcat-3.2.2/lib/test:/opt/jakarta-tomcat-3.2.2/lib/webserver.jar
torino:/opt/jakarta-tomcat-3.2.2 # Starting tomcat. Check
logs/tomcat.log for error messages 
2001-07-05 09:50:08 - ContextManager: Adding context Ctx( /examples )
2001-07-05 09:50:08 - ContextManager: Adding context Ctx( /admin )
2001-07-05 09:50:08 - ContextManager: Adding context Ctx(  )
2001-07-05 09:50:08 - ContextManager: Adding context Ctx( /test )
FATAL:java.net.BindException: Address already in use
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:363)
at java.net.ServerSocket.(ServerSocket.java:138)
at java.net.ServerSocket.(ServerSocket.java:102)
at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:97)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:239)
at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
at org.apache.tomcat.startup.

AW: Tomcat startup under NT

2001-07-05 Thread Sladky, Jan

I've seen this behaviour when the server.xml was messed up i.e. it was
edited (e.g. with a tool like Frontpage oder Wordpad (?)). 
The solution was to start with a default server.xml (from the tomcat
zip-archive).
 
hth
jan

-Ursprüngliche Nachricht-
Von: David Herder [mailto:[EMAIL PROTECTED]]
Gesendet am: Mittwoch, 4. Juli 2001 22:57
An: [EMAIL PROTECTED]
Betreff: Tomcat startup under NT


Essential Info:
Tomcat 3.2.2
Apache 1.3.20
NT 4 Workstation Service pack 4
JDK 1.3.1

When executing the command startup from TOMCAT_HOME, a startup window
appears then disappears in a fraction of a second. I read in the FAQ that
this is due to memory allocation for the command prompt, but under NT, I
cannot find a way to change this. Nonetheless, I don't think this is the
probem, as I am also getting a "500 Internal Server Error" when trying to
run servlets. I have followed the suggestions in the faq about capitalizing
the WEB-INF folder, but this has not changed anything. 

But first things first, any suggestions on keeping the Tomcat Window open??

Thanks,
Dave




RE: solved! blue screen with servlets/jsp in Apache-Tomcat

2001-07-05 Thread James Radvan

?? I have Tomcat 3.2.2 binary distribution working flawlessly with ZoneAlarm
on Win2000Pro SP2.  Just to let you know that it IS possible.

-
James Radvan
Websphere Analyst/Architect
London, UK
[EMAIL PROTECTED]
+44 7990 624899


-Original Message-
I have now had a long (2-3 hour), trouble-free Tomcat testing session 
with ZoneAlarm simply shutdown. 




Click here to visit the Argos home page http://www.argos.co.uk

The information contained in this message or any of its attachments may be privileged 
and confidential, and is intended exclusively for the addressee.
The views expressed may not be official policy, but the personal views of the 
originator.  
If you are not the addressee, any disclosure, reproduction, distribution, 
dissemination or use of this communication is not authorised.
If you have received this message in error, please advise the sender by using the 
reply facility in your e-mail software.
All messages sent and received by Argos Ltd are monitored for virus, high risk file 
extensions, and inappropriate content.  As a result users should be aware that mail 
may be accessed.





RE: Spanish characters

2001-07-05 Thread James Radvan

Ideally, you should be using UTF-8 (Unicode) rather than a regional charset,
as it supports all special characters and is natively supported by Java.
Check your database settings to ensure that it is storing the data in
Unicode and not a spanish charset, and so on down the chain to your browser.
James
-
James Radvan
Websphere Analyst/Architect
London, UK
[EMAIL PROTECTED]
+44 7990 624899


-Original Message-
From: Antoni Reus [mailto:[EMAIL PROTECTED]]
Sent: 05 July 2001 08:17
To: [EMAIL PROTECTED]
Subject: Re: Spanish characters




Click here to visit the Argos home page http://www.argos.co.uk

The information contained in this message or any of its attachments may be privileged 
and confidential, and is intended exclusively for the addressee.
The views expressed may not be official policy, but the personal views of the 
originator.  
If you are not the addressee, any disclosure, reproduction, distribution, 
dissemination or use of this communication is not authorised.
If you have received this message in error, please advise the sender by using the 
reply facility in your e-mail software.
All messages sent and received by Argos Ltd are monitored for virus, high risk file 
extensions, and inappropriate content.  As a result users should be aware that mail 
may be accessed.





Re: AW: AW: Performance problem with Tomcat 3.2 on NT

2001-07-05 Thread Mukul Gandhi

Oracle XDK is rated one of the best XML products. I
guess it competes fairly on performance with other
parsers. It provides many other useful tools for XML
processing apart from the XML parser.

Regards
mukul

--- Thomas Bezdicek <[EMAIL PROTECTED]>
wrote:
> the problem is more likely the oracle XDK use some
> other
> xml-parser (xalan, jaxp) instead. we experianced at
> our
> performance testing that it is the absolute slowest
> xml-
> parser (version for 8.1.7, dont know about 9.0.1)
> 
> reagrds, tom
> 
> > -Ursprungliche Nachricht-
> > Von: Mukul Gandhi [mailto:[EMAIL PROTECTED]]
> > Gesendet: Mittwoch, 4. Juli 2001 19:06
> > An: [EMAIL PROTECTED]
> > Betreff: Re: AW: Performance problem with Tomcat
> 3.2 on NT
> > 
> > 
> > I am not storing heavy data in sessions(just
> integer
> > IDs). But in my servlet, i do parse the XML using
> > standard XML parser(Oracle XDK) and manipulate the
> DOM
> > tree generated from it. But is,nt it, when servlet
> > finishes execution, the DOM tree corresponding to
> the
> > XML must be freed from memory ;) and whole memory
> > should be available to subsequent requests. I am
> > making JDBC calls from the servlet, but I close
> the
> > connections before returning result to the
> browser.
> > Is NT environment the problem ? Has anybody
> > experianced a similar problem ? Would the same
> > application run better on Unix ?
> > 
> > Regards
> > mukul
> >  
> > 
> > --- Thomas Bezdicek
> <[EMAIL PROTECTED]>
> > wrote:
> > > most likely you cache something, either the
> servlet
> > > sessions, the xml - dom trees or maybe the
> > > connection 
> > > and the resultsets (maybe implicit by the jdbc
> > > driver) 
> > > this results in an enormous ram problem which
> > > actually 
> > > slows down the whole system dramatically.
> > > 
> > > regards
> > > 
> > > > -Ursprungliche Nachricht-
> > > > Von: Mukul Gandhi [mailto:[EMAIL PROTECTED]]
> > > > Gesendet: Mittwoch, 4. Juli 2001 18:19
> > > > An: [EMAIL PROTECTED]
> > > > Betreff: Performance problem with Tomcat 3.2
> on NT
> > > > 
> > > > 
> > > > Hi folks !
> > > >   I am facing performance problem on Tomcat
> 3.2
> > > when
> > > > used on NT workstation. I am running servlets
> &
> > > JSPs
> > > > on Tomcat. My JSPs & Servlets pick huge amount
> of
> > > XML
> > > > data from Oracle tables(in CLOB field) and
> show on
> > > the
> > > > browser(IE 5). The application works fine 1 or
> 2
> > > > times. But when run repeatedly, I get error &
> > > Tomcat
> > > > stops processing the requests. Tomcat runs
> fine
> > > when
> > > > it processes less data intensive requests, but
> it
> > > > gives problem when it has to fetch & store
> large
> > > > amount of data in the database. Can anybody
> > > suggest a
> > > > way to make my environment more stable for
> this
> > > > scenario ?
> > > > 
> > > > Any help will be much appreciated.
> > > > 
> > > > Regards
> > > > mukul


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



RE: JDBC Problem with Ultradev

2001-07-05 Thread James Radvan

For those of you that are still having problems with this, make sure your
driver is present in the Tomcat /webapps/[mywebapp]/WEB-INF/classes
directory and select 'use driver on application server' in your connection
setup in Ultradev. 

-
James Radvan
Websphere Analyst/Architect
London, UK
[EMAIL PROTECTED]
+44 7990 624899


-Original Message-
From: James Radvan [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2001 14:07
To: '[EMAIL PROTECTED]'
Subject: RE: JDBC Problem with Ultradev




Click here to visit the Argos home page http://www.argos.co.uk

The information contained in this message or any of its attachments may be privileged 
and confidential, and is intended exclusively for the addressee.
The views expressed may not be official policy, but the personal views of the 
originator.  
If you are not the addressee, any disclosure, reproduction, distribution, 
dissemination or use of this communication is not authorised.
If you have received this message in error, please advise the sender by using the 
reply facility in your e-mail software.
All messages sent and received by Argos Ltd are monitored for virus, high risk file 
extensions, and inappropriate content.  As a result users should be aware that mail 
may be accessed.





c++ dll

2001-07-05 Thread Arik Levin


Hi.

I have some c++ dll, which I use thru native java class
at my servlet. (I call it like.. System.loadLibrary("dll name"))

When I use it at JRun env it works fine.

I have Jboss-Tomcat env, and at this env It just
wouldn't work. I have this Exception: UnsatisfiedLinkError.


Please ,,, HELP 
Thank's Arik 



Re: c++ dll

2001-07-05 Thread Sam Newman

I would guess its because java can't find the dll in its pathtry putting
the DLL in windows/system.

sam
- Original Message -
From: "Arik Levin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 12:15 PM
Subject: c++ dll


>
> Hi.
>
> I have some c++ dll, which I use thru native java class
> at my servlet. (I call it like.. System.loadLibrary("dll name"))
>
> When I use it at JRun env it works fine.
>
> I have Jboss-Tomcat env, and at this env It just
> wouldn't work. I have this Exception: UnsatisfiedLinkError.
>
>
> Please ,,, HELP 
> Thank's Arik
>




Xalan Redirect for multiple output from Web Page

2001-07-05 Thread Ruairi

Hi,

I need to generate a few html files from one request.  I have tried
xt:document with little success, so  I am now trying Xalan's Redirect.  I
run the following XSL through Cocoon and get no error messages.  However no
extra files are generated on the server.

Is this a directory permissions issue?


BTW, Is this a question for the users list, or the developers list?

Thanks in advance.
-Ruairi

XSL File:


http://www.w3.org/1999/XSL/Transform";

xmlns:lxslt="http://xml.apache.org/xslt";
xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect"
extension-element-prefixes="redirect"

xmlns:xlink="http://www.w3.org/1999/xlink";
exclude-result-prefixes="xlink">

  

  
   
  

  
   
Exercise Links


   Exercise 



  
  
  
 Exercise 
 

   


 

 Case Study - Home
  



Course by 
   
  



XML file:




http://www.w3.org/1999/xlink";>
  Ruairi O'Donnell
  
Description
Description
  
  
  Description
  Description
  



Regards,
-Ruairi





RE: c++ dll

2001-07-05 Thread Arik Levin

I have tried this, and I know that the java can find the dll, because I
once had the dll up by the IIs too, and

the tomcat yelled that the dll is already loaded.. so I killed
the IIs, and back to the UnsatisfiedLinkError.

-Original Message-
From: Sam Newman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 12:17 PM
To: [EMAIL PROTECTED]
Subject: Re: c++ dll


I would guess its because java can't find the dll in its pathtry
putting
the DLL in windows/system.

sam
- Original Message -
From: "Arik Levin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 12:15 PM
Subject: c++ dll


>
> Hi.
>
> I have some c++ dll, which I use thru native java class
> at my servlet. (I call it like.. System.loadLibrary("dll name"))
>
> When I use it at JRun env it works fine.
>
> I have Jboss-Tomcat env, and at this env It just
> wouldn't work. I have this Exception: UnsatisfiedLinkError.
>
>
> Please ,,, HELP 
> Thank's Arik
>



RE: c++ dll

2001-07-05 Thread Manish Bhatnagar

Hi Arik!
Where did you place the dll in Tomcat? 
Try placing it in /lib.
..mb..

-Original Message-
From: Arik Levin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 4:46 PM
To: [EMAIL PROTECTED]
Subject: c++ dll



Hi.

I have some c++ dll, which I use thru native java class
at my servlet. (I call it like.. System.loadLibrary("dll name"))

When I use it at JRun env it works fine.

I have Jboss-Tomcat env, and at this env It just
wouldn't work. I have this Exception: UnsatisfiedLinkError.


Please ,,, HELP 
Thank's Arik 

 winmail.dat


Re: mod_jserv/mod_jk

2001-07-05 Thread Anagha Mudigonda


hi,
while compiling the source for mod_jk i find a lot of .h files cant
be opened ... like jk_global.h etc.
am i doing something wrong ??
help !
how do i go about it ?
regards
anagha
 
Nino Uziel wrote:
 
you would probably have to recompile Apache to use it
as well with --enable-rule=SHARED_CORE --enable-shared=so
N.
-Original Message-
From: Paul Foxton [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 04, 2001 4:41 PM
To: '[EMAIL PROTECTED]'
Subject: RE: mod_jserv
AFAIK mod_jserv is the old version for use with jserv,
you will need the new
one: mod_jk. Yes, you do need to download it seperately.
Get it from http://jakarta.apache.org.
You'll find it in the subdirectory
for your platform on the binaries page.
You can find instructions for setting it up in the tomcat
manual.
> -Original Message-
> From: Anagha Mudigonda [mailto:[EMAIL PROTECTED]]
> Sent: 04 July 2001 14:44
> To: [EMAIL PROTECTED]
> Subject: mod_jserv
>
>
> hi
> i'me new to tomcat. i have some fundamental doubts.
if anyone
> could help
>
> out i'de be real thankful.
> I have Apache Web server and tomcat. Now, to create
a
> webserver adapter,
>
> do I need to download the mod_jserv seperately, ie
other than
> the tomcat
>
> download ? if so where can i get it from ?i'me using
tomcat-3.2.1 on
> HP-UX.
>
> thanks in advance
>
> regards
> anagha.
>
> --
> Where the mind is without fear and the head is held
high;
> Where knowledge is free;
> Where the world has not been broken up into fragments
by
> narrow domestic
> walls;
> Where words come out from the depths of truth;
> ...
> Where the mind is led by thee into ever-widening thought
and action;
> Into that heaven of freedom,my Father,let my country
awake.
>
>

--
Where the mind is without fear and the head is held high;
Where knowledge is free;
Where the world has not been broken up into fragments by narrow domestic
walls;
Where words come out from the depths of truth;
...
Where the mind is led by thee into ever-widening thought and action;
Into that heaven of freedom,my Father,let my country awake.
 


RE: c++ dll

2001-07-05 Thread Everitt, Andrew

Arik,

Try setting 'java.library.path' for the JVM that you are running tomcat in
to point to the directory containing the DLL.

Andi.

Andrew Everitt
Xerox Mobile Solutions, Cambridge. UK 

> -Original Message-
> From: Arik Levin [mailto:[EMAIL PROTECTED]]
> Sent: 05 July 2001 12:16
> To: [EMAIL PROTECTED]
> Subject: c++ dll
> 
> 
> 
>   Hi.
> 
>   I have some c++ dll, which I use thru native java class
> at my servlet. (I call it like.. System.loadLibrary("dll name"))
> 
>   When I use it at JRun env it works fine.
> 
>   I have Jboss-Tomcat env, and at this env It just
> wouldn't work. I have this Exception: UnsatisfiedLinkError.
>   
> 
>   Please ,,, HELP 
> Thank's Arik 
> 



RE: User login logging (JDBC authentication)

2001-07-05 Thread Rajehswar V. Rao

Hi Mark and all,
I think my situation is also almost same
I have set of JSPs under my \myContext\jsp...
I dont want to give access to the users to these JSPs once they have been
authnticated...
One of the JSPs authenticate the user
please do help...
-raj-

-Original Message-
From: Mark Muffett [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 04, 2001 1:59 PM
To: [EMAIL PROTECTED]
Subject: Re: User login logging (JDBC authentication)


Sorry! - found it now (in tomcat_modules.jar).

Mark

- Original Message - 
From: "Mark Muffett" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Antony Bowesman" <[EMAIL PROTECTED]>
Sent: Wednesday, July 04, 2001 8:37 AM
Subject: Re: User login logging (JDBC authentication)


> Antony
> 
> Many thanks for the suggestion, but where can I find this - I've looked
> through the jar files in the common and container directories of
> $TOMCAT_HOME/lib, but nothing stands out.  Maybe I've missed it?
> 
> Any help appreciated.
> 
> Thanks
> 
> Mark
> 
> 
> - Original Message -
> From: "Antony Bowesman" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, June 28, 2001 4:58 PM
> Subject: Re: User login logging (JDBC authentication)
> 
> 
> > Mark Muffett wrote:
> > >
> > > Any ideas how best to log succesful (or unsuccesful) logins via
> > > JDBC authentication.  The big problem is that the user may have
> > > bookmarked any one of a number of protected pages, and it isn't
> > > practical to put code on each of them.
> >
> > Just change the JDBC realm authenticate() method to log the result of
> > the authentication.
> >
> > Antony
> >
> 



RE: Question on IIS with Tomcat

2001-07-05 Thread Randy Layman


In regedit you don't need to put the double backslashes, just use
one.

Randy

> -Original Message-
> From: Chen Bo [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 03, 2001 9:12 PM
> To: [EMAIL PROTECTED]
> Subject: Question on IIS with Tomcat
> 
> 
> Hello, all there
> There's something wrong with IIS + Tomcat.
> I've installed and can start tomcat alone correctly.
> But I can't use IIS with tomcat.
> the problem is: isapi_redirect.dll can't loaded correctly.
> The event log is:
> The HTTP Filter DLL D:tomcatbinwin32i386isapi_redirect.dll 
> failed to load. 
> The data is the error.
> For additional information specific to this message please visit the 
> Microsoft Online Support site located at: 
> http://www.microsoft.com/contentredirect.asp.
> error code: : 0006
> 
> The following is my registry entry for tomcat:
> [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi 
> Redirector\1.0]
> "extension_uri"="/jakarta/isapi_redirect.dll"
> "log_file"="D:\\tomcat\\logs\\isapi.log"
> "log_level"="debug"
> "worker_file"="D:\\tomcat\\conf\\workers.properties"
> "work_mount_file"="D:\\tomcat\\conf\\uriworkermap.properties"
> 
> my tomcat is installed in D:\tomcat, and isapi_redirect.dll is in 
> D:\tomcat\bin\win32\i386.
> My system is Windows 2000 professional with IIS.
> 
> And another question is: does tomcat work well with IIS & 
> Windows 2000? 
> anyone can send some comments or evalueation to me ?
> 
> Best Regards
> Ariesram
> 



RE: JDBC Realm Questions Tomcat 3.2.2

2001-07-05 Thread Rajehswar V. Rao

I am looking for same

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 4:02 AM
To: [EMAIL PROTECTED]
Subject: Fwd:JDBC Realm Questions Tomcat 3.2.2


Someone please respond to these questions so I know whether JDBC Realms are
a
supported feature of Tomcat3.2.2. I posted the question a few days ago and
have
gotten no responses. 

Has anyone been successful in referencing a jdbc datasource configured in
the
server.xml of Tomcat 3.2.2? If so, how?

Jonathan

Forward Header_
Subject:JDBC Realm Questions Tomcat 3.2.2
Author: [EMAIL PROTECTED]
Date:   7/3/2001 8:21 PM

This may be a stupid question but I've found hundreds of messages from
confused
users on the subject of JDBC Realms and Tomcat and no good explanation or
example. There is a documentation file JDBCRealm.howto but it doesn't
describe
how to instantiate the datasource with a code example or what additional
property files need to be included to configure jndi properties.

Like lots of other people, I'm trying to use the release Tomcat 3.2.2,
configure
multiple jdbc datasources in the server.xml file, and reference it in my
servlet. I am only interested in using a shared database ID to connect to
the
database for all users of my servlet. The database connect info needs to be
in
Tomcat conf files since the passwords need to be reconfigured at deployment
time
outside my war file.

1. Is this behavior supported by Tomcat 3.2.2? How do I configure multiple
database datasources and instantiate them in my code?

2. Assuming I setup the datasources like below, what properties do I use to
assign a name to the datasource so I can reference it?






3. What do I need to add to a config file in order to access the initial
context
so I can retrieve the datasource?

import javax.servlet.*;
import javax.servlet.http.*;
import javax.naming.*;
import javax.sql.*;

String  theDataSourceName = "???";
String  theNamingProviderURL = "???";
String  theInitialContextNamingFactory = "???";
Properties theProperties = new Properties (); 
theProperties.put("java.naming.provider.url", theNamingProviderURL);
theProperties.put("java.naming.factory.initial",theInitialContextNamingFacto
ry);

Context theInitialContext = new InitialContext(theProperties);
DataSource theDataSource = (DataSource) theInitialContext.lookup
(theDatasourceName);



RE: Internal Servlet error 500 - unable to compile...

2001-07-05 Thread Randy Layman


It would seem like you have come across the NT File path problem -
file paths in tomcat are limited to a maximum of some number (256, I
believe) characters.  The only solution to this is to make your web app have
a flatter structure (remove levels of directories, shorten file names, etc).

Randy

> -Original Message-
> From: Björg Ýr Jóhannsdóttir [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 04, 2001 9:14 AM
> To: [EMAIL PROTECTED]
> Subject: Internal Servlet error 500 - unable to compile...
> 
> 
> Hi there, I get this error message and have no clue how to solve it.
> I've checked that the tomcat user has proper permissons on 
> tomcat/work .. so
> now I hope that someone could maybe help me.
> thanks  ;)
> Björg
> 
> Error: 500
> Location: /Portal302/admin/roles_edit/roles_edit_user_edit_submit.jsp
> Internal Servlet Error:
> 
> org.apache.jasper.JasperException: Unable to compile class 
> for JSPerror:
> Can't write:
> C:\tomcat\work\localhost_8080\Portal_00033_00030_00032\admin\r
> oles_0005fedit
> \_0002fPortal_00033_00030_00032_0002fadmin_0002froles_0005fedi
> t_0002froles_0
> 005fedit_0005fuser_0005fedit_0005fsubmit_0002ejsproles_0005fed
> it_0005fuser_0
> 005fedit_0005fsubmit_jsp_0.class
> Note:
> C:\tomcat\work\localhost_8080\_0002fPortal_00033_00030_00032_0
> 002fadmin_0002
> froles_0005fedit_0002froles_0005fedit_0005fuser_0005fedit_0005
> fsubmit_0002ej
> sproles_0005fedit_0005fuser_0005fedit_0005fsubmit_jsp_0.java uses or
> overrides a deprecated API.  Recompile with "-deprecation" 
> for details.
> 1 error, 1 warning
> 
>   at 
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
>   at 
> org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
>   at
> org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader1
> 2.java:146)
>   at 
> org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
>   at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN
> ecessary(JspSe
> rvlet.java:258)
>   at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
> (JspServlet.ja
> va:268)
>   at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:429)
>   at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at 
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper
> .java:405)
>   at org.apache.tomcat.core.Handler.service(Handler.java:287)
>   at 
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>   at
> org.apache.tomcat.core.ContextManager.internalService(ContextM
> anager.java:79
> 7)
>   at 
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>   at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro
> cessConnection
> (Ajp12ConnectionHandler.java:166)
>   at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
> t.java:416)
>   at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
> ol.java:501)
>   at java.lang.Thread.run(Thread.java:484)
> 
> 
> 
> 



RE: help:

2001-07-05 Thread Randy Layman


Well, you could have READ THE MAILING LIST ARCHIVES!! I have
answered this exact same question two other times THIS WEEK!

Short answer:  Edit server.xml and uriworkermap.properties.

Randy


> -Original Message-
> From: Jonny Rayau [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 04, 2001 9:17 AM
> To: [EMAIL PROTECTED]
> Subject: help:
> 
> 
> Hi, there
> I'm doing a final project for my course. I'd like to 
> integrate tomcat with
> IIS 5.0. I followed all the instructions from Tomcat IIS-How 
> To and from
> www.verysimple.com. The jsp files only runs under /examples 
> not under other
> directory, I have tried to put it on e:\inetpub\wwwroot, 
> still it doesn't
> work.
> Could anyone help me how to put JSP file under other 
> directory not under
> \examples?. The message on my browser was when I tried to 
> access .jsp file
> is the page cannot be found and cannot find server or dns error.
> 
> Thanks
> 
> 
> Jonny
> 
> 
> 



RE: c++ dll

2001-07-05 Thread Manish Bhatnagar

Can you mail the snippet of your code?

-Original Message-
From: Everitt, Andrew [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 4:26 PM
To: '[EMAIL PROTECTED]'
Subject: RE: c++ dll


Arik,

Try setting 'java.library.path' for the JVM that you are running tomcat in
to point to the directory containing the DLL.

Andi.

Andrew Everitt
Xerox Mobile Solutions, Cambridge. UK 

> -Original Message-
> From: Arik Levin [mailto:[EMAIL PROTECTED]]
> Sent: 05 July 2001 12:16
> To: [EMAIL PROTECTED]
> Subject: c++ dll
> 
> 
> 
>   Hi.
> 
>   I have some c++ dll, which I use thru native java class
> at my servlet. (I call it like.. System.loadLibrary("dll name"))
> 
>   When I use it at JRun env it works fine.
> 
>   I have Jboss-Tomcat env, and at this env It just
> wouldn't work. I have this Exception: UnsatisfiedLinkError.
>   
> 
>   Please ,,, HELP 
> Thank's Arik 
> 



Re: User login logging (JDBC authentication)

2001-07-05 Thread Mark Muffett

Raj and all

I've managed to make the changes (very easy), but of course it doesn't work
exactly as I wanted it (isn't life always like that...)

I've got a database which is filling up fast since a new log gets written to
it every time a user accesses a new page (probably about 100 times each
session).

Tomcat clearly knows what a session is (since it doesn't ask the user to log
in again for each page) - any idea where it does this?

Thanks for any help.

Mark

- Original Message -
From: "Rajehswar V. Rao" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 12:21 PM
Subject: RE: User login logging (JDBC authentication)


> Hi Mark and all,
> I think my situation is also almost same
> I have set of JSPs under my \myContext\jsp...
> I dont want to give access to the users to these JSPs once they have been
> authnticated...
> One of the JSPs authenticate the user
> please do help...
> -raj-
>
> -Original Message-
> From: Mark Muffett [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 04, 2001 1:59 PM
> To: [EMAIL PROTECTED]
> Subject: Re: User login logging (JDBC authentication)
>
>
> Sorry! - found it now (in tomcat_modules.jar).
>
> Mark
>
> - Original Message -
> From: "Mark Muffett" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; "Antony Bowesman" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 04, 2001 8:37 AM
> Subject: Re: User login logging (JDBC authentication)
>
>
> > Antony
> >
> > Many thanks for the suggestion, but where can I find this - I've looked
> > through the jar files in the common and container directories of
> > $TOMCAT_HOME/lib, but nothing stands out.  Maybe I've missed it?
> >
> > Any help appreciated.
> >
> > Thanks
> >
> > Mark
> >
> >
> > - Original Message -
> > From: "Antony Bowesman" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, June 28, 2001 4:58 PM
> > Subject: Re: User login logging (JDBC authentication)
> >
> >
> > > Mark Muffett wrote:
> > > >
> > > > Any ideas how best to log succesful (or unsuccesful) logins via
> > > > JDBC authentication.  The big problem is that the user may have
> > > > bookmarked any one of a number of protected pages, and it isn't
> > > > practical to put code on each of them.
> > >
> > > Just change the JDBC realm authenticate() method to log the result of
> > > the authentication.
> > >
> > > Antony
> > >
> >
>




RE: has anyone ever got the feature (defined in web.xml) to work?

2001-07-05 Thread Hughes, Tim


Hi,

We are trying to use the  facility but without any success. Does
Tomcat implement this or not?
Has anyone seen it working?


Tim Hughes




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 4. juli 2001 17:27
To: [EMAIL PROTECTED]
Subject: AW: http errors


Hi Tim,
 
I tried the stuff you described, but had not success with it.
I placed the error-page item in both web.xml files, but nothing changed.
 
In addition I removed the  from the web-app web.xml file and
placed that section into the default web.xml.
The result was, that the login-config seemed to be lost.
 
So what's wrong? I use Tomcat 3.2.2.
 
It seems to me, that Tomcat does not implement the specification!
 
Kind regards
Guido

-Ursprüngliche Nachricht-
Von: Hughes, Tim [mailto:[EMAIL PROTECTED]]
Gesendet am: Mittwoch, 4. Juli 2001 09:39
An: '[EMAIL PROTECTED]'
Betreff: RE: http errors

Hi,
 
You will find a full copy of the **default** web.xml in TOMCAT_HOME/conf/.
 
What is the default web.xml --> Extract from the user guide (which you will
find at TOMCAT_HOME\doc\uguide\tomcat_ug.html: recommended reading)
[A detailed description of web.xml and the web application structure
(including directory structure and configuration) is available in chapters
9, 10 and 14 of the   Servlet API
Spec and we are not going to write about it. 

There is however a small Tomcat related "feature" that is related to
web.xml. Tomcat lets the user define defaultw eb.xml values for all context
by putting a default web.xml file in the conf directory. When constructing a
new Context, Tomcat uses the default web.xml file as the base configuration
and the application specific web.xml (the one located in the application's
WEB-INF/web.xml), only overwrite these defaults.]

So if you want the error pages to apply to all webapps then you put the
error page tags in the default web.xml like this:



http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>




 

javax.servlet.TryagainException
/errors/TryAgain.html

 

503

/errors/TryAgain.html




(I assume that you have renamed the directories and files accordingly:
errors directory and TryAgain.html file are only examples).

If you only want the error pages to apply to a particular webapp then you
should create a web.xml file that you place in
TOMCAT_HOME/webapps/yourWebApp/WEB-INF. This file should look like this:

http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>




javax.servlet.TryagainException
/errors/TryAgain.html

 

503

/errors/TryAgain.html




I hope this works.

 
Tim Hughes 
 

-Original Message-
From: Francisco Areas Guimaraes [mailto:[EMAIL PROTECTED]]
Sent: 4. juli 2001 02:25
To: [EMAIL PROTECTED]
Subject: Re: http errors


it didn´t work...could you please give a "complete" web.xml? and where
should I put this file? in %TOMCAT_HOME%/conf or somewhere else? I´m using
tomcat 3.2.2 and win2k, I would like any help you could provide, because I
just started working with tomcat.
 
thanks,
 
Francisco
[EMAIL PROTECTED]  

- Original Message - 
From: Hughes,   Tim 
To: '[EMAIL PROTECTED]'
  
Sent: Tuesday, July 03, 2001 4:29 AM
Subject: RE: http errors

Hi,
 
Using  elements in the web.xml, you can program web applications
to handle HTTP errors and exceptions.
 
The deployment description below makes the container send the
/errors/TryAgain.html file if either a TryAgainExeption or the
HttpServletResponse.SC_SERVER_UNAVAILABLE error code occurs:
 

 

 

javax.servlet.TryagainException
/errors/TryAgain.html

 

503

/errors/TryAgain.html

 
I hope this helps.

 
Tim Hughes 
 

-Original Message-
From: Francisco Areas Guimaraes [mailto:[EMAIL PROTECTED]]
Sent: 3. juli 2001 02:15
To: Lista tomcat User
Subject: http errors


Anyone know if I can set tomcat to use a custom page for http errors, like
500, instead of it´s default???
 
please, help me, i´ve tried a lot of things and it didn´t help.
 
[]´s
Francisco



This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst & Young Group. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorized to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message.




This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst & Young Group. It is intended only
for the pers

RE: User login logging (JDBC authentication)

2001-07-05 Thread Randy Layman


What is happening is that Tomcat is using the user's credentials
(username/password) in the Session to authenticate.  If they are not there
or invalid, then the user is prompted to log in again.

Randy

> -Original Message-
> From: Mark Muffett [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 05, 2001 8:33 AM
> To: [EMAIL PROTECTED]
> Subject: Re: User login logging (JDBC authentication)
> 
> 
> Raj and all
> 
> I've managed to make the changes (very easy), but of course 
> it doesn't work
> exactly as I wanted it (isn't life always like that...)
> 
> I've got a database which is filling up fast since a new log 
> gets written to
> it every time a user accesses a new page (probably about 100 
> times each
> session).
> 
> Tomcat clearly knows what a session is (since it doesn't ask 
> the user to log
> in again for each page) - any idea where it does this?
> 
> Thanks for any help.
> 
> Mark
> 
> - Original Message -
> From: "Rajehswar V. Rao" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, July 05, 2001 12:21 PM
> Subject: RE: User login logging (JDBC authentication)
> 
> 
> > Hi Mark and all,
> > I think my situation is also almost same
> > I have set of JSPs under my \myContext\jsp...
> > I dont want to give access to the users to these JSPs once 
> they have been
> > authnticated...
> > One of the JSPs authenticate the user
> > please do help...
> > -raj-
> >
> > -Original Message-
> > From: Mark Muffett [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, July 04, 2001 1:59 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: User login logging (JDBC authentication)
> >
> >
> > Sorry! - found it now (in tomcat_modules.jar).
> >
> > Mark
> >
> > - Original Message -
> > From: "Mark Muffett" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>; "Antony Bowesman" 
> <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 04, 2001 8:37 AM
> > Subject: Re: User login logging (JDBC authentication)
> >
> >
> > > Antony
> > >
> > > Many thanks for the suggestion, but where can I find this 
> - I've looked
> > > through the jar files in the common and container directories of
> > > $TOMCAT_HOME/lib, but nothing stands out.  Maybe I've missed it?
> > >
> > > Any help appreciated.
> > >
> > > Thanks
> > >
> > > Mark
> > >
> > >
> > > - Original Message -
> > > From: "Antony Bowesman" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, June 28, 2001 4:58 PM
> > > Subject: Re: User login logging (JDBC authentication)
> > >
> > >
> > > > Mark Muffett wrote:
> > > > >
> > > > > Any ideas how best to log succesful (or unsuccesful) 
> logins via
> > > > > JDBC authentication.  The big problem is that the 
> user may have
> > > > > bookmarked any one of a number of protected pages, 
> and it isn't
> > > > > practical to put code on each of them.
> > > >
> > > > Just change the JDBC realm authenticate() method to log 
> the result of
> > > > the authentication.
> > > >
> > > > Antony
> > > >
> > >
> >
> 



RE: has anyone ever got the feature (defined in web. xml) to work?

2001-07-05 Thread Randy Layman


We have is successfully working for catching Java Exceptions.
Haven't tried HTTP Error codes, though.

Randy

> -Original Message-
> From: Hughes, Tim [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 05, 2001 8:38 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: has anyone ever got the  feature (defined in
> web. xml) to work?
> 
> 
> 
> Hi,
> 
> We are trying to use the  facility but without 
> any success. Does
> Tomcat implement this or not?
> Has anyone seen it working?
> 
> 
> Tim Hughes
> 
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 4. juli 2001 17:27
> To: [EMAIL PROTECTED]
> Subject: AW: http errors
> 
> 
> Hi Tim,
>  
> I tried the stuff you described, but had not success with it.
> I placed the error-page item in both web.xml files, but 
> nothing changed.
>  
> In addition I removed the  from the web-app 
> web.xml file and
> placed that section into the default web.xml.
> The result was, that the login-config seemed to be lost.
>  
> So what's wrong? I use Tomcat 3.2.2.
>  
> It seems to me, that Tomcat does not implement the specification!
>  
> Kind regards
> Guido
> 
> -Ursprüngliche Nachricht-
> Von: Hughes, Tim [mailto:[EMAIL PROTECTED]]
> Gesendet am: Mittwoch, 4. Juli 2001 09:39
> An: '[EMAIL PROTECTED]'
> Betreff: RE: http errors
> 
> Hi,
>  
> You will find a full copy of the **default** web.xml in 
> TOMCAT_HOME/conf/.
>  
> What is the default web.xml --> Extract from the user guide 
> (which you will
> find at TOMCAT_HOME\doc\uguide\tomcat_ug.html: recommended reading)
> [A detailed description of web.xml and the web application structure
> (including directory structure and configuration) is 
> available in chapters
> 9, 10 and 14 of the   
> Servlet API
> Spec and we are not going to write about it. 
> 
> There is however a small Tomcat related "feature" that is related to
> web.xml. Tomcat lets the user define defaultw eb.xml values 
> for all context
> by putting a default web.xml file in the conf directory. When 
> constructing a
> new Context, Tomcat uses the default web.xml file as the base 
> configuration
> and the application specific web.xml (the one located in the 
> application's
> WEB-INF/web.xml), only overwrite these defaults.]
> 
> So if you want the error pages to apply to all webapps then 
> you put the
> error page tags in the default web.xml like this:
> 
> 
> 
>  
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> 
> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> 
> 
> 
> 
>  
> 
> javax.servlet.TryagainException
> /errors/TryAgain.html
> 
>  
> 
> 503
> 
> /errors/TryAgain.html
> 
> 
> 
> 
> (I assume that you have renamed the directories and files accordingly:
> errors directory and TryAgain.html file are only examples).
> 
> If you only want the error pages to apply to a particular 
> webapp then you
> should create a web.xml file that you place in
> TOMCAT_HOME/webapps/yourWebApp/WEB-INF. This file should look 
> like this:
> 
>  
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> 
> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> 
> 
> 
> 
> javax.servlet.TryagainException
> /errors/TryAgain.html
> 
>  
> 
> 503
> 
> /errors/TryAgain.html
> 
> 
> 
> 
> I hope this works.
> 
>  
> Tim Hughes 
>  
> 
> -Original Message-
> From: Francisco Areas Guimaraes [mailto:[EMAIL PROTECTED]]
> Sent: 4. juli 2001 02:25
> To: [EMAIL PROTECTED]
> Subject: Re: http errors
> 
> 
> it didn´t work...could you please give a "complete" web.xml? and where
> should I put this file? in %TOMCAT_HOME%/conf or somewhere 
> else? I´m using
> tomcat 3.2.2 and win2k, I would like any help you could 
> provide, because I
> just started working with tomcat.
>  
> thanks,
>  
> Francisco
> [EMAIL PROTECTED]  
> 
> - Original Message - 
> From: Hughes,   Tim 
> To: '[EMAIL PROTECTED]'
>   
> Sent: Tuesday, July 03, 2001 4:29 AM
> Subject: RE: http errors
> 
> Hi,
>  
> Using  elements in the web.xml, you can program 
> web applications
> to handle HTTP errors and exceptions.
>  
> The deployment description below makes the container send the
> /errors/TryAgain.html file if either a TryAgainExeption or the
> HttpServletResponse.SC_SERVER_UNAVAILABLE error code occurs:
>  
> 
>  
> 
>  
> 
> javax.servlet.TryagainException
> /errors/TryAgain.html
> 
>  
> 
> 503
> 
> /errors/TryAgain.html
> 
>  
> I hope this helps.
> 
>  
> Tim Hughes 
>  
> 
> -Original Message-
> From: Francisco Areas Guimaraes [mailto:[EMAIL PROTECTED]]

Access protected

2001-07-05 Thread Nicolas Preget

Hi

I would like to protect (using password for instance) the access to
parts on my Tomcat installation.
Do you know how I can make it ?

Regards.
Nicolas




RE: User login logging (JDBC authentication)

2001-07-05 Thread Rajehswar V. Rao

Hi Randy and all,
if that is the case where can i set username and password
And one more thing, i am using tomcat with IIS ...can i restrict
resources(JSPs and Servlets) on 
tomcat from IIS...
Any help would be appreciated
-raj-

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 5:32 PM
To: [EMAIL PROTECTED]
Subject: RE: User login logging (JDBC authentication)



What is happening is that Tomcat is using the user's credentials
(username/password) in the Session to authenticate.  If they are not there
or invalid, then the user is prompted to log in again.

Randy

> -Original Message-
> From: Mark Muffett [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 05, 2001 8:33 AM
> To: [EMAIL PROTECTED]
> Subject: Re: User login logging (JDBC authentication)
> 
> 
> Raj and all
> 
> I've managed to make the changes (very easy), but of course 
> it doesn't work
> exactly as I wanted it (isn't life always like that...)
> 
> I've got a database which is filling up fast since a new log 
> gets written to
> it every time a user accesses a new page (probably about 100 
> times each
> session).
> 
> Tomcat clearly knows what a session is (since it doesn't ask 
> the user to log
> in again for each page) - any idea where it does this?
> 
> Thanks for any help.
> 
> Mark
> 
> - Original Message -
> From: "Rajehswar V. Rao" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, July 05, 2001 12:21 PM
> Subject: RE: User login logging (JDBC authentication)
> 
> 
> > Hi Mark and all,
> > I think my situation is also almost same
> > I have set of JSPs under my \myContext\jsp...
> > I dont want to give access to the users to these JSPs once 
> they have been
> > authnticated...
> > One of the JSPs authenticate the user
> > please do help...
> > -raj-
> >
> > -Original Message-
> > From: Mark Muffett [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, July 04, 2001 1:59 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: User login logging (JDBC authentication)
> >
> >
> > Sorry! - found it now (in tomcat_modules.jar).
> >
> > Mark
> >
> > - Original Message -
> > From: "Mark Muffett" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>; "Antony Bowesman" 
> <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 04, 2001 8:37 AM
> > Subject: Re: User login logging (JDBC authentication)
> >
> >
> > > Antony
> > >
> > > Many thanks for the suggestion, but where can I find this 
> - I've looked
> > > through the jar files in the common and container directories of
> > > $TOMCAT_HOME/lib, but nothing stands out.  Maybe I've missed it?
> > >
> > > Any help appreciated.
> > >
> > > Thanks
> > >
> > > Mark
> > >
> > >
> > > - Original Message -
> > > From: "Antony Bowesman" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, June 28, 2001 4:58 PM
> > > Subject: Re: User login logging (JDBC authentication)
> > >
> > >
> > > > Mark Muffett wrote:
> > > > >
> > > > > Any ideas how best to log succesful (or unsuccesful) 
> logins via
> > > > > JDBC authentication.  The big problem is that the 
> user may have
> > > > > bookmarked any one of a number of protected pages, 
> and it isn't
> > > > > practical to put code on each of them.
> > > >
> > > > Just change the JDBC realm authenticate() method to log 
> the result of
> > > > the authentication.
> > > >
> > > > Antony
> > > >
> > >
> >
> 



RE: has anyone ever got the feature (defined in web. xml) to work?

2001-07-05 Thread Hughes, Tim

Hi,

I have been playing around with this for a couple of hours now and it seems
that the following is the case:

If the error is generated by a servlet (response.sendError(int i)), then:
-you can "catch" it with another servlet (i.e. with a servlet as error page)
-but you cannot "catch" it with a simple html file.

If the error is an HTTP error (e.g. you try to access a resource that
doesn't exist: error code 404):
-you cannot "catch it" at all: neither with a servlet or an html file.

Does anyone have any evidence of this being false? It would be nice if it
was.


Tim Hughes




-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: 5. juli 2001 14:03
To: [EMAIL PROTECTED]
Subject: RE: has anyone ever got the  feature (defined in
web. xml) to work?



We have is successfully working for catching Java Exceptions.
Haven't tried HTTP Error codes, though.

Randy

> -Original Message-
> From: Hughes, Tim [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 05, 2001 8:38 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: has anyone ever got the  feature (defined in
> web. xml) to work?
> 
> 
> 
> Hi,
> 
> We are trying to use the  facility but without 
> any success. Does
> Tomcat implement this or not?
> Has anyone seen it working?
> 
> 
> Tim Hughes
> 
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 4. juli 2001 17:27
> To: [EMAIL PROTECTED]
> Subject: AW: http errors
> 
> 
> Hi Tim,
>  
> I tried the stuff you described, but had not success with it.
> I placed the error-page item in both web.xml files, but 
> nothing changed.
>  
> In addition I removed the  from the web-app 
> web.xml file and
> placed that section into the default web.xml.
> The result was, that the login-config seemed to be lost.
>  
> So what's wrong? I use Tomcat 3.2.2.
>  
> It seems to me, that Tomcat does not implement the specification!
>  
> Kind regards
> Guido
> 
> -Ursprüngliche Nachricht-
> Von: Hughes, Tim [mailto:[EMAIL PROTECTED]]
> Gesendet am: Mittwoch, 4. Juli 2001 09:39
> An: '[EMAIL PROTECTED]'
> Betreff: RE: http errors
> 
> Hi,
>  
> You will find a full copy of the **default** web.xml in 
> TOMCAT_HOME/conf/.
>  
> What is the default web.xml --> Extract from the user guide 
> (which you will
> find at TOMCAT_HOME\doc\uguide\tomcat_ug.html: recommended reading)
> [A detailed description of web.xml and the web application structure
> (including directory structure and configuration) is 
> available in chapters
> 9, 10 and 14 of the   
> Servlet API
> Spec and we are not going to write about it. 
> 
> There is however a small Tomcat related "feature" that is related to
> web.xml. Tomcat lets the user define defaultw eb.xml values 
> for all context
> by putting a default web.xml file in the conf directory. When 
> constructing a
> new Context, Tomcat uses the default web.xml file as the base 
> configuration
> and the application specific web.xml (the one located in the 
> application's
> WEB-INF/web.xml), only overwrite these defaults.]
> 
> So if you want the error pages to apply to all webapps then 
> you put the
> error page tags in the default web.xml like this:
> 
> 
> 
>  
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> 
> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> 
> 
> 
> 
>  
> 
> javax.servlet.TryagainException
> /errors/TryAgain.html
> 
>  
> 
> 503
> 
> /errors/TryAgain.html
> 
> 
> 
> 
> (I assume that you have renamed the directories and files accordingly:
> errors directory and TryAgain.html file are only examples).
> 
> If you only want the error pages to apply to a particular 
> webapp then you
> should create a web.xml file that you place in
> TOMCAT_HOME/webapps/yourWebApp/WEB-INF. This file should look 
> like this:
> 
>  
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> 
> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> 
> 
> 
> 
> javax.servlet.TryagainException
> /errors/TryAgain.html
> 
>  
> 
> 503
> 
> /errors/TryAgain.html
> 
> 
> 
> 
> I hope this works.
> 
>  
> Tim Hughes 
>  
> 
> -Original Message-
> From: Francisco Areas Guimaraes [mailto:[EMAIL PROTECTED]]
> Sent: 4. juli 2001 02:25
> To: [EMAIL PROTECTED]
> Subject: Re: http errors
> 
> 
> it didn´t work...could you please give a "complete" web.xml? and where
> should I put this file? in %TOMCAT_HOME%/conf or somewhere 
> else? I´m using
> tomcat 3.2.2 and win2k, I would like any help you could 
> provide, because I
> just started working with tomcat.
>  
> thanks,
>  
> Francisco
> [EMAIL PROTECTED] 

Re: User login logging (JDBC authentication)

2001-07-05 Thread Mark Muffett

Randy

Any idea where it makes the decision?  (so I can move my logging code there)

Mark

- Original Message -
From: "Randy Layman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 1:01 PM
Subject: RE: User login logging (JDBC authentication)


>
> What is happening is that Tomcat is using the user's credentials
> (username/password) in the Session to authenticate.  If they are not there
> or invalid, then the user is prompted to log in again.
>
> Randy
>
> > -Original Message-
> > From: Mark Muffett [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, July 05, 2001 8:33 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: User login logging (JDBC authentication)
> >
> >
> > Raj and all
> >
> > I've managed to make the changes (very easy), but of course
> > it doesn't work
> > exactly as I wanted it (isn't life always like that...)
> >
> > I've got a database which is filling up fast since a new log
> > gets written to
> > it every time a user accesses a new page (probably about 100
> > times each
> > session).
> >
> > Tomcat clearly knows what a session is (since it doesn't ask
> > the user to log
> > in again for each page) - any idea where it does this?
> >
> > Thanks for any help.
> >
> > Mark
> >
> > - Original Message -
> > From: "Rajehswar V. Rao" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, July 05, 2001 12:21 PM
> > Subject: RE: User login logging (JDBC authentication)
> >
> >
> > > Hi Mark and all,
> > > I think my situation is also almost same
> > > I have set of JSPs under my \myContext\jsp...
> > > I dont want to give access to the users to these JSPs once
> > they have been
> > > authnticated...
> > > One of the JSPs authenticate the user
> > > please do help...
> > > -raj-
> > >
> > > -Original Message-
> > > From: Mark Muffett [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, July 04, 2001 1:59 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: User login logging (JDBC authentication)
> > >
> > >
> > > Sorry! - found it now (in tomcat_modules.jar).
> > >
> > > Mark
> > >
> > > - Original Message -
> > > From: "Mark Muffett" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>; "Antony Bowesman"
> > <[EMAIL PROTECTED]>
> > > Sent: Wednesday, July 04, 2001 8:37 AM
> > > Subject: Re: User login logging (JDBC authentication)
> > >
> > >
> > > > Antony
> > > >
> > > > Many thanks for the suggestion, but where can I find this
> > - I've looked
> > > > through the jar files in the common and container directories of
> > > > $TOMCAT_HOME/lib, but nothing stands out.  Maybe I've missed it?
> > > >
> > > > Any help appreciated.
> > > >
> > > > Thanks
> > > >
> > > > Mark
> > > >
> > > >
> > > > - Original Message -
> > > > From: "Antony Bowesman" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Thursday, June 28, 2001 4:58 PM
> > > > Subject: Re: User login logging (JDBC authentication)
> > > >
> > > >
> > > > > Mark Muffett wrote:
> > > > > >
> > > > > > Any ideas how best to log succesful (or unsuccesful)
> > logins via
> > > > > > JDBC authentication.  The big problem is that the
> > user may have
> > > > > > bookmarked any one of a number of protected pages,
> > and it isn't
> > > > > > practical to put code on each of them.
> > > > >
> > > > > Just change the JDBC realm authenticate() method to log
> > the result of
> > > > > the authentication.
> > > > >
> > > > > Antony
> > > > >
> > > >
> > >
> >
>




Re: Tomcat startup under NT

2001-07-05 Thread David Herder

A thank you goes out to Steven Turoff... your suggestion helped me to 
isolate the problem once I was able to see what Tomcat was doing... an
improperly terminated Resource Interceptor in the server.xml.

Thanks!!! Another request... now that my servlets are working, where can I
access the password (in order to change it) for the Context Administrator
webapp?

dave



Re: Access protected

2001-07-05 Thread Mark Muffett

Many ways you can do it.  I use JDBC authentication and keep the
username/password in a database.  (I'm using 3.3 which might be a bit easier
than 3.2).

The documentation (on the jakarta site) is quite good.

Mark

- Original Message -
From: "Nicolas Preget" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 2:03 PM
Subject: Access protected


> Hi
>
> I would like to protect (using password for instance) the access to
> parts on my Tomcat installation.
> Do you know how I can make it ?
>
> Regards.
> Nicolas
>




Re: JDBC Realm Questions Tomcat 3.2.2

2001-07-05 Thread Alexa Petrean

Hi,

I think I have a similar problem, but for Tomcat3.2.1 (NT platform). The ideea
is that I've configured the server.xml to access an Oracle DB, like this:



As I know, to give role based access to the users, we have to configure web.xml
for the application. Here is a sample, from my app:



  Administrator
  Operator



  myServlet
   

  path.to.my.servlet.MyServletClass
   
   
  ADMIN
  Administrator
   
   
  OPER
  Operator
   



myServlet


/myServlet



   
  
   myServlet
  
  
   /myServlet
  
  GET
  POST
   
   
  
  Administrator
  
   



Now, when somebody wants to access myServlet resource, he/she must have the role
of an Administrator or Operator. I think this should be checked into the
database.  The problem is that, when I've tried to access myServlet for the
first time, the following message was generated in the tomcat console:

2001-07-05 04:11:49 - ContextManager: JDBCRealm: JDBCRealm.authenticate: SELECT
PASSWORD FROM MYUSERTABLE WHERE NAME = ?
2001-07-05 04:11:50 - ContextManager: JDBCRealm: Authentication unsuccessful for
user null

In the same time, the login window has appeard on Netscape browser, but after
I'd entered a valid user name and password (from myUserTable) the message was
the same:

2001-07-05 04:14:19 - ContextManager: JDBCRealm: Authentication unsuccessful for
user null

It seems for me that the user name is null every time, no matter if I enter a
valid (user, passwd) or not. Is that a Tomcat bug, or I've missed something?

Any ideea would be highly appreciated

Alex

"Rajehswar V. Rao" wrote:

> I am looking for same
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 05, 2001 4:02 AM
> To: [EMAIL PROTECTED]
> Subject: Fwd:JDBC Realm Questions Tomcat 3.2.2
>
> Someone please respond to these questions so I know whether JDBC Realms are
> a
> supported feature of Tomcat3.2.2. I posted the question a few days ago and
> have
> gotten no responses.
>
> Has anyone been successful in referencing a jdbc datasource configured in
> the
> server.xml of Tomcat 3.2.2? If so, how?
>
> Jonathan
>
> Forward Header_
> Subject:JDBC Realm Questions Tomcat 3.2.2
> Author: [EMAIL PROTECTED]
> Date:   7/3/2001 8:21 PM
>
> This may be a stupid question but I've found hundreds of messages from
> confused
> users on the subject of JDBC Realms and Tomcat and no good explanation or
> example. There is a documentation file JDBCRealm.howto but it doesn't
> describe
> how to instantiate the datasource with a code example or what additional
> property files need to be included to configure jndi properties.
>
> Like lots of other people, I'm trying to use the release Tomcat 3.2.2,
> configure
> multiple jdbc datasources in the server.xml file, and reference it in my
> servlet. I am only interested in using a shared database ID to connect to
> the
> database for all users of my servlet. The database connect info needs to be
> in
> Tomcat conf files since the passwords need to be reconfigured at deployment
> time
> outside my war file.
>
> 1. Is this behavior supported by Tomcat 3.2.2? How do I configure multiple
> database datasources and instantiate them in my code?
>
> 2. Assuming I setup the datasources like below, what properties do I use to
> assign a name to the datasource so I can reference it?
>
>  className="org.apache.tomcat.request.JDBCRealm"
> debug="99"
> driverName="oracle.jdbc.driver.OracleDriver"
> connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
> connectionName="scott"
> connectionPassword="tiger"
> />
>
>  className="org.apache.tomcat.request.JDBCRealm"
> debug="99"
> driverName="oracle.jdbc.driver.OracleDriver"
> connectionURL="jdbc:oracle:thin:@ntserver2:1521:ORCL"
> connectionName="scott"
> connectionPassword="tiger"
> />
>
> 3. What do I need to add to a config file in order to access the initial
> context
> so I can retrieve the datasource?
>
> import javax.servlet.*;
> import javax.servlet.http.*;
> import javax.naming.*;
> import javax.sql.*;
>
> String  theDataSourceName = "???";
> String  theNamingProviderURL = "???";
> String  theInitialContextNamingFactory = "???";
> Properties theProperties = new Properties ();
> theProperties.put("java.naming.provider.url", theNamingProviderURL);
> theProperties.put("java.naming.factory.initial",theInitialContextNamingFacto
> ry);
>
> Context theInitialContext = new InitialContext(theProperties);
> DataSource theDataSource = (DataSource) theInitialContext.lookup
> (theDatasourceName);




Does Apache Come With Tomcat Built In or Pre Integrated?

2001-07-05 Thread Russell, Steve

Just curious if it does or doesn't.

If it doesn't, why not.  I'm sure there is a good reason.  I'm just curious

Steve

Steve Russell

Web Developer III
ValueOptions - Lifescape
703-205-6589
[EMAIL PROTECTED]


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender by email, delete and destroy this message and its 
attachments.


**



RE: User login logging (JDBC authentication)

2001-07-05 Thread Rajehswar V. Rao

Hi randy,
I would appreciate  your patience...
I am coming from first...
This is my prblem
I have 10 JSPs under myCon/jsp folder in Tomcat..
One of them is Login.jsp...which does authentication of user...
i check the username and password against data which lies in SQLServer
7.0...
Once the user is authenticated only...I want to give access to remaining
JSPs..
But he/she should not access any JSP unless authenticated by Login.jsp...
This is my problem...
what is your best possible solution
Is it anyway related to Java or Tomcat security?
If yes, how can i achieve it?
Or is there any other way around to achieve it...

Thanks for listening...
-raj-


-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 6:18 PM
To: [EMAIL PROTECTED]
Subject: RE: User login logging (JDBC authentication)



From IIS you can only set the access to Tomcat as a whole, not
individually.  Tomcat controls access to the individual resources (IIS
doesn't know what they are).

You can view (and modify) the username and password in the session,
I think the session field names are j_security_username and
j_security_password, but don't remember right now - you can get a session
object back for a secured user and then iterate over the fields.

Randy

> -Original Message-
> From: Rajehswar V. Rao [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 05, 2001 9:11 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: User login logging (JDBC authentication)
> 
> 
> Hi Randy and all,
> if that is the case where can i set username and password
> And one more thing, i am using tomcat with IIS ...can i restrict
> resources(JSPs and Servlets) on 
> tomcat from IIS...
> Any help would be appreciated
> -raj-
> 
> -Original Message-
> From: Randy Layman [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 05, 2001 5:32 PM
> To: [EMAIL PROTECTED]
> Subject: RE: User login logging (JDBC authentication)
> 
> 
> 
>   What is happening is that Tomcat is using the user's credentials
> (username/password) in the Session to authenticate.  If they 
> are not there
> or invalid, then the user is prompted to log in again.
> 
>   Randy
> 
> > -Original Message-
> > From: Mark Muffett [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, July 05, 2001 8:33 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: User login logging (JDBC authentication)
> > 
> > 
> > Raj and all
> > 
> > I've managed to make the changes (very easy), but of course 
> > it doesn't work
> > exactly as I wanted it (isn't life always like that...)
> > 
> > I've got a database which is filling up fast since a new log 
> > gets written to
> > it every time a user accesses a new page (probably about 100 
> > times each
> > session).
> > 
> > Tomcat clearly knows what a session is (since it doesn't ask 
> > the user to log
> > in again for each page) - any idea where it does this?
> > 
> > Thanks for any help.
> > 
> > Mark
> > 
> > - Original Message -
> > From: "Rajehswar V. Rao" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, July 05, 2001 12:21 PM
> > Subject: RE: User login logging (JDBC authentication)
> > 
> > 
> > > Hi Mark and all,
> > > I think my situation is also almost same
> > > I have set of JSPs under my \myContext\jsp...
> > > I dont want to give access to the users to these JSPs once 
> > they have been
> > > authnticated...
> > > One of the JSPs authenticate the user
> > > please do help...
> > > -raj-
> > >
> > > -Original Message-
> > > From: Mark Muffett [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, July 04, 2001 1:59 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: User login logging (JDBC authentication)
> > >
> > >
> > > Sorry! - found it now (in tomcat_modules.jar).
> > >
> > > Mark
> > >
> > > - Original Message -
> > > From: "Mark Muffett" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>; "Antony Bowesman" 
> > <[EMAIL PROTECTED]>
> > > Sent: Wednesday, July 04, 2001 8:37 AM
> > > Subject: Re: User login logging (JDBC authentication)
> > >
> > >
> > > > Antony
> > > >
> > > > Many thanks for the suggestion, but where can I find this 
> > - I've looked
> > > > through the jar files in the common and container directories of
> > > > $TOMCAT_HOME/lib, but nothing stands out.  Maybe I've missed it?
> > > >
> > > > Any help appreciated.
> > > >
> > > > Thanks
> > > >
> > > > Mark
> > > >
> > > >
> > > > - Original Message -
> > > > From: "Antony Bowesman" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Thursday, June 28, 2001 4:58 PM
> > > > Subject: Re: User login logging (JDBC authentication)
> > > >
> > > >
> > > > > Mark Muffett wrote:
> > > > > >
> > > > > > Any ideas how best to log succesful (or unsuccesful) 
> > logins via
> > > > > > JDBC authentication.  The big problem is that the 
> > user may have
> > > > > > bookmarked any one of a number of protected pages, 
> > and it isn't
> > 

RE: User login logging (JDBC authentication)

2001-07-05 Thread Randy Layman


You can use the Realms security infrastructure of Tomcat to achieve
what you are trying to do - you will need to modify your web.xml file, but
its pretty easy.

http://jakarta.apache.org/cvsweb/index.cgi/jakarta-tomcat/src/doc/
is the documentation for Tomcat in the CVS repository.  A quick glance there
shows a howto for the JDBCRealm (authenticating against a database).

Randy

> -Original Message-
> From: Rajehswar V. Rao [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 05, 2001 9:33 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: User login logging (JDBC authentication)
> 
> 
> Hi randy,
> I would appreciate  your patience...
> I am coming from first...
> This is my prblem
> I have 10 JSPs under myCon/jsp folder in Tomcat..
> One of them is Login.jsp...which does authentication of user...
> i check the username and password against data which lies in SQLServer
> 7.0...
> Once the user is authenticated only...I want to give access 
> to remaining
> JSPs..
> But he/she should not access any JSP unless authenticated by 
> Login.jsp...
> This is my problem...
> what is your best possible solution
> Is it anyway related to Java or Tomcat security?
> If yes, how can i achieve it?
> Or is there any other way around to achieve it...
> 
> Thanks for listening...
> -raj-
> 
> 
> -Original Message-
> From: Randy Layman [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 05, 2001 6:18 PM
> To: [EMAIL PROTECTED]
> Subject: RE: User login logging (JDBC authentication)
> 
> 
> 
>   From IIS you can only set the access to Tomcat as a whole, not
> individually.  Tomcat controls access to the individual resources (IIS
> doesn't know what they are).
> 
>   You can view (and modify) the username and password in 
> the session,
> I think the session field names are j_security_username and
> j_security_password, but don't remember right now - you can 
> get a session
> object back for a secured user and then iterate over the fields.
> 
>   Randy
> 
> > -Original Message-
> > From: Rajehswar V. Rao [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, July 05, 2001 9:11 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: User login logging (JDBC authentication)
> > 
> > 
> > Hi Randy and all,
> > if that is the case where can i set username and password
> > And one more thing, i am using tomcat with IIS ...can i restrict
> > resources(JSPs and Servlets) on 
> > tomcat from IIS...
> > Any help would be appreciated
> > -raj-
> > 
> > -Original Message-
> > From: Randy Layman [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, July 05, 2001 5:32 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: User login logging (JDBC authentication)
> > 
> > 
> > 
> > What is happening is that Tomcat is using the user's credentials
> > (username/password) in the Session to authenticate.  If they 
> > are not there
> > or invalid, then the user is prompted to log in again.
> > 
> > Randy
> > 
> > > -Original Message-
> > > From: Mark Muffett [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, July 05, 2001 8:33 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: User login logging (JDBC authentication)
> > > 
> > > 
> > > Raj and all
> > > 
> > > I've managed to make the changes (very easy), but of course 
> > > it doesn't work
> > > exactly as I wanted it (isn't life always like that...)
> > > 
> > > I've got a database which is filling up fast since a new log 
> > > gets written to
> > > it every time a user accesses a new page (probably about 100 
> > > times each
> > > session).
> > > 
> > > Tomcat clearly knows what a session is (since it doesn't ask 
> > > the user to log
> > > in again for each page) - any idea where it does this?
> > > 
> > > Thanks for any help.
> > > 
> > > Mark
> > > 
> > > - Original Message -
> > > From: "Rajehswar V. Rao" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, July 05, 2001 12:21 PM
> > > Subject: RE: User login logging (JDBC authentication)
> > > 
> > > 
> > > > Hi Mark and all,
> > > > I think my situation is also almost same
> > > > I have set of JSPs under my \myContext\jsp...
> > > > I dont want to give access to the users to these JSPs once 
> > > they have been
> > > > authnticated...
> > > > One of the JSPs authenticate the user
> > > > please do help...
> > > > -raj-
> > > >
> > > > -Original Message-
> > > > From: Mark Muffett [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, July 04, 2001 1:59 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: User login logging (JDBC authentication)
> > > >
> > > >
> > > > Sorry! - found it now (in tomcat_modules.jar).
> > > >
> > > > Mark
> > > >
> > > > - Original Message -
> > > > From: "Mark Muffett" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>; "Antony Bowesman" 
> > > <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, July 04, 2001 8:37 AM
> > > > Subject: Re: User login logging (JDBC authentication)
> > > >
> > > >
> 

Re:RE: JDBC Realm Questions Tomcat 3.2.2

2001-07-05 Thread Jonathan Pierce


>>The real question is are you just wanting jdbc datasources
>>or are you wanting a JDBC user authentication modality?  Because
>>that's what JDBCRealm is for, not for general JDBC connections.
>>Once, again I've got to say I think you are misunderstanding Realms.
>>You do not need to directly access JDBC Realms.  What exactly are
>>you trying to do.  I think what you're really looking for is a
>>DB Connection pool(s).

Okay, I was confused. I now realize that JDBC Realms are intended for
authenticating web application users, not allocating JDBC connections.

Now, JDBC 2.0 also has the concept of DataSources. In my environment, I need to
configure the datasources outside of the application war file since the database
passwords need to be changed at deployment time by the site administrator.

How do I describe a datasource resource in the Tomcat conf files, and access it
by name. I imaging I will need to be able to do get an initial context, and do a
jndi lookup to get the DataSource. I would then be able to use the datasource to
allocate a connection with getConnection without needing to know the userid or
password.

Can this be done in Tomcat 3.2.2? What about 3.3 or 4.0b5? 
If so, How? Please provide an example of what needs to be done so that I can
call:

String theDataSourceName = "MyDataSource";
Context theContext = new InitialContext ();
DataSource theDataSource = (DataSource) theContext.lookup (theDataSourceName);

Jonathan



AW: User login logging (JDBC authentication)

2001-07-05 Thread Reto Badertscher

Hello,

If you have a controller servlet it can check for authenticated user and if
a user is not logged in you can redirect to your login screen, and after a
successfull login, redirect back to the protected target.
For security reason (accessing a JSP directly without going thru the
controller servlet), every protected resource can check if a user is logged
in.

Reto

-Ursprüngliche Nachricht-
Von: Rajehswar V. Rao [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 5. Juli 2001 15:33
An: '[EMAIL PROTECTED]'
Betreff: RE: User login logging (JDBC authentication)


Hi randy,
I would appreciate  your patience...
I am coming from first...
This is my prblem
I have 10 JSPs under myCon/jsp folder in Tomcat..
One of them is Login.jsp...which does authentication of user...
i check the username and password against data which lies in SQLServer
7.0...
Once the user is authenticated only...I want to give access to remaining
JSPs..
But he/she should not access any JSP unless authenticated by Login.jsp...
This is my problem...
what is your best possible solution
Is it anyway related to Java or Tomcat security?
If yes, how can i achieve it?
Or is there any other way around to achieve it...

Thanks for listening...
-raj-


-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 6:18 PM
To: [EMAIL PROTECTED]
Subject: RE: User login logging (JDBC authentication)



From IIS you can only set the access to Tomcat as a whole, not
individually.  Tomcat controls access to the individual resources (IIS
doesn't know what they are).

You can view (and modify) the username and password in the session,
I think the session field names are j_security_username and
j_security_password, but don't remember right now - you can get a session
object back for a secured user and then iterate over the fields.

Randy

> -Original Message-
> From: Rajehswar V. Rao [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 05, 2001 9:11 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: User login logging (JDBC authentication)
>
>
> Hi Randy and all,
> if that is the case where can i set username and password
> And one more thing, i am using tomcat with IIS ...can i restrict
> resources(JSPs and Servlets) on
> tomcat from IIS...
> Any help would be appreciated
> -raj-
>
> -Original Message-
> From: Randy Layman [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 05, 2001 5:32 PM
> To: [EMAIL PROTECTED]
> Subject: RE: User login logging (JDBC authentication)
>
>
>
>   What is happening is that Tomcat is using the user's credentials
> (username/password) in the Session to authenticate.  If they
> are not there
> or invalid, then the user is prompted to log in again.
>
>   Randy
>
> > -Original Message-
> > From: Mark Muffett [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, July 05, 2001 8:33 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: User login logging (JDBC authentication)
> >
> >
> > Raj and all
> >
> > I've managed to make the changes (very easy), but of course
> > it doesn't work
> > exactly as I wanted it (isn't life always like that...)
> >
> > I've got a database which is filling up fast since a new log
> > gets written to
> > it every time a user accesses a new page (probably about 100
> > times each
> > session).
> >
> > Tomcat clearly knows what a session is (since it doesn't ask
> > the user to log
> > in again for each page) - any idea where it does this?
> >
> > Thanks for any help.
> >
> > Mark
> >
> > - Original Message -
> > From: "Rajehswar V. Rao" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, July 05, 2001 12:21 PM
> > Subject: RE: User login logging (JDBC authentication)
> >
> >
> > > Hi Mark and all,
> > > I think my situation is also almost same
> > > I have set of JSPs under my \myContext\jsp...
> > > I dont want to give access to the users to these JSPs once
> > they have been
> > > authnticated...
> > > One of the JSPs authenticate the user
> > > please do help...
> > > -raj-
> > >
> > > -Original Message-
> > > From: Mark Muffett [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, July 04, 2001 1:59 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: User login logging (JDBC authentication)
> > >
> > >
> > > Sorry! - found it now (in tomcat_modules.jar).
> > >
> > > Mark
> > >
> > > - Original Message -
> > > From: "Mark Muffett" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>; "Antony Bowesman"
> > <[EMAIL PROTECTED]>
> > > Sent: Wednesday, July 04, 2001 8:37 AM
> > > Subject: Re: User login logging (JDBC authentication)
> > >
> > >
> > > > Antony
> > > >
> > > > Many thanks for the suggestion, but where can I find this
> > - I've looked
> > > > through the jar files in the common and container directories of
> > > > $TOMCAT_HOME/lib, but nothing stands out.  Maybe I've missed it?
> > > >
> > > > Any help appreciated.
> > > >
> > > > Thanks
> > > >
> > > > Mark

RE: c++ dll

2001-07-05 Thread Everitt, Andrew

It doesn't require code, in the arguments for the JVM add the -D parameter
e.g.

java -classpath [CLASSPATH] -Djava.library.path=[Path to DLL]
org.apache.tomcat.Tomcat [args]

Andi.

> -Original Message-
> From: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
> Sent: 05 July 2001 12:49
> To: [EMAIL PROTECTED]
> Subject: RE: c++ dll
> 
> 
> Can you mail the snippet of your code?
> 
> -Original Message-
> From: Everitt, Andrew [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 05, 2001 4:26 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: c++ dll
> 
> 
> Arik,
> 
> Try setting 'java.library.path' for the JVM that you are 
> running tomcat in
> to point to the directory containing the DLL.
> 
> Andi.
> 
> Andrew Everitt
> Xerox Mobile Solutions, Cambridge. UK 
> 
> > -Original Message-
> > From: Arik Levin [mailto:[EMAIL PROTECTED]]
> > Sent: 05 July 2001 12:16
> > To: [EMAIL PROTECTED]
> > Subject: c++ dll
> > 
> > 
> > 
> > Hi.
> > 
> > I have some c++ dll, which I use thru native java class
> > at my servlet. (I call it like.. System.loadLibrary("dll name"))
> > 
> > When I use it at JRun env it works fine.
> > 
> > I have Jboss-Tomcat env, and at this env It just
> > wouldn't work. I have this Exception: UnsatisfiedLinkError.
> > 
> > 
> > Please ,,, HELP 
> > Thank's Arik 
> > 
> 



Re: mod_webapp.so

2001-07-05 Thread Alberto Torna Jr.

I can't tell you how Tomcat 4.x and Apahce are integrated.  But I can tell you how Tomcat 3.2.x & Apache work.  In the end, it was so simple!
2 things.  
1.   
Append “Include TOMCAT_HOME/conf/tomcat-apache.conf to appache’s httpd.conf file
2.  
Drop mod_jserv.dll into APACHE_HOME/modules
And it works...  Hope this helps.  

>From: "Anahi Avalos Rubio" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED] 
>To: [EMAIL PROTECTED] 
>Subject: mod_webapp.so 
>Date: Wed, 04 Jul 2001 23:28:07 -0500 
> 
>Hi all, 
> 
>I read the documentation for configurate tomcat 4.0 (into j2ee 1.3 
>and jdk 
>1.3.1 )with apache. So I read server.xml, and it tells me I need to 
>make 
>some modifications to httpd.conf. Then it says: here's how you make 
>mod_webapp.so. But I didn't find anything about this and neither 
>/src/connectors files. 
>Therefore I downloaded TOMCAT(last version: 4b05)to get 
>mod_webapp.so.Then 
>I downloaded apr(apr_20010523060225.tar.gz) 
> 
>But I don't have ./buildconf file only the ./buildconf.sh.And I 
>only 
>put this : 
>./buildconf.sh 
>./configure --with-apr=apr/apr-util/include 
>--with-apxs=/usr/java/tomcat/../src/apache1.3 
> 
>/src/Apache1.3 directory has mod_webapp.c and other that I dont 
>remember. 
> 
>But I get the error:missing apr. (something like that) 
> 
>Can anyone help me with this error message? 
> 
>or 
> 
>If I dowload mod_webapp.so to tomcat 4.0(that is the goal of the 
>previuos 
>lines), this could be fix? And What are the next steps? Or may be I 
>need to 
>change to tomcat 3.xx. 
> 
>Any help is appreciated, 
>Thanks in advance, 
> 
>Anahi 
> 
>p.d.: what is the difference between mod_jk and mod_webapp?(It is 
>The 
>version of tomcat?) 
> 
>_ 
>Get Your Private, Free E-mail from MSN Hotmail at 
>http://www.hotmail.com. 
> 
Get your FREE download of MSN Explorer at http://explorer.msn.com


-encoding option

2001-07-05 Thread Kaneda K


I sometime have this error, when I update some of my classes, and after 
stopping / restarting tomcat.

org.apache.jasper.JasperException: Unable to compile class for 
JSP/datadev/webapps/capimmo/WEB-INF/classes/com/cybericare/cas/capimmo/ProceduresSentences.java:1:
 
The source file encoding may be different with this platform encoding. 
Please use -encoding option to adjust file encoding, or apply native2ascii 
utility to make source file ASCII encoding.

So For I managed to restart by erasing all previous class and re-build it. 
but I do no understand what could be the problem.

Any advice ?


--
System Info :
Red Hat Linux release 6.2 (Zoot)
 Kernel 2.2.14-5.0 on an i686
Mysql Ver 11.12 Distrib 3.23.32
java version "1.3.0"
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
 Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)
JDBC Driver : mm.mysql-2.0.4-bin.jar
Tomcat 3.2 beta 3






RE: solved! blue screen with servlets/jsp in Apache-Tomcat

2001-07-05 Thread mendoza

hmmm, i have SP1.  maybe that's it.  i'll give it a try and then install ZoneAlarm 
again.  when things quiet down a bit here.  then i'll report.
--meg

On Thu, 05 July 2001, James Radvan wrote:

> 
> ?? I have Tomcat 3.2.2 binary distribution working flawlessly with ZoneAlarm
> on Win2000Pro SP2.  Just to let you know that it IS possible.


__
Get your FREE personalized e-mail at http://www.canada.com



Re: Xalan Redirect for multiple output from Web Page

2001-07-05 Thread Robert Koberg

>Exercise 
>
> 


I think you might want (I assume the @file is a relative path, otherwise
provide the full system path):

Exercise 

 

but, there is an XSL list which I believe is at mullberrytech.com



- Original Message -
From: "Ruairi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 3:47 AM
Subject: Xalan Redirect for multiple output from Web Page


> Hi,
>
> I need to generate a few html files from one request.  I have tried
> xt:document with little success, so  I am now trying Xalan's Redirect.  I
> run the following XSL through Cocoon and get no error messages.  However
no
> extra files are generated on the server.
>
> Is this a directory permissions issue?
>
>
> BTW, Is this a question for the users list, or the developers list?
>
> Thanks in advance.
> -Ruairi
>
> XSL File:
>
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>
> xmlns:lxslt="http://xml.apache.org/xslt";
> xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect"
> extension-element-prefixes="redirect"
>
> xmlns:xlink="http://www.w3.org/1999/xlink";
> exclude-result-prefixes="xlink">
>
>   
>
>   
> onmouseover="">
>   
>
>   
>
> Exercise Links
>
> 
>Exercise 
>
> 
>
>   
>   
>   
>  Exercise 
>  
>
>
>
>
>  
>
>  Case Study - Home
>   
> 
> 
>
> Course by  select="author"/>
>
>   
>
> 
>
> XML file:
> 
> 
> 
>
> http://www.w3.org/1999/xlink";>
>  xlink:type="simple">Ruairi O'Donnell
>   
>  xlink:type="simple"
> xlink:title="Ex1.1">Description
>  xlink:type="simple"
> xlink:title="Ex1.2">Description
>   
>   
>  xlink:type="simple"
> xlink:title="Ex1.1">Description
>  xlink:type="simple"
> xlink:title="Ex1.2">Description
>   
> 
>
>
> Regards,
> -Ruairi
> 
>




Re: PoolMan woes

2001-07-05 Thread Matt Barre

Thank you for the help. I upgraded to jdk1.3.1 which got PoolMan running. I can now 
setup
the config file and tomcat presents me with a list of available pools when I use the
packaged poolman application. I ran queries against the pool and had no problems. I
shutdown Tomcat, and changed the poolman.xml. Next time I ran PoolMan it gave me the 
error
listed below. I restored a backup copy of poolman.xml that had worked before, but the
error persists. What's the trick I'm still missing? My problem now is that I get a 
weird
error:

java.lang.NoClassDefFoundError: javax/transaction/xa/XAResource
at com.codestudio.util.JDBCPool.create(JDBCPool.java:328)
at com.codestudio.util.ObjectPool.checkOut(ObjectPool.java:214)
at com.codestudio.util.JDBCPool.requestConnection(JDBCPool.java:407)
at com.codestudio.util.SQLManager.requestConnection(SQLManager.java:193)
at com.codestudio.util.SQLUtil.executeSql(SQLUtil.java:234)
at com.codestudio.util.PoolManBean.getResults(PoolManBean.java:62)

I have PoolMan.jar in tomcat/lib as well as in /jdk1.3.1/jre/lib/ext. I would appear 
that
it finds the .jar. Thanks for the help from everyone! Sometimes I wonder if I'm ever 
going
to get this working. :)

- Original Message -
From: "Eoin Woods" <[EMAIL PROTECTED]>
To: "'Matt Barre'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2001 3:20 PM
Subject: RE: PoolMan woes


> > Method getDataSource(java.lang.String) not found in class
> com.codestudio.sql.PoolMan
>
> I use findDataSource(java.lang.String) - although both are documented in the
> JavaDoc.
>
> Is poolman.jar in your CLASSPATH when you compile?  I've just tested this
> with 2.0.1 and both findDataSource() and getDataSource() are found.
>
> Cheers,
>
> Eoin.
> -Original Message-
> From: Matt Barre [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 03, 2001 1:47 PM
> To: Eoin Woods; [EMAIL PROTECTED]
> Subject: Re: PoolMan woes
>
>
> Thanks for the tip. By taking the two suggestions I now have Tomcat somewhat
> stabilized. I
> am working on a jsp to get all the kinks worked out. I import the PoolMan
> packages but I
> get the following/weird error:
>
> Method getDataSource(java.lang.String) not found in class
> com.codestudio.sql.PoolMan
>
> According to the javadocs that is a valid function call
> Any further ideas?
>
> Thanks,
>
> Matt
> - Original Message -
> From: "Eoin Woods" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, July 03, 2001 1:18 PM
> Subject: RE: PoolMan woes
>
>
> > We're using PoolMan 2.0.x with Tomcat 3.2.x without too many problems.
> >
> > PoolMan does respond rather violently when it can't find its configuration
> > file - which is "poolman.xml" in version 2.  I put this in
> > $TOMCAT_HOME/classes and it appears to be found OK.
> >
> > If PoolMan doesn't find its configuration file, it ends up throwing a
> > NullPointerException however, I've never seen this floor Tomcat - you just
> > get an exception in the logs.
> >
> > How are you using PoolMan from within Tomcat?  We just import it into our
> > servlets and call PoolMan.findDataSource("MyDataSource") to retrieve a
> data
> > source from it and then call ds.getConnection() to force initialisation.
> >
> > One difference is that we're on Solaris with JDK 1.3.1 and you have a W2K
> > JVM.
> >
> > Eoin.
> > -Original Message-
> > From: Matt Barre [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 03, 2001 11:25 AM
> > To: [EMAIL PROTECTED]
> > Subject: PoolMan woes
> >
> >
> > I am trying to get PoolMan and TomCat to play nicely together.
> > I am developing on Win2k, Tomcat 3.2.
> >
> > My first attempt was to use version 2.0.4 of Poolman with Tomcat
> 3.2...upon
> > access
> > PoolMan.jsp, Tomcat stops running. No errors, no warnings, its terminal
> > window just
> > vanishes. I tried increasing the heap size, but that didn't seem to help.
> >
> > Next I tried installing PoolMan 1.4.1. This doesn't crash TomCat but
> > mysteriously it can't
> > find its poolman.props file. I've tried putting it in directories that I'm
> > absolutely
> > positive are in my ClassPath without luck.
> >
> > I've read the docs pretty extensively I think, but can't seem to come up
> > with an answer.
> > My overall goal is to simply add connection pooling to tomcat. If anyone
> can
> > give me some
> > pointers, thanks in advance.
> >
> > Matt




NT services applet

2001-07-05 Thread Minglong Wu



Hi,
 
I am trying to install nt_service on my win2000 
jdk131
 
How to figure out the following 
question:
 
"From the NT 
services applet, highlight your service and press start."
 
How to find the NT services apple?
 
Thanks.
 
Minglong 


RE: NT services applet

2001-07-05 Thread Randy Layman


Go to the Start Menu (the little button labeled Start in the lower
left corner of the screen) and click it.  On the menu that pops up, select
"Settings".  This will cause another menu to popup.  Select "Control Panel".
This will open a window.  Double click on the Services icon.  This is the NT
Services Applet (also called NT Services Control Panel)

Randy
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 12:17 PM
To: [EMAIL PROTECTED]
Subject: NT services applet


Hi,

I am trying to install nt_service on my win2000 jdk131

How to figure out the following question:

"From the NT services applet, highlight your service and press start."
 
How to find the NT services apple?

Thanks.

Minglong 



Re: solved! blue screen with servlets/jsp in Apache-Tomcat

2001-07-05 Thread Dominic North

As meg, I only have SP1. 

In the mean time, I've had this reply from Zone Labs:

In article <[EMAIL PROTECTED]>, Support wrote:
> (#7225-29-3430\293430)
> 
> Thank you for providing information regarding this issue.
> This is a known problem and our engineers are working towards a fix.  
> We expect this problem will be corrected in the next release. 
> When the new release is ready it will be posted on our web site, 
> and you may get an email notification, depending on your registration information.
>


Dominic North
Red-Black IT Limited
+44-7803-293753





How stable is 4.0

2001-07-05 Thread Michael Lechner



My question: is anybody using the 4.0 Beta version 
in a production environment ?
Is the current version worth giving it a try (of 
course with an internal test first).
 

I'm having some (lots) of stability problems with 
the latest tomcat release on a "quite busy" site (
up to 300 simultanious request) - and can't really 
find any solution (currently our
watchdog triggers a restart of the tomcat engine every 5-6 hours 
... all users must login in again..).
Anyone else having the same problems ? Any Ideas 
?
 
f.y.i: Tomcat (latest stable) is running on a DUAL 
PIII-800, 1GB RAM with linux kernel 2.4
using SUNs JDK. 
 
 
Michael
 
 
 


filtering IP's on Tomact

2001-07-05 Thread Paulo Roque

Hi,

Could anyone enlight me about if it is possible to filter a set of IP 
addresses on Tomcat 3.2.1 ?

Thanks!


Paulo Costa
Portugal

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




RE: JDBC Realm Questions Tomcat 3.2.2

2001-07-05 Thread Ignacio J. Ortega

Hola Kaneda:

> It does. I personally use it, and it . It is stable.
> I use mySQL mm driver.

Fine !!!

> (NB: for the mySQL user add
> autoReconnect=true
> otherwise the realms crash an no one can be indentify correctly
> that make that
> connectionURL="jdbc:mysql://LOCALHOST:3306/mydatabase?autoReco
> nnect=true"

Someone has found finally the ( there is one ;), the bug was that the
prepared statements were not correctly closed under all cirscunstances..



I'm about to fix it soon ( 3.2 and 3.3 ) it's easy but have not ime to
do it..

Stay tuned to CVS..



Saludos ,
Ignacio J. Ortega




Apache-Tomcat-mod_jk integration

2001-07-05 Thread kun yan

I am new to tomcat. When I tried to build mod_jk from tomcat souce code, I
got the following error:
apxs:Break: Command failed with rc=16777215
after all the *.c compiled.

Anyone know why and how could I get mod_jk.so?

Thanks in advance!

Regards,

Kun





Is there a quick solution for tomcat4-b5 and RMI

2001-07-05 Thread Peck, Jason

I am trying run some code from within a web-app under tomcat4-b5 that uses
rmi.  The code works fine from the command line however once called from
within a web-app I get a nasty exception when trying to get the remote
object.  Everything is running locally on a NT platform using jdk1.3_02.  I
have searched through the archives and docs but came up empty.  I saw a lot
of talk about the MalformedURLException but most of it revolved around
JBoss.  Any help would be greatly appreciated.  Please let me know if you
need any additional information.

The exception is as follows:

java.lang.reflect.InvocationTargetException: java.rmi.ServerException:
RemoteExc
eption occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested
excep
tion is:
java.net.MalformedURLException: unknown protocol: jndi
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception
is:

java.net.MalformedURLException: unknown protocol: jndi
java.net.MalformedURLException: unknown protocol: jndi
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
RemoteCall.java:245)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
220)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
at adrenalinex.mnemosyne.MnemosyneImpl_Stub.write(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at
adrenalinex.drmi.handlers.FailoverHandler.invoke(FailoverHandler.java
:201)
.
.
.
.


 
 
 
___
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is 
for the sole use of the intended recipient(s) and may contain confidential 
and privileged information.  Any unauthorized review, use, disclosure or 
distribution is prohibited.  If you are not the intended recipient, please 
contact the sender by reply e-mail and destroy all copies of the original 
message.



RE: PoolMan woes

2001-07-05 Thread Eoin Woods

Hi Matt,

PoolMan comes with a bunch of third party JAR files in the "lib"
subdirectory.  PoolMan relies upon these JAR files as well as poolman.jar.

The one you are missing here is jta.jar.

According to the PoolMan User Guide the jdbc2_0-stdext.jar, jmxri.jar,
jta.jar and xerces.jar libraries are REQUIRED.  The jmxtools.jar, ant.jar,
junit.jar and poolman-testsuite.jar files are OPTIONAL (jmxtools.jar is used
for the HTML admin agent, the rest are for development and testing).

Cheers,

Eoin.
-Original Message-
From: Matt Barre [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 10:06 AM
To: [EMAIL PROTECTED]
Subject: Re: PoolMan woes


Thank you for the help. I upgraded to jdk1.3.1 which got PoolMan running. I
can now setup
the config file and tomcat presents me with a list of available pools when I
use the
packaged poolman application. I ran queries against the pool and had no
problems. I
shutdown Tomcat, and changed the poolman.xml. Next time I ran PoolMan it
gave me the error
listed below. I restored a backup copy of poolman.xml that had worked
before, but the
error persists. What's the trick I'm still missing? My problem now is that I
get a weird
error:

java.lang.NoClassDefFoundError: javax/transaction/xa/XAResource
at com.codestudio.util.JDBCPool.create(JDBCPool.java:328)
at com.codestudio.util.ObjectPool.checkOut(ObjectPool.java:214)
at com.codestudio.util.JDBCPool.requestConnection(JDBCPool.java:407)
at
com.codestudio.util.SQLManager.requestConnection(SQLManager.java:193)
at com.codestudio.util.SQLUtil.executeSql(SQLUtil.java:234)
at com.codestudio.util.PoolManBean.getResults(PoolManBean.java:62)

I have PoolMan.jar in tomcat/lib as well as in /jdk1.3.1/jre/lib/ext. I
would appear that
it finds the .jar. Thanks for the help from everyone! Sometimes I wonder if
I'm ever going
to get this working. :)

- Original Message -
From: "Eoin Woods" <[EMAIL PROTECTED]>
To: "'Matt Barre'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2001 3:20 PM
Subject: RE: PoolMan woes


> > Method getDataSource(java.lang.String) not found in class
> com.codestudio.sql.PoolMan
>
> I use findDataSource(java.lang.String) - although both are documented in
the
> JavaDoc.
>
> Is poolman.jar in your CLASSPATH when you compile?  I've just tested this
> with 2.0.1 and both findDataSource() and getDataSource() are found.
>
> Cheers,
>
> Eoin.
> -Original Message-
> From: Matt Barre [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 03, 2001 1:47 PM
> To: Eoin Woods; [EMAIL PROTECTED]
> Subject: Re: PoolMan woes
>
>
> Thanks for the tip. By taking the two suggestions I now have Tomcat
somewhat
> stabilized. I
> am working on a jsp to get all the kinks worked out. I import the PoolMan
> packages but I
> get the following/weird error:
>
> Method getDataSource(java.lang.String) not found in class
> com.codestudio.sql.PoolMan
>
> According to the javadocs that is a valid function call
> Any further ideas?
>
> Thanks,
>
> Matt
> - Original Message -
> From: "Eoin Woods" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, July 03, 2001 1:18 PM
> Subject: RE: PoolMan woes
>
>
> > We're using PoolMan 2.0.x with Tomcat 3.2.x without too many problems.
> >
> > PoolMan does respond rather violently when it can't find its
configuration
> > file - which is "poolman.xml" in version 2.  I put this in
> > $TOMCAT_HOME/classes and it appears to be found OK.
> >
> > If PoolMan doesn't find its configuration file, it ends up throwing a
> > NullPointerException however, I've never seen this floor Tomcat - you
just
> > get an exception in the logs.
> >
> > How are you using PoolMan from within Tomcat?  We just import it into
our
> > servlets and call PoolMan.findDataSource("MyDataSource") to retrieve a
> data
> > source from it and then call ds.getConnection() to force initialisation.
> >
> > One difference is that we're on Solaris with JDK 1.3.1 and you have a
W2K
> > JVM.
> >
> > Eoin.
> > -Original Message-
> > From: Matt Barre [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 03, 2001 11:25 AM
> > To: [EMAIL PROTECTED]
> > Subject: PoolMan woes
> >
> >
> > I am trying to get PoolMan and TomCat to play nicely together.
> > I am developing on Win2k, Tomcat 3.2.
> >
> > My first attempt was to use version 2.0.4 of Poolman with Tomcat
> 3.2...upon
> > access
> > PoolMan.jsp, Tomcat stops running. No errors, no warnings, its terminal
> > window just
> > vanishes. I tried increasing the heap size, but that didn't seem to
help.
> >
> > Next I tried installing PoolMan 1.4.1. This doesn't crash TomCat but
> > mysteriously it can't
> > find its poolman.props file. I've tried putting it in directories that
I'm
> > absolutely
> > positive are in my ClassPath without luck.
> >
> > I've read the docs pretty extensively I think, but can't seem to come up
> > with an answer.
> > My overall goal is to simply add connection p

Re: filtering IP's on Tomact

2001-07-05 Thread Alberto Torna Jr.

What do you mean by filtering?

>From: "Paulo Roque" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED] 
>To: [EMAIL PROTECTED] 
>Subject: filtering IP's on Tomact 
>Date: Thu, 05 Jul 2001 16:35:35 - 
> 
>Hi, 
> 
>Could anyone enlight me about if it is possible to filter a set of 
>IP 
>addresses on Tomcat 3.2.1 ? 
> 
>Thanks! 
> 
> 
>Paulo Costa 
>Portugal 
> 
>_ 
>Get Your Private, Free E-mail from MSN Hotmail at 
>http://www.hotmail.com. 
> 
Get your FREE download of MSN Explorer at http://explorer.msn.com


restarting web-apps independently

2001-07-05 Thread Frederick Lefebvre

Would Tomcat allow us to restart web-apps independantly without having to
restart the application server(Tomcat).  


Thanks

Fred

-Original Message-
From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 04, 2001 8:13 PM
To: [EMAIL PROTECTED]
Subject: Re: Starting Tomcat Programmatically


On Wed,  4 Jul 2001 18:22, you wrote:
> What are the steps required to start programmatically from a java program
Start what?  Tomcat?

org.apache.tomcat.startup.Tomcat.Main(new String[]);

should do the trick.

cheers
dim



Making Tomcat 3.2 A Service On Win 2000 ( using jdk 1.3.0_02 )

2001-07-05 Thread Russell, Steve



Hi;
 
I 
found some instructions at jakarta.apache.org for making tomcat a 
service:
 
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/NT-Service-howto.html
 
It 
didn't answer some questions I would like to know before I 
begin.
 
1. The 
instructions mention setting TOMCAT_HOME in 
wrapper.properties.
    Lets say this is c:\tomcat.do I put it inq
 uotes?  Do I use the "\" as a path seperator or a "/"?
 
2. The 
instructions mention that there is a bug in jdk1.3 that if you follow thei
 nstructions to make
    tomcat a service and you stop the service no clean up 
will happen.  Is there anything bad about
    that?  What will not happen?   Does 
this bug also exist in jdk1.3.0_02  ?
 
Thanks 
in advance
 
Steve Russell 
Web Developer III ValueOptions - Lifescape 703-205-6589 [EMAIL PROTECTED] 
 

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender by email, delete and destroy this message and its 
attachments.


**



RE: Making Tomcat 3.2 A Service On Win 2000 ( using jdk 1.3.0_02 )

2001-07-05 Thread Tim



Steve,
 
I 
recently set Tomcat up as a service on an NT box using JavaService 
:
 
http://www.alexandriasc.com/software/JavaService/documentation.html
 
It's 
pretty straight forward to set up and has been working for a week now with no 
probs whatsoever. JavaService was originally inspired by Windows service 
issues with Tomcat so is an ideal solution.
 
Later, 
Tim.

  -Original Message-From: Russell, Steve 
  [mailto:[EMAIL PROTECTED]]Sent: 05 July 2001 
  19:48To: '[EMAIL PROTECTED]'Subject: Making 
  Tomcat 3.2 A Service On Win 2000 ( using jdk 1.3.0_02 )
  Hi;
   
  I 
  found some instructions at jakarta.apache.org for making tomcat a 
  service:
   
  http://jakarta.apache.org/tomcat/tomcat-3.3-doc/NT-Service-howto.html
   
  It 
  didn't answer some questions I would like to know before I 
  begin.
   
  1. 
  The instructions mention setting TOMCAT_HOME in 
  wrapper.properties.
      Lets say this is c:\tomcat.do I put it inq 
  uotes?  Do I use the "\" as a path seperator or a 
"/"?
   
  2. 
  The instructions mention that there is a bug in jdk1.3 that if you follow thei 
  nstructions to make
      tomcat a service and you stop the service no clean 
  up will happen.  Is there anything bad about
      that?  What will not happen?   Does 
  this bug also exist in jdk1.3.0_02  ?
   
  Thanks in advance
   
  Steve Russell 
  Web Developer III ValueOptions - Lifescape 703-205-6589 [EMAIL PROTECTED] 
   **This 
  email and any files transmitted with it are confidential andintended 
  solely for the use of the individual or entity to whom theyare addressed. 
  If you have received this email in error please notifythe sender by email, 
  delete and destroy this message and its 
  attachments.**


RE: Making Tomcat 3.2 A Service On Win 2000 ( using jdk 1.3.0_02 )

2001-07-05 Thread Russell, Steve



Thanks.
 
I just 
got it.
 
I set 
a "JDK_HOME" environ variable ( no spaces in the path ),
I 
moved the exe to the TOMCAT_HOME\bin
I 
moved their tomcat32Install.bat file to TOMCAT_HOME\bin
I ran 
the install file
I went 
to services ( windows 2000 ) and there is no "tomcat" there.
 
Any 
ideas what I didn't do?
 
Thanks 
in advance
 
Steve
 
Steve Russell 
Web Developer III ValueOptions - Lifescape 703-205-6589 [EMAIL PROTECTED] 

  -Original Message-From: Tim 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, July 05, 
  2001 3:06 PMTo: [EMAIL PROTECTED]Subject: 
  RE: Making Tomcat 3.2 A Service On Win 2000 ( using jdk 1.3.0_02 
  )
  Steve,
   
  I 
  recently set Tomcat up as a service on an NT box using JavaService 
  :
   
  http://www.alexandriasc.com/software/JavaService/documentation.html
   
  It's 
  pretty straight forward to set up and has been working for a week now with no 
  probs whatsoever. JavaService was originally inspired by Windows service 
  issues with Tomcat so is an ideal solution.
   
  Later, Tim.
  
-Original Message-From: Russell, Steve 
[mailto:[EMAIL PROTECTED]]Sent: 05 July 2001 
19:48To: '[EMAIL PROTECTED]'Subject: 
Making Tomcat 3.2 A Service On Win 2000 ( using jdk 1.3.0_02 
)
Hi;
 
I 
found some instructions at jakarta.apache.org for making tomcat a 
service:
 
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/NT-Service-howto.html
 
It 
didn't answer some questions I would like to know before I 
begin.
 
1. 
The instructions mention setting TOMCAT_HOME in 
wrapper.properties.
    Lets say this is c:\tomcat.do I put it inq 
uotes?  Do I use the "\" as a path seperator or a 
"/"?
 
2. 
The instructions mention that there is a bug in jdk1.3 that if you follow 
thei nstructions to make
    tomcat a service and you stop the service no clean 
up will happen.  Is there anything bad about
    that?  What will not happen?   Does 
this bug also exist in jdk1.3.0_02  ?
 
Thanks in advance
 
Steve Russell 
Web Developer III ValueOptions - Lifescape 703-205-6589 [EMAIL PROTECTED] 
 **This 
email and any files transmitted with it are confidential andintended 
solely for the use of the individual or entity to whom theyare 
addressed. If you have received this email in error please notifythe 
sender by email, delete and destroy this message and its 
attachments.**


Registry question

2001-07-05 Thread Bayi, Omari J.

Hello-

I'm having a little trouble following the tomcat install directions.  On
step 8 of Configuring the ISAPI Redirector in the Tomcat IIS How to
document, it states to add a "Filter DLLs" key under
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC\Parameters.
However, it doesn't say what type of value to add, what to name it, nor what
data to give it.  It simply states that this key contains a "," separated
list of dlls - "you need to insert the full path to isapi_redirect.dll."
I'm assuming you mean to create a string value under the Parameters key
named Filter DLLs and insert the path to isapi_redirect.dll in the value
data field.  If this is correct, please confirm. if not, please respond
with the correct instructions.

BTW: Does Tomcat work with Windows ME?  Caldera 2.3 eServer?  RedHat 6.2 or
7.0?  Your documents only state support for UNIX and Win32 which is a rather
vague statement.

Thanx in advance for your help!

Regards-

Omari J. Bayi
 Product Consultant
 Testing & Integration Center
 Compuware Corporation

 Office: (248) 737-7300 x10736
 Fax: (248) 737-7606
 E-Mail: 




java error in database access

2001-07-05 Thread Dwaipayan


i have been facing a problem in tomcat which i could not solve may be due to being a 
"first time user" . i will be pleased if u could tell me the source of this problem.
i have a login page where the user enters username and password in 2 text fields(user 
& pwd).the form action leads to login.jsp file.if  both are found in the table "login" 
located in Oracle8.0.4(personal edition), then the user is greeted by his username. 
else error msg is shown.when i used JdbcOdbcDriver the output was as expected.but 
immediately after the output page was displayed,an illegal operation msgbox was shown 
by java.this error does not occur sometimes.but whenever i stop tomcat and restart 
it,and acces my login page the error appears again.the error looks like the following:

[
JAVA caused an invalid page fault in
module  at :08412f90.
Registers:
EAX=083105d8 CS=0177 EIP=08412f90 EFLGS=00010297
EBX=08310908 SS=017f ESP=050dfd2c EBP=050dfd4c
ECX= DS=017f ESI=08310140 FS=3ca7
EDX=08310140 ES=017f EDI= GS=
Bytes at CS:EIP:

Stack dump:
1f7025d1 004151d0  0195 007b1ec0 00679470   050dfda4 
1f702505 08310140  0010 019512e8 007b1ec0 50472958 
]
my classpath has tomcat_home,java_home,and c:\jdk1.2.2\lib\tools.jar set appropriately
i am using Windows98 machine with 64mb ram,433mhz and with initial memory set to 
3072(thru dos window properties--memory tab).

i have tried in debugging by putting System.out.println() statements but to no avail.

i am enclosing the login.jsp file i used.
eagerly awaiting ur comments.

login.jsp:

<%@ page session="true" import="java.sql.*,sun.jdbc.odbc.*,java.io.*" %>


<% 
String s1=request.getParameter("user");
String s2=request.getParameter("pwd");
String upwd=null;
try{

if(s1.length()==8 &&  s2.length()==6)
{
System.out.println("loading driver");
 Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
System.out.println("creating connection");
Connection 
con=DriverManager.getConnection("jdbc:odbc:login","scott","tiger");
System.out.println("creating statement");
   Statement stmt=con.createStatement();

System.out.println("executing query");
ResultSet rs=stmt.executeQuery("select password from login where 
username='"+ s1+"'");
System.out.println("checking if rs is null");
if(rs!=null)
{
System.out.println("while rs exists");
while(rs.next())
{
System.out.println("retrieving password");
upwd=rs.getString("password");
}
}
System.out.println("closing connection");
con.close();
System.out.println("checking if upwd is null"); 
if(upwd!=null)
{
System.out.println("checking if upwd=s2");
if(s2.equals(upwd))
{
System.out.println("if upwd=s2");
out.println("Welcome Back to this site 
"+s1);
}
 

else
{
System.out.println("if upwd not equal to s2");
out.println("Incorrect password");
}
 
}
else
{
System.out.println("if upwd is null"); 
out.println("Incorrect username ");
}






}
else
{
System.out.println("if entered username/password are not valid");
out.println("Invalid no. of characters in username/password");
}
}
catch(Exception ex){System.out.println("inside catch"+ex);}
System.out.println("end of jsp");

 %>



Dwaipayan Datta Ray (call me Ray)
[EMAIL PROTECTED]



Buy Feng Shui Package for Rs. 151/- only, at 
http://shopping.rediff.com/shopping/fengshui_mailer.htm






RE: Registry question

2001-07-05 Thread Jann VanOver

Yes.  That is correct.  And make sure your path to isapi_redirect.dll does
NOT have any spaces in it.  This can cause problems.

-Original Message-
From: Bayi, Omari J. [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 12:29 PM
To: '[EMAIL PROTECTED]'
Subject: Registry question


Hello-

I'm having a little trouble following the tomcat install directions.  On
step 8 of Configuring the ISAPI Redirector in the Tomcat IIS How to
document, it states to add a "Filter DLLs" key under
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC\Parameters.
However, it doesn't say what type of value to add, what to name it, nor what
data to give it.  It simply states that this key contains a "," separated
list of dlls - "you need to insert the full path to isapi_redirect.dll."
I'm assuming you mean to create a string value under the Parameters key
named Filter DLLs and insert the path to isapi_redirect.dll in the value
data field.  If this is correct, please confirm. if not, please respond
with the correct instructions.

BTW: Does Tomcat work with Windows ME?  Caldera 2.3 eServer?  RedHat 6.2 or
7.0?  Your documents only state support for UNIX and Win32 which is a rather
vague statement.

Thanx in advance for your help!

Regards-

Omari J. Bayi
 Product Consultant
 Testing & Integration Center
 Compuware Corporation

 Office: (248) 737-7300 x10736
 Fax: (248) 737-7606
 E-Mail: 



java error in database access

2001-07-05 Thread Dwaipayan


i have been facing a problem in tomcat which i could not solve may be due to being a 
"first time user" . i will be pleased if u could tell me the source of this problem.
i have a login page where the user enters username and password in 2 text fields(user 
& pwd).the form action leads to login.jsp file.if  both are found in the table "login" 
located in Oracle8.0.4(personal edition), then the user is greeted by his username. 
else error msg is shown.when i used JdbcOdbcDriver the output was as expected.but 
immediately after the output page was displayed,an illegal operation msgbox was shown 
by java.this error does not occur sometimes.but whenever i stop tomcat and restart 
it,and acces my login page the error appears again.the error looks like the following:

[
JAVA caused an invalid page fault in
module  at :08412f90.
Registers:
EAX=083105d8 CS=0177 EIP=08412f90 EFLGS=00010297
EBX=08310908 SS=017f ESP=050dfd2c EBP=050dfd4c
ECX= DS=017f ESI=08310140 FS=3ca7
EDX=08310140 ES=017f EDI= GS=
Bytes at CS:EIP:

Stack dump:
1f7025d1 004151d0  0195 007b1ec0 00679470   050dfda4 
1f702505 08310140  0010 019512e8 007b1ec0 50472958 
]
my classpath has tomcat_home,java_home,and c:\jdk1.2.2\lib\tools.jar set appropriately
i am using Windows98 machine with 64mb ram,433mhz and with initial memory set to 
3072(thru dos window properties--memory tab).

i have tried in debugging by putting System.out.println() statements but to no avail.

i am enclosing the login.jsp file i used.
eagerly awaiting ur comments.

login.jsp:

<%@ page session="true" import="java.sql.*,sun.jdbc.odbc.*,java.io.*" %>


<% 
String s1=request.getParameter("user");
String s2=request.getParameter("pwd");
String upwd=null;
try{

if(s1.length()==8 &&  s2.length()==6)
{
System.out.println("loading driver");
 Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
System.out.println("creating connection");
Connection 
con=DriverManager.getConnection("jdbc:odbc:login","scott","tiger");
System.out.println("creating statement");
   Statement stmt=con.createStatement();

System.out.println("executing query");
ResultSet rs=stmt.executeQuery("select password from login where 
username='"+ s1+"'");
System.out.println("checking if rs is null");
if(rs!=null)
{
System.out.println("while rs exists");
while(rs.next())
{
System.out.println("retrieving password");
upwd=rs.getString("password");
}
}
System.out.println("closing connection");
con.close();
System.out.println("checking if upwd is null"); 
if(upwd!=null)
{
System.out.println("checking if upwd=s2");
if(s2.equals(upwd))
{
System.out.println("if upwd=s2");
out.println("Welcome Back to this site 
"+s1);
}
 

else
{
System.out.println("if upwd not equal to s2");
out.println("Incorrect password");
}
 
}
else
{
System.out.println("if upwd is null"); 
out.println("Incorrect username ");
}






}
else
{
System.out.println("if entered username/password are not valid");
out.println("Invalid no. of characters in username/password");
}
}
catch(Exception ex){System.out.println("inside catch"+ex);}
System.out.println("end of jsp");

 %>



Dwaipayan Datta Ray (call me Ray)
[EMAIL PROTECTED]



Buy Feng Shui Package for Rs. 151/- only, at 
http://shopping.rediff.com/shopping/fengshui_mailer.htm






generic exceptions on startup

2001-07-05 Thread wire

This is a partial list of exceptions that I'm getting at startup (Win
98, 3.2.1). Anybody know what's going on?

TOMCAT_HOME is properly set to C:\tomcat   Not Apache nor IIS nor NS
(whatever that is) are not involved in my setup at all.

Thanks.


java.lang.Exception
at org.apache.tomcat.core.ContextManager.getHome(ContextManager.java:224
)
at org.apache.tomcat.core.ContextManager.getAbsolute(ContextManager.java
:1512)
at org.apache.tomcat.context.LoaderInterceptor.contextInit(LoaderInterce
ptor.java:111)
at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java
:491)
at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
java.lang.Exception
at org.apache.tomcat.core.ContextManager.getHome(ContextManager.java:224
)
at org.apache.tomcat.core.ContextManager.getAbsolute(ContextManager.java
:1512)
at org.apache.tomcat.context.LoaderInterceptor.contextInit(LoaderInterce
ptor.java:116)
at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java
:491)
at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
java.lang.Exception
at org.apache.tomcat.core.ContextManager.getHome(ContextManager.java:224
)
at org.apache.tomcat.task.ApacheConfig.execute(ApacheConfig.java:92)
at org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:217
)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:200)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
java.lang.Exception
at org.apache.tomcat.core.ContextManager.getHome(ContextManager.java:224
)
at org.apache.tomcat.task.IISConfig.execute(IISConfig.java:87)
at org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:223
)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:200)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
java.lang.Exception
at org.apache.tomcat.core.ContextManager.getHome(ContextManager.java:224
)
at org.apache.tomcat.task.NSConfig.execute(NSConfig.java:86)
at org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:229
)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:200)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)





RE: Making Tomcat 3.2 A Service On Win 2000 ( using jdk 1.3.0_02 )

2001-07-05 Thread Randy Layman


1.  No quotes and no spaces in filenames allowed.  Use one backslash
(\) in your paths.  The examples that come in the conf directory are
correctly formatted, but probably for the wrong directories.
2.  Sun fixed the problem for JDK 1.3.1.  All 1.3.0 versions have
problems.  Also, all versions of the 1.2.1, 1.2.2, 1.1.8, and 1.1.7 line
that I have worked with have been fine, although rumor has it that some
versions of 1.2.0 had the same problem.  Also, rumor has it that beta 1.4
works fine as a service (but has other issues).

Randy

-Original Message-
From: Russell, Steve [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 2:48 PM
To: '[EMAIL PROTECTED]'
Subject: Making Tomcat 3.2 A Service On Win 2000 ( using jdk 1.3.0_02 )


Hi;
 
I found some instructions at jakarta.apache.org for making tomcat a service:
 
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/NT-Service-howto.html
 
It didn't answer some questions I would like to know before I begin.
 
1. The instructions mention setting TOMCAT_HOME in wrapper.properties.
Lets say this is c:\tomcat.do I put it inq uotes?  Do I use the "\"
as a path seperator or a "/"?
 
2. The instructions mention that there is a bug in jdk1.3 that if you follow
thei nstructions to make
tomcat a service and you stop the service no clean up will happen.  Is
there anything bad about
that?  What will not happen?   Does this bug also exist in jdk1.3.0_02
?
 
Thanks in advance

Steve Russell 
Web Developer III 
ValueOptions - Lifescape 
703-205-6589 
[EMAIL PROTECTED] 
 


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender by email, delete and destroy this message and its 
attachments.


**



RE: generic exceptions on startup

2001-07-05 Thread William Kaufman

Looking at the source code, he's just throwing the execption to himself as a
debugging message.  You could turn it off by dropping your debug level to
20, but I wouldn't worry too much about it.

-- Bill K. 

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 05, 2001 12:50 PM
> To: [EMAIL PROTECTED]
> Subject: generic exceptions on startup
> Importance: High
> 
> 
> This is a partial list of exceptions that I'm getting at startup (Win
> 98, 3.2.1). Anybody know what's going on?
> 
> TOMCAT_HOME is properly set to C:\tomcat   Not Apache nor IIS nor NS
> (whatever that is) are not involved in my setup at all.
> 
> Thanks.
> 
> 
> java.lang.Exception
> at 
> org.apache.tomcat.core.ContextManager.getHome(ContextManager.java:224
> )
> at 
> org.apache.tomcat.core.ContextManager.getAbsolute(ContextManager.java
> :1512)
> at 
> org.apache.tomcat.context.LoaderInterceptor.contextInit(LoaderInterce
> ptor.java:111)
> at 
> org.apache.tomcat.core.ContextManager.initContext(ContextManager.java
> :491)
> at 
> org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
> at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
> java.lang.Exception
> at 
> org.apache.tomcat.core.ContextManager.getHome(ContextManager.java:224
> )
> at 
> org.apache.tomcat.core.ContextManager.getAbsolute(ContextManager.java
> :1512)
> at 
> org.apache.tomcat.context.LoaderInterceptor.contextInit(LoaderInterce
> ptor.java:116)
> at 
> org.apache.tomcat.core.ContextManager.initContext(ContextManager.java
> :491)
> at 
> org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
> at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
> java.lang.Exception
> at 
> org.apache.tomcat.core.ContextManager.getHome(ContextManager.java:224
> )
> at 
> org.apache.tomcat.task.ApacheConfig.execute(ApacheConfig.java:92)
> at 
> org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:217
> )
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:200)
> at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
> java.lang.Exception
> at 
> org.apache.tomcat.core.ContextManager.getHome(ContextManager.java:224
> )
> at org.apache.tomcat.task.IISConfig.execute(IISConfig.java:87)
> at 
> org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:223
> )
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:200)
> at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
> java.lang.Exception
> at 
> org.apache.tomcat.core.ContextManager.getHome(ContextManager.java:224
> )
> at org.apache.tomcat.task.NSConfig.execute(NSConfig.java:86)
> at 
> org.apache.tomcat.startup.Tomcat.generateServerConfig(Tomcat.java:229
> )
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:200)
> at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
> 
> 



RE: java error in database access

2001-07-05 Thread Randy Layman


Your problem is the JDBC-ODBC Bridge.  Search through Sun's
BugParade for more detailed information, but basically the bridge is not
thread-safe and concurrent access will cause Page Fault/GPF/Dr Watson errors
on Windows based computers.

Randy

> -Original Message-
> From: Dwaipayan [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 05, 2001 3:37 PM
> To: [EMAIL PROTECTED]
> Subject: java error in database access
> 
> 
> 
> i have been facing a problem in tomcat which i could not 
> solve may be due to being a "first time user" . i will be 
> pleased if u could tell me the source of this problem.
> i have a login page where the user enters username and 
> password in 2 text fields(user & pwd).the form action leads 
> to login.jsp file.if  both are found in the table "login" 
> located in Oracle8.0.4(personal edition), then the user is 
> greeted by his username. else error msg is shown.when i used 
> JdbcOdbcDriver the output was as expected.but immediately 
> after the output page was displayed,an illegal operation 
> msgbox was shown by java.this error does not occur 
> sometimes.but whenever i stop tomcat and restart it,and acces 
> my login page the error appears again.the error looks like 
> the following:
> 
> [
> JAVA caused an invalid page fault in
> module  at :08412f90.
> Registers:
> EAX=083105d8 CS=0177 EIP=08412f90 EFLGS=00010297
> EBX=08310908 SS=017f ESP=050dfd2c EBP=050dfd4c
> ECX= DS=017f ESI=08310140 FS=3ca7
> EDX=08310140 ES=017f EDI= GS=
> Bytes at CS:EIP:
> 
> Stack dump:
> 1f7025d1 004151d0  0195 007b1ec0 00679470 
>   050dfda4 1f702505 08310140  
> 0010 019512e8 007b1ec0 50472958 
> ]
> my classpath has tomcat_home,java_home,and 
> c:\jdk1.2.2\lib\tools.jar set appropriately
> i am using Windows98 machine with 64mb ram,433mhz and with 
> initial memory set to 3072(thru dos window properties--memory tab).
> 
> i have tried in debugging by putting System.out.println() 
> statements but to no avail.
> 
> i am enclosing the login.jsp file i used.
> eagerly awaiting ur comments.
> 
> login.jsp:
> 
> <%@ page session="true" 
> import="java.sql.*,sun.jdbc.odbc.*,java.io.*" %>
> 
> 
> <% 
> String s1=request.getParameter("user");
> String s2=request.getParameter("pwd");
> String upwd=null;
> try{
> 
> if(s1.length()==8 &&  s2.length()==6)
> {
>   System.out.println("loading driver");
>  Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
>   System.out.println("creating connection");
> Connection 
> con=DriverManager.getConnection("jdbc:odbc:login","scott","tiger");
>   System.out.println("creating statement");
>Statement stmt=con.createStatement();
>   
>   System.out.println("executing query");
> ResultSet rs=stmt.executeQuery("select 
> password from login where username='"+ s1+"'");
>   System.out.println("checking if rs is null");
> if(rs!=null)
>   {
>   System.out.println("while rs exists");
>   while(rs.next())
>   {
>   
> System.out.println("retrieving password");
>   upwd=rs.getString("password");
>   }
>   }
>   System.out.println("closing connection");
>   con.close();
>   System.out.println("checking if upwd is null"); 
>   if(upwd!=null)
>   {
>   System.out.println("checking if 
> upwd=s2");
>   if(s2.equals(upwd))
>   {
>   System.out.println("if 
> upwd=s2");
>   
> out.println("Welcome Back to this site "+s1);
>   }
>  
> 
>   else
>   {
>   System.out.println("if 
> upwd not equal to s2");
>   out.println("Incorrect 
> password");
>   }
>
>   }
>   else
>   {
>   System.out.println("if upwd is 
> null"); 
>   out.println("Incorrect 
> username ");
>   }
> 
> 
> 
> 
> 
> 
> }
> else
> {
>   System.out.println("if entered 
> username/password are not valid");
>   out.println("Invalid no. of characters in username/password");
> }
> }
> catch(Exception ex){System.out.println("inside catch"+ex);}
> System.out.println("end of jsp");
> 
>  %>
> 
> 
> 
> Dwaipayan Datta Ray (call me Ray)
> [EMAIL PROTECTED]
> 
> 
> 

Re: PoolMan woes

2001-07-05 Thread Matt Barre

One more thing to go and I think I'll be there :) My dev system uses SQL Server which
works perfectly with PoolMan currently. My prod system is running MySQL. Currently 
MySQL
gives an error saying user:'web@' not valid. I have made multiple entries in the mysql
user table for the same user...from the hosts: localhost, 127.0.0.1 etcdoesn't 
seem to
help...even have one with a blank host and one with a %.  I did some very primitive 
load
testing this afternoon with PoolMan and was really impressed. It appears to do a better
job of connection pooling than JBoss which is what I was using before this, and simply 
for
its connection pooling. Thanks for all the help so far. Anyone happen to know offhand 
why
PoolMan doesn't work with Tomcat4b5?

Matt


- Original Message -
From: "Eoin Woods" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "'Matt Barre '" <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 12:11 PM
Subject: RE: PoolMan woes


> Hi Matt,
>
> PoolMan comes with a bunch of third party JAR files in the "lib"
> subdirectory.  PoolMan relies upon these JAR files as well as poolman.jar.
>
> The one you are missing here is jta.jar.
>
> According to the PoolMan User Guide the jdbc2_0-stdext.jar, jmxri.jar,
> jta.jar and xerces.jar libraries are REQUIRED.  The jmxtools.jar, ant.jar,
> junit.jar and poolman-testsuite.jar files are OPTIONAL (jmxtools.jar is used
> for the HTML admin agent, the rest are for development and testing).
>
> Cheers,
>
> Eoin.
> -Original Message-
> From: Matt Barre [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 05, 2001 10:06 AM
> To: [EMAIL PROTECTED]
> Subject: Re: PoolMan woes
>
>
> Thank you for the help. I upgraded to jdk1.3.1 which got PoolMan running. I
> can now setup
> the config file and tomcat presents me with a list of available pools when I
> use the
> packaged poolman application. I ran queries against the pool and had no
> problems. I
> shutdown Tomcat, and changed the poolman.xml. Next time I ran PoolMan it
> gave me the error
> listed below. I restored a backup copy of poolman.xml that had worked
> before, but the
> error persists. What's the trick I'm still missing? My problem now is that I
> get a weird
> error:
>
> java.lang.NoClassDefFoundError: javax/transaction/xa/XAResource
> at com.codestudio.util.JDBCPool.create(JDBCPool.java:328)
> at com.codestudio.util.ObjectPool.checkOut(ObjectPool.java:214)
> at com.codestudio.util.JDBCPool.requestConnection(JDBCPool.java:407)
> at
> com.codestudio.util.SQLManager.requestConnection(SQLManager.java:193)
> at com.codestudio.util.SQLUtil.executeSql(SQLUtil.java:234)
> at com.codestudio.util.PoolManBean.getResults(PoolManBean.java:62)
>
> I have PoolMan.jar in tomcat/lib as well as in /jdk1.3.1/jre/lib/ext. I
> would appear that
> it finds the .jar. Thanks for the help from everyone! Sometimes I wonder if
> I'm ever going
> to get this working. :)
>
> - Original Message -
> From: "Eoin Woods" <[EMAIL PROTECTED]>
> To: "'Matt Barre'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Tuesday, July 03, 2001 3:20 PM
> Subject: RE: PoolMan woes
>
>
> > > Method getDataSource(java.lang.String) not found in class
> > com.codestudio.sql.PoolMan
> >
> > I use findDataSource(java.lang.String) - although both are documented in
> the
> > JavaDoc.
> >
> > Is poolman.jar in your CLASSPATH when you compile?  I've just tested this
> > with 2.0.1 and both findDataSource() and getDataSource() are found.
> >
> > Cheers,
> >
> > Eoin.
> > -Original Message-
> > From: Matt Barre [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 03, 2001 1:47 PM
> > To: Eoin Woods; [EMAIL PROTECTED]
> > Subject: Re: PoolMan woes
> >
> >
> > Thanks for the tip. By taking the two suggestions I now have Tomcat
> somewhat
> > stabilized. I
> > am working on a jsp to get all the kinks worked out. I import the PoolMan
> > packages but I
> > get the following/weird error:
> >
> > Method getDataSource(java.lang.String) not found in class
> > com.codestudio.sql.PoolMan
> >
> > According to the javadocs that is a valid function call
> > Any further ideas?
> >
> > Thanks,
> >
> > Matt
> > - Original Message -
> > From: "Eoin Woods" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Tuesday, July 03, 2001 1:18 PM
> > Subject: RE: PoolMan woes
> >
> >
> > > We're using PoolMan 2.0.x with Tomcat 3.2.x without too many problems.
> > >
> > > PoolMan does respond rather violently when it can't find its
> configuration
> > > file - which is "poolman.xml" in version 2.  I put this in
> > > $TOMCAT_HOME/classes and it appears to be found OK.
> > >
> > > If PoolMan doesn't find its configuration file, it ends up throwing a
> > > NullPointerException however, I've never seen this floor Tomcat - you
> just
> > > get an exception in the logs.
> > >
> > > How are you using PoolMan from within Tomcat?  We just import it into
> our
> > > servlets and call PoolMan.findDataSource("MyDataSource") to retrieve 

admin password

2001-07-05 Thread Chris Kmiec

Does anyone know what the password is to get into the Admin tool that comes 
with the standard installation of tomcat? I didn't find anything of 
relevance in the /webapps/admin/Web-inf/web.xml file or anywhere in its 
vicinity. I tried the various combinations of Admin/Admin, Admin/Tomact 
username and passwords without success. How is that access controlled? Is 
there some good documentation on this? I wasn't able to find anything 
relevant in the installation guide or user doc. Am I looking in the wrong 
places?

Thanks for the help!
--Chris
_
Get your FREE download of MSN Explorer at http://explorer.msn.com




Re: admin password

2001-07-05 Thread David Herder

I believe that it has something to do with editing the tomcat-user.xml file
to match what the (admin context) web.xml file states for the particular
role.

I am trying to solve this problem, too, so if you find out, please let me
know.

dave

--
>From: "Chris Kmiec" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: admin password
>Date: Thu, Jul 5, 2001, 4:42 PM
>

> Does anyone know what the password is to get into the Admin tool that comes
> with the standard installation of tomcat? I didn't find anything of
> relevance in the /webapps/admin/Web-inf/web.xml file or anywhere in its
> vicinity. I tried the various combinations of Admin/Admin, Admin/Tomact
> username and passwords without success. How is that access controlled? Is
> there some good documentation on this? I wasn't able to find anything
> relevant in the installation guide or user doc. Am I looking in the wrong
> places?
>
> Thanks for the help!
> --Chris
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
> 



web.xml and taglibs

2001-07-05 Thread Mike Jackson

I've got a custom tag library that works on my devel system (win32, tomcat
by itself), but
when I go over to the production system (unixware, apache->mod_jk->tomcat)
my library doesn't
seem to be working.  I'm using the following entry in the web.xml file:


  /cditaglib
  cditaglib.tld


And here's the contents of the cditaglib.tld file (without the xml header
stuff):


1.0
1.1
cdi
/
  CDI's tag libraries


checkpriv
com.cdi.taglib.security.CheckPriv
This simple tag will implement security
checking

privledge
true




isadmin
com.cdi.taglib.security.IsAdmin
This simple tag will implement security
checking



This is the same as in the file on the dev machine (which works).  I've
tried putting the
entry both into the web app's web.xml and the "master" web.xml.  It doesn't
seem to be seeing
it either way, nor does it give any error messages.  Does anyone have any
ideas what I can
look at next?  Or should I upgrade tomcat perhaps?  Or is there a debug
setting I can turn
up?

Also if anyone wants/needs to see

--mikej
-=-
mike jackson
[EMAIL PROTECTED]







mod_jk build on Solaris 2.6

2001-07-05 Thread kun yan

Hi,

I installed

Apache 1.3.20
Tomcat 3.2.2

on Solaris.

I tried to build mod_jk.so but get the following error.

gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/mnt/sdt/kunyan/apache/include -I/usr/java1.2/include/solaris -I../jk
-I/usr/java1.2/include -DSOLARIS  -c mod_jk.c
:
:
gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
-I/mnt/sdt/kunyan/apache/include -I/usr/java1.2/include/solaris -I../jk
-I/usr/java1.2/include -DSOLARIS  -c ../jk/jk_worker.c
  -o mod_jk.so jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o
jk_pool.o jk_nwmain.o jk_msg_buff.o jk_map.o jk_lb_worker.o
jk_jni_worker.o jk_connect.o jk_ajp13_worker.o jk_ajp13.o
jk_ajp12_worker.o mod_jk.o -lposix4
apxs:Break: Command failed with rc=16777215

The command is:
apxs -o mod_jk.so -DSOLARIS
-I/usr/java1.2/include/solaris -I..
/jk -I/usr/java1.2/include -l posix4 -c *.c ../jk/*.c

Does anyone have faced the same problem? How did you solve it?

Any help or hint will be really appreciated.

Regards,

Kun




Re: admin password

2001-07-05 Thread Grim Shieldsson

If you look in the webapp/admin/WEB-INF/web.xml file, you'll notice
that the roe is set to admin.  Then you go into the tomcat-user.xml
file, and make sure that a user in that file has the role of admin.
Voila.

--- David Herder <[EMAIL PROTECTED]> wrote:
> I believe that it has something to do with editing the
> tomcat-user.xml file
> to match what the (admin context) web.xml file states for the
> particular
> role.
> 
> I am trying to solve this problem, too, so if you find out, please
> let me
> know.
> 
> dave
> 
> --
> >From: "Chris Kmiec" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: admin password
> >Date: Thu, Jul 5, 2001, 4:42 PM
> >
> 
> > Does anyone know what the password is to get into the Admin tool
> that comes
> > with the standard installation of tomcat? I didn't find anything of
> > relevance in the /webapps/admin/Web-inf/web.xml file or anywhere in
> its
> > vicinity. I tried the various combinations of Admin/Admin,
> Admin/Tomact
> > username and passwords without success. How is that access
> controlled? Is
> > there some good documentation on this? I wasn't able to find
> anything
> > relevant in the installation guide or user doc. Am I looking in the
> wrong
> > places?
> >
> > Thanks for the help!
> > --Chris
> > _
> > Get your FREE download of MSN Explorer at http://explorer.msn.com
> >
> > 


=
Grim Shieldsson (James A Barrows)
Acting Chieftain of Clan StormWolf
Barbarian Freehold Alliance
Oppurtunity doesn't knock.  It only presents itself after you kick down the door.
--Kyle Chandler

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Re: JSP / JavaBean problem

2001-07-05 Thread Boris Niyazov

According to JSP specs if you're attemting to initialize a bean property from a 
request parameter that does not exist or is defined as an empty value then 
 command has no effect: the tag is just ignored. More exactly 
(from the JSP 1.1 spec):
"If the param is not set in the Request object, or if it has the value of "", 
the jsp:setProperty element has no effect (a noop)"

hth
*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 


>
>Hi, I'm new to this list, and hope this is the appropriate forum.  Kick me
>over to a developer forum if not...
>
>I am developing JSPs with JavaBeans and have run into an issue with "blank"
>input fields on the form.  An empty string, "", is NOT passed to the setter
>method on my beans.  I have researched the source code in
>JspRuntimeLibrary.java and found the introspect (Tomcat 3.1) /
>introspectHelper (Tomcat 3.2.1) method intentionally excludes parameters
>that have a NULL or "" value - of course NULL could never happen because of
>the flow of the code, but never mind that.
>
>I guess my question is this.  Is this correct functionality.  I have read
>the JSP 1.1 specification on the topic of the setProperty tag, and it is NOT
>specific regarding this matter.  It is a huge problem for me because I have
>beans that have a session scope and a particular property of the bean may be
>"Fred" but if I blank out the related input field it doesn't overwrite the
>value in the bean when I submit the form.  Hope this makes sense.
>
>Any and all help would be appreciated.
>
>Thanks!
>
>Michael W. Housman Jr.
>Optimal Systems Design, Inc.
>Consulting at Wells Fargo Services Company
>Phone:  612.341.9784
>Cell:   612.386.6785
>Office: 763.537.2631




RE: Does Apache Come With Tomcat Built In or Pre Integrated?

2001-07-05 Thread Jann VanOver

It doesn't.

Not everyone who needs Apache needs Tomcat and vice-versa.

-Original Message-
From: Russell, Steve [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 6:33 AM
To: '[EMAIL PROTECTED]'
Subject: Does Apache Come With Tomcat Built In or Pre Integrated?


Just curious if it does or doesn't.

If it doesn't, why not.  I'm sure there is a good reason.  I'm just curious

Steve

Steve Russell

Web Developer III
ValueOptions - Lifescape
703-205-6589
[EMAIL PROTECTED]


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender by email, delete and destroy this message and its 
attachments.


**



RE: document with Cocoon?

2001-07-05 Thread Jann VanOver



Perhaps you need a "/" before a ">" somewhere
 
Maybe
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"xmlns:xt="http://www.jclark.com/xml/xt.html"    
xmlns:xlink="http://www.w3.org/1999/xlink"    
    
extension-element-prefixes="xt"    
exclude-result-prefixes="xlink"    
>
Should be
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"xmlns:xt="http://www.jclark.com/xml/xt.html"    
xmlns:xlink="http://www.w3.org/1999/xlink"    
    
extension-element-prefixes="xt"    
exclude-result-prefixes="xlink"    
/>

  -Original Message-From: Ruairi 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 04, 2001 12:11 
  PMTo: [EMAIL PROTECTED]Subject: xt:document 
  with Cocoon?
  Hi
   
  I 
  want to show an example of using XT in particular xt:document output of 
  multiple files.  I get an error message saying :
  "Call to extension element failed: The declaration 
  for the entity "HTML.Version" must end with '>'."Any 
  suggestions?
  Regards,-Ruairi
  Here is my 
  XSL:
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"xmlns:xt="http://www.jclark.com/xml/xt.html"    
  xmlns:xlink="http://www.w3.org/1999/xlink"    
      
  extension-element-prefixes="xt"    
  exclude-result-prefixes="xlink"    
  >    
    
    
     {@xlink:href}" 
  >  
  
    
     
      Exercise 
  Links           
  Exercise'>{@file}">Exercise    
     {@file}" 
  method="html4.0">  
    
    
   
  Exercise  
   
     
     
     
   
   
   
  Case Study - 
  Home  
     
      
          Course by 
  {author/@xlink:href}"> 
  select="author"/>       
    
  
   
  Here 
  is my XML:
  
  http://www.w3.org/1999/xlink">  
    
  xlink:type="simple">Ruairi O'Donnell          
  xlink:type="simple" 
  xlink:title="Ex1.1">Description    
      
  xlink:type="simple" 
  xlink:title="Ex1.2">Description  
        
  xlink:type="simple" 
  xlink:title="Ex1.1">Description  
    
  xlink:type="simple" 
  xlink:title="Ex1.2">Description  
  


Tomcat 3.2.2 servlet log problems

2001-07-05 Thread Debra Bartling

I have just installed Tomcat 3.2.2 (binary distribution, Solaris 7, Java 
1.3.0_02, mod_jk built from source, Apache 1.3.19) and I'm having two 
problems with the logs.

FIRST: My servlets are not writing to any of my log files when I call 
log("message"). The log files get created OK when I start tomcat 
(jasper.log, servlet.log, and tomcat.log) and I see the servlet init and 
destroy messages in the servlet.log, so tomcat is able to write to the logs.

I have tried suggestions from archives of this list -- log (String, 
Throwable), getServletContext().log(...), and init(config) vs. init() -- 
without success. I have another system with a very old version of Apache 
JServ (and the old JSDK 2.0) and the same servlets write to jserv.log with 
no problem, but not under Tomcat, so I'm assuming the servlets themselves 
are fine and something is not configured correctly.

SECOND: My tomcat.log is full of these messages:

[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, 
NULL parameter
[jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, 
NULL parameters

Otherwise everything appears to be working correctly. I can run all the 
examples and my servlets get executed correctly. Can anyone help?


Debra Bartling
Programmer/Analyst
Earthquake Engineering Research Center
University of California, Berkeley
Phone: 510-231-9558




RE:TOMCAT LOG FILE BEHAVIOUR

2001-07-05 Thread Boris Niyazov

It's a feature. I'm not sure what you can do on NT but on unix we have written a 
script that moves all logs in an archive and then restarts tomcat. You may want 
to modify your tomcat startup.bat script to add this functionality.

*
* Boris NiyazovPh:  212-854-4094  Fax: 212-854-1749 *
* Systems Manager  Email: [EMAIL PROTECTED] * 
* Columbia Law School  URL: http://www.law.columbia.edu *
*  
 

>
>Hi,
>
>(Tomcat 3.2.1, Windows 2000, JDK 1.3.1)
>
>Does anyone know what the behaviour of log files is in Tomcat?
>
>I have noticed that each time that Tomcat is restarted, the log files get
>wiped clean.
>
>What happens if I have Tomcat running as a NT service? Do the files get
>wiped after a certain time period or do they just grow and grow until the
>files reach some maximum size. If so what happens then?
>
>What advice would you give me on how to setup the logfiles for Tomcat
>running as an NT service.
>
>I have not seen any information about this in the documentation or any
>relevant information in the archives.
>
>Thanks.
>
>Tim.
>
>
>This message contains information that may be privileged or confidential and is 
the property of the Cap Gemini Ernst & Young Group. It is intended only for the 
person to whom it is addressed. If you are not the intended recipient, you are 
not authorized to read, print, retain, copy, disseminate, distribute, or use 
this message or any part thereof. If you receive this message in error, please 
notify the sender immediately and delete all copies of this message.




Re: http errors

2001-07-05 Thread Francisco Areas Guimaraes



I tried what you said, put the  
in the web.xml in the WEB-INF inside my app(webapps/test/WEB-INF) and in the 
web.xml in the conf directory( tomcat/conf). I´m using tomcat 3.2.1 and win2000, 
i tried in tomcat 3.3 and it didn´t workout either, what could be 
wrong?

  - Original Message - 
  From: 
  Hughes, Tim 
  
  To: '[EMAIL PROTECTED]' 
  
  Sent: Wednesday, July 04, 2001 4:39 
  AM
  Subject: RE: http errors
  
  Hi,
   
  You will find a 
  full copy of the **default** web.xml in TOMCAT_HOME/conf/.
   
  What is the 
  default web.xml --> Extract from the user guide (which you will find at 
  TOMCAT_HOME\doc\uguide\tomcat_ug.html: recommended 
reading)
  [A detailed description of web.xml and the web application 
  structure (including directory structure and configuration) is available in 
  chapters 9, 10 and 14 of the Servlet 
  API Spec and we are not going to write 
  about it. 
  
  There is however a small Tomcat related 
  "feature" that is related to web.xml. Tomcat lets the user define defaultw 
  eb.xml values for all context by putting a default web.xml file in the conf 
  directory. When constructing a new Context, Tomcat uses the default web.xml 
  file as the base configuration and the application specific web.xml (the one 
  located in the application's WEB-INF/web.xml), only overwrite these 
  defaults.]
  So if you want 
  the error pages to apply to all webapps then you put the error page tags in 
  the default web.xml like this:
  
  
  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
  "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
  
  
   
  
  javax.servlet.TryagainException
  /errors/TryAgain.html
  
   
  
  
  503
  
  /errors/TryAgain.html
  
  
  (I assume that 
  you have renamed the directories and files accordingly: errors directory and 
  TryAgain.html file are only examples).
  If you only 
  want the error pages to apply to a particular webapp then you should create a 
  web.xml file that you place in TOMCAT_HOME/webapps/yourWebApp/WEB-INF. This 
  file should look like this:
  
  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
  "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
  
  
  javax.servlet.TryagainException
  /errors/TryAgain.html
  
   
  
  
  503
  
  /errors/TryAgain.html
  
  
  I hope this 
  works.
   
  Tim Hughes  
  
-Original Message-From: Francisco Areas Guimaraes 
[mailto:[EMAIL PROTECTED]]Sent: 4. juli 2001 02:25To: 
[EMAIL PROTECTED]Subject: Re: http 
errors
it didn´t work...could you please give a 
"complete" web.xml? and where should I put this file? in %TOMCAT_HOME%/conf 
or somewhere else? I´m using tomcat 3.2.2 and win2k, I would like any help 
you could provide, because I just started working with tomcat.
 
thanks,
 
Francisco
[EMAIL PROTECTED]

  - Original Message - 
  From: 
  Hughes, 
  Tim 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Tuesday, July 03, 2001 4:29 
  AM
  Subject: RE: http errors
  
  Hi,
   
  Using 
   elements in the web.xml, you can program web 
  applications to handle HTTP errors and exceptions.
   
  The deployment 
  description below makes the container send the /errors/TryAgain.html file 
  if either a TryAgainExeption or the 
  HttpServletResponse.SC_SERVER_UNAVAILABLE error code 
  occurs:
   
  
   
  
   
  
  javax.servlet.TryagainException
  /errors/TryAgain.html
  
   
  
  
  503
  
  /errors/TryAgain.html
  
   
  I hope this 
  helps.
   
  Tim Hughes  

  
-Original Message-From: Francisco Areas 
Guimaraes [mailto:[EMAIL PROTECTED]]Sent: 3. juli 2001 
02:15To: Lista tomcat UserSubject: http 
errors
Anyone know if I can set tomcat to use a 
custom page for http errors, like 500, instead of it´s 
default???
 
please, help me, i´ve tried a lot of things 
and it didn´t help.
 
[]´s
FranciscoThis 
  message contains information that may be privileged or confidential and is 
  the property of the Cap Gemini Ernst & Young Group. It is intended 
  only for the person to whom it is addressed. If you are not the intended 
  recipient, you are not authorized to read, print, retain, copy, 
  disseminate, distribute, or use this message or any part thereof. If you 
  receive this message in error, please notify the sender immediately and 
  delete all copies of this 
  message.This message contains information that may be privileged or 
  confidential and is the property o

Startup Script

2001-07-05 Thread Lars Nielsen Lind

Hi.

I have some problems with the default 'tomcat.sh start' script. When I'm 
running it from my Java app. the program freezes. If I start another 
instance of the Java app. and choose to shutdown Jakarta-Tomcat, then 
the first Java app. shows all the startup details. So when I'm starting 
JakartaTomcat - it seems that it is blocking the program.

Is it possible to change the default script so that the terminal window 
shutsdown (exits) just after starting JakartaTomcat - without shutting 
down JakartaTomcat?

How?


Lars Nielsen Lind





Re: List traffic et al

2001-07-05 Thread Hemant Singh

HI:
Heartly agree with yur idea and before this also i keep on getting agree
with same kind of ideas but i just dont know who is the moderator of this
group and how this can be acheived.
Regards
Hemant
- Original Message -
From: "Milt Epstein" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 03, 2001 10:41 PM
Subject: Re: List traffic et al


> On Tue, 3 Jul 2001, Sam Newman wrote:
>
> > Given the huge amount of traffic this list generates, I can rarely
> > get involved with the discussions that take place. It occurs to me
> > that there sems to be three major discussion themes on the list as a
> > whole:
> >
> > 1.) General servlet/jsp development issues and how tomcat affects them
> > 2.) General tomcat configuration issues
> > 3.) Webserver integration issues
> >
> > I guess as documentation improves (e.g. tomcat book, work by people
> > like Mike Slinn) points 2&3 will become less of an issue. I'm just
> > wondering if there is any millage in perhaps splitting the list into
> > 2 or 3 lists?  Personally, I've got no issues with getting tomcat up
> > and running and so don't care too much about that end of things,
> > however the servlet/jsp development issues is more interesting to
> > me.
> >
> > I don't have too strong an opinion on it, its just that I worry I'm
> > missing some interesting topics because I don't have the time to
> > work though all the posts
>
> This idea has come up before, and I think it's one of the best for
> dealing with the high volume on this list (I guess it's one of the two
> or three highest volume apache lists).  I even volunteered to take the
> lead in doing this.  So I sent a note to the list owner explaining the
> idea.  Unfortunately, I never heard anything back.  Without the list
> owner's cooperation/participation (or someone who can modify the
> apache/jakarta mailing lists), it won't be possible to do this.  So,
> we could do some work on this (i.e. figuring out what separate lists
> to have), but unless we know that it's going to come to something, it
> doesn't make sense to do too much work on it.
>
> Milt Epstein
> Research Programmer
> Software/Systems Development Group
> Computing and Communications Services Office (CCSO)
> University of Illinois at Urbana-Champaign (UIUC)
> [EMAIL PROTECTED]




log files

2001-07-05 Thread John Michael Luy

is there a way to rotate logs for tomcat-3.2.2. can you limit the size of
the logfile within tomcat?




Tomcat as an NT Service, in win 2000

2001-07-05 Thread Henry Kozachkov



Will the instructions for NT service work in win 
2000. I don't know if this is a bug or not, but under win 2k, I get
 
C:\>net start tomcatThe Tomcat service is 
starting.The Tomcat service could not be started.
 
The service did not report an error.
 
More help is available by typing NET HELPMSG 
3534.
 
after following the instructions at http://jakarta.apache.org/tomcat/tomcat-3.2-doc/NT-Service-howto.html to 
the letter.
 
 
This isn't a request for help, I just want to know 
if it is a known bug.
 
Henry


stand alone tomcat webserver question

2001-07-05 Thread Yomyung Leem

Hi folks.  I am quite new to this web server stuff, and I found tomcat today. 
What I want to know that I could not find on the web page were the following:

1. Can it handle cgi perl scripts?  *.asp files?

2. ApJServDefaultPort 8007, does ApJServ have to be started even in stand alone
mode? (I read that it is always required, and 8080 http port is optional.  I do
have a .jsp file, so I guess it is essential to have ApJServ running)

3. I am running this on UNIX box (Solaris 2.7), and does environment variables
get passed to JVM when I start the tomcat server with startup.sh command?

I know some of the questions sound pretty stupid, but I'd like to hear some
answers from you.

Thanks in advance.

Yung



documentation question

2001-07-05 Thread Yomyung Leem

Are there any good documentation for tomcat somewhere other than apache
website?  I could not find any good documentation (detailed) on the web
anywhere.

Thanks,
Yung



Truncation when using getAttribute() from request object

2001-07-05 Thread sam

G'day

I am running IIS 4 on NT Server with Tomcat 3.2.2

I have IIS set up to receive SSL requests (not tomcat).

This has proven successfull on my development box. Where i have been able to
use the following code to get the serial number of the certificate sent with
a SSL request.

(String)request.getAttribute("CERT_SERIALNUMBER")

However I am having problems on my production box using this code.
The serial number seems to be truncated - only by 2 characters - however
this is 2 characters too many.
If this helps it is truncated to 46 characters.

I cannot seem to find any configuration problems. Has anybody ran into this
problem or have they got any idea how to fix this.

I was hoping it was just a checkbox that says truncate
CertificateSerialNumber to 46 characters but alas it isnt.

(:

Please help me!

Thanks

Sam




RE: I need help in tomcat configuration with Oracle 8.1.7

2001-07-05 Thread Mike Braden

Tobias,

Here is an example that should help:

http://www.thejspbook.com/solaris-oracle-howto.html

Mike.
--
Mike Braden
[EMAIL PROTECTED]
[EMAIL PROTECTED]
-Original Message-
From: Internet Total Solutions LLC - Customer Liaisons Department -
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 03, 2001 6:37 AM
To: [EMAIL PROTECTED]
Subject: I need help in tomcat configuration with Oracle 8.1.7


Hello,

I would like to know whether anyone is able to give me a hint towards
solving the following scenario. If anyone is available on consultation
basis, it is fine too.

I have developed website personalization engine in java that comes with it's
own kind of application server to handle the client access requests to the
oracle 8.1.7 db through the use of tomcat 3.1 I am using the oracle thin
driver and classes111.zip in order to handle the requests through the jdbc.
However tomcat giving me serious errors and my client application can't
login to the database. Would anyone be able to help me on that matter?

Thanks

Tobias Hansen




Re:RE: I need help in tomcat configuration with Oracle 8.1.7

2001-07-05 Thread Jonathan Pierce

Tobias:

You need to use the newer thin client driver from Oracle classes12_01.zip with
the 8.1.7 release. If you are more specific with your problems, I can help you
further.

I recommend that you also switch to the 3.2.2 release. Notice however that the
3.2.2 uses a newer version of the Servlet API (2.2) so you may need to check
your code for deprecated 2.1 dependencies.

Jonathan ([EMAIL PROTECTED])



Reply Separator
Subject:RE: I need help in tomcat configuration with Oracle 8.1.7
Author: [EMAIL PROTECTED]
Date:   7/5/2001 9:45 PM

Tobias,

Here is an example that should help:

http://www.thejspbook.com/solaris-oracle-howto.html

Mike.
--
Mike Braden
[EMAIL PROTECTED]
[EMAIL PROTECTED]
-Original Message-
From: Internet Total Solutions LLC - Customer Liaisons Department -
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 03, 2001 6:37 AM
To: [EMAIL PROTECTED]
Subject: I need help in tomcat configuration with Oracle 8.1.7


Hello,

I would like to know whether anyone is able to give me a hint towards
solving the following scenario. If anyone is available on consultation
basis, it is fine too.

I have developed website personalization engine in java that comes with it's
own kind of application server to handle the client access requests to the
oracle 8.1.7 db through the use of tomcat 3.1 I am using the oracle thin
driver and classes111.zip in order to handle the requests through the jdbc.
However tomcat giving me serious errors and my client application can't
login to the database. Would anyone be able to help me on that matter?

Thanks

Tobias Hansen




Getting contextPath from a HttpServlet object

2001-07-05 Thread Jacob Thomas

Is there an API to get the contextPath for a servlet? 
--
Thanks
Jacob



Re: Getting contextPath from a HttpServlet object

2001-07-05 Thread Dmitri Colebatch

request.getContextPath();

cheesr
dim

On Fri,  6 Jul 2001 13:27, you wrote:
> Is there an API to get the contextPath for a servlet?
> --
> Thanks
> Jacob



Remove DNS lookup

2001-07-05 Thread David Wall

Is there a class that can do a reverse DNS lookup, giving me the hostname
that matches a given IP address?  I'm able to retrieve the IP address of an
HTTP request just fine using request.getRemoteAddr() (and getRemoteHost()
returns the same IP address dotted numbers), but the java.net package
doesn't seem to have
anything that returns a name based on an IP address, unless I'm just
misreading InetAddress...

David




Re: Remove DNS lookup

2001-07-05 Thread wire



Thursday, July 05, 2001, 11:35:55 PM, [EMAIL PROTECTED] wrote:

DW> Is there a class that can do a reverse DNS lookup, giving me the hostname
DW> that matches a given IP address?  I'm able to retrieve the IP address of an
DW> HTTP request just fine using request.getRemoteAddr() (and getRemoteHost()
DW> returns the same IP address dotted numbers), but the java.net package
DW> doesn't seem to have
DW> anything that returns a name based on an IP address, unless I'm just
DW> misreading InetAddress...

InetAddress.getByName().getHostName() will do what you
want, if the info is available.

getRemoteHost() doesn't work if the webserver is configured not to
spend time doing the lookup for every request, or if no rDNS record
exists for that IP.

DW> David





Re: Reverse DNS lookup

2001-07-05 Thread David Wall

> InetAddress.getByName().getHostName() will do what you
> want, if the info is available.

Where would the info have to be available?  Is there anything comparable to
a "dig -x" command under Unix?  For most IP addresses, there will not be
anything configured on my computer, but I know that ARPA reverse lookups are
possible.

The method you show above still returns the IP address on my system, yet a
"dig -x" will show the host name resolved.

David





can't find tomcat.jar ?

2001-07-05 Thread wire

A fresh install of 3.3-m4 (with jdk1.4 on '98), and when I try to access a
jsp I get an error on finding C:\tomcat\lib\tomcat.jar. And
C:\tomcat\lib\tomcat.jar does exist. Thanks for any help.

org.apache.jasper.JasperException: Unable to compile
Found 2 system errors:

*** Error: Could not find package named: 
C:\tomcat\lib\tomcat.jar(java/util), 
C:\tomcat\work\DEFAULT\security/java/util, 
C:\tomcat\lib\common\jasper34_runtime.jar(java/util), 
C:\tomcat\lib\common\jasper-runtime.jar(java/util), 
C:\tomcat\lib\common\core_util.jar(java/util), 
C:\tomcat\lib\common\connector_util.jar(java/util), 
C:\tomcat\lib\common\servlet.jar(java/util) or 
C:\tomcat\lib\common\tomcat_core.jar(java/util)


*** Error: Could not find package named: 
C:\tomcat\lib\tomcat.jar(java/lang), 
C:\tomcat\work\DEFAULT\security/java/lang, 
C:\tomcat\lib\common\jasper34_runtime.jar(java/lang), 
C:\tomcat\lib\common\jasper-runtime.jar(java/lang), 
C:\tomcat\lib\common\core_util.jar(java/lang), 
C:\tomcat\lib\common\connector_util.jar(java/lang), 
C:\tomcat\lib\common\servlet.jar(java/lang) or 
C:\tomcat\lib\common\tomcat_core.jar(java/lang)





Re[2]: Reverse DNS lookup

2001-07-05 Thread wire



Friday, July 06, 2001, 12:02:29 AM, [EMAIL PROTECTED] wrote:

>> InetAddress.getByName().getHostName() will do what you
>> want, if the info is available.

DW> Where would the info have to be available?

in a PTR record on a nameserver

DW>  Is there anything comparable to
DW> a "dig -x" command under Unix?

dig just uses the PTR record

DW> For most IP addresses, there will not be
DW> anything configured on my computer, but I know that ARPA reverse lookups are
DW> possible.

DW> The method you show above still returns the IP address on my system, yet a
DW> "dig -x" will show the host name resolved.

maybe the dig command is using a cached value? In other words, if it
did a forward lookup on the hostname, then it might be returning
that name for the IP, even if no pointer record (in-addr-arpa) exists.

What is the IP that you're looking up?

DW> David





RE: Tomcat as an NT Service, in win 2000

2001-07-05 Thread Govind Agarwal



This 
happens when the Wrapper.properties file is not configured 
properly.
Check 
for all the path mentioned in your properties file and then try to run it 
again.
otherwise try to run the Tomcat.bat file in the bin 
folder or run the command mentioned at the end of wrapper.properties 
file.
executing this might give u some user friendly error 
message if any.
 
 

  -Original Message-From: Henry Kozachkov 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, July 06, 2001 6:36 
  AMTo: [EMAIL PROTECTED]Subject: Tomcat as 
  an NT Service, in win 2000
  Will the instructions for NT service work in win 
  2000. I don't know if this is a bug or not, but under win 2k, I 
  get
   
  C:\>net start tomcatThe Tomcat service is 
  starting.The Tomcat service could not be started.
   
  The service did not report an error.
   
  More help is available by typing NET HELPMSG 
  3534.
   
  after following the instructions at http://jakarta.apache.org/tomcat/tomcat-3.2-doc/NT-Service-howto.html to 
  the letter.
   
   
  This isn't a request for help, I just want to 
  know if it is a known bug.
   
  Henry


RE: User login logging (JDBC authentication)

2001-07-05 Thread Rajehswar V. Rao

Hi Reto,
Could you please explain it more clearly
And from your words i got one idea...
please tell me whether it is right way or not...
when ever a user access any JSP or Servlet other that LoginServlet(which is
controller servlet)..
I will check the session for some username 
if it is null then i redirect the request Login.jsp...
Before this i will create a session in LogonServlet and set the username in
the session whenever user is authenticated...

is this OK
-raj-
-Original Message-
From: Reto Badertscher [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 7:53 PM
To: [EMAIL PROTECTED]
Subject: AW: User login logging (JDBC authentication)


Hello,

If you have a controller servlet it can check for authenticated user and if
a user is not logged in you can redirect to your login screen, and after a
successfull login, redirect back to the protected target.
For security reason (accessing a JSP directly without going thru the
controller servlet), every protected resource can check if a user is logged
in.

Reto

-Ursprüngliche Nachricht-
Von: Rajehswar V. Rao [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 5. Juli 2001 15:33
An: '[EMAIL PROTECTED]'
Betreff: RE: User login logging (JDBC authentication)


Hi randy,
I would appreciate  your patience...
I am coming from first...
This is my prblem
I have 10 JSPs under myCon/jsp folder in Tomcat..
One of them is Login.jsp...which does authentication of user...
i check the username and password against data which lies in SQLServer
7.0...
Once the user is authenticated only...I want to give access to remaining
JSPs..
But he/she should not access any JSP unless authenticated by Login.jsp...
This is my problem...
what is your best possible solution
Is it anyway related to Java or Tomcat security?
If yes, how can i achieve it?
Or is there any other way around to achieve it...

Thanks for listening...
-raj-


-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 6:18 PM
To: [EMAIL PROTECTED]
Subject: RE: User login logging (JDBC authentication)



From IIS you can only set the access to Tomcat as a whole, not
individually.  Tomcat controls access to the individual resources (IIS
doesn't know what they are).

You can view (and modify) the username and password in the session,
I think the session field names are j_security_username and
j_security_password, but don't remember right now - you can get a session
object back for a secured user and then iterate over the fields.

Randy

> -Original Message-
> From: Rajehswar V. Rao [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 05, 2001 9:11 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: User login logging (JDBC authentication)
>
>
> Hi Randy and all,
> if that is the case where can i set username and password
> And one more thing, i am using tomcat with IIS ...can i restrict
> resources(JSPs and Servlets) on
> tomcat from IIS...
> Any help would be appreciated
> -raj-
>
> -Original Message-
> From: Randy Layman [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 05, 2001 5:32 PM
> To: [EMAIL PROTECTED]
> Subject: RE: User login logging (JDBC authentication)
>
>
>
>   What is happening is that Tomcat is using the user's credentials
> (username/password) in the Session to authenticate.  If they
> are not there
> or invalid, then the user is prompted to log in again.
>
>   Randy
>
> > -Original Message-
> > From: Mark Muffett [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, July 05, 2001 8:33 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: User login logging (JDBC authentication)
> >
> >
> > Raj and all
> >
> > I've managed to make the changes (very easy), but of course
> > it doesn't work
> > exactly as I wanted it (isn't life always like that...)
> >
> > I've got a database which is filling up fast since a new log
> > gets written to
> > it every time a user accesses a new page (probably about 100
> > times each
> > session).
> >
> > Tomcat clearly knows what a session is (since it doesn't ask
> > the user to log
> > in again for each page) - any idea where it does this?
> >
> > Thanks for any help.
> >
> > Mark
> >
> > - Original Message -
> > From: "Rajehswar V. Rao" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, July 05, 2001 12:21 PM
> > Subject: RE: User login logging (JDBC authentication)
> >
> >
> > > Hi Mark and all,
> > > I think my situation is also almost same
> > > I have set of JSPs under my \myContext\jsp...
> > > I dont want to give access to the users to these JSPs once
> > they have been
> > > authnticated...
> > > One of the JSPs authenticate the user
> > > please do help...
> > > -raj-
> > >
> > > -Original Message-
> > > From: Mark Muffett [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, July 04, 2001 1:59 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: User login logging (JDBC authentication)
> > >
> > >
> > > So

Re: List traffic et al

2001-07-05 Thread Jeff Kilbride

Even if the list is not split into these specific sub-topics, I would
certainly like to see it split along Windows/Unix lines. I use Unix
exclusively and I skip over 99% of the Windows questions, because I don't
have any experience with Tomcat on that platform. I'm sure Windows users
feel the same way about Unix related questions.

Thanks,
--jeff


> From: "Hemant Singh" <[EMAIL PROTECTED]>
> Organization: Supportscape Inc.
> Reply-To: [EMAIL PROTECTED]
> Date: Wed, 4 Jul 2001 13:39:13 +0530
> To: <[EMAIL PROTECTED]>
> Subject: Re: List traffic et al
> 
> HI:
> Heartly agree with yur idea and before this also i keep on getting agree
> with same kind of ideas but i just dont know who is the moderator of this
> group and how this can be acheived.
> Regards
> Hemant
> - Original Message -
> From: "Milt Epstein" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, July 03, 2001 10:41 PM
> Subject: Re: List traffic et al
> 
> 
>> On Tue, 3 Jul 2001, Sam Newman wrote:
>> 
>>> Given the huge amount of traffic this list generates, I can rarely
>>> get involved with the discussions that take place. It occurs to me
>>> that there sems to be three major discussion themes on the list as a
>>> whole:
>>> 
>>> 1.) General servlet/jsp development issues and how tomcat affects them
>>> 2.) General tomcat configuration issues
>>> 3.) Webserver integration issues
>>> 
>>> I guess as documentation improves (e.g. tomcat book, work by people
>>> like Mike Slinn) points 2&3 will become less of an issue. I'm just
>>> wondering if there is any millage in perhaps splitting the list into
>>> 2 or 3 lists?  Personally, I've got no issues with getting tomcat up
>>> and running and so don't care too much about that end of things,
>>> however the servlet/jsp development issues is more interesting to
>>> me.
>>> 
>>> I don't have too strong an opinion on it, its just that I worry I'm
>>> missing some interesting topics because I don't have the time to
>>> work though all the posts
>> 
>> This idea has come up before, and I think it's one of the best for
>> dealing with the high volume on this list (I guess it's one of the two
>> or three highest volume apache lists).  I even volunteered to take the
>> lead in doing this.  So I sent a note to the list owner explaining the
>> idea.  Unfortunately, I never heard anything back.  Without the list
>> owner's cooperation/participation (or someone who can modify the
>> apache/jakarta mailing lists), it won't be possible to do this.  So,
>> we could do some work on this (i.e. figuring out what separate lists
>> to have), but unless we know that it's going to come to something, it
>> doesn't make sense to do too much work on it.
>> 
>> Milt Epstein
>> Research Programmer
>> Software/Systems Development Group
>> Computing and Communications Services Office (CCSO)
>> University of Illinois at Urbana-Champaign (UIUC)
>> [EMAIL PROTECTED]
> 




Re: List traffic et al

2001-07-05 Thread Dmitri Colebatch

I think the big problem with splitting the list is that everyone is going to 
be interested in their own little niche.  I for instance learn nothing by 
answering many questions that I answer, but I do learn things from reading 
other answers.  If the list was split, I would (potentially) have the option 
to only see the messages that I would learn from.  This disadvantages other 
people on the list.  And this is going to occur at all levels.  Even relative 
newbies should be capable of answering some questions that they have just 
dealt with the day before.

If we want to reduce traffic surely a digest is the option.  The JBoss list 
has a _lot_ more traffic than this one, and I am able to receive that in 
digest mode quite happily.

anyway, my 2c

cheesr
dim


On Fri,  6 Jul 2001 15:45, Jeff Kilbride wrote:
> Even if the list is not split into these specific sub-topics, I would
> certainly like to see it split along Windows/Unix lines. I use Unix
> exclusively and I skip over 99% of the Windows questions, because I don't
> have any experience with Tomcat on that platform. I'm sure Windows users
> feel the same way about Unix related questions.
>
> Thanks,
> --jeff
>
> > From: "Hemant Singh" <[EMAIL PROTECTED]>
> > Organization: Supportscape Inc.
> > Reply-To: [EMAIL PROTECTED]
> > Date: Wed, 4 Jul 2001 13:39:13 +0530
> > To: <[EMAIL PROTECTED]>
> > Subject: Re: List traffic et al
> >
> > HI:
> > Heartly agree with yur idea and before this also i keep on getting agree
> > with same kind of ideas but i just dont know who is the moderator of this
> > group and how this can be acheived.
> > Regards
> > Hemant
> > - Original Message -
> > From: "Milt Epstein" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, July 03, 2001 10:41 PM
> > Subject: Re: List traffic et al
> >
> >> On Tue, 3 Jul 2001, Sam Newman wrote:
> >>> Given the huge amount of traffic this list generates, I can rarely
> >>> get involved with the discussions that take place. It occurs to me
> >>> that there sems to be three major discussion themes on the list as a
> >>> whole:
> >>>
> >>> 1.) General servlet/jsp development issues and how tomcat affects them
> >>> 2.) General tomcat configuration issues
> >>> 3.) Webserver integration issues
> >>>
> >>> I guess as documentation improves (e.g. tomcat book, work by people
> >>> like Mike Slinn) points 2&3 will become less of an issue. I'm just
> >>> wondering if there is any millage in perhaps splitting the list into
> >>> 2 or 3 lists?  Personally, I've got no issues with getting tomcat up
> >>> and running and so don't care too much about that end of things,
> >>> however the servlet/jsp development issues is more interesting to
> >>> me.
> >>>
> >>> I don't have too strong an opinion on it, its just that I worry I'm
> >>> missing some interesting topics because I don't have the time to
> >>> work though all the posts
> >>
> >> This idea has come up before, and I think it's one of the best for
> >> dealing with the high volume on this list (I guess it's one of the two
> >> or three highest volume apache lists).  I even volunteered to take the
> >> lead in doing this.  So I sent a note to the list owner explaining the
> >> idea.  Unfortunately, I never heard anything back.  Without the list
> >> owner's cooperation/participation (or someone who can modify the
> >> apache/jakarta mailing lists), it won't be possible to do this.  So,
> >> we could do some work on this (i.e. figuring out what separate lists
> >> to have), but unless we know that it's going to come to something, it
> >> doesn't make sense to do too much work on it.
> >>
> >> Milt Epstein
> >> Research Programmer
> >> Software/Systems Development Group
> >> Computing and Communications Services Office (CCSO)
> >> University of Illinois at Urbana-Champaign (UIUC)
> >> [EMAIL PROTECTED]



imp - Tomcat with SSL

2001-07-05 Thread Parag S



Does Tomcat supports SSL
If yes then which version supports it.
 
Please let me know immediatly
 
Thanking you in advance.
parag


tomcat development scenario

2001-07-05 Thread Lakshminarayanan Ramakrishnan
Title: tomcat development scenario






Hi all


Here is a typical Project Development scenario where we have two different environments, one for development and the other for testing. By two diff env i also mean two diff databases.( Ex. DSN for development is"DEV" and DSN for test is "TEST"). These DSN's should be in .ini files in the root of the server.

We use Apache as "WebServer" and Tomcat as a "Servlet Container" (add-on). The problem arises when we are required have our documents in a remote place other than tomcat's "Webapps/root". i.e i place Apache and Tomcat in one machine(Win'NT) and documents in a fileserver, which is mapped to the machine where Apache and Tomcat reside.

I fixed the contexts(dev and test) properly in the server.xml. Moreover, I load default servlet classes for connection pooling and other application specific processing. I place servlet classes under "webapps/root/webinf/classes" folder.

What'd be the solution for this?


How do i go about having only,

One Apache server,

One Tomcat server,

Two ini files in the tomcat server root,

Two diff document roots.


Thanx in Adavance


Reg

Lax





mod_jk

2001-07-05 Thread Anagha Mudigonda

hi,
while compiling the source for mod_jk i find a lot of .h files cant be
opened ... like jk_global.h etc.
am i doing something wrong ??
help !
how do i go about it ?
regards
anagha

--
Where the mind is without fear and the head is held high;
Where knowledge is free;
Where the world has not been broken up into fragments by narrow domestic
walls;
Where words come out from the depths of truth;
...
Where the mind is led by thee into ever-widening thought and action;
Into that heaven of freedom,my Father,let my country awake.





Re: imp - Tomcat with SSL

2001-07-05 Thread Dmitri Colebatch

On Fri,  6 Jul 2001 16:03, Parag S wrote:
> Does Tomcat supports SSL
yes it does.  download it - look in $TOMCAT_HOME/doc/tomcat-ssl-howto.html

> If yes then which version supports it.
thats from 3.2

> Please let me know immediatly
hmmm, its a mailing list - we'll answer your query when we have time...

> Thanking you in advance.
no problem

cheesr
dim



  1   2   >