Re: Apache 2.0 and Tomcat 4.0.3 integration help need

2002-04-23 Thread glen

There have been a lot of threads on the question of Apache 2/Tomcat
integration, and I think I have read them all, and tried them all but
still I cannot compile a working version of mod_webapp.

On Solaris8, I have tried with both the Sun compilers and gcc(2.95.3),
using the latest CVS checkout and/or the latest source tarball. With
Sun's dev utils and/or with gnu utils...  i.e., every variation I can
think of.

My lastest effort was to follow Simon Burr's walk-through:

cd ${TOMCAT_CONNECTORS_SRC_HOME}/webapp
chmod +x support/*.sh
./support/buildconf.sh
./configure --with-apxs=${APACHE_HOME}/bin/apxs
make

At this point, I had a 0 length mod_webapp.slo file. It is not clear
from the description if this is to be expected or not, so I continued
on with the next step:

cd lib
gcc -shared -o libwebapp.so *.lo
cd ../apache-2.0/

This seemed to go okay (no error messages or dire warnings).

${APACHE_HOME}/build/libtool --silent --mode=link \
gcc -shared -o mod_webapp.so -rpath ${APACHE_HOME}/modules \
-module -avoid-version -I../include  -L../lib -dlopen
../lib/libwebapp.la  mod_webapp.lo

This produced several hundred lines of error messages, for example:

Text relocation remains referenced
against symbol  offset  in file
unknown   0x104c  
export/install/apache/jakarta-tomcat-connectors-4.0.2-01-src/webapp/lib/libwebapp.a(pr_warp.o)

The final step is:
cp mod_webapp.so ${APACHE_HOME}/modules/

Not surprisingly there was no mod_webapp.so file.

After almost two weeks of trying endless config variations, pouring over 
FAQs and scattered documentation, I think I would really appreciate any
suggestions that anyone might be able to offer.

Thanks...

Glen Jackson
[EMAIL PROTECTED]

 
 Simon Burr has come up with an excellent mini-tutorial:
 
 http://www.pubbitch.org/jboss.html
 
 I managed to get it set up in no time (almost) with his how-to.
 
 bye Michael Delamere
 
 
 - Original Message -
 From: Boon K. Chee [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, April 22, 2002 10:59 PM
 Subject: Apache 2.0 and Tomcat 4.0.3 integration help need
 
 
 Is there anybody who has managed to integrate Apache 2.0 and Tomcat 4.0.3
 successfully? I have tried to follow all the instructions, but fail to
 integrate them on both Win 2000 and Redhat 7.2. I tried both mod_jk and
 mod_webapp. But Apache will always complain with some errors. I can run both
 application separately without any problem. Both application is downloaded
 from apache website from their binary distribution copy. I will appreciate a
 lot if anyone out there can give me some guidelines. Thanks.
 
 sincerely,
 Brandon
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


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




Session.IsNew problems

2002-04-23 Thread Wiegard, Hanno

We use Tomcat 4.0.1 with Sun JDK 1.3.1_01 on Windows 2000 to run the
controller servlet for our application. This servlet is responsible for
taking care about the session state in the application and if a new session
arrives, it should create the initial for the application. If a session is
continued, it should retrieve the status of the session out of the session
context and responsed in a proper way. But it looks like that the
request.getSession(true).isNew() call sometimes return true even if the
session is continued (we see that the client sends his session cookie, but
isNew() returns true). 

Any ideas/help?

Thanks,
Hanno





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




Timestamp on logfiles

2002-04-23 Thread Oki DZ

Hi,

I have the following in my Engine element:
Logger className=org.apache.catalina.logger.FileLogger
prefix=local-catalina. suffix=.log
timestamp=false/

Unfortunately, the filename still has the timestamp.
How can I have a log file without the timestamp?
BTW, it's Tomcat 4.0.3.

Thanks a lot,
Oki

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




Re: Security

2002-04-23 Thread Oki DZ

On 04/23 12:25 Joel Rees wrote:
 Timothy Fisher commented:
  I understand the question as he's wondering whether or
  not you could programatically authenticate a user,
  such that the container would then recognize the user
  as being authenticated and not require another login
  when viewing pages designated as protected by the
  container.
 
 So, do you have a container-managed solution?

Somebody does...
Take a look at http://jakarta.apache.org/turbine/
Turbine would be the ultimate servlet container that will take charge in 
running all your other servlets, so that handling users that are authenticated 
or not yet authenticated becomes a piece of cake. Of course, there's a 
learning curve to climb, but I believe that it would be worth it. (eg: if your 
client entered http://yourhost.com/some/path/to/a/plain.html; in his/her 
browser and yet he/she was not logged in, the request would be redirected to a 
login form you had designated.)

Oki

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




AW: Session.IsNew problems

2002-04-23 Thread Ralph Einfeldt

This should only happen if the session times out
between two requests. Are you shure, that this did 
not happen ?

 -Ursprüngliche Nachricht-
 Von: Wiegard, Hanno [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 23. April 2002 09:48
 An: '[EMAIL PROTECTED]'
 Betreff: Session.IsNew problems
 
 But it looks like that the request.getSession(true).isNew() 
 call sometimes return true even if the session is continued
 (we see that the client sends his session cookie, but isNew()
 returns true). 

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




can't register struts-config dtd on tomcat 4.0.3 (1.4 LE)

2002-04-23 Thread Mike Dewhirst

Has anybody ever had this before? I am running struts on freebsd 4.4
(custom), jdk1.4 (linux), tomcat 4.0.3 (1.4 LE), and struts 1.0.2 (stable).

Does anybody have any idea what could be causing this and how could I fix
it?

if i do a manual fetch of
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd - the file is
downloaded no problem.

register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN',
'jar:file:/usr/local/tomcat4.0.3/webapps/callsystem/WEB-INF/lib/struts.jar!/
org/apache/struts/resources/web-app_2_3.dtd'
resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
1.1//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd')
 Not registered, use system identifier
Parse Fatal Error at line 5 column -1: External entity not found:
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;.
java.net.UnknownHostException: jakarta.apache.org
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
at
org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.java:2870)
at
org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1167)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:314)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:89)
at org.apache.struts.digester.Digester.parse(Digester.java:755)
at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1332)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
6)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3266)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:324)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
Starting service Tomcat-Apache
Apache Tomcat/4.0.3


Many thanks in advance!

Mike


=**

If you are not the intended recipient, employee or agent responsible for delivering 
the message to the intended recipient, you are hereby notified that any dissemination 
or copying of this communication and its attachments is strictly prohibited.

If you have received this communication and its attachments in error, please return 
the original message and attachments to the sender using the reply facility on e-mail.

Internet communications are not secure and therefore the UCLES Group does not accept 
legal responsibility for the contents of this message.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those of the 
UCLES Group unless otherwise specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not guarantee that 
this email is virus free.


Re: Security

2002-04-23 Thread Joel Rees

Oki DZ commented:

 On 04/23 12:25 Joel Rees wrote:
  So, do you have a container-managed solution?

 Somebody does...
 Take a look at http://jakarta.apache.org/turbine/
 Turbine would be the ultimate servlet container that will take charge in
 running all your other servlets, so that handling users that are
authenticated
 or not yet authenticated becomes a piece of cake. Of course, there's a
 learning curve to climb, but I believe that it would be worth it. (eg: if
your
 client entered http://yourhost.com/some/path/to/a/plain.html; in his/her
 browser and yet he/she was not logged in, the request would be redirected
to a
 login form you had designated.)

So, how do you think Turbine compares to Struts? I've been looking at both,
but my colleagues prefer the designated standard track.

Joel Rees
Alps Giken Kansai Systems Develoment
Suita, Osaka




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




RE: Why is JDK needed to install Apache Tomcat 4.0 on WinNT?

2002-04-23 Thread Keith Wannamaker

If you are using JSPs in your application,
the JDK rather than the JRE is required to
compile them at run-time.

Keith

| -Original Message-
| From: Kiran Kumar N (RBIN/DCA-NMS) [mailto:[EMAIL PROTECTED]]
| Sent: Monday, April 22, 2002 11:42 PM
| To: '[EMAIL PROTECTED]'
| Subject: Why is JDK needed to install Apache Tomcat 4.0 on WinNT?
| 
| 
| I am trying to create a setup an application of mine for distribution 
| among my associates. But during the installation of Tomcat 4.0, it initially
| 
| checks if JDK is installed and if not, it exits the installation. 
| 
| Why does it need the JDK? All my target PCs have JREs installed. What should
| be 
| done to disable this check in Tomcat Setup. I am in need of a solution to
| this urgently.
| Please help.
| 
| Thanks and Best Regards,
| nKiran
| 
| 
| --
| To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
| For additional commands, e-mail: mailto:[EMAIL PROTECTED]
| 
| 

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




RE: Why is JDK needed to install Apache Tomcat 4.0 on WinNT?

2002-04-23 Thread Samuel Gabriel

You can avoid the installation by getting the zip file of tomcat and install
it yourself on all the machines, Then you will need to change the Tomcat.bat
startup script to point to the JRE directory as the javahome and change the
TOMCAT_HOME to point to the directory where you are planning the install.
Regards.
Sam

-Original Message-
From: Kiran Kumar N (RBIN/DCA-NMS) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 12:42 AM
To: '[EMAIL PROTECTED]'
Subject: Why is JDK needed to install Apache Tomcat 4.0 on WinNT?


I am trying to create a setup an application of mine for distribution
among my associates. But during the installation of Tomcat 4.0, it initially

checks if JDK is installed and if not, it exits the installation.

Why does it need the JDK? All my target PCs have JREs installed. What should
be
done to disable this check in Tomcat Setup. I am in need of a solution to
this urgently.
Please help.

Thanks and Best Regards,
nKiran


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


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




problem with mysql and tomcat

2002-04-23 Thread Amrinder Singh

hi i've downloaded the mysql and loaded the driver(mm.nysql) driver for it.If i try to 
use it in a regular program without involving the server(tomcat3.2.1) it works fine . 
i can get the resultset etc which is fine. But when i created another applicatoin 
which involved the use of Tomcat it gives me error saying 

Started: 21:13:29.210 PM
Error: java.sql.SQLException: Invalid authorization specification: Access denied for 
user: 'username@localhost' (Using password: YES) 

i've looked at hundreds of webpages but nothing so far has revealed a suitable reaason 
and solution for it. one webpage said to put the jar file in WEB-INF/lib dir but in my 
version of tomcat3.2.1 theres no subdirectory as that . if anyone knows the solution 
to it please let me know.my email address is 
[EMAIL PROTECTED]
thanks
manny 



Standalone meaning??

2002-04-23 Thread staginfo-ar

What does Standalone mean exactly? How can I configure this for running
solely jsp and servlets, No html ( i use IIS for it)?
Thanks.
Jc


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




AW: Standalone meaning??

2002-04-23 Thread Ralph Einfeldt

'Standalone' means using tomcat without any other web server (IIS,
Apache)
to handle all request.


So your second part of the question doesn't make much sense.

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 23. April 2002 10:59
 An: [EMAIL PROTECTED]
 Betreff: Standalone meaning?? 
 
 
 What does Standalone mean exactly? How can I configure this 
 for running
 solely jsp and servlets, No html ( i use IIS for it)?
 Thanks.
 Jc
 

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




Re: Standalone meaning??

2002-04-23 Thread Dominic Parry

IIS will only pass JSP and servlet stuff to Tomcat. All other content,
(which it can deal with), eg html will be served by IIS. This is of course
assuming you have install the Tomcat extension for IIS?

Hope this helps

Dom

---

Dominic Parry
B.Sc (Information Systems, Computer Science)
B.Sc (Hons) Computer Science
Rhodes University
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 23, 2002 10:58 AM
Subject: Standalone meaning??


 What does Standalone mean exactly? How can I configure this for running
 solely jsp and servlets, No html ( i use IIS for it)?
 Thanks.
 Jc


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




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




Re: Security

2002-04-23 Thread Oki DZ

On 04/23 15:20 Joel Rees wrote:
 So, how do you think Turbine compares to Struts? I've been looking at both,
 but my colleagues prefer the designated standard track.

I can't tell; never been used Struts (but I've taken a look at:
http://www.mail-archive.com/general@jakarta.apache.org/msg00495.html)
Turbine is a template-based web apps framework, and mainly uses servlets.
It seems that Struts is too, but it uses JSPs for the presentation (view). So, 
I think if you like to put Java codes in the scripts, then Struts would be for 
you. But if your scripts (for presentation) are not so complex and you like to 
put your business logic on servlets, then I believe that Turbine is for you.

In a sense, JSPs are templates too, but they put (you could put) lots of 
business logic in them. Turbine doesn't want you to do so (presentation is 
presentation, only some if's are allowed :-); if you need to do templating a 
lot, you can use the templating support (ie: Velocity), but if not, you can 
stick to just servlets (and ECS, maybe).

BTW, what is the standard track in web applications building...?

Oki

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




Re: problem with mysql and tomcat

2002-04-23 Thread Tom Oinn



Amrinder Singh wrote:
 
 hi i've downloaded the mysql and loaded the driver(mm.nysql) driver for it.If i try 
to use it in a regular program without involving the server(tomcat3.2.1) it works 
fine . i can get the resultset etc which is fine. But when i created another 
applicatoin which involved the use of Tomcat it gives me error saying
 
 Started: 21:13:29.210 PM
 Error: java.sql.SQLException: Invalid authorization specification: Access denied for 
user: 'username@localhost' (Using password: YES)
 
 i've looked at hundreds of webpages but nothing so far has revealed a suitable 
reaason and solution for it. one webpage said to put the jar file in WEB-INF/lib dir 
but in my version of tomcat3.2.1 theres no subdirectory as that . 

Well, you wrote the web application right? So technically no directories
exist until you put them there :)

Applications running in tomcat get can load their classes from three
main locations, /jre/lib/ext (Standard installed extensions, don't use
this as it's a nightmare to maintain, believe me!), /$TOMCAT_HOME/lib
(for general drivers that everything should be able to see) and
/$TOMCAT_HOME/webapps/YOUR_APP/lib.

So, the short answer (and I'm not even sure your problem is anything to
do with this, but it's a faq anyway) is to create the 'lib' subdirectory
and put the driver jar in it.

Cheers,

Tom

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




RE: Session.IsNew problems

2002-04-23 Thread Wiegard, Hanno

This should not happen, but I'll test this again with higher timeout values.
The only thing that could happen is that a request takes longer than the
timeout, e.g. we have a timeout of 10 sec., but the request processing takes
about 20 sec. But I guess the timeout is calculated relative to the end of
one request.

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 10:09 AM
To: Tomcat Users List
Subject: AW: Session.IsNew problems


This should only happen if the session times out
between two requests. Are you shure, that this did 
not happen ?

 -Ursprüngliche Nachricht-
 Von: Wiegard, Hanno [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 23. April 2002 09:48
 An: '[EMAIL PROTECTED]'
 Betreff: Session.IsNew problems
 
 But it looks like that the request.getSession(true).isNew() 
 call sometimes return true even if the session is continued
 (we see that the client sends his session cookie, but isNew()
 returns true). 

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

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




Deploy command in the Manager

2002-04-23 Thread Matt Seaborn

The Deploy Task (org.apache.catalina.ant.DeployTask) in the catalina-ant.jar
that accompanies the Java XML EA2 seems to support the deploying of WARs
into Tomcat using a deploy command, embedding the WAR binary in the HTTP PUT
command.  
 
However Catalina doesn't appear to support this (it returns a 405 as well as
there being no docu), it not does it appear that 4.1 will either (no docu).
 
So what I am asking is does/will Catalina support this functionality, and if
not why is Ant trying to use it?

Matt Seaborn
Software Engineer
Categoric Software

The leader in enterprise event management and alerting technology

+44 (0)1372 368800 tel
+44 (0)1372 368801 fax
+44 (0)1372 368807 direct
 http://www.categoric.com/ http://www.categoric.com


 



oci8 driver problem on Linux

2002-04-23 Thread Shiva.Devaguptapu

Hi,
I have been using classes12.zip in the CLASSPATH for oci8 driver on
Win2k. Now I am porting on Linux6.2. It says the following error :

java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
some other exception.. java.lang.UnsatisfiedLinkError: no ocijdbc8
in java.library.path

I placed classes12.zip in TOMCAT_HOME/lib and so it is into CLASSPATH when
the tomcat is started(confirmed)..
Can anyone tell me what the problem is and show me a way out.

Thanks,
Shiva.

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




Re: oci8 driver problem on Linux

2002-04-23 Thread Dominic Parry

 Hi,
 I have been using classes12.zip in the CLASSPATH for oci8 driver on
 Win2k. Now I am porting on Linux6.2. It says the following error :

 java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
 some other exception.. java.lang.UnsatisfiedLinkError: no ocijdbc8
 in java.library.path

 I placed classes12.zip in TOMCAT_HOME/lib and so it is into CLASSPATH when

Try renaming this to classes 12.jar It should work then.

 the tomcat is started(confirmed)..
 Can anyone tell me what the problem is and show me a way out.

 Thanks,
 Shiva.

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




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




RE: oci8 driver problem on Linux

2002-04-23 Thread Matt Seaborn

An UnsatisfiedLinkError occurs when a JNI error occurs deu to the libarry
being inaccessable.  Classes12.zip is making call to a Windows DLL which is,
for obvious reasons, not present on Linux.  You need to obtain the Oracle
Linux driver for Java.  This will most likely require you to install native
Oracle drivers as well.

-Original Message-
From: Shiva.Devaguptapu [mailto:[EMAIL PROTECTED]]
Sent: 23 April 2002 10:42
To: Tomcat Users List
Subject: oci8 driver problem on Linux


Hi,
I have been using classes12.zip in the CLASSPATH for oci8 driver on
Win2k. Now I am porting on Linux6.2. It says the following error :

java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
some other exception.. java.lang.UnsatisfiedLinkError: no ocijdbc8
in java.library.path

I placed classes12.zip in TOMCAT_HOME/lib and so it is into CLASSPATH when
the tomcat is started(confirmed)..
Can anyone tell me what the problem is and show me a way out.

Thanks,
Shiva.

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



RE: Why is JDK needed to install Apache Tomcat 4.0 on WinNT?

2002-04-23 Thread # Lalit Nagpal #


 
I do not know if this would work but try to set the JAVA_HOME variable to point
to the JRE. I think it should work then.
 
  Keith Wannamaker [EMAIL PROTECTED] wrote: If you are using JSPs in your 
application,
the JDK rather than the JRE is required to
compile them at run-time.

Keith

| -Original Message-
| From: Kiran Kumar N (RBIN/DCA-NMS) [mailto:[EMAIL PROTECTED]]
| Sent: Monday, April 22, 2002 11:42 PM
| To: '[EMAIL PROTECTED]'
| Subject: Why is JDK needed to install Apache Tomcat 4.0 on WinNT?
| 
| 
| I am trying to create a setup an application of mine for distribution 
| among my associates. But during the installation of Tomcat 4.0, it initially
| 
| checks if JDK is installed and if not, it exits the installation. 
| 
| Why does it need the JDK? All my target PCs have JREs installed. What should
| be 
| done to disable this check in Tomcat Setup. I am in need of a solution to
| this urgently.
| Please help.
| 
| Thanks and Best Regards,
| nKiran
| 
| 
| --
| To unsubscribe, e-mail: 
| For additional commands, e-mail: 
| 
| 

--
To unsubscribe: 
For additional commands: 
Troubles with the list: 


# Lalit Nagpal #


-
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more


Réf. : AW: Standalone meaning??

2002-04-23 Thread staginfo-ar


Nevertheless, i use tomcat whith IIS ( Isapi_redirector) and when I run
TOMCAT I've a Start tomcat standalone.



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




Réf. : Re: Standalone meaning??

2002-04-23 Thread staginfo-ar


What do you think when you speak about Tomcat extension for IIS? I've only
the Isapi redirector.


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




JDBC-JNDI connection pooling

2002-04-23 Thread Vincent Lambert

I am trying to use database connection pooling with Tomcat 4.0.3 through
JNDI (jdk 1.4).
I am using MySQL database with mm.mysql driver v 2.0.12.
 
Context initCtx   = new InitialContext();
Context envCtx= (Context) initCtx.lookup(java:comp/env);
DataSource w_ds   = (DataSource) envCtx.lookup(jdbc/ds);
 
With this code inserted into a servlet or a JSP, I am getting a NULL
DataSource !
 
 
Here is a piece of my configuration files:
server.xml:
Resource name=jdbc/ds auth=Container type=javax.sql.DataSource/
ResourceParams name=jdbc/ds
parameter
namedriverClassName/name
valueorg.gjt.mm.mysql.Driver/value
/parameter
parameter
namedriverName/name
valuejdbc:mysql://localhost/test/value
/parameter
parameter
nameuser/name
valueyouruser/value
/parameter
parameter
namepassword/name
valueyourpasswd/value
/parameter
/ResourceParams
 
web.xml:
resource-ref
description
Resource reference to a factory for javax.sql.Datasource
/description
res-ref-namejdbc/ds/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref

 
Thanks for help...
 
Regards,
Vincent



JSP problems with Tomcat 3.3 on Debian

2002-04-23 Thread tom stuart

hi,

this may well turn out to be a dumb question, but i've searched
everywhere for answers to it and can't find anything. i'm hoping there
may be a debian user on the list who can help me out.

tomcat is, apparently, simply broken out of the box on woody -- it runs
okay, but it won't compile any of the example jsps that use anything in
java.beans (see below; Error: 'beans' is either a misplaced package
name or a non-existent entity.). in all other respects it seems to be
working fine; the example servlets all work, for example. i've got the
j2sdk1.3 package installed.

(i'm intentionally using 'tomcat' rather than 'tomcat4', by the way.)

thanks a lot for any help.

cheers,
-tom


obsess:~# apt-get install libapache-mod-jk tomcat
 Reading Package Lists... Done
 Building Dependency Tree... Done
 The following NEW packages will be installed:
   libapache-mod-jk tomcat
 0 packages upgraded, 2 newly installed, 0 to remove and 0  not upgraded.
 Need to get 0B/1246kB of archives. After unpacking 2005kB will be used.
 Selecting previously deselected package libapache-mod-jk.
 (Reading database ... 50138 files and directories currently installed.)
 Unpacking libapache-mod-jk (from .../libapache-mod-jk_3.3a-2_i386.deb)
 ...
 Selecting previously deselected package tomcat.
 Unpacking tomcat (from .../archives/tomcat_3.3a-2_all.deb) ...
 Setting up libapache-mod-jk (3.3a-2) ...
 Initializing apache config for immediate operation.
 Finding DSO modsfound.
[...]
 Pondering done.

 Stopping apache with apachectl ... done.
 Waiting for apache to terminate ... done.
 /usr/sbin/apachectl start: httpd started

 Setting up tomcat (3.3a-2) ...
 Starting Tomcat servlet engine using Java from /usr/lib/j2sdk1.3: tomcat.

obsess:~# lynx --dump http://localhost/examples/jsp/num/numguess.jsp

 Error: 500
 Location: /examples/jsp/num/numguess.jsp

 Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile
 Found 1 semantic error compiling
 /var/cache/tomcat/DEFAULT/examples/jsp/num/numguess_1.java:

 69. numguess = (num.NumberGuessBean)
 java.beans.Beans.instantiate(this.getClass().getClassLoader(),
 num.NumberGuessBean);

 *** Error: beans is either a misplaced package name or a non-existent
 entity. An expression name is expected in this context.

 at org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:800)
 at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.
 java:641)
 at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.
 java:446)
 at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.
 java:968)
 at
 org.apache.tomcat.core.ContextManager.internalService(ContextManager
 .java:875)
 at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
 at
 org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(
 Ajp13Interceptor.java:213)
 at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.
 java:477)
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Thread
 Pool.java:519)
 at java.lang.Thread.run(Thread.java:484)



tom stuart http://obsess.com/ [EMAIL PROTECTED]

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




Re: problem with mysql and tomcat

2002-04-23 Thread Gregor Kovaè

Hi!

This Access denied for user username@localhost means that your username at 
localhost has to be in your mysql.user table. In that table you specify 
what usres at what hostnames can connect to mysql.

Best regards,
 Kovi


At 10:15 23.4.2002 +0100, you wrote:


Amrinder Singh wrote:
 
  hi i've downloaded the mysql and loaded the driver(mm.nysql) driver for 
 it.If i try to use it in a regular program without involving the 
 server(tomcat3.2.1) it works fine . i can get the resultset etc which is 
 fine. But when i created another applicatoin which involved the use of 
 Tomcat it gives me error saying
 
  Started: 21:13:29.210 PM
  Error: java.sql.SQLException: Invalid authorization specification: 
 Access denied for user: 'username@localhost' (Using password: YES)
 
  i've looked at hundreds of webpages but nothing so far has revealed a 
 suitable reaason and solution for it. one webpage said to put the jar 
 file in WEB-INF/lib dir but in my version of tomcat3.2.1 theres no 
 subdirectory as that .

Well, you wrote the web application right? So technically no directories
exist until you put them there :)

Applications running in tomcat get can load their classes from three
main locations, /jre/lib/ext (Standard installed extensions, don't use
this as it's a nightmare to maintain, believe me!), /$TOMCAT_HOME/lib
(for general drivers that everything should be able to see) and
/$TOMCAT_HOME/webapps/YOUR_APP/lib.

So, the short answer (and I'm not even sure your problem is anything to
do with this, but it's a faq anyway) is to create the 'lib' subdirectory
and put the driver jar in it.

Cheers,

Tom

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


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




Re: Apache 2.0 and Tomcat 4.0.3 integration help need

2002-04-23 Thread Simon Stewart

A 0 length mod_webapp.slo file appears to be expected (on Linux, at
least) I'm using the GNU dev chain. As a shot in the dark, once you've
CDd to apache-2.0, try:

${APACHE_HOME}/build/libtool --silent --mode=link \
   gcc -shared -o mod_webapp.so -rpath /usr/local/apache2/modules \
   -module -avoid-version -I../include  -L../lib -lwebapp  mod_webapp.lo

This should create a mod_webapp.so without libwebapp linked to it. In
order to get Apache to use mod_webapp and not throw errors about
missing libraries, you'll need to copy libwebapp.so to Apache's lib
directory:

cp mod_webapp.so ${APACHE_HOME}/modules/
cp ../lib/libwebapp.so ${APACHE_HOME}/lib/

This is how I orginally managed to get mod_webapp working on Linux,
and it might help you too. 

Does that help at all?

Regards,

Simon

-- 
When C++ is your hammer, everything looks like a thumb


On Tue, Apr 23, 2002 at 12:07:46AM -0700, [EMAIL PROTECTED] wrote:
 There have been a lot of threads on the question of Apache 2/Tomcat
 integration, and I think I have read them all, and tried them all but
 still I cannot compile a working version of mod_webapp.
 
 On Solaris8, I have tried with both the Sun compilers and gcc(2.95.3),
 using the latest CVS checkout and/or the latest source tarball. With
 Sun's dev utils and/or with gnu utils...  i.e., every variation I can
 think of.
 
 My lastest effort was to follow Simon Burr's walk-through:
 
 cd ${TOMCAT_CONNECTORS_SRC_HOME}/webapp
 chmod +x support/*.sh
 ./support/buildconf.sh
 ./configure --with-apxs=${APACHE_HOME}/bin/apxs
 make
 
 At this point, I had a 0 length mod_webapp.slo file. It is not clear
 from the description if this is to be expected or not, so I continued
 on with the next step:
 
 cd lib
 gcc -shared -o libwebapp.so *.lo
 cd ../apache-2.0/
 
 This seemed to go okay (no error messages or dire warnings).
 
 ${APACHE_HOME}/build/libtool --silent --mode=link \
 gcc -shared -o mod_webapp.so -rpath ${APACHE_HOME}/modules \
 -module -avoid-version -I../include  -L../lib -dlopen
 ../lib/libwebapp.la  mod_webapp.lo
 
 This produced several hundred lines of error messages, for example:
 
 Text relocation remains referenced
 against symbol  offset  in file
 unknown   0x104c  
export/install/apache/jakarta-tomcat-connectors-4.0.2-01-src/webapp/lib/libwebapp.a(pr_warp.o)
 
 The final step is:
 cp mod_webapp.so ${APACHE_HOME}/modules/
 
 Not surprisingly there was no mod_webapp.so file.
 
 After almost two weeks of trying endless config variations, pouring over 
 FAQs and scattered documentation, I think I would really appreciate any
 suggestions that anyone might be able to offer.
 
 Thanks...
 
 Glen Jackson
 [EMAIL PROTECTED]
 
  
  Simon Burr has come up with an excellent mini-tutorial:
  
  http://www.pubbitch.org/jboss.html
  
  I managed to get it set up in no time (almost) with his how-to.
  
  bye Michael Delamere
  
  
  - Original Message -
  From: Boon K. Chee [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, April 22, 2002 10:59 PM
  Subject: Apache 2.0 and Tomcat 4.0.3 integration help need
  
  
  Is there anybody who has managed to integrate Apache 2.0 and Tomcat 4.0.3
  successfully? I have tried to follow all the instructions, but fail to
  integrate them on both Win 2000 and Redhat 7.2. I tried both mod_jk and
  mod_webapp. But Apache will always complain with some errors. I can run both
  application separately without any problem. Both application is downloaded
  from apache website from their binary distribution copy. I will appreciate a
  lot if anyone out there can give me some guidelines. Thanks.
  
  sincerely,
  Brandon

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




AJP13 with TC3.2.3

2002-04-23 Thread Sérgio Serrano

Hi.

I've got installed in my box Linux, Apache 1.3.19, JDK 1.3.1 and TC 3.2.3
working with ajp13. The following error appeard in my mod_jk.log after a bit 
of continuous utilisation:

[jk_ajp13_worker.c (325)]: Error ajp13_process_callback - write failed
[jk_ajp13_worker.c (325)]: Error ajp13_process_callback - write failed
[jk_ajp13_worker.c (325)]: Error ajp13_process_callback - write failed
[jk_ajp13_worker.c (203)]: connection_tcp_get_message: Error -
jk_tcp_socket_recvfull failed
[jk_ajp13_worker.c (621)]: Error reading request
[jk_ajp13_worker.c (203)]: connection_tcp_get_message: Error -
jk_tcp_socket_recvfull failed
[jk_ajp13_worker.c (621)]: Error reading request
[jk_ajp13_worker.c (203)]: connection_tcp_get_message: Error -
jk_tcp_socket_recvfull failed
[jk_ajp13_worker.c (621)]: Error reading request

I went to the TC developers mailing-list searching for some known error, and 
it in fact existed discussions for this same error. I would just like to 
know if a patch exists for it or if anyone has had the same utilisation 
problem?

I'd very...VERY :) much like some help on this.
Thanks in advance.
Serrano.


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


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




Problem: JSP calls singleton. Singleton's data changes, but JSP still shows old data from that singleton

2002-04-23 Thread Pykäläinen, Eero

I am using Tomcat 4.0.4-b1 (and Struts 1.0.2) on W2K.

I have a singleton class that keeps data inside of it.

I have a JSP page that calls the singleton.

When singleton's data is up-to-date, JSP page opens quickly. When it isn't,
singleton updates its data structure from database and then JSP shows up.
There is only one problem: although singleton updates itself, singleton's
changed data isn't visible in the JSP page. It still shows old data.

JSP:

%
  ListOfAllComponents listOfAllComponents =
ListOfAllComponents.getInstance();
  // extracting data here...
%

Singeton class' getInstance() method:

public static synchronized ListOfAllComponents getInstance() {
  try {
if ( _instance == null ) {
  _instance = new ListOfAllComponents();
}

if ( upToDate == false ) {
  _instance.getListOfAllComponents();
  _instance.log(Refreshed listOfAllComponents);
  upToDate = true;
}
  } catch ( Throwable e ) {
  e.printStackTrace( System.out );
  }

  return _instance; 
}

I call my log method inside the getListOfAllComponents() method so I *know*
that the data is changed.

My workflow:

1) I call the JSP page that shows data from singleton
2) I call another JSP page that changes the upToDate boolean flag
3) I call the JSP page that shows data from singleton. At this phase the log
method inside getListOfAllComponents method logs the *updated* data to my
log file
4) JSP page shows up. It still shows the old data.

Am I doing something wrong or missing something here?

Thank you very much of your help, 
  Eero


-- 
Eero Pykalainen, Software Developer, Yomi Solutions Ltd.

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




AW: How can I get the location of the webapps-directory?

2002-04-23 Thread Eichfelder, Frank

Hi,

with getServletContext() I get only the name of my  running web-application;
with getServerInfo() I get Apache Tomcat/4.0.3.

But I don't get any directory name...

Frank

 -Ursprüngliche Nachricht-
 Von: Scott Purcell [mailto:[EMAIL PROTECTED]]
 Gesendet am: Montag, 22. April 2002 18:32
 An: Tomcat Users List
 Betreff: RE: How can I get the location of the webapps-directory?
 
 I think it is servletContext now. Check out the j2ee for 
 servletContext that may be what you are looking for.
 my o'reilly book shows
 
 public String ServletContext.getServerInfo()
 
 
 if that don't fly, I can dig deeper, just yell
 
 Scott
 
 
 
 
 -Original Message-
 From: Eichfelder, Frank [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 22, 2002 9:15 AM
 To: [EMAIL PROTECTED]
 Subject: AW: How can I get the location of the webapps-directory?
 
 
 Hi,
 
 thanks for the reply, but I need the webapps-directory to read the 
 existent subdirectories and/or war-files in order to make a 
 list of all
 deployed web-applications.
 
 (In older versions of the Servlet-API, there was a method called
 getServletNames(), which is deprecated now and returns null)
 
 Does anybody have another suggestion?
 
 Thanks,
 
 Frank
 
  -Ursprüngliche Nachricht-
  Von: Rajesh Nair [mailto:[EMAIL PROTECTED]]
  Gesendet am: Montag, 22. April 2002 06:42
  An: [EMAIL PROTECTED]
  Betreff: Re: How can I get the location of the webapps-directory?
  
  Hi 
  I think u can try getContextPath() which will give u the root 
  of ur web application .To get access to resources inside WAR 
  or other archive files u can use the method 
  getResource(String URIPath);
   If the context is in a different m/c u can use getContext() 
  to get the context first and then use either getResource() or 
  getResourceAsStream() methods 
  
  *** REPLY SEPARATOR  ***
  
  On 4/19/02 at 3:22 PM Eichfelder, Frank wrote:
  
  Hi,
  
  how can I get the location from the webapps-directory on my 
  filesystem?
  
  It's easy, if I use
  
  String path = getServletContext().getRealPath(/);
  
  and then cut off the last part:
  
  int index = path.lastIndexOf(System.getProperty(file.separator),
  path.length()-2 );
  
  path = path.substring(0, index);
  
  But this works only, if you have your webapplication unpacked in the
  file-system or if you have set unpackWars=true.
  
  Now, I have set unpackWars=false, and now I get null for
  getServletContext().getRealPath(/).
  
  Is there any possibility to get the name of the war-File an 
  application is
  stored in or the name of the directory the war-file is stored in?
  
  Thanks, 
  
  Frank
  
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
  
  
  
  
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




FW: Problems with Tomcat 4.0.3 and Apache 2. PLEASE HELP

2002-04-23 Thread Sefton, Adam

Sorry to resend this, but does anyone have any idea about it?

I'm still hopelessly stuck ... I'm sure I'm doing something wrong, but I've got no 
idea what.

Thanks,

Adam

-Original Message-
From: Sefton, Adam 
Sent: 22 April 2002 16:07
To: 'Tomcat Users List'
Subject: Problems with Tomcat 4.0.3 and Apache 2. PLEASE HELP


Sorry for bringing this up again ... but I am having real problems getting Apache to 
start once I've modified the httpd.conf file.

I am running Win2K with Tomcat 4.0.3 and Apache 2, and I have followed a variety of 
instructions I found on this mailing list (thanks all).

I have:

-altered the httpd.conf file to contain the following:
LoadModule webapp_module modules/mod_webapp.so
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples/

-added the modwebapp.so file to the {apachehome}/modules/ directory
-added the libapr.dll to the C:\WINNT\system32 directory
-modifed the tomcat server.xml file
-added the coyote jar files as suggested at:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/coyote/release/v1.0-b8/
-added the coyote connector info into the server.xml file as directed

Tomcat will start fine, on port 8080 as expected.

When I try to start Apache from the Monitor, I get an dialog box displaying:
The Requested Operation has failed
with no more information. Also, no information is being written to error.log nor any 
other log file that I can find.

If I comment out the three lines I entered into the httpd.conf file, then the server 
starts fine.

Has anyone else had this problem, and do they know how to fix it or what I'm doing 
wrong 

Thanks for any help you can give me,

Adam Sefton


**
This message may contain information which is confidential or privileged.
If you are not the intended recipient, please advise the sender immediately
by reply e-mail and delete this message and any attachments
without retaining a copy.  

**


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




Re: FW: Problems with Tomcat 4.0.3 and Apache 2. PLEASE HELP

2002-04-23 Thread adrianthiele

I had trouble starting Apache 1.3 on FreeBSd until I changed my server.xml :

 !-- Define an Apache-Connector Service --
  Service name=Tomcat-Apache

Connector className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=75
 enableLookups=true appBase=webapps
 acceptCount=10 debug=0/

!-- Replace localhost with what your Apache ServerName is set 
to --
Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=localhost debug=0
   ^^
Only when I put my  real servername instead of localhost did mine start 
to work.
Like I said , this may not be your problem, just an idea.

Adrian




Sefton, Adam wrote:

Sorry to resend this, but does anyone have any idea about it?

I'm still hopelessly stuck ... I'm sure I'm doing something wrong, but I've got no 
idea what.

Thanks,

Adam

-Original Message-
From: Sefton, Adam 
Sent: 22 April 2002 16:07
To: 'Tomcat Users List'
Subject: Problems with Tomcat 4.0.3 and Apache 2. PLEASE HELP


Sorry for bringing this up again ... but I am having real problems getting Apache to 
start once I've modified the httpd.conf file.

I am running Win2K with Tomcat 4.0.3 and Apache 2, and I have followed a variety of 
instructions I found on this mailing list (thanks all).

I have:

-altered the httpd.conf file to contain the following:
   LoadModule webapp_module modules/mod_webapp.so
   WebAppConnection warpConnection warp localhost:8008
   WebAppDeploy examples warpConnection /examples/

-added the modwebapp.so file to the {apachehome}/modules/ directory
-added the libapr.dll to the C:\WINNT\system32 directory
-modifed the tomcat server.xml file
-added the coyote jar files as suggested at:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/coyote/release/v1.0-b8/
-added the coyote connector info into the server.xml file as directed

Tomcat will start fine, on port 8080 as expected.

When I try to start Apache from the Monitor, I get an dialog box displaying:
The Requested Operation has failed
with no more information. Also, no information is being written to error.log nor any 
other log file that I can find.

If I comment out the three lines I entered into the httpd.conf file, then the server 
starts fine.

Has anyone else had this problem, and do they know how to fix it or what I'm doing 
wrong 

Thanks for any help you can give me,

Adam Sefton


**
This message may contain information which is confidential or privileged.
If you are not the intended recipient, please advise the sender immediately
by reply e-mail and delete this message and any attachments
without retaining a copy.  

**


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







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




servlet mapping

2002-04-23 Thread Lea Allison

Hi

can anyone tell me how setup servlet mapping and specifiy paths to be left
out.

For instance I have:

  servlet-mapping
servlet-nameLookupServlet/servlet-name
url-pattern/*/url-pattern
  /servlet-mapping


but I want to have the above, but not including index.jsp for example. So
any other request except index.jsp will be sent to my lookupServlet.

Thanks

Lea

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




Re: AW: How can I get the location of the webapps-directory?

2002-04-23 Thread Erwin Ambrosch

Look at the method getRealPath() of class ServletContext.

Erwin

Am Dienstag, 23. April 2002 13:41 schrieben Sie:
 Hi,

 with getServletContext() I get only the name of my  running
 web-application; with getServerInfo() I get Apache Tomcat/4.0.3.

 But I don't get any directory name...

 Frank

  -Ursprüngliche Nachricht-
  Von: Scott Purcell [mailto:[EMAIL PROTECTED]]
  Gesendet am: Montag, 22. April 2002 18:32
  An: Tomcat Users List
  Betreff: RE: How can I get the location of the webapps-directory?
 
  I think it is servletContext now. Check out the j2ee for
  servletContext that may be what you are looking for.
  my o'reilly book shows
 
  public String ServletContext.getServerInfo()
 
 
  if that don't fly, I can dig deeper, just yell
 
  Scott
 
 
 
 
  -Original Message-
  From: Eichfelder, Frank [mailto:[EMAIL PROTECTED]]
  Sent: Monday, April 22, 2002 9:15 AM
  To: [EMAIL PROTECTED]
  Subject: AW: How can I get the location of the webapps-directory?
 
 
  Hi,
 
  thanks for the reply, but I need the webapps-directory to read the
  existent subdirectories and/or war-files in order to make a
  list of all
  deployed web-applications.
 
  (In older versions of the Servlet-API, there was a method called
  getServletNames(), which is deprecated now and returns null)
 
  Does anybody have another suggestion?
 
  Thanks,
 
  Frank
 
   -Ursprüngliche Nachricht-
   Von: Rajesh Nair [mailto:[EMAIL PROTECTED]]
   Gesendet am: Montag, 22. April 2002 06:42
   An: [EMAIL PROTECTED]
   Betreff: Re: How can I get the location of the webapps-directory?
  
   Hi
   I think u can try getContextPath() which will give u the root
   of ur web application .To get access to resources inside WAR
   or other archive files u can use the method
   getResource(String URIPath);
If the context is in a different m/c u can use getContext()
   to get the context first and then use either getResource() or
   getResourceAsStream() methods
  
   *** REPLY SEPARATOR  ***
  
   On 4/19/02 at 3:22 PM Eichfelder, Frank wrote:
  
   Hi,
  
   how can I get the location from the webapps-directory on my
   filesystem?
  
   It's easy, if I use
  
   String path = getServletContext().getRealPath(/);
  
   and then cut off the last part:
  
   int index = path.lastIndexOf(System.getProperty(file.separator),
   path.length()-2 );
  
   path = path.substring(0, index);
  
   But this works only, if you have your webapplication unpacked in the
   file-system or if you have set unpackWars=true.
  
   Now, I have set unpackWars=false, and now I get null for
   getServletContext().getRealPath(/).
  
   Is there any possibility to get the name of the war-File an
   application is
   stored in or the name of the directory the war-file is stored in?
  
   Thanks,
  
   Frank
  
   --
   To unsubscribe:
 
  mailto:[EMAIL PROTECTED]
 
   For additional commands:
 
  mailto:[EMAIL PROTECTED]
 
   Troubles with the list:
 
  mailto:[EMAIL PROTECTED]
 
   --
   To unsubscribe:
 
  mailto:[EMAIL PROTECTED]
 
   For additional commands:
 
  mailto:[EMAIL PROTECTED]
 
   Troubles with the list:
 
  mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]

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




Re: Security

2002-04-23 Thread Timothy Fisher

The feature that your describing is the standard J2EE
security model.  This is a part of any servlet
container.  Tomcat by itself, without struts or
turbine, offers you the same container managed
authentication features.

Tim

--- Joel Rees [EMAIL PROTECTED] wrote:
 Oki DZ commented:
 
  On 04/23 12:25 Joel Rees wrote:
   So, do you have a container-managed solution?
 
  Somebody does...
  Take a look at http://jakarta.apache.org/turbine/
  Turbine would be the ultimate servlet container
 that will take charge in
  running all your other servlets, so that handling
 users that are
 authenticated
  or not yet authenticated becomes a piece of cake.
 Of course, there's a
  learning curve to climb, but I believe that it
 would be worth it. (eg: if
 your
  client entered
 http://yourhost.com/some/path/to/a/plain.html; in
 his/her
  browser and yet he/she was not logged in, the
 request would be redirected
 to a
  login form you had designated.)
 
 So, how do you think Turbine compares to Struts?
 I've been looking at both,
 but my colleagues prefer the designated standard
 track.
 
 Joel Rees
 Alps Giken Kansai Systems Develoment
 Suita, Osaka
 
 
 
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

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




Re: Security

2002-04-23 Thread Timothy Fisher

FYI,

The following is extracted from another thread here,
but it is very relevant to this thread.  Craig points
out that there currently is no standard API for
performing programmatic authentication of the user
that would achieve the effect of logging the user into
the container, such that you could then rely on
container managed security.

This seems like a valuable future addition to the
standard API.

Tim



 What I really want is a server-side method like 
authenticate(username,
 password) which would be functionally the same as
submitting to
 /j_security_check.  Does any such thing exist, and
where can I find 
out
 about it?

There is no such API that is portable across
containers.  If your
container supports it, JAAS is probably as close as
you can get (for
Tomcat, that would mean using JAASRealm in the nightly
builds), but
nothing is perfect.

  If not, can anyone suggest an alternative?


In a servlet 2.3 container, you can define a session
listener that is
notified when new sessions are created.  However, the
notification does
not include the current request (indeed, it cannot --
sessions can be
created outside of the context of a request), so you
won't be able to 
find
out who the newly logged on user is.

One approach would be to use a Filter that recognized
the newly set up
session (because the session created listener placed a
special 
attribute
there), and performed all the logon setup stuff
based on the value
returned by request.getRemoteUser() or
request.getUserPrincipal() if it
has not been done yet.

 Thanks in advance,

 Ben Drasin


Craig




--- Timothy Fisher [EMAIL PROTECTED] wrote:
 The feature that your describing is the standard
 J2EE
 security model.  This is a part of any servlet
 container.  Tomcat by itself, without struts or
 turbine, offers you the same container managed
 authentication features.
 
 Tim
 
 --- Joel Rees [EMAIL PROTECTED] wrote:
  Oki DZ commented:
  
   On 04/23 12:25 Joel Rees wrote:
So, do you have a container-managed solution?
  
   Somebody does...
   Take a look at
 http://jakarta.apache.org/turbine/
   Turbine would be the ultimate servlet container
  that will take charge in
   running all your other servlets, so that
 handling
  users that are
  authenticated
   or not yet authenticated becomes a piece of
 cake.
  Of course, there's a
   learning curve to climb, but I believe that it
  would be worth it. (eg: if
  your
   client entered
  http://yourhost.com/some/path/to/a/plain.html; in
  his/her
   browser and yet he/she was not logged in, the
  request would be redirected
  to a
   login form you had designated.)
  
  So, how do you think Turbine compares to Struts?
  I've been looking at both,
  but my colleagues prefer the designated standard
  track.
  
  Joel Rees
  Alps Giken Kansai Systems Develoment
  Suita, Osaka
  
  
  
  
  --
  To unsubscribe:  
 
 mailto:[EMAIL PROTECTED]
  For additional commands:
  mailto:[EMAIL PROTECTED]
  Troubles with the list:
  mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do You Yahoo!?
 Yahoo! Games - play chess, backgammon, pool and more
 http://games.yahoo.com/
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

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




Re: Security (Struts/Turbine)

2002-04-23 Thread Timothy Fisher

Im not real familiar with Turbine either...  But
based on your description of it, you point out that it
does not use JSPs for view, which Struts does.  Im
curious, what does Turbine use/recommend for creating
the view?  Surely it does not reccommend putting all
of the view into a servlet???

FYI, Stuts does NOT encourage the use of lengthly
scripts and business logic inside the JSPs.  JSPs are
used as the view components, while servlets serve as
controllers, and the business logic should be placed
in beans.

Tim

--- Oki DZ [EMAIL PROTECTED] wrote:
 On 04/23 15:20 Joel Rees wrote:
  So, how do you think Turbine compares to Struts?
 I've been looking at both,
  but my colleagues prefer the designated standard
 track.
 
 I can't tell; never been used Struts (but I've taken
 a look at:

http://www.mail-archive.com/general@jakarta.apache.org/msg00495.html)
 Turbine is a template-based web apps framework, and
 mainly uses servlets.
 It seems that Struts is too, but it uses JSPs for
 the presentation (view). So, 
 I think if you like to put Java codes in the
 scripts, then Struts would be for 
 you. But if your scripts (for presentation) are not
 so complex and you like to 
 put your business logic on servlets, then I believe
 that Turbine is for you.
 
 In a sense, JSPs are templates too, but they put
 (you could put) lots of 
 business logic in them. Turbine doesn't want you to
 do so (presentation is 
 presentation, only some if's are allowed :-); if you
 need to do templating a 
 lot, you can use the templating support (ie:
 Velocity), but if not, you can 
 stick to just servlets (and ECS, maybe).
 
 BTW, what is the standard track in web
 applications building...?
 
 Oki
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

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




Re: Apache 2.0 and Tomcat 4.0.3 integration help need

2002-04-23 Thread Georg Huettenegger

i can only tell what i used: gcc-2.8.1 on solaris 2.6 /usr/ucb was first
in the path. as far as i know there are quite a lot of linkers/make on
the typical solaris installation and not all combinations do work. i know
that /usr/ucb, /usr/bin, and /usr/ccs/bin often have required binaries in
them (sometimes /usr/local/bin). i fear you will have to find the correct
combination of compiler and linker for your machine.

i would therefore suggest playing around with the ordering in the path
variable and see whether that changes anything.

bye,
 georg

On Tue, 23 Apr 2002 [EMAIL PROTECTED] wrote:

 There have been a lot of threads on the question of Apache 2/Tomcat
 integration, and I think I have read them all, and tried them all but
 still I cannot compile a working version of mod_webapp.
 
 On Solaris8, I have tried with both the Sun compilers and gcc(2.95.3),
 using the latest CVS checkout and/or the latest source tarball. With
 Sun's dev utils and/or with gnu utils...  i.e., every variation I can
 think of.
 
 My lastest effort was to follow Simon Burr's walk-through:
 
 cd ${TOMCAT_CONNECTORS_SRC_HOME}/webapp
 chmod +x support/*.sh
 ./support/buildconf.sh
 ./configure --with-apxs=${APACHE_HOME}/bin/apxs
 make
 
 At this point, I had a 0 length mod_webapp.slo file. It is not clear
 from the description if this is to be expected or not, so I continued
 on with the next step:
 
 cd lib
 gcc -shared -o libwebapp.so *.lo
 cd ../apache-2.0/
 
 This seemed to go okay (no error messages or dire warnings).
 
 ${APACHE_HOME}/build/libtool --silent --mode=link \
 gcc -shared -o mod_webapp.so -rpath ${APACHE_HOME}/modules \
 -module -avoid-version -I../include  -L../lib -dlopen
 ../lib/libwebapp.la  mod_webapp.lo
 
 This produced several hundred lines of error messages, for example:
 
 Text relocation remains referenced
 against symbol  offset  in file
 unknown   0x104c  
export/install/apache/jakarta-tomcat-connectors-4.0.2-01-src/webapp/lib/libwebapp.a(pr_warp.o)
 
 The final step is:
 cp mod_webapp.so ${APACHE_HOME}/modules/
 
 Not surprisingly there was no mod_webapp.so file.
 
 After almost two weeks of trying endless config variations, pouring over 
 FAQs and scattered documentation, I think I would really appreciate any
 suggestions that anyone might be able to offer.
 
 Thanks...
 
 Glen Jackson
 [EMAIL PROTECTED]
 
  
  Simon Burr has come up with an excellent mini-tutorial:
  
  http://www.pubbitch.org/jboss.html
  
  I managed to get it set up in no time (almost) with his how-to.
  
  bye Michael Delamere
  
  
  - Original Message -
  From: Boon K. Chee [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, April 22, 2002 10:59 PM
  Subject: Apache 2.0 and Tomcat 4.0.3 integration help need
  
  
  Is there anybody who has managed to integrate Apache 2.0 and Tomcat 4.0.3
  successfully? I have tried to follow all the instructions, but fail to
  integrate them on both Win 2000 and Redhat 7.2. I tried both mod_jk and
  mod_webapp. But Apache will always complain with some errors. I can run both
  application separately without any problem. Both application is downloaded
  from apache website from their binary distribution copy. I will appreciate a
  lot if anyone out there can give me some guidelines. Thanks.
  
  sincerely,
  Brandon
  
  
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
  
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


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




How do I pass commands like -verify to the VM in NT Aervice mode?

2002-04-23 Thread Alexander Höglind

Hi,
How do I pass commands like -verify to the VM in NT Service mode?
Thanks,
ALexander Höglind



RE: Deploy command in the Manager

2002-04-23 Thread Matt Seaborn

Found it out.  It is not, and will not, be supported in Tomcat 4.0.x.
Presumably it will appear in 4.1.

-Original Message-
From: Matt Seaborn [mailto:[EMAIL PROTECTED]]
Sent: 23 April 2002 10:22
To: '[EMAIL PROTECTED]'
Subject: Deploy command in the Manager


The Deploy Task (org.apache.catalina.ant.DeployTask) in the catalina-ant.jar
that accompanies the Java XML EA2 seems to support the deploying of WARs
into Tomcat using a deploy command, embedding the WAR binary in the HTTP PUT
command.  
 
However Catalina doesn't appear to support this (it returns a 405 as well as
there being no docu), it not does it appear that 4.1 will either (no docu).
 
So what I am asking is does/will Catalina support this functionality, and if
not why is Ant trying to use it?

Matt Seaborn
Software Engineer
Categoric Software

The leader in enterprise event management and alerting technology

+44 (0)1372 368800 tel
+44 (0)1372 368801 fax
+44 (0)1372 368807 direct
 http://www.categoric.com/ http://www.categoric.com


 



RE: oci8 driver problem on Linux

2002-04-23 Thread Shiva.Devaguptapu

I downloaded the classes12.zip and libocijdbc8.so, combined as
jdbc816jdk12-sol_20.zip from oracle.com and placed both of them in
TOMCAT_HOME/lib. I also downloaded nls_charset12.zip and placed in the same
folder. Even now the error is the same. It says no ocijdbc8 in
java.library.path. The exact error is as follows:
java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path

-Original Message-
From: Matt Seaborn [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 3:15 PM
To: 'Tomcat Users List'
Subject: RE: oci8 driver problem on Linux


An UnsatisfiedLinkError occurs when a JNI error occurs deu to the libarry
being inaccessable.  Classes12.zip is making call to a Windows DLL which is,
for obvious reasons, not present on Linux.  You need to obtain the Oracle
Linux driver for Java.  This will most likely require you to install native
Oracle drivers as well.

-Original Message-
From: Shiva.Devaguptapu [mailto:[EMAIL PROTECTED]]
Sent: 23 April 2002 10:42
To: Tomcat Users List
Subject: oci8 driver problem on Linux


Hi,
I have been using classes12.zip in the CLASSPATH for oci8 driver on
Win2k. Now I am porting on Linux6.2. It says the following error :

java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
some other exception.. java.lang.UnsatisfiedLinkError: no ocijdbc8
in java.library.path

I placed classes12.zip in TOMCAT_HOME/lib and so it is into CLASSPATH when
the tomcat is started(confirmed)..
Can anyone tell me what the problem is and show me a way out.

Thanks,
Shiva.

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

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




Re: oci8 driver problem on Linux

2002-04-23 Thread Andrew . Bate



Shiva.Devaguptapu [EMAIL PROTECTED] wrote:-

I downloaded the classes12.zip and libocijdbc8.so, combined as
jdbc816jdk12-sol_20.zip from oracle.com and placed both of them in
TOMCAT_HOME/lib. I also downloaded nls_charset12.zip and placed in the
same folder. Even now the error is the same. It says no ocijdbc8 in
java.library.path. The exact error is as follows:
java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path

Where did you get your classes12.zip from?  We use the Type4 (i.e. doesn't
need the Oracle client software) JDBC driver from Oracle's web site in both
Tomcat and WebLogic and it works fine.  I'm not sure but it sounds to me
like you have a Type2 driver rather than a Type4.

I can email you the type4 classes12.zip we use if you like?

Andrew




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

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


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




RE: oci8 driver problem on Linux

2002-04-23 Thread Tim Cronin

If you are using arrays/tables you need to use the type 2 driver.

All I saw on the oracle site was 8i oci driver for solaris
where are the linux drivers? 


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 9:41 AM
To: Tomcat Users List
Subject: Re: oci8 driver problem on Linux




Shiva.Devaguptapu [EMAIL PROTECTED] wrote:-

I downloaded the classes12.zip and libocijdbc8.so, combined as
jdbc816jdk12-sol_20.zip from oracle.com and placed both of them in
TOMCAT_HOME/lib. I also downloaded nls_charset12.zip and placed in the
same folder. Even now the error is the same. It says no ocijdbc8 in
java.library.path. The exact error is as follows:
java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path

Where did you get your classes12.zip from?  We use the Type4 (i.e. doesn't
need the Oracle client software) JDBC driver from Oracle's web site in both
Tomcat and WebLogic and it works fine.  I'm not sure but it sounds to me
like you have a Type2 driver rather than a Type4.

I can email you the type4 classes12.zip we use if you like?

Andrew





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

This message and any files transmitted with it are confidential and 
intended solely for the use of the addressee. If you have received 
this message in error please notify the sender and destroy your
copies of the message and any attached files. 

***
Severn Trent Systems Ltd : a part of Severn Trent plc. 
Registered in England and Wales Registration No. 2394552


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

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




Re: JDBC-JNDI connection pooling

2002-04-23 Thread Nick Johnson

Take a look at my long spiel about the same problem; it should be in the
list archive from a day or two ago.

What I'd do first is this:

1. Make sure that the servlet doing the lookup is in the context you think
it's in.
2. Make sure you can connect to the database using a short jdbc program
using the same parameters you're using here.

On Tue, 23 Apr 2002, Vincent Lambert wrote:

 I am trying to use database connection pooling with Tomcat 4.0.3 through
 JNDI (jdk 1.4).
 I am using MySQL database with mm.mysql driver v 2.0.12.

 Context initCtx   = new InitialContext();
 Context envCtx= (Context) initCtx.lookup(java:comp/env);
 DataSource w_ds   = (DataSource) envCtx.lookup(jdbc/ds);

 With this code inserted into a servlet or a JSP, I am getting a NULL
 DataSource !


 Here is a piece of my configuration files:
 server.xml:
 Resource name=jdbc/ds auth=Container type=javax.sql.DataSource/
 ResourceParams name=jdbc/ds
 parameter
 namedriverClassName/name
 valueorg.gjt.mm.mysql.Driver/value
 /parameter
 parameter
 namedriverName/name
 valuejdbc:mysql://localhost/test/value
 /parameter
 parameter
 nameuser/name
 valueyouruser/value
 /parameter
 parameter
 namepassword/name
 valueyourpasswd/value
 /parameter
 /ResourceParams

 web.xml:
 resource-ref
 description
 Resource reference to a factory for javax.sql.Datasource
 /description
 res-ref-namejdbc/ds/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
 /resource-ref


 Thanks for help...

 Regards,
 Vincent


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


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




RE: How do I pass commands like -verify to the VM in NT Service mode?

2002-04-23 Thread Andy Eastham

Alexander,

I don't run it as a service, but services are controlled under the registry
key
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services]

You should be able to find the relevant bit underneath here, where the
command line for starting up Tomcat will be evident.  It will either be a
direct command, or a bat file.

Andy

 -Original Message-
 From: Alexander Höglind [mailto:[EMAIL PROTECTED]]
 Sent: 23 April 2002 14:32
 To: Tomcat User
 Subject: How do I pass commands like -verify to the VM in NT Aervice
 mode?


 Hi,
 How do I pass commands like -verify to the VM in NT Service mode?
 Thanks,
 ALexander Höglind




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




RE: oci8 driver problem on Linux

2002-04-23 Thread Shiva.Devaguptapu

Yes. In our application, we are using Array, refcursors, etc., which are
classes12.zip specific. In my case, one more thing is Oracle server is on
the same machine as Tomcat and Apache.

-Original Message-
From: Tim Cronin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 8:26 PM
To: 'Tomcat Users List'
Subject: RE: oci8 driver problem on Linux


If you are using arrays/tables you need to use the type 2 driver.

All I saw on the oracle site was 8i oci driver for solaris
where are the linux drivers? 


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 9:41 AM
To: Tomcat Users List
Subject: Re: oci8 driver problem on Linux




Shiva.Devaguptapu [EMAIL PROTECTED] wrote:-

I downloaded the classes12.zip and libocijdbc8.so, combined as
jdbc816jdk12-sol_20.zip from oracle.com and placed both of them in
TOMCAT_HOME/lib. I also downloaded nls_charset12.zip and placed in the
same folder. Even now the error is the same. It says no ocijdbc8 in
java.library.path. The exact error is as follows:
java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path

Where did you get your classes12.zip from?  We use the Type4 (i.e. doesn't
need the Oracle client software) JDBC driver from Oracle's web site in both
Tomcat and WebLogic and it works fine.  I'm not sure but it sounds to me
like you have a Type2 driver rather than a Type4.

I can email you the type4 classes12.zip we use if you like?

Andrew





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

This message and any files transmitted with it are confidential and 
intended solely for the use of the addressee. If you have received 
this message in error please notify the sender and destroy your
copies of the message and any attached files. 

***
Severn Trent Systems Ltd : a part of Severn Trent plc. 
Registered in England and Wales Registration No. 2394552


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

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

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




RE: oci8 driver problem on Linux

2002-04-23 Thread Reynir Hübner

hi, 
maybe some of these comments you've seen in previous replies to your
question. 

First of all, the classes12.zip is not the same for Oracle9i and 8i, so
you must ensure that you've downloaded the correct one (from
otn.oracle.com).

You must install the Oracle Client Software to use OCI driver and set up
connections and such, as it uses TNSNames.ora to create connection to
the database server.

There are two drivers in the classes12.zip one is the OCI and the other
is the thin driver. 

I have used the thin driver most the time, it works fine, and I think
most cases it is sufficient to use that one.


remember to rename the zip file to .jar.

hope it helps
-reynir








-Original Message-
From: Shiva.Devaguptapu [mailto:[EMAIL PROTECTED]]
Sent: 23. apríl 2002 09:42
To: Tomcat Users List
Subject: oci8 driver problem on Linux


Hi,
I have been using classes12.zip in the CLASSPATH for oci8 driver
on
Win2k. Now I am porting on Linux6.2. It says the following error :

java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
some other exception.. java.lang.UnsatisfiedLinkError: no
ocijdbc8
in java.library.path

I placed classes12.zip in TOMCAT_HOME/lib and so it is into CLASSPATH
when
the tomcat is started(confirmed)..
Can anyone tell me what the problem is and show me a way out.

Thanks,
Shiva.

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


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




RE: Do I have to use j_security_check to authenticate?

2002-04-23 Thread Tim Cronin

I've been dealing with this same problem.
All though Form base authentication is session based
the realm has no accessibility to the session object.
There are also no events that tell when the session is
first created only when objects are bound/unbound to the
session. The isNew function is on New on the logon page if
using FORM auth.

One thing I've played with is creating my own principal that
that extends org.apache.catalina.realm.GenericPrincipal
the principal is available from HttpServletRequest.getUserPrincipal()
but this is still not a complete solution since it is still
disjointed from the session.

I haven't looked at struts or turbine, I'm still trying to
keep my head above water with tomcat and jboss... I'm using 
jsp pages so apparently turbine is out

I would assume that we are not the only one's with this problem.
Basically a secure app that when a user logs in needs to have some
state data stored at the session. 

I figured that using the built-in security mechanism would be a more 
elegant solution but I'm finding that I have to do a lot of
work arounds to get it to fit into my paradigm. 

if the Authenticator functionality was configurable via the web.xml
or server.xml this would fix our problems. here's what I found on
them but still not a clean solution having to muck with internal config
files... 
http://mikal.org/interests/java/tomcat/archive/view?mesg=56125

if the forms Auth had one more configuration form-success-page
this would also solve our problem centralizing all initialization.

so much for the Rant.
(I hope some of the Tomcat Developers watch this mail list...) 




-Original Message-
From: Benjamin Drasin [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 6:16 PM
To: [EMAIL PROTECTED]
Subject: Re: Do I have to use j_security_check to authenticate?


Thanks Rick,

Some of my business code has to run before authentication takes place (the 
details are very specific to my application).

Right now the code works like this, all in one servlet:
1)pre-authentication code
2)if ok to proceed
3)   authentication code
4)   post-authentication code (initialize the session)

I might be able to stitch together something like this:

1) request goes for the initialize the session page, which is protected.
2) the user is not authenticated, so the go to my login form, which
3) submits to my own URL, do the pre-processing
if ok to proceed
   forward to j_security_check
4) j_security_check authenticates, and forwards to the URL requested in step

1.
5) my page initializes the session.

This strikes me as _awfully_ hacky.  What I really want is to be able to 
explicitly authenticate the user from within my servlet code...is there 
really no way to do this?  It seems to me like something that lots of people

would want.  It would allow me to keep all of my login code organized in a 
logical manner, rather than having to dance around the servlet container.

Thanks in advance,

Ben Drasin



From: Rick Fincher [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Do I have to use j_security_check to authenticate?
Date: Mon, 22 Apr 2002 18:36:13 -0400

Hi Ben,

Someone else today had similar questions so you might want to check for the
subject initializing Session state during realm login.

This was in Tomcat 4.0.x which has this built in.

If you use FORM level security you submit your own jsp page as the login
page and another as the page to run if login fails.  After login Tomcat
passes control to your main page.  When I converted some stuff like this I
basically just stripped out the database lookup stuff and and took the 
login
page front end (HTML stuff) and put it in a new file.  That left the rest 
of
my init stuff intact in the old login page.

You can request info like the username, role etc  from the request object
with it's various methods.

It is actually very nice because Tomcat now handles that for you and you 
can
take most or all of the security validation stuff out of your pages.  Like
you say this makes your project something you can deploy with Tomcat or a
full blown J2EE server without changes.

One snag as the other fellow found out is that you lose a little control of
what happens when a session times out.  You get bounced out of the realm so
you have to figure out how to deal with that.

Rick

  Hello all-
 
  I have a servlet based application running on Tomcat 3.2.  It uses a
  homespun security system which I would like to replace with standard 
J2EE
  security.  However, when the user logs in there are a number of
server-side
  tasks which have to be performed both before and after authentication
takes
  place, and which logically and functionally are all part of the login
  process.
 
  Therefore it is a problem for me that, as best I can tell from availible
  documentation, all authentication is done through the magic URL
  /j_security_check which is opaquely handled by the application server.

RE: Deploy command in the Manager

2002-04-23 Thread Craig R. McClanahan



On Tue, 23 Apr 2002, Matt Seaborn wrote:

 Date: Tue, 23 Apr 2002 14:33:39 +0100
 From: Matt Seaborn [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Deploy command in the Manager

 Found it out.  It is not, and will not, be supported in Tomcat 4.0.x.
 Presumably it will appear in 4.1.


s/Presumably/Definitely/

You can try it out right now by grabbing a recent nightly build of Tomcat
4 from the Jakarta web site (or getting the EA2 release of the Java Web
Services Developer Pack from Sun, which uses the same Tomcat code).

Craig


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




RE: empty xml page using tomcat4.0

2002-04-23 Thread Tim Cronin

did you try HttpServletResponse.setContentType(text/xml)?

-Original Message-
From: Mathy V Arumugam [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 7:06 PM
To: [EMAIL PROTECTED]
Subject: empty xml page using tomcat4.0


Hello,

I am new to this group.  I have just installed tomcat 4.0.  I am trying
to create a xml document using servlet.  I have copied all the style
sheets and .xml files into the ..\webapps\ROOT dir, and servlet into
..\webapps\ROOT\WEB-INF\classes dir.  I have also copied all the needed
jar files into the coomon\lib dir.

The servlet suppose to create a xml page.  Instead it gives me a page
with [document-null].

I run the same servlet using javawebserver2.0 and it runs great.

What am I doing wrong?  Please someone help me!!!


Thanks


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

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




RE: Do I have to use j_security_check to authenticate?

2002-04-23 Thread Craig R. McClanahan



On Tue, 23 Apr 2002, Tim Cronin wrote:

 I've been dealing with this same problem.
 All though Form base authentication is session based
 the realm has no accessibility to the session object.
 There are also no events that tell when the session is
 first created only when objects are bound/unbound to the
 session.

That is not actually correct -- see HttpSessionListener.sessionCreated().
However, by itself it doesn't help much in the particular use case being
discussed here.  Yesterday I proposed a solution that used the
sessionCreated()  listener in combination with a filter to do what you
wanted, while still remaining portable across any servlet 2.3 container.
Check the archives.

If you really wanted to modify Tomcat itself to support your paradigm,
you'd want to subclass org.apache.catalina.authenticator.FormAuthenticator
instead, and make it add the appropriate session attributes after the
Realm indicates that the user has been successfully identified.  Don't try
to make the Realm implementation do this sort of thing -- that is not what
it is designed for.

Craig


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




Re: oci8 driver problem on Linux

2002-04-23 Thread Austin Gonyou

Same Here as well.

On Tue, 2002-04-23 at 09:41, [EMAIL PROTECTED] wrote:
 
 
 Shiva.Devaguptapu [EMAIL PROTECTED] wrote:-
 
 I downloaded the classes12.zip and libocijdbc8.so, combined as
 jdbc816jdk12-sol_20.zip from oracle.com and placed both of them in
 TOMCAT_HOME/lib. I also downloaded nls_charset12.zip and placed in the
 same folder. Even now the error is the same. It says no ocijdbc8 in
 java.library.path. The exact error is as follows:
 java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
 
 Where did you get your classes12.zip from?  We use the Type4 (i.e. doesn't
 need the Oracle client software) JDBC driver from Oracle's web site in both
 Tomcat and WebLogic and it works fine.  I'm not sure but it sounds to me
 like you have a Type2 driver rather than a Type4.
 
 I can email you the type4 classes12.zip we use if you like?
 
 Andrew
 
 
 
 
 **
 This message has been sent via the Internet. Internet communications 
 are not secure against interception or modification. Severn Trent 
 Systems therefore can not guarantee that this message has not been
 modified in transit, and this message should not be viewed as 
 contractually binding.
 
 This message and any files transmitted with it are confidential and 
 intended solely for the use of the addressee. If you have received 
 this message in error please notify the sender and destroy your
 copies of the message and any attached files. 
 ***
 Severn Trent Systems Ltd : a part of Severn Trent plc. 
 Registered in England and Wales Registration No. 2394552
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
-- 
Austin Gonyou
Systems Architect, CCNA
Coremetrics, Inc.
Phone: 512-698-7250
email: [EMAIL PROTECTED]

It is the part of a good shepherd to shear his flock, not to skin it.
Latin Proverb



signature.asc
Description: This is a digitally signed message part


RE: Do I have to use j_security_check to authenticate?

2002-04-23 Thread Tim Cronin

Sorry I glazed HttpSessionListener thanks.

this is all I could find on overriding the FormAuthenticator
http://mikal.org/interests/java/tomcat/archive/view?mesg=56125 
is there official documentation?

do I have to muck with internal properties files to point to
my Authenticator class?


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 10:41 AM
To: Tomcat Users List
Subject: RE: Do I have to use j_security_check to authenticate?




On Tue, 23 Apr 2002, Tim Cronin wrote:

 I've been dealing with this same problem.
 All though Form base authentication is session based
 the realm has no accessibility to the session object.
 There are also no events that tell when the session is
 first created only when objects are bound/unbound to the
 session.

That is not actually correct -- see HttpSessionListener.sessionCreated().
However, by itself it doesn't help much in the particular use case being
discussed here.  Yesterday I proposed a solution that used the
sessionCreated()  listener in combination with a filter to do what you
wanted, while still remaining portable across any servlet 2.3 container.
Check the archives.

If you really wanted to modify Tomcat itself to support your paradigm,
you'd want to subclass org.apache.catalina.authenticator.FormAuthenticator
instead, and make it add the appropriate session attributes after the
Realm indicates that the user has been successfully identified.  Don't try
to make the Realm implementation do this sort of thing -- that is not what
it is designed for.

Craig


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

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




RE: JDBC-JNDI connection pooling

2002-04-23 Thread Clearwater, Pete

Hi Vincent.

I had the same issue - try changing the driverName parameter to url - it helped me.

pete.

-Original Message-
From: Vincent Lambert [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 2:55 AM
To: 'Tomcat Users List'
Subject: JDBC-JNDI connection pooling


I am trying to use database connection pooling with Tomcat 4.0.3 through
JNDI (jdk 1.4).
I am using MySQL database with mm.mysql driver v 2.0.12.
 
Context initCtx   = new InitialContext();
Context envCtx= (Context) initCtx.lookup(java:comp/env);
DataSource w_ds   = (DataSource) envCtx.lookup(jdbc/ds);
 
With this code inserted into a servlet or a JSP, I am getting a NULL
DataSource !
 
 
Here is a piece of my configuration files:
server.xml:
Resource name=jdbc/ds auth=Container type=javax.sql.DataSource/
ResourceParams name=jdbc/ds
parameter
namedriverClassName/name
valueorg.gjt.mm.mysql.Driver/value
/parameter
parameter
namedriverName/name
valuejdbc:mysql://localhost/test/value
/parameter
parameter
nameuser/name
valueyouruser/value
/parameter
parameter
namepassword/name
valueyourpasswd/value
/parameter
/ResourceParams
 
web.xml:
resource-ref
description
Resource reference to a factory for javax.sql.Datasource
/description
res-ref-namejdbc/ds/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref

 
Thanks for help...
 
Regards,
Vincent

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




RE: DataSource from JNDI always null

2002-04-23 Thread Clearwater, Pete

Hi Nick.

I had similar problems, and have found out a couple of things:

1.  I could not get my datasources to be found when using the WARP connector.  Same 
thing as you - null DataSource.  No idea what the problem was here.

2.  Initially I could not get it to work at all, but found that if I used the 
parameter url instead of driverName then everything was OK (except for 1. above).

cheers.  Isn't debugging this JNDI stuff fun?  The log messages sure give lots of 
useful information

pete.

-Original Message-
From: nickJohnson [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 8:07 PM
To: [EMAIL PROTECTED]
Subject: DataSource from JNDI always null


I thought I had this problem fixed, but it has come up again.

Basically I'm just trying to grab a JDBC resource for a postgresql
database.  My code looks something like this:

public static Connection getConnection(char mode)
  throws NamingException, SQLException {
Context ctx = null;

ctx = new InitialContext();
Context envCtx = (Context) ctx.lookup(java:comp/env);
String dbname = jdbc/ + (mode == 'w'? dbrw : dbro);
DataSource ds = (DataSource) envCtx.lookup(dbname);
Connection c = ds.getConnection();
return c;
}

This code is called as a static method on a utility class from inside a
bean used by a JSP document.

Of course what happens is I get a null pointer exception trying to call
getConnection on ds.  Here's the relevent information from server.xml.
I'll paste in only the entry for dbrw.  dbro is identical except it uses
a different username.  Both have the same problem.  I have verified that I
can log in both using the command line tool and a quick and dirty jdbc
test program.

 Resource name=jdbc/dbrw auth=Container
   type=javax.sql.DataSource/
 ResourceParams name=jdbc/dbrw
parameter
  nameuser/name
  valuewww/value
/parameter
parameter
  namepassword/name
  value/value
/parameter
parameter
  namedriverClassName/name
  valueorg.postgresql.Driver/value
/parameter
parameter
  namedriverName/name
  valuejdbc:postgresql://localhost:5432/main/value
/parameter
 /ResourceParams

And in web.xml (I've decided to use the server's web.xml rather than the
context's):

  resource-ref
description
   Resource reference to a java.sql.Connection factory
/description
res-ref-namejdbc/dbrw/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
  /resource-ref

postgresql.jar and the jdbc extensions are in common/lib.  As far as I can
tell from snooping traffic across lo0, no connection attempt is ever made,
although I do see plenty of traffic from my little jdbc test program.

Any pointers would be greatly appreciated, especially any information on
debugging problems with JNDI, getting diagnostic information out of it,
etc.  A working postgresql config would be even better. My instinct about
this is that I have JNDI set up incorrectly, or the jdbc drivers are not
getting found or initialized properly, but having exhausted all my ideas,
I thought I'd ask for a pointer :)

Many thanks,

   Nick


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

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




jsp servlet error in NetBeans

2002-04-23 Thread Nick Wesselman

I'm asking about this over at the netbeans projects, but I figured 
someone here might be able to help. We're seeing this across multiple 
versions of Netbeans when we try to run JSPs.

cannot load servlet name: jsp
2002-04-23 10:53:20 - Ctx(  ): Exception in: R(  + /kccat_test.jsp + 
null) - java.lang.NullPointerException
 at 
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass
(AdaptiveClassLoader.java:471)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
 at 
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:136)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
 at 
org.netbeans.modules.web.tomcat.JspServlet.doLoadJSP(JspServlet.java:248)
 at 
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
 at 
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
 at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary
(JspServlet.java:152)
 at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
(JspServlet.java:164)
 at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at 
org.netbeans.modules.web.tomcat.JspServlet.service(JspServlet.java:91)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:
797)
 at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection
(HttpConnectionHandler.java:210)
 at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:496)


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




RE : JDBC-JNDI connection pooling

2002-04-23 Thread Vincent Lambert

I made it work but i have another problem.
I get a No Suitable Driver when calling :

Connection conn = w_ds.getConnection();




-Message d'origine-
De : Nick Johnson [mailto:[EMAIL PROTECTED]] 
Envoye : mardi 23 avril 2002 17:02
A : Tomcat Users List
Objet : Re: JDBC-JNDI connection pooling


Take a look at my long spiel about the same problem; it should be in the
list archive from a day or two ago.

What I'd do first is this:

1. Make sure that the servlet doing the lookup is in the context you
think it's in. 2. Make sure you can connect to the database using a
short jdbc program using the same parameters you're using here.

On Tue, 23 Apr 2002, Vincent Lambert wrote:

 I am trying to use database connection pooling with Tomcat 4.0.3 
 through JNDI (jdk 1.4). I am using MySQL database with mm.mysql driver

 v 2.0.12.

 Context initCtx   = new InitialContext();
 Context envCtx= (Context) initCtx.lookup(java:comp/env);
 DataSource w_ds   = (DataSource) envCtx.lookup(jdbc/ds);

 With this code inserted into a servlet or a JSP, I am getting a NULL 
 DataSource !


 Here is a piece of my configuration files:
 server.xml:
 Resource name=jdbc/ds auth=Container 
 type=javax.sql.DataSource/ ResourceParams name=jdbc/ds
 parameter
 namedriverClassName/name
 valueorg.gjt.mm.mysql.Driver/value
 /parameter
 parameter
 namedriverName/name
 valuejdbc:mysql://localhost/test/value
 /parameter
 parameter
 nameuser/name
 valueyouruser/value
 /parameter
 parameter
 namepassword/name
 valueyourpasswd/value
 /parameter
 /ResourceParams

 web.xml:
 resource-ref
 description
 Resource reference to a factory for javax.sql.Datasource
 /description
 res-ref-namejdbc/ds/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
 /resource-ref


 Thanks for help...

 Regards,
 Vincent


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


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


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




Re: jsp servlet error in NetBeans

2002-04-23 Thread Nick Wesselman

btw,

We suspect this may be related to our shared SMB filesystem and bad SMB 
file locking in OS X. Make sense at all?

Nick

On Tuesday, April 23, 2002, at 11:08 AM, Nick Wesselman wrote:

 I'm asking about this over at the netbeans projects, but I figured 
 someone here might be able to help. We're seeing this across multiple 
 versions of Netbeans when we try to run JSPs.

 cannot load servlet name: jsp
 2002-04-23 10:53:20 - Ctx(  ): Exception in: R(  + /kccat_test.jsp + 
 null) - java.lang.NullPointerException
 at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass
 (AdaptiveClassLoader.java:471)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
 at 
 org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:136)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
 at 
 org.netbeans.modules.web.tomcat.JspServlet.doLoadJSP(JspServlet.java:248)
 at 
 org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
 at 
 org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
 at 
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary
 (JspServlet.java:152)
 at 
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
 (JspServlet.java:164)
 at 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at 
 org.netbeans.modules.web.tomcat.JspServlet.service(JspServlet.java:91)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at 
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at 
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:
 797)
 at 
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at 
 org.apache.tomcat.service.http.HttpConnectionHandler.processConnection
 (HttpConnectionHandler.java:210)
 at 
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at 
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:496)


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


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




Re: Apache 2.0 and Tomcat 4.0.3 integration help need

2002-04-23 Thread Boon K. Chee

Dear Michael,

 Thanks for the information. Yes, I've found his excellent tutorial and
managed to set everything up on my Linux machine.

 BTW, do you know any good tutorial to set things up on Win 2000 or XP?
Thanks.

Best regards,
Brandon

---Original Message---

From: Tomcat Users List
Date: Monday, April 22, 2002 02:09:27 PM
To: Tomcat Users List
Subject: Re: Apache 2.0 and Tomcat 4.0.3 integration help need

Simon Burr has come up with an excellent mini-tutorial:

http://www.pubbitch.org/jboss.html

I managed to get it set up in no time (almost) with his how-to.

bye Michael Delamere


- Original Message -
From: Boon K. Chee [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 22, 2002 10:59 PM
Subject: Apache 2.0 and Tomcat 4.0.3 integration help need


Is there anybody who has managed to integrate Apache 2.0 and Tomcat 4.0.3
successfully? I have tried to follow all the instructions, but fail to
integrate them on both Win 2000 and Redhat 7.2. I tried both mod_jk and
mod_webapp. But Apache will always complain with some errors. I can run both
application separately without any problem. Both application is downloaded
from apache website from their binary distribution copy. I will appreciate a
lot if anyone out there can give me some guidelines. Thanks.

sincerely,
Brandon


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


Re: Apache 2.0 and Tomcat 4.0.3 integration help need

2002-04-23 Thread Boon K. Chee

Dear Glen Jackson,

 I have followed the tutorial from Simon Stewart and I have managed to
setup everything properly on my Linux(Redhat 7.2) machine.

 After the make command in the first step, you will get a 0 byte
mod_webapp.slo. This is alright.

 Then, on the next step:

 cd lib
gcc -shared -o libwebapp.so *.lo
cd ../apache-2.0/
${APACHE_HOME}/build/libtool --silent --mode=link \
gcc -shared -o mod_webapp.so -rpath ${APACHE_HOME}/modules \
-module -avoid-version -I../include  -L../lib -dlopen
../lib/libwebapp.la  mod_webapp.lo
cp mod_webapp.so ${APACHE_HOME}/modules/

The above is what it shown on his tutorial. But you need to obmit 2 of
the \ in the command above.

 ${APACHE_HOME}/build/libtool --silent --mode=link
gcc -shared -o mod_webapp.so -rpath ${APACHE_HOME}/modules
-module -avoid-version -I../include  -L../lib -dlopen
../lib/libwebapp.la  mod_webapp.lo

 Try this. It works for me.

Best regards,
Brandon

---Original Message---

From: Tomcat Users List
Date: Tuesday, April 23, 2002 06:27:49 AM
To: Tomcat Users List
Subject: Re: Apache 2.0 and Tomcat 4.0.3 integration help need

i can only tell what i used: gcc-2.8.1 on solaris 2.6 /usr/ucb was first
in the path. as far as i know there are quite a lot of linkers/make on
the typical solaris installation and not all combinations do work. i know
that /usr/ucb, /usr/bin, and /usr/ccs/bin often have required binaries in
them (sometimes /usr/local/bin). i fear you will have to find the correct
combination of compiler and linker for your machine.

i would therefore suggest playing around with the ordering in the path
variable and see whether that changes anything.

bye,
georg

On Tue, 23 Apr 2002 [EMAIL PROTECTED] wrote:

 There have been a lot of threads on the question of Apache 2/Tomcat
 integration, and I think I have read them all, and tried them all but
 still I cannot compile a working version of mod_webapp.
 
 On Solaris8, I have tried with both the Sun compilers and gcc(2.95.3),
 using the latest CVS checkout and/or the latest source tarball. With
 Sun's dev utils and/or with gnu utils... i.e., every variation I can
 think of.
 
 My lastest effort was to follow Simon Burr's walk-through:
 
 cd ${TOMCAT_CONNECTORS_SRC_HOME}/webapp
 chmod +x support/*.sh
 ./support/buildconf.sh
 ./configure --with-apxs=${APACHE_HOME}/bin/apxs
 make
 
 At this point, I had a 0 length mod_webapp.slo file. It is not clear
 from the description if this is to be expected or not, so I continued
 on with the next step:
 
 cd lib
 gcc -shared -o libwebapp.so *.lo
 cd ../apache-2.0/
 
 This seemed to go okay (no error messages or dire warnings).
 
 ${APACHE_HOME}/build/libtool --silent --mode=link \
 gcc -shared -o mod_webapp.so -rpath ${APACHE_HOME}/modules \
 -module -avoid-version -I../include -L../lib -dlopen
 ../lib/libwebapp.la mod_webapp.lo
 
 This produced several hundred lines of error messages, for example:
 
 Text relocation remains referenced
 against symbol offset in file
 unknown 0x104c export/install/apache/jakarta-tomcat-connectors-4.0
2-01-src/webapp/lib/libwebapp.a(pr_warp.o)
 
 The final step is:
 cp mod_webapp.so ${APACHE_HOME}/modules/
 
 Not surprisingly there was no mod_webapp.so file.
 
 After almost two weeks of trying endless config variations, pouring over 
 FAQs and scattered documentation, I think I would really appreciate any
 suggestions that anyone might be able to offer.
 
 Thanks...
 
 Glen Jackson
 [EMAIL PROTECTED]
 
  
  Simon Burr has come up with an excellent mini-tutorial:
  
  http://www.pubbitch.org/jboss.html
  
  I managed to get it set up in no time (almost) with his how-to.
  
  bye Michael Delamere
  
  
  - Original Message -
  From: Boon K. Chee [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, April 22, 2002 10:59 PM
  Subject: Apache 2.0 and Tomcat 4.0.3 integration help need
  
  
  Is there anybody who has managed to integrate Apache 2.0 and Tomcat 4.0
3
  successfully? I have tried to follow all the instructions, but fail to
  integrate them on both Win 2000 and Redhat 7.2. I tried both mod_jk and
  mod_webapp. But Apache will always complain with some errors. I can run
both
  application separately without any problem. Both application is
downloaded
  from apache website from their binary distribution copy. I will
appreciate a
  lot if anyone out there can give me some guidelines. Thanks.
  
  sincerely,
  Brandon
  
  
  --
  To unsubscribe: mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
  
 
 
 --
 To unsubscribe: mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


--
To unsubscribe: mailto:[EMAIL 

Failover in Apache/Tomcat cluster

2002-04-23 Thread yinglcs

http://e-docs.bea.com/wls/docs70/cluster/servlet.html#1006761
Basically, the load balancer assigned each request with 2 server: one primary, one 
secondary. The client's session is replica between the primary and secondary server. 
When the primary fails, the secondary server will take over.

thanks.


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

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


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




Re: empty xml page using tomcat4.0

2002-04-23 Thread Mathy V Arumugam

Yes, I have HttpServletResponse.setContentType(text/xml).  I still have
no clue of why I am getting the blank page...

Thanks

Tim Cronin wrote:

 did you try HttpServletResponse.setContentType(text/xml)?

 -Original Message-
 From: Mathy V Arumugam [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 22, 2002 7:06 PM
 To: [EMAIL PROTECTED]
 Subject: empty xml page using tomcat4.0

 Hello,

 I am new to this group.  I have just installed tomcat 4.0.  I am trying
 to create a xml document using servlet.  I have copied all the style
 sheets and .xml files into the ..\webapps\ROOT dir, and servlet into
 ..\webapps\ROOT\WEB-INF\classes dir.  I have also copied all the needed
 jar files into the coomon\lib dir.

 The servlet suppose to create a xml page.  Instead it gives me a page
 with [document-null].

 I run the same servlet using javawebserver2.0 and it runs great.

 What am I doing wrong?  Please someone help me!!!

 Thanks

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

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


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




getRemoteUser(), getAuthType() returning empty string instead ofNULL?

2002-04-23 Thread James Garrison

Scenario:

(1) Browser - http://TomcatHTTPServer:8080 (no authentication)

   getRemoteUser() and getAuthType() return NULL, as expected

(2) Browser - https://TomcatHTTPServer:8443 (no authentication)

   getRemoteUser() and getAuthType() return NULL, as expected

(3) Browser - https://IISServer:443(BASIC Auth) - ISAPI - AJP13

   getRemoteUser() returns authenticated user name,
   getAuthType() returns Basic, as expected

(4) Browser - http://IISServer:80(NO Auth) - ISAPI - AJP13

   getRemoteUser() and getAuthType() return  (Empty String)
   This is NOT as expected, and causes Tomcat to reject the request
   because it thinks the request is already authenticated but
   doesn't match the requested page's realm.

Is this:

a) Working as specified?
b) A bug in the ISAPI filter?
c) A bug in Tomcat?
d) Something else?

Thanks in advance.

-- 
James GarrisonAthens Group, Inc.
mailto:[EMAIL PROTECTED]5608 Parkcrest Dr
http://www.athensgroup.comAustin, TX 78731
PGP: RSA=0x92E90A3B DH/DSS=0x498D331C (512) 345-0600 x150



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




RE: getRemoteUser(), getAuthType() returning empty string instead of NULL?

2002-04-23 Thread Ignacio J. Ortega

 De: James Garrison [mailto:[EMAIL PROTECTED]]
 Enviado el: martes 23 de abril de 2002 18:48

Needed more information, which Tomcat version?, post the connector or
interceptor line for ajp13 prsent in your server.xml file..

Saludos ,
Ignacio J. Ortega



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




Tomcat, MS Beta 2 driver, and database pooling

2002-04-23 Thread Sean LeBlanc

Does anyone have this working? If so, can you please post your server.xml, your 
(context)web.xml and your working code?

I just cannot get this to work. Any and all ideas are welcome. If it can't work, it'd 
be nice to know that, too. Thanks.

My web.xml has this entry:

resource-ref
descriptiontest jdbc/nutrosDB/description
res-ref-namejdbc/nutrosDB/res-ref-name
res-typecom.microsoft.jdbcx.sqlserver.SQLServerDataSource/res-type
res-authContainer/res-auth
res-sharing-scopeShareable/res-sharing-scope
/resource-ref

My server.xml has this entry:

Resource name=jdbc/nutrosDB auth=Container
type=javax.sql.DataSource/
ResourceParams name=jdbc/nutrosDB
parameter
namedatabase/namevaluemydb/value
/parameter
parameter

namefactory/namevaluecom.microsoft.jdbcx.sqlserver.SQLServerDataSource/value
/parameter


parameter

namedriverClassName/namevaluecom.microsoft.jdbc.sqlserver.SQLServerDriver/value
/parameter

parameter

namedriverName/namevaluejdbc:microsoft:sqlserver://192.168.9.253;user=username;Password=pwd;DatabaseName=mydb/val
ue
/parameter

parameter
nameuser/namevalueusername/value
/parameter
parameter
namepassword/namevaluepwd/value
/parameter
/ResourceParams


Here is the source code:

Context initCtx = new InitialContext();
Context envCtx = (Context)initCtx.lookup(java:comp/env);
if (envCtx == null)
{
System.out.println(Context is null!);
}

NamingEnumeration ne = envCtx.listBindings(jdbc);
while (ne.hasMoreElements())
{
System.out.println( + ne.next());
}

System.out.println( About to get ds.);
com.microsoft.jdbcx.sqlserver.SQLServerDataSource ds =
(com.microsoft.jdbcx.sqlserver.SQLServerDataSource)envCtx.lookup(jdbc/nutrosDB);
System.out.println(About to get pooledconnection.);
PooledConnection x = ds.getPooledConnection(usr,pwd);
System.out.println(About to get connection.);
Connection conDB1 = x.getConnection();

And here is the error I get (right after it prints About to get ds.):

javax.naming.NamingException: Cannot create resource instance
at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:167)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:299)
at org.apache.naming.NamingContext.lookup(NamingContext.java:834)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at Nutros.Beans.DatabaseBean.init(Unknown Source)
at Nutros.Beans.beanBrand.loadProduct(Unknown Source)
at org.apache.jsp.index$jsp._jspService(index$jsp.java:579)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 

Tomcat 3.3a as a W2k Service

2002-04-23 Thread Short, Dave

I'm not having much success trying to run Tomcat 3.3a as a W2K service.
jk_nt_service -s Tomcat just gives me the following dialog:

Asked (and given) winsock 1.1
Starting Tomcat.
Tomcat failed to start.

The logs are not written and there is no trace of any type of error message.
The service was installed as follows:

jk_nt_service -i Tomcat wrapper.properties

Any help would be greatly appreciated.



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




Tomcat 4.02 on AIX 4.3.3 and Java 1.2.2.17

2002-04-23 Thread Hamish Marson


Hey all.

I searched the archives, but didn't find any similiar problems. Has
anyone here experienced troubles running tomcat 4.02 on AIX 4.3.3 with
IBM Java 1.2.2 (Patch level 17).

I'm seeing 2 problems.

1. Tomcat won't start of java is exec'ed with the full path... Tomcat
seems to do something funny... if java was execed with the full path
(Which is what catalina.sh does), then I just get the wonderfully
informatove error messgae Cannot create java virtual machine.
WOnderful. Just making sure the PATH is correct   exec'ing java instead
of /usr/java_dev2/jre/bin/java works...

2. Tomcat 4.02 appears to be ignoring classes put onto the context lib
directory. Wor instance I have a servlet that uses the cryptix librraies
(Some old version from early last year). CHanges to the API mean I have
to run this still, yet when the servlet tries to call SSLConnect, I get
no class found exception errors for java/security/interfaces/RSAKey.
Only by specifying the actual jar file (cryptix31.jar) fully qualified
in the -classpath parameter when starting tomcat (Again changes to
catalina.sh) can I get this to work. Yet the logs clearly show the
cryptic31.jar being deployed, so I know that tomcat can at least see it.

Anyone got any ideas WHY this hapens? Although I finally have it
working, I am at a loss as to why these two mods should have had to have
been made. #1 appears to be specific to the Java 1.2.2 from IBM. #2
appears to be on several different JVM's, including the jre from iPlanet
(I was desperate), and IBM's Java 1.3.

TIA

Hamish.


--

I don't suffer from Insanity... | Linux User #237369
I enjoy every minute of it...   |
|
http://www.travellingkiwi.com/  |




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




Re: getRemoteUser(), getAuthType() returning empty string insteadof NULL?

2002-04-23 Thread James Garrison

Ignacio J. Ortega wrote:
De: James Garrison [mailto:[EMAIL PROTECTED]]
Enviado el: martes 23 de abril de 2002 18:48
 
 
 Needed more information, which Tomcat version?, post the connector or
 interceptor line for ajp13 prsent in your server.xml file..
 

The Tomcat version is 4.0.2.  Here's the Connector definition:


 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0 tomcatAuthentication=false/


The results are the same with tomcatAuthentication=true and also
when the tomcatAuthentication parameter is omitted.

-- 
James GarrisonAthens Group, Inc.
mailto:[EMAIL PROTECTED]5608 Parkcrest Dr
http://www.athensgroup.comAustin, TX 78731
PGP: RSA=0x92E90A3B DH/DSS=0x498D331C (512) 345-0600 x150



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




RE: Tomcat 3.3a as a W2k Service

2002-04-23 Thread Lecaros, Noel

When you say the logs are not written, do you mean the file jvm.stderr in
the logs subdirectory for Tomcat?  On version 3.3.1, there is an issue with
jk_nt_service in that it does not properly interpret the wrapper.properties
file supplied in the distribution.  Specifically, the wrapper.jvm.options
property cannot be blank.  You might want to remove this property from
wrapper.cmd_line located at the bottom of this file, or add an option, some
samples of which are given in the same file.  I have mine set to:

wrapper.jvm.options=-Xrs

since I use JDK1.3.1

Cheers,
Noel

-Original Message-
From: Short, Dave [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 10:49 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 3.3a as a W2k Service


I tried that and it still didn't work.  On the version of jk_nt_service.exe
that I'm using the -a stands for Set startup as automatic.

I'm in the correct directory and address/ports are not in use.  I can start
Tomcat from the command line ok...

-Original Message-
From: John Roth [mailto:[EMAIL PROTECTED]]
Sent: April 23, 2002 10:40 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 3.3a as a W2k Service


Try: jk_nt_service -i Tomcat -a wrapper.properties (the -a being an
addition)

Also:
1) be sure you are in the directory where wrapper.properties exists
2) verify your address/ports are not in use elsewhere

Thanks,
john


-Original Message-
From: Short, Dave [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 1:35 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 3.3a as a W2k Service


I'm not having much success trying to run Tomcat 3.3a as a W2K service.
jk_nt_service -s Tomcat just gives me the following dialog:

Asked (and given) winsock 1.1
Starting Tomcat.
Tomcat failed to start.

The logs are not written and there is no trace of any type of error message.
The service was installed as follows:

jk_nt_service -i Tomcat wrapper.properties

Any help would be greatly appreciated.



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


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

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

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




web.xml parse error

2002-04-23 Thread Animesh Chaturvedi - US

Hi 

I am adding the following error-page directive to web.xml. 

error-page 
error-code404/error-code 
location/webdev/notfound.jsp/location 
/error-page 

I always get the following error on starting tomcat

Apache Tomcat/4.0.3
PARSE error at line 866 column 11
org.xml.sax.SAXParseException: The content of element type web-app must
match
(icon?,display-name?,description?,distributable?,context-param*,filter*,fil
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca
l-ref*).

I tried putting the error-page directive in tomcat/conf/web.xml and then in
my application context web.xml. But nothing works. 

One more question I don't like to see Tomcat's 500 Internal Server error
page or 403 page. I want my customized page to show up. How can I do that?



Thanks 

Animesh

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




Tomcat Session ID handling??

2002-04-23 Thread John Regan

*   I am concerned about how Tomcat identifies whether or not a page hit
is part of an old or new session.  If you come back the next day and type
yesterday's jsessionid= value onto your URL line, will Tomcat be tricked
into thinking its the same session?  If you bookmark a page so that the
jsessionid= value is saved as part of the bookmark, will Tomcat think it's
the same old session every time you exercise the bookmark?




Re: web.xml parse error

2002-04-23 Thread rsequeira


You probably have the web.xml defined in an incorrect order. To answer your
other question, you could define a 403 (forbidden) error page. Note this
may only work right when using form-based authentication. With Basic
authentication, you might need to override the Authenticator class that
does the Basic authentication. As for 500 Internal Server error, many users
have faced problems in defining an error page. But you could try doing the
same thing as you have done for a 404 error-page declaration. Or you could
probably define an error page directive for Servlet Exception.

RS





Animesh Chaturvedi - US [EMAIL PROTECTED] on 04/23/2002
01:03:57 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:'Tomcat Users List' [EMAIL PROTECTED]
cc:

Subject:web.xml parse error

Hi

I am adding the following error-page directive to web.xml.

error-page
 error-code404/error-code
 location/webdev/notfound.jsp/location
/error-page

I always get the following error on starting tomcat

Apache Tomcat/4.0.3
PARSE error at line 866 column 11
org.xml.sax.SAXParseException: The content of element type web-app must
match
(icon?,display-name?,description?,distributable?,context-param*,filter*,fil

ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin

g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se

curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca

l-ref*).

I tried putting the error-page directive in tomcat/conf/web.xml and then in
my application context web.xml. But nothing works.

One more question I don't like to see Tomcat's 500 Internal Server error
page or 403 page. I want my customized page to show up. How can I do that?



Thanks

Animesh

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










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




How select a printer to print

2002-04-23 Thread Jack Li

Hello,
My users need to select a printer from a list of printers installed on web
server. How to get the list of printers and select a printer to print the
report? I have JDK1.3 and Tomcat 4
 
Thanks,
 
Jack Li



Re: Apache 2.0 and Tomcat 4.0.3 integration help need

2002-04-23 Thread Michael Delamere

Hi Brandon,

No sorry,  I´ve been working on linux to get everything working.  The next
step will be to extend the how-to with virtual hosts.  As far as I know,
Simon want´s to include this in his how-to.

bye Michael Delamere

p.s.  I just wanted to thank everyone contributing to this topic because it
really does make things easier for people who are new to the scene.


- Original Message -
From: Boon K. Chee [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 23, 2002 6:19 PM
Subject: Re: Apache 2.0 and Tomcat 4.0.3 integration help need


Dear Michael,

 Thanks for the information. Yes, I've found his excellent tutorial and
managed to set everything up on my Linux machine.

 BTW, do you know any good tutorial to set things up on Win 2000 or XP?
Thanks.

Best regards,
Brandon

---Original Message---

From: Tomcat Users List
Date: Monday, April 22, 2002 02:09:27 PM
To: Tomcat Users List
Subject: Re: Apache 2.0 and Tomcat 4.0.3 integration help need

Simon Burr has come up with an excellent mini-tutorial:

http://www.pubbitch.org/jboss.html

I managed to get it set up in no time (almost) with his how-to.

bye Michael Delamere


- Original Message -
From: Boon K. Chee [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 22, 2002 10:59 PM
Subject: Apache 2.0 and Tomcat 4.0.3 integration help need


Is there anybody who has managed to integrate Apache 2.0 and Tomcat 4.0.3
successfully? I have tried to follow all the instructions, but fail to
integrate them on both Win 2000 and Redhat 7.2. I tried both mod_jk and
mod_webapp. But Apache will always complain with some errors. I can run both
application separately without any problem. Both application is downloaded
from apache website from their binary distribution copy. I will appreciate a
lot if anyone out there can give me some guidelines. Thanks.

sincerely,
Brandon


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


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




RE: web.xml parse error

2002-04-23 Thread Animesh Chaturvedi - US




Where can I find the correct order for web.xml. I am going through the DTD
but it does not mention any preferred order. I tried moving my error-page
directive inside web.xml, but that did not help ??

My web.xml (this is the web.xml shipped in tomcat/conf) has following
entries in this order

web-app
  servlet
servlet-namedefault/servlet-name
 
servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class
init-param
  param-namedebug/param-name
  param-value0/param-value
/init-param
init-param
  param-namelistings/param-name
  param-valuetrue/param-value
/init-param
load-on-startup1/load-on-startup
  /servlet
 
  :
  :
  : 
  
  other similar servlet entries

  :
  :  
  servlet-mapping
servlet-namedefault/servlet-name
url-pattern//url-pattern
  /servlet-mapping
  
  :
  :
  :
   other servlet mappings

  :
  session-config
session-timeout30/session-timeout
  /session-config

  :
  mime-mapping
extensionabs/extension 
mime-typeaudio/x-mpeg/mime-type
  /mime-mapping

  :
  :
  :
   other mime-mappings   

  :
  :
  
  welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file  
welcome-fileindex.jsp/welcome-file
  /welcome-file-list

/web-app


Where do you think I should put the error-page directive in here??

Thanks

Animesh



   

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 11:15 AM
To: Tomcat Users List
Subject: Re: web.xml parse error



You probably have the web.xml defined in an incorrect order. To answer your
other question, you could define a 403 (forbidden) error page. Note this
may only work right when using form-based authentication. With Basic
authentication, you might need to override the Authenticator class that
does the Basic authentication. As for 500 Internal Server error, many users
have faced problems in defining an error page. But you could try doing the
same thing as you have done for a 404 error-page declaration. Or you could
probably define an error page directive for Servlet Exception.

RS





Animesh Chaturvedi - US [EMAIL PROTECTED] on 04/23/2002
01:03:57 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:'Tomcat Users List' [EMAIL PROTECTED]
cc:

Subject:web.xml parse error

Hi

I am adding the following error-page directive to web.xml.

error-page
 error-code404/error-code
 location/webdev/notfound.jsp/location
/error-page

I always get the following error on starting tomcat

Apache Tomcat/4.0.3
PARSE error at line 866 column 11
org.xml.sax.SAXParseException: The content of element type web-app must
match
(icon?,display-name?,description?,distributable?,context-param*,filter*,fil

ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin

g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se

curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca

l-ref*).

I tried putting the error-page directive in tomcat/conf/web.xml and then in
my application context web.xml. But nothing works.

One more question I don't like to see Tomcat's 500 Internal Server error
page or 403 page. I want my customized page to show up. How can I do that?



Thanks

Animesh

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










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

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




RE: web.xml parse error

2002-04-23 Thread Tim Cronin

the tag tells the order

(from DTD)

!ELEMENT servlet (icon?, servlet-name, display-name?, description?,
(servlet-class|jsp-file), init-param*, load-on-startup?, run-as?,
security-role-ref*)

web-app
  servlet
icon/icon
servlet-name/servlet-name
display-name/display-name
description/description
servlet-class/servlet-class
init-param
  param-name/param-name
  param-value/param-value
/init-param
load-on-startup/load-on-startup
.
.
.   
  /servlet

-Original Message-
From: Animesh Chaturvedi - US [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 1:41 PM
To: 'Tomcat Users List'
Subject: RE: web.xml parse error





Where can I find the correct order for web.xml. I am going through the DTD
but it does not mention any preferred order. I tried moving my error-page
directive inside web.xml, but that did not help ??

My web.xml (this is the web.xml shipped in tomcat/conf) has following
entries in this order

web-app
  servlet
servlet-namedefault/servlet-name
 
servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class
init-param
  param-namedebug/param-name
  param-value0/param-value
/init-param
init-param
  param-namelistings/param-name
  param-valuetrue/param-value
/init-param
load-on-startup1/load-on-startup
  /servlet
 
  :
  :
  : 
  
  other similar servlet entries

  :
  :  
  servlet-mapping
servlet-namedefault/servlet-name
url-pattern//url-pattern
  /servlet-mapping
  
  :
  :
  :
   other servlet mappings

  :
  session-config
session-timeout30/session-timeout
  /session-config

  :
  mime-mapping
extensionabs/extension 
mime-typeaudio/x-mpeg/mime-type
  /mime-mapping

  :
  :
  :
   other mime-mappings   

  :
  :
  
  welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file  
welcome-fileindex.jsp/welcome-file
  /welcome-file-list

/web-app


Where do you think I should put the error-page directive in here??

Thanks

Animesh



   

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 11:15 AM
To: Tomcat Users List
Subject: Re: web.xml parse error



You probably have the web.xml defined in an incorrect order. To answer your
other question, you could define a 403 (forbidden) error page. Note this
may only work right when using form-based authentication. With Basic
authentication, you might need to override the Authenticator class that
does the Basic authentication. As for 500 Internal Server error, many users
have faced problems in defining an error page. But you could try doing the
same thing as you have done for a 404 error-page declaration. Or you could
probably define an error page directive for Servlet Exception.

RS





Animesh Chaturvedi - US [EMAIL PROTECTED] on 04/23/2002
01:03:57 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:'Tomcat Users List' [EMAIL PROTECTED]
cc:

Subject:web.xml parse error

Hi

I am adding the following error-page directive to web.xml.

error-page
 error-code404/error-code
 location/webdev/notfound.jsp/location
/error-page

I always get the following error on starting tomcat

Apache Tomcat/4.0.3
PARSE error at line 866 column 11
org.xml.sax.SAXParseException: The content of element type web-app must
match
(icon?,display-name?,description?,distributable?,context-param*,filter*,fil

ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin

g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se

curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca

l-ref*).

I tried putting the error-page directive in tomcat/conf/web.xml and then in
my application context web.xml. But nothing works.

One more question I don't like to see Tomcat's 500 Internal Server error
page or 403 page. I want my customized page to show up. How can I do that?



Thanks

Animesh

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










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

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

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




Authenticate works but accessControl fails?

2002-04-23 Thread Januski, Ken

Hi,

I'm still trying to set up jdbc security realms and have a new problem. I
find that depending on what I do in the url-pattern part of web.xml in my
application directory I either get in with no authentication being used at
all or I get something like this:

 Authenticator:[/kencat] Calling authenticate()
Authenticated 'ken' with type 'BASIC'
...Calling accessControl()
...Failed accessControl() test

I believe that I should be seeing something telling me that I did
authenticate but also that I passed the accessControl() test. So I'm
wondering if anyone can point me in the right direction to figure out why 'm
failing the accessControl() test. I assume that it's the web.xml file that
is the problem but I'm completely confident of that. As I said I've made
other changes to the uri-pattern that get me to the page but also end up
bypassing authentication ('checking constraint -- false').

Thanks in advance,

ken



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




mod_jk.dll Apache 2 problem

2002-04-23 Thread Douglas, Rory

Hello

I'm trying to use mod_jk.dll with Apache 2.0.35 on W2K to set up
load-balancing of a few Tomat 4 servers. Problem is, I can't get Apache to
load mod_jk.dll.

I have copied mod_jk.dll into %Apache_home%\modules and included the
LoadModule directive in httpd.conf
Apache says: 

Cannot load C:/Development/Apache2/modules/mod_jk.dll into server: The
specified module could not be found.

I'm using the binary (.msi) install of Apache, is this a problem? Do I need
to get the source and re-compile with some specific options/directives set?

For that matter, is there any other way of load-balancing other than using
mod_jk?

thanks for any help

Rory Douglas
Sun Chemical Corporation
(201) 224-4600 x178
[EMAIL PROTECTED]



RE: Authenticate works but accessControl fails?

2002-04-23 Thread Januski, Ken

Answering my own question, after finding some useful information in Hans
Bergsten's Java Server Pages: I realized that the access was related to how
I set up the mySQL tables for jbdc to authenticate against. Eventually I
found that there was a difference in spelling between what I had there and
role-name that I had in my web.xml file.

-Original Message-
From: Januski, Ken [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 2:49 PM
To: Tomcat Users List
Subject: Authenticate works but accessControl fails?


Hi,

I'm still trying to set up jdbc security realms and have a new problem. I
find that depending on what I do in the url-pattern part of web.xml in my
application directory I either get in with no authentication being used at
all or I get something like this:

 Authenticator:[/kencat] Calling authenticate()
Authenticated 'ken' with type 'BASIC'
...Calling accessControl()
...Failed accessControl() test

I believe that I should be seeing something telling me that I did
authenticate but also that I passed the accessControl() test. So I'm
wondering if anyone can point me in the right direction to figure out why 'm
failing the accessControl() test. I assume that it's the web.xml file that
is the problem but I'm completely confident of that. As I said I've made
other changes to the uri-pattern that get me to the page but also end up
bypassing authentication ('checking constraint -- false').

Thanks in advance,

ken



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

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




Re: servlet mapping

2002-04-23 Thread Phillip Morelock

hi -- i had this problem a while back -- i don't know that you've explained
it clearly, but it sounds like the same problem i had.

The limitation is in the servlet specification itself.  Mapping is not
designed to work this way...I remember being really disappointed when I read
the servlet specification's description of mappings.  What I ended up doing
was for special cases I created my own dispatch servlet that would mangle
the incoming url and forward or redirect to the appropriate resource.

good luck
fillup



On 4/23/02 5:27 AM, Lea Allison [EMAIL PROTECTED] wrote:

 Hi
 
 can anyone tell me how setup servlet mapping and specifiy paths to be left
 out.
 
 For instance I have:
 
 servlet-mapping
   servlet-nameLookupServlet/servlet-name
   url-pattern/*/url-pattern
 /servlet-mapping
 
 
 but I want to have the above, but not including index.jsp for example. So
 any other request except index.jsp will be sent to my lookupServlet.
 
 Thanks
 
 Lea
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


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




Map network drive automatically

2002-04-23 Thread Jack Li

Hello All,
Does anybody know how to map a network drive by writing a java program or
other program languages? My OS is w2k and web server is IIS and Tomcat 4.
 
 
Thanks,
Jack Li



Re: Map network drive automatically

2002-04-23 Thread Phillip Morelock

check out the 

net use 

command -- you can just use a batch file (.bat)




On 4/23/02 12:21 PM, Jack Li [EMAIL PROTECTED] wrote:

 Hello All,
 Does anybody know how to map a network drive by writing a java program or
 other program languages? My OS is w2k and web server is IIS and Tomcat 4.
 
 
 Thanks,
 Jack Li
 


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




RE: Map network drive automatically

2002-04-23 Thread John Roth

Also, Java does support UNC's (sometimes a little glitchy, you will need to
test well).  We use all UNC's now due to problems attaching to remote
drives, ensuring the drive is mapped correctly on startup, etc. UNC's have
worked well for us.

John

-Original Message-
From: Phillip Morelock [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 3:39 PM
To: Tomcat Users List
Subject: Re: Map network drive automatically


check out the

net use

command -- you can just use a batch file (.bat)




On 4/23/02 12:21 PM, Jack Li [EMAIL PROTECTED] wrote:

 Hello All,
 Does anybody know how to map a network drive by writing a java program or
 other program languages? My OS is w2k and web server is IIS and Tomcat 4.


 Thanks,
 Jack Li



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


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




file I/O

2002-04-23 Thread cocoonlist78

Tomcat Users,

Where do I need to put files (in this case XML files) so that my servlets have access 
to them without worrying about paths? I've tried a few places but keep getting a 
nullPointerException.

I started this project in JBuilder and have had my XML files just inside the project 
folder and things have been working fine.  Now I'm trying to move it over to a tomcat 
install and have had troubles.  Any hints?

I'm able to write a simple text file but it shows up outside the tomcat install 
directory in C:\Documents and Settings\student\Start Menu\Programs\Apache Tomcat 4.0 
which I find baffling.  I tried putting my XML files in this directory but I still get 
the nullPointerException.

I'm pretty new to tomcat so feel free to just refer to a handy URL to answer my 
question if one exists.  

Thanks,

James



RE: Map network drive automatically

2002-04-23 Thread Jim Urban

You can also map drive letters within a Java program for the duration of the
Java program:

String mapCmd = new String(net use w: computername\\sharename);
Runtime rt = Runtime.getRuntime();
try {
rt.exec(mapCmd);
}
catch (IOException e)   {
System.out.println(e);
}

Jim


[PARA]Jim Urban - [EMAIL PROTECTED][TAB][PARA]Clinical
Connectivity Suite Product Manager[PARA]Suite 295[PARA]500 Park
Blvd.[PARA]Itasca, IL  60143[PARA]Voice:  (630) 250-3045 x106[PARA]Fax:
(630) 250-3046[PARA][PARA]Advancing Healthcare
Performance[PARA]www.parkcitysolutions.com[PARA]


-Original Message-
From: John Roth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 2:54 PM
To: 'Tomcat Users List'
Subject: RE: Map network drive automatically

Also, Java does support UNC's (sometimes a little glitchy, you will need to
test well).  We use all UNC's now due to problems attaching to remote
drives, ensuring the drive is mapped correctly on startup, etc. UNC's have
worked well for us.

John

-Original Message-
From: Phillip Morelock [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 3:39 PM
To: Tomcat Users List
Subject: Re: Map network drive automatically


check out the

net use

command -- you can just use a batch file (.bat)




On 4/23/02 12:21 PM, Jack Li [EMAIL PROTECTED] wrote:

 Hello All,
 Does anybody know how to map a network drive by writing a java program or
 other program languages? My OS is w2k and web server is IIS and Tomcat 4.


 Thanks,
 Jack Li



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


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


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




Building mod_jk for Apache 2.0 on Red Hat Linux 7.2

2002-04-23 Thread Pascal Forget

I get the followign error when compiling mod_jk/native/apache-2.0 from the
4.04-b2 connectors source on RedHat Linux 7.2 (Intel).  

Any idea what is wrong?  Thanks,

Pascal

/web/ubeans/build/libtool --silent --mode=compile gcc   
-DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT 
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -g -O2 -pthread 
-I/web/ubeans/include -I../common -I/web/ubeans/include/ 
-I/apps/jdk1.4/include -I/apps/jdk1.4/include/linux  -c -o mod_jk.lo 
mod_jk.c  touch mod_jk.slo
/web/ubeans/build/libtool --silent --mode=link gcc -o mod_jk.so -rpath 
/web/ubeans/modules -module -avoid-version -I../common 
-I/web/ubeans/include/ -I/apps/jdk1.4/include 
-I/apps/jdk1.4/include/linux  -L/web/ubeans/lib  mod_jk.lo jk_worker.lo 
jk_util.lo jk_uri_worker_map.lo jk_sockbuf.lo jk_pool.lo jk_nwmain.lo 
jk_msg_buff.lo jk_md5.lo jk_map.lo jk_lb_worker.lo jk_jni_worker.lo 
jk_context.lo jk_connect.lo jk_ajp_common.lo jk_ajp14_worker.lo 
jk_ajp14.lo jk_ajp13_worker.lo jk_ajp13.lo jk_ajp12_worker.lo
/usr/lib/gcc-lib/i386-redhat-linux/3.0.4/../../../crt1.o: In function 
`_start':
/usr/lib/gcc-lib/i386-redhat-linux/3.0.4/../../../crt1.o(.text+0x18): 
undefined reference to `main'
mod_jk.lo: In function `ws_start_response':
/apps/jakarta-tomcat-connectors-4.0.4-b2-src/jk/native/apache-2.0/mod_jk.c:225: 
undefined reference to `apr_psprintf'
/apps/jakarta-tomcat-connectors-4.0.4-b2-src/jk/native/apache-2.0/mod_jk.c:249: 
undefined reference to `apr_table_add'
/apps/jakarta-tomcat-connectors-4.0.4-b2-src/jk/native/apache-2.0/mod_jk.c:246: 
undefined reference to `apr_date_parse_http'
/apps/jakarta-tomcat-connectors-4.0.4-b2-src/jk/native/apache-2.0/mod_jk.c:246: 
undefined reference to `ap_update_mtime'
/apps/jakarta-tomcat-connectors-4.0.4-b2-src/jk/native/apache-2.0/mod_jk.c:247: 
undefined reference to `ap_set_last_modified'
/apps/jakarta-tomcat-connectors-4.0.4-b2-src/jk/native/apache-2.0/mod_jk.c:239: 
undefined reference to `apr_table_set'
/apps/jakarta-tomcat-connectors-4.0.4-b2-src/jk/native/apache-2.0/mod_jk.c:236: 
undefined reference to `apr_table_set'


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




VIRUS from htillit@amurititania.mr -- W32Klez.gen@mm

2002-04-23 Thread Micael Padraig Og mac Grene

Watch for a virus.  The Subject line says ACCESS KEY.



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




RE: Security (Struts/Turbine)

2002-04-23 Thread Anthony Eden

Turbine can use several different view technologies, including JSP, WebMacro, 
Velocity, and probably more.  The
recommendation at this point is to use Velocity (I believe).

Sincerely,
Anthony Eden

 -Original Message-
 From: Timothy Fisher [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 23, 2002 9:15 AM
 To: Tomcat Users List
 Subject: Re: Security (Struts/Turbine)


 Im not real familiar with Turbine either...  But
 based on your description of it, you point out that it
 does not use JSPs for view, which Struts does.  Im
 curious, what does Turbine use/recommend for creating
 the view?  Surely it does not reccommend putting all
 of the view into a servlet???

 FYI, Stuts does NOT encourage the use of lengthly
 scripts and business logic inside the JSPs.  JSPs are
 used as the view components, while servlets serve as
 controllers, and the business logic should be placed
 in beans.

 Tim

 --- Oki DZ [EMAIL PROTECTED] wrote:
  On 04/23 15:20 Joel Rees wrote:
   So, how do you think Turbine compares to Struts?
  I've been looking at both,
   but my colleagues prefer the designated standard
  track.
 
  I can't tell; never been used Struts (but I've taken
  a look at:
 
 http://www.mail-archive.com/general@jakarta.apache.org/msg00495.html)
  Turbine is a template-based web apps framework, and
  mainly uses servlets.
  It seems that Struts is too, but it uses JSPs for
  the presentation (view). So,
  I think if you like to put Java codes in the
  scripts, then Struts would be for
  you. But if your scripts (for presentation) are not
  so complex and you like to
  put your business logic on servlets, then I believe
  that Turbine is for you.
 
  In a sense, JSPs are templates too, but they put
  (you could put) lots of
  business logic in them. Turbine doesn't want you to
  do so (presentation is
  presentation, only some if's are allowed :-); if you
  need to do templating a
  lot, you can use the templating support (ie:
  Velocity), but if not, you can
  stick to just servlets (and ECS, maybe).
 
  BTW, what is the standard track in web
  applications building...?
 
  Oki
 
  --
  To unsubscribe:
  mailto:[EMAIL PROTECTED]
  For additional commands:
  mailto:[EMAIL PROTECTED]
  Troubles with the list:
  mailto:[EMAIL PROTECTED]
 


 __
 Do You Yahoo!?
 Yahoo! Games - play chess, backgammon, pool and more
 http://games.yahoo.com/

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



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




Re: How select a printer to print

2002-04-23 Thread rsequeira


First if the users use the browser to view webpages spewed out by Tomcat,
then they will only see the printers installed on their machines. If you
have a java app, you could probably use JNDI to expose the printers (I
think...I've never done that though). But as I said, web users will only
see printers local to them.

RS




Jack Li [EMAIL PROTECTED] on 04/23/2002 01:30:34 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:'[EMAIL PROTECTED]' [EMAIL PROTECTED]
cc:

Subject:How select a printer to print

Hello,
My users need to select a printer from a list of printers installed on web
server. How to get the list of printers and select a printer to print the
report? I have JDK1.3 and Tomcat 4

Thanks,

Jack Li









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




Trouble getting Apache talking to Tomcat

2002-04-23 Thread zonker harris

Hey all,

I've set up Tomcat, I've put mod_webapp.so into apache's libexec 
directory and after i restart Tomcat, when I restart apache it throws 
this error.

# ../bin/apachectl start
Syntax error on line 1159 of /usr/local/apache/conf/httpd.conf:
Invalid command 'WebAppMount', perhaps mis-spelled or defined by a 
module not included in the server configuration
../bin/apachectl start: httpd could not be started

this is the relevant section of the httpd.conf
 LoadModule webapp_module libexec/mod_webapp.so
  WebAppConnection warpConnection warp 64.105.155.196:8008
  WebAppMount examples warpConnection /examples

if i comment out WebAppMount, apache will start (but not talk to tomcat)

Apache version
Server version: Apache/1.3.22 (Unix)
Server built:   Oct 10 2001 14:50:42

Tomcat version
4.0-B3

I am sure I am just missing something stupid, any assist toward 
enlightenment would be appreciated

thanks

zonker
[EMAIL PROTECTED]


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




Re: Trouble getting Apache talking to Tomcat

2002-04-23 Thread adrianthiele

zonker harris wrote:

 Hey all,

 I've set up Tomcat, I've put mod_webapp.so into apache's libexec 
 directory and after i restart Tomcat, when I restart apache it throws 
 this error.

 # ../bin/apachectl start
 Syntax error on line 1159 of /usr/local/apache/conf/httpd.conf:
 Invalid command 'WebAppMount', perhaps mis-spelled or defined by a 
 module not included in the server configuration
 ../bin/apachectl start: httpd could not be started

 this is the relevant section of the httpd.conf
 LoadModule webapp_module libexec/mod_webapp.so
  WebAppConnection warpConnection warp 64.105.155.196:8008
  WebAppMount examples warpConnection /examples

 if i comment out WebAppMount, apache will start (but not talk to tomcat)

 Apache version
 Server version: Apache/1.3.22 (Unix)
 Server built:   Oct 10 2001 14:50:42

 Tomcat version
 4.0-B3

 I am sure I am just missing something stupid, any assist toward 
 enlightenment would be appreciated

 thanks

 zonker
 [EMAIL PROTECTED]

I had trouble starting Apache 1.3 on FreeBSd until I changed my 
server.xml :

!-- Define an Apache-Connector Service --
 Service name=Tomcat-Apache

   Connector className=org.apache.catalina.connector.warp.WarpConnector
port=8008 minProcessors=5 maxProcessors=75
enableLookups=true appBase=webapps
acceptCount=10 debug=0/

   !-- Replace localhost with what your Apache ServerName is set to 
--
   Engine className=org.apache.catalina.connector.warp.WarpEngine
name=localhost debug=0
  ^^
Only when I put my  real servername instead of localhost did mine start 
to work.
Like I said , this may not be your problem, just an idea.

Adrian








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







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




/index.html works, / doesn't

2002-04-23 Thread Bernd Prager

Sorry, if I that got answered already, but I found just a bunch
of questions in the mailing list related to this and never an answer:

I can't make welcome-file with tomcat-4.0.3, apache_1.3.24 
and mod_webapp working. 

The url http://myhost/index.html works just fine, the url
http://myhost/ doesn't.

(I do have index.html in my welcome-file list.)

Thanks for any help.
-- Bernd


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




Re: Apache 2.0 and Tomcat 4.0.3 integration help need

2002-04-23 Thread glen

That was it! As a rule I make a point of putting /usr/ucb last in the
path, but in this case putting it first seems to have been the magic
bullet.

Thanks

 i can only tell what i used: gcc-2.8.1 on solaris 2.6 /usr/ucb was first
 in the path. as far as i know there are quite a lot of linkers/make on
 the typical solaris installation and not all combinations do work. i know
 that /usr/ucb, /usr/bin, and /usr/ccs/bin often have required binaries in
 them (sometimes /usr/local/bin). i fear you will have to find the correct
 combination of compiler and linker for your machine.
 
 i would therefore suggest playing around with the ordering in the path
 variable and see whether that changes anything.
 
 bye,
  georg
 
 On Tue, 23 Apr 2002 [EMAIL PROTECTED] wrote:
 
  There have been a lot of threads on the question of Apache 2/Tomcat
  integration, and I think I have read them all, and tried them all but
  still I cannot compile a working version of mod_webapp.
  
  On Solaris8, I have tried with both the Sun compilers and gcc(2.95.3),
  using the latest CVS checkout and/or the latest source tarball. With
  Sun's dev utils and/or with gnu utils...  i.e., every variation I can
  think of.
  
  My lastest effort was to follow Simon Burr's walk-through:
  
  cd ${TOMCAT_CONNECTORS_SRC_HOME}/webapp
  chmod +x support/*.sh
  ./support/buildconf.sh
  ./configure --with-apxs=${APACHE_HOME}/bin/apxs
  make
  
  At this point, I had a 0 length mod_webapp.slo file. It is not clear
  from the description if this is to be expected or not, so I continued
  on with the next step:
  
  cd lib
  gcc -shared -o libwebapp.so *.lo
  cd ../apache-2.0/
  
  This seemed to go okay (no error messages or dire warnings).
  
  ${APACHE_HOME}/build/libtool --silent --mode=link \
  gcc -shared -o mod_webapp.so -rpath ${APACHE_HOME}/modules \
  -module -avoid-version -I../include  -L../lib -dlopen
  ../lib/libwebapp.la  mod_webapp.lo
  
  This produced several hundred lines of error messages, for example:
  
  Text relocation remains referenced
  against symbol  offset  in file
  unknown   0x104c  
export/install/apache/jakarta-tomcat-connectors-4.0.2-01-src/webapp/lib/libwebapp.a(pr_warp.o)
  
  The final step is:
  cp mod_webapp.so ${APACHE_HOME}/modules/
  
  Not surprisingly there was no mod_webapp.so file.
  
  After almost two weeks of trying endless config variations, pouring over 
  FAQs and scattered documentation, I think I would really appreciate any
  suggestions that anyone might be able to offer.
  
  Thanks...
  
  Glen Jackson
  [EMAIL PROTECTED]
  
   
   Simon Burr has come up with an excellent mini-tutorial:
   
   http://www.pubbitch.org/jboss.html
   
   I managed to get it set up in no time (almost) with his how-to.
   
   bye Michael Delamere
   
   
   - Original Message -
   From: Boon K. Chee [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Monday, April 22, 2002 10:59 PM
   Subject: Apache 2.0 and Tomcat 4.0.3 integration help need
   
   
   Is there anybody who has managed to integrate Apache 2.0 and Tomcat 4.0.3
   successfully? I have tried to follow all the instructions, but fail to
   integrate them on both Win 2000 and Redhat 7.2. I tried both mod_jk and
   mod_webapp. But Apache will always complain with some errors. I can run both
   application separately without any problem. Both application is downloaded
   from apache website from their binary distribution copy. I will appreciate a
   lot if anyone out there can give me some guidelines. Thanks.
   
   sincerely,
   Brandon
   
   
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
   
  
  
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
  
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


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




Re: Trouble getting Apache talking to Tomcat

2002-04-23 Thread Oktay Altunergil

I think you should use WebAppDeploy not WebAppMount
After that you are likely to see two more error messages.. One related to 'ServerName' 
the other I don't remember. :)

Oktay Altunergil


On Tue, 23 Apr 2002 17:00:52 -0400
zonker harris [EMAIL PROTECTED] wrote:

 Hey all,
 
 I've set up Tomcat, I've put mod_webapp.so into apache's libexec 
 directory and after i restart Tomcat, when I restart apache it throws 
 this error.
 
 # ../bin/apachectl start
 Syntax error on line 1159 of /usr/local/apache/conf/httpd.conf:
 Invalid command 'WebAppMount', perhaps mis-spelled or defined by a 
 module not included in the server configuration
 ../bin/apachectl start: httpd could not be started
 
 this is the relevant section of the httpd.conf
  LoadModule webapp_module libexec/mod_webapp.so
   WebAppConnection warpConnection warp 64.105.155.196:8008
   WebAppMount examples warpConnection /examples
 
 if i comment out WebAppMount, apache will start (but not talk to tomcat)
 
 Apache version
 Server version: Apache/1.3.22 (Unix)
 Server built:   Oct 10 2001 14:50:42
 
 Tomcat version
 4.0-B3
 
 I am sure I am just missing something stupid, any assist toward 
 enlightenment would be appreciated
 
 thanks
 
 zonker
 [EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

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




Re: DataSource from JNDI always null

2002-04-23 Thread Cynthia Jeness

I have also experienced 1. below.  Does anyone know of there is any resolution?  We 
are temporarily running servlets which use this through Tomcat directly.

Cynthia Jeness

Clearwater, Pete wrote:

 Hi Nick.

 I had similar problems, and have found out a couple of things:

 1.  I could not get my datasources to be found when using the WARP connector.  Same 
thing as you - null DataSource.  No idea what the problem was here.

 2.  Initially I could not get it to work at all, but found that if I used the 
parameter url instead of driverName then everything was OK (except for 1. above).

 cheers.  Isn't debugging this JNDI stuff fun?  The log messages sure give lots of 
useful information

 pete.

 -Original Message-
 From: nickJohnson [mailto:[EMAIL PROTECTED]]
 Sent: Friday, April 19, 2002 8:07 PM
 To: [EMAIL PROTECTED]
 Subject: DataSource from JNDI always null

 I thought I had this problem fixed, but it has come up again.

 Basically I'm just trying to grab a JDBC resource for a postgresql
 database.  My code looks something like this:

 public static Connection getConnection(char mode)
   throws NamingException, SQLException {
 Context ctx = null;

 ctx = new InitialContext();
 Context envCtx = (Context) ctx.lookup(java:comp/env);
 String dbname = jdbc/ + (mode == 'w'? dbrw : dbro);
 DataSource ds = (DataSource) envCtx.lookup(dbname);
 Connection c = ds.getConnection();
 return c;
 }

 This code is called as a static method on a utility class from inside a
 bean used by a JSP document.

 Of course what happens is I get a null pointer exception trying to call
 getConnection on ds.  Here's the relevent information from server.xml.
 I'll paste in only the entry for dbrw.  dbro is identical except it uses
 a different username.  Both have the same problem.  I have verified that I
 can log in both using the command line tool and a quick and dirty jdbc
 test program.

  Resource name=jdbc/dbrw auth=Container
type=javax.sql.DataSource/
  ResourceParams name=jdbc/dbrw
 parameter
   nameuser/name
   valuewww/value
 /parameter
 parameter
   namepassword/name
   value/value
 /parameter
 parameter
   namedriverClassName/name
   valueorg.postgresql.Driver/value
 /parameter
 parameter
   namedriverName/name
   valuejdbc:postgresql://localhost:5432/main/value
 /parameter
  /ResourceParams

 And in web.xml (I've decided to use the server's web.xml rather than the
 context's):

   resource-ref
 description
Resource reference to a java.sql.Connection factory
 /description
 res-ref-namejdbc/dbrw/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
   /resource-ref

 postgresql.jar and the jdbc extensions are in common/lib.  As far as I can
 tell from snooping traffic across lo0, no connection attempt is ever made,
 although I do see plenty of traffic from my little jdbc test program.

 Any pointers would be greatly appreciated, especially any information on
 debugging problems with JNDI, getting diagnostic information out of it,
 etc.  A working postgresql config would be even better. My instinct about
 this is that I have JNDI set up incorrectly, or the jdbc drivers are not
 getting found or initialized properly, but having exhausted all my ideas,
 I thought I'd ask for a pointer :)

 Many thanks,

Nick

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

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


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




Re: DataSource from JNDI always null

2002-04-23 Thread bm

Hi

Anyone is successful in doing this combination so far

windows2000 + apache 2.0.35 + tomcat 4.0.3 + SSL ( open + mod)

Since apache is saying 2.0.35 is the most stable one on windows

Reg
bm

Cynthia Jeness wrote:

 I have also experienced 1. below.  Does anyone know of there is any resolution?  We 
are temporarily running servlets which use this through Tomcat directly.

 Cynthia Jeness

 Clearwater, Pete wrote:

  Hi Nick.
 
  I had similar problems, and have found out a couple of things:
 
  1.  I could not get my datasources to be found when using the WARP connector.  
Same thing as you - null DataSource.  No idea what the problem was here.
 
  2.  Initially I could not get it to work at all, but found that if I used the 
parameter url instead of driverName then everything was OK (except for 1. above).
 
  cheers.  Isn't debugging this JNDI stuff fun?  The log messages sure give lots of 
useful information
 
  pete.
 
  -Original Message-
  From: nickJohnson [mailto:[EMAIL PROTECTED]]
  Sent: Friday, April 19, 2002 8:07 PM
  To: [EMAIL PROTECTED]
  Subject: DataSource from JNDI always null
 
  I thought I had this problem fixed, but it has come up again.
 
  Basically I'm just trying to grab a JDBC resource for a postgresql
  database.  My code looks something like this:
 
  public static Connection getConnection(char mode)
throws NamingException, SQLException {
  Context ctx = null;
 
  ctx = new InitialContext();
  Context envCtx = (Context) ctx.lookup(java:comp/env);
  String dbname = jdbc/ + (mode == 'w'? dbrw : dbro);
  DataSource ds = (DataSource) envCtx.lookup(dbname);
  Connection c = ds.getConnection();
  return c;
  }
 
  This code is called as a static method on a utility class from inside a
  bean used by a JSP document.
 
  Of course what happens is I get a null pointer exception trying to call
  getConnection on ds.  Here's the relevent information from server.xml.
  I'll paste in only the entry for dbrw.  dbro is identical except it uses
  a different username.  Both have the same problem.  I have verified that I
  can log in both using the command line tool and a quick and dirty jdbc
  test program.
 
   Resource name=jdbc/dbrw auth=Container
 type=javax.sql.DataSource/
   ResourceParams name=jdbc/dbrw
  parameter
nameuser/name
valuewww/value
  /parameter
  parameter
namepassword/name
value/value
  /parameter
  parameter
namedriverClassName/name
valueorg.postgresql.Driver/value
  /parameter
  parameter
namedriverName/name
valuejdbc:postgresql://localhost:5432/main/value
  /parameter
   /ResourceParams
 
  And in web.xml (I've decided to use the server's web.xml rather than the
  context's):
 
resource-ref
  description
 Resource reference to a java.sql.Connection factory
  /description
  res-ref-namejdbc/dbrw/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
/resource-ref
 
  postgresql.jar and the jdbc extensions are in common/lib.  As far as I can
  tell from snooping traffic across lo0, no connection attempt is ever made,
  although I do see plenty of traffic from my little jdbc test program.
 
  Any pointers would be greatly appreciated, especially any information on
  debugging problems with JNDI, getting diagnostic information out of it,
  etc.  A working postgresql config would be even better. My instinct about
  this is that I have JNDI set up incorrectly, or the jdbc drivers are not
  getting found or initialized properly, but having exhausted all my ideas,
  I thought I'd ask for a pointer :)
 
  Many thanks,
 
 Nick
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]

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


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




Re: DataSource from JNDI always null

2002-04-23 Thread James Williamson

Cynthia,

Please find a snip of a mail I wrote a while ago about this problem:

snip

due to how the WarpConnector is configured it doesn't find your original
deployed webapp (Context) with all the
resources you've specified but it realises it needs a webapp (Context) so it
creates a
new one (Context) with the default resources (aka
non) configured. It's all to do with the WebAppDeploy directive and the
context entry in the server.xml
because the connector completely ignores the

WebappDeploy context_name Conn /
 ^^^
bit but looks at the '/' section to see if it can find a matching context
within Tomcat. Send your server.xml file and httpd.conf file and I can tell
you what's going wrong.

/snip

Regards,

James Williamson
www.nameonthe.net
UK Tomcat Hosting


 I have also experienced 1. below.  Does anyone know of there is any
resolution?  We are temporarily running servlets which use this through
Tomcat directly.

 Cynthia Jeness

 Clearwater, Pete wrote:

  Hi Nick.
 
  I had similar problems, and have found out a couple of things:
 
  1.  I could not get my datasources to be found when using the WARP
connector.  Same thing as you - null DataSource.  No idea what the problem
was here.
 
  2.  Initially I could not get it to work at all, but found that if I
used the parameter url instead of driverName then everything was OK
(except for 1. above).
 
  cheers.  Isn't debugging this JNDI stuff fun?  The log messages sure
give lots of useful information
 
  pete.
 
  -Original Message-
  From: nickJohnson [mailto:[EMAIL PROTECTED]]
  Sent: Friday, April 19, 2002 8:07 PM
  To: [EMAIL PROTECTED]
  Subject: DataSource from JNDI always null
 
  I thought I had this problem fixed, but it has come up again.
 
  Basically I'm just trying to grab a JDBC resource for a postgresql
  database.  My code looks something like this:
 
  public static Connection getConnection(char mode)
throws NamingException, SQLException {
  Context ctx = null;
 
  ctx = new InitialContext();
  Context envCtx = (Context) ctx.lookup(java:comp/env);
  String dbname = jdbc/ + (mode == 'w'? dbrw : dbro);
  DataSource ds = (DataSource) envCtx.lookup(dbname);
  Connection c = ds.getConnection();
  return c;
  }
 
  This code is called as a static method on a utility class from inside a
  bean used by a JSP document.
 
  Of course what happens is I get a null pointer exception trying to call
  getConnection on ds.  Here's the relevent information from server.xml.
  I'll paste in only the entry for dbrw.  dbro is identical except it
uses
  a different username.  Both have the same problem.  I have verified that
I
  can log in both using the command line tool and a quick and dirty jdbc
  test program.
 
   Resource name=jdbc/dbrw auth=Container
 type=javax.sql.DataSource/
   ResourceParams name=jdbc/dbrw
  parameter
nameuser/name
valuewww/value
  /parameter
  parameter
namepassword/name
value/value
  /parameter
  parameter
namedriverClassName/name
valueorg.postgresql.Driver/value
  /parameter
  parameter
namedriverName/name
valuejdbc:postgresql://localhost:5432/main/value
  /parameter
   /ResourceParams
 
  And in web.xml (I've decided to use the server's web.xml rather than the
  context's):
 
resource-ref
  description
 Resource reference to a java.sql.Connection factory
  /description
  res-ref-namejdbc/dbrw/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
/resource-ref
 
  postgresql.jar and the jdbc extensions are in common/lib.  As far as I
can
  tell from snooping traffic across lo0, no connection attempt is ever
made,
  although I do see plenty of traffic from my little jdbc test program.
 
  Any pointers would be greatly appreciated, especially any information on
  debugging problems with JNDI, getting diagnostic information out of it,
  etc.  A working postgresql config would be even better. My instinct
about
  this is that I have JNDI set up incorrectly, or the jdbc drivers are not
  getting found or initialized properly, but having exhausted all my
ideas,
  I thought I'd ask for a pointer :)
 
  Many thanks,
 
 Nick
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: 

Authentication - is there a way to tell the browser to send a Authorizationheader?

2002-04-23 Thread rsequeira


Is there a way using a servlet/jsp to tell the browser to send the
Authorization request header without sending a prior 401 Authorization
required reponse header.
Well it goes like this:
We have a Basic Authentication setup on some of our resources. We would
like the user to bypass the authorization dialog box. The user could post
the userid/pwd to a jsp/servlet which then redirects to the requested
resource (protected) with the credentials. This way the user can access
protected resources without encountering the authorization dialog box. But
after the user had made the first request and tries to access another
resource, the authorization dialog box pops up because the browser hasn't
authorized. It's the jsp/servlet that has. So is there some way to tell the
browser to send a Authorization header without sending a 401 reponse code
back?

Thanks in advance.
RS





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




answer: HTTP authentication headers behavior expectations

2002-04-23 Thread Phillip Morelock

this is HTTP

AFAIK the only way a browser can send BASIC authentication credentials is:
1) you send them a 401 and the browser prompts the user
2) you format all your links as http://user:[EMAIL PROTECTED]/ but i am not
even sure if all browsers will correctly use this, at least in the fashion
you're intending.

Many browsers will automatically retransmit credentials to a realm that has
been previously encountered in the (browsing) session, but this is not
guranteed behavior and is certainly not required by any kind of
specification around HTTP-BASIC authentication, AFAIK.

phillip



On 4/23/02 3:17 PM, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:

 
 Is there a way using a servlet/jsp to tell the browser to send the
 Authorization request header without sending a prior 401 Authorization
 required reponse header.
 Well it goes like this:
 We have a Basic Authentication setup on some of our resources. We would
 like the user to bypass the authorization dialog box. The user could post
 the userid/pwd to a jsp/servlet which then redirects to the requested
 resource (protected) with the credentials. This way the user can access
 protected resources without encountering the authorization dialog box. But
 after the user had made the first request and tries to access another
 resource, the authorization dialog box pops up because the browser hasn't
 authorized. It's the jsp/servlet that has. So is there some way to tell the
 browser to send a Authorization header without sending a 401 reponse code
 back?
 
 Thanks in advance.
 RS
 
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


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




Re: answer: HTTP authentication headers behavior expectations

2002-04-23 Thread bm

Hi

Anyone is successful in doing this combination so far

windows2000 + apache 2.0.35 + tomcat 4.0.3 + SSL ( open + mod)

Since apache is saying 2.0.35 is the most stable one on windows

Reg
bm

Phillip Morelock wrote:

 this is HTTP

 AFAIK the only way a browser can send BASIC authentication credentials is:
 1) you send them a 401 and the browser prompts the user
 2) you format all your links as http://user:[EMAIL PROTECTED]/ but i am not
 even sure if all browsers will correctly use this, at least in the fashion
 you're intending.

 Many browsers will automatically retransmit credentials to a realm that has
 been previously encountered in the (browsing) session, but this is not
 guranteed behavior and is certainly not required by any kind of
 specification around HTTP-BASIC authentication, AFAIK.

 phillip

 On 4/23/02 3:17 PM, [EMAIL PROTECTED] [EMAIL PROTECTED]
 wrote:

 
  Is there a way using a servlet/jsp to tell the browser to send the
  Authorization request header without sending a prior 401 Authorization
  required reponse header.
  Well it goes like this:
  We have a Basic Authentication setup on some of our resources. We would
  like the user to bypass the authorization dialog box. The user could post
  the userid/pwd to a jsp/servlet which then redirects to the requested
  resource (protected) with the credentials. This way the user can access
  protected resources without encountering the authorization dialog box. But
  after the user had made the first request and tries to access another
  resource, the authorization dialog box pops up because the browser hasn't
  authorized. It's the jsp/servlet that has. So is there some way to tell the
  browser to send a Authorization header without sending a 401 reponse code
  back?
 
  Thanks in advance.
  RS
 
 
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 

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


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




  1   2   >