Tomcat/Apache trying to hide /webapp/ from URL

2002-04-07 Thread Soefara Redzuan

Sorry, I know Tomcat/Apache has been discussed endlessly but this problem is 
driving me around the bend.

We have Tomcat(3.2.3) running fine. We have several webapps running on it 
with no problem, including our main corporate website which is accessed 
directly via Tomcat at http://www.domain.com:8080/corporatesite
(ie. the webapp is /webapps/corporatesite)

We have Apache configured to be in front of Tomcat with mod_jk which simply 
means that we need to insert this line into Apache's httpd.conf and it works 
fine.

Include /usr/local/jakarta/tomcat/conf/mod_jk.conf-auto

However, there are 2 problems with this

1. The URL to reach the site is http://www.domain.com/corporatesite but we'd 
really like it to be http://www.domain.com

2. I think that Tomcat still has to serve up all of the images and static 
content which are part of the webapp. (ie. they're stored in subdirectories 
of /webapps/corporatesite)

I thought that I could solve both of these problems using this ProxyPass but 
that didn't work as expected. There must be an easy way to solve this.

I was also surprised that setting Apache's httpd.cont to include
DocumentRoot /usr/local/jakarta/tomcat/webapps/corporatesite
did not help at all.

Any and all help is truly welcome.  Thank you so much, Soefara.

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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




Re: IIS and TC 4.03

2002-04-07 Thread Tarun Ramakrishna Elankath

I managed to get Tomcat 4.03 + IIS working on my box (though it took 
some tinkering around). I used the tomcat-iis documentation on the ajp 
connector (in the configuration reference). Just follow it and ignore 
the other howto's on the web (which are outdated).

At what point did you get stuck ?

Follow the documentation and add listeners at the Server and Virtual 
Host level. Tomcat automatically generates a .reg file and a 
uriworkermap.properties file in the conf/auto directory However a third 
file 'workers.properties' is missing from the 4.03 distribution and you 
need to get it from somewhere. You also ofcourse need to get the 
redirector dll. Be sure that the file is renamed to  
'isapi_redirect.dll' instead of 'isapi_redirector.dll' which is the file 
available for download from the 4.03 bin directory.

I plan to write some wsh scripts or some software in about 2 weeks time 
for easy integration for Tomcat with IIS. The process is unnecessarily 
obtuse.

Hope that helps,
Tarun


[EMAIL PROTECTED] wrote:

>I admit, I'm new to TC and I've been trying unsuccessfully all weekend
>to get TC "playing nice" with IIS5.
>
>I can get TC to work fine on its own, but the trouble appears to be
>getting TC to work "through" IIS.
>
>I've installed the ISAPI redirector and I've attempted to modify the
>settings according to a few seemingly differentiating instructions I
>found scattered about the web (including the TC doc site).
>
>I either get exceptions or the .JSP pages don't run or the web browser
>attempts to download the pages instead.
>
>There are several IIS sites on this server and the docs are a little
>vague about handling multiple locations for .JSP files (as is the case
>with virtual sites).
>
>Any specific hints that might help here?
>
>Thanks!
>
>- tex
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>





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




RE: Problem with SQL

2002-04-07 Thread Gurmeet

Well u need to use Type -V drivers for SQL, one of them is Sprinta 2000 or
Opta 2000 from i-net software.

You can download the trial version from www.inetsoftware.de

Gurmeet

-Original Message-
From: Sudhir Kumar [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 12:06 PM
To: 'Tomcat Users List'
Subject: RE: Problem with SQL


Ya.. it is the same JDBC-ODBC bridge.. any solution for this ??

-Original Message-
From: Gurmeet [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 11:58 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Problem with SQL


Are u using the same JDBC-ODBC bridge in case of oracle and Access also?

Anyway this problem comes becuase JDBC-ODBC bridge drivers are not
serialisable.

Gurmeet

-Original Message-
From: Sudhir Kumar [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 9:07 AM
To: 'Tomcat Users List'
Subject: Problem with SQL



 Hi,
I have a problem with the SQL Database. I have connected to SQL server
through JDBC-ODBC bridge. In the code since i need to fetch the data inside
a number of loops one inside the other , i have used 5 different resultset
objects , 5 statement onjects  and a single connection object. In each loop
i am fetching data from different tables. The code is working fine with
Oracle 8 and MS Access Database. But SQl is throwing this exception, Can any
one help me out...??
 The Exception is :
 java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Connection is
busy with results for another hstmt
Thanks in advance..
Sudhir


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


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


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


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




RE: Problem with SQL

2002-04-07 Thread Sudhir Kumar

Ya.. it is the same JDBC-ODBC bridge.. any solution for this ??

-Original Message-
From: Gurmeet [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 11:58 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Problem with SQL


Are u using the same JDBC-ODBC bridge in case of oracle and Access also?

Anyway this problem comes becuase JDBC-ODBC bridge drivers are not
serialisable.

Gurmeet

-Original Message-
From: Sudhir Kumar [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 9:07 AM
To: 'Tomcat Users List'
Subject: Problem with SQL



 Hi,
I have a problem with the SQL Database. I have connected to SQL server
through JDBC-ODBC bridge. In the code since i need to fetch the data inside
a number of loops one inside the other , i have used 5 different resultset
objects , 5 statement onjects  and a single connection object. In each loop
i am fetching data from different tables. The code is working fine with
Oracle 8 and MS Access Database. But SQl is throwing this exception, Can any
one help me out...??
 The Exception is :
 java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Connection is
busy with results for another hstmt
Thanks in advance..
Sudhir


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


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


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




mod_jk tru64 Plateform

2002-04-07 Thread Jayesh Srivastava

Hi all,
   
I am trying to compile mod_jk.so on tru64 compaq unix
but I am getting this error

gcc -DOSF1 -DUSE_HSREGEX -DUSE_EXPAT
-I../lib/expat-lite -fpic -DSHARED_MODULE
-I/home5/staff/genepick/usr/apache/include -I../common
-I/usr/opt/java131/includ
e -I/usr/opt/java131/include/alpha  -c
../common/jk_jni_worker.c
In file included from ../common/jk_jni_worker.c:69:
/usr/opt/java131/include/jni.h:38: #error "Modules
that interface with Java must
 be compiled and linked with the -pthread option"
apxs:Break: Command failed with rc=1

I tried to compile other JNI code with cc compiler
with pthread option and that worked fine but withh gcc
compiler I am not able to compile any JNI java code on
TRU64 comapq.

Can you help me in this.

Jayesh 

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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




RE: Problem with SQL

2002-04-07 Thread Gurmeet

Are u using the same JDBC-ODBC bridge in case of oracle and Access also?

Anyway this problem comes becuase JDBC-ODBC bridge drivers are not
serialisable.

Gurmeet

-Original Message-
From: Sudhir Kumar [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 9:07 AM
To: 'Tomcat Users List'
Subject: Problem with SQL



 Hi,
I have a problem with the SQL Database. I have connected to SQL server
through JDBC-ODBC bridge. In the code since i need to fetch the data inside
a number of loops one inside the other , i have used 5 different resultset
objects , 5 statement onjects  and a single connection object. In each loop
i am fetching data from different tables. The code is working fine with
Oracle 8 and MS Access Database. But SQl is throwing this exception, Can any
one help me out...??
 The Exception is :
 java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Connection is
busy with results for another hstmt
Thanks in advance..
Sudhir


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


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




Re: Simple Question (I hope...)

2002-04-07 Thread Erwin Ambrosch

I think your docBase should be webapps/test



Erwin

Am Freitag, 5. April 2002 18:29 schrieben Sie:
> Hi there,
>
> I'm new to Tomcat and to this list, so apologies if this question has
> already been asked (I've checked the archives and can't find an answer).
>
> I'm trying to create a new context in server.xml. My current code is:
>
> debug="0" reloadable="true" />
>
> I've also created a directory within webapps called "test", with sub
> directory WEB-INF and classes.  And within the classes folder is my test
> class file ("homepage.class").
>
> I've also created a web.xml file and placed it in the WEB-INF directory
> defining the servlet mappings for the new servlet (called "homepage"):
>
> 
>   
>   greetings
>   homepage
>   
>   
> greetings
>  /test/please
>   
>
> 
>
> Using the manager app I've successfully added a new application (called
> "test") but when I try to view the servlet, I get a 404 error ... any idea
> what I'm doing wrong?
>
> Thanks
>
> Adam Sefton
> Applications Developer
>
>
> **
> 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:   
For additional commands: 
Troubles with the list: 




Configuring ISP with virtual hosting

2002-04-07 Thread Stefan Lindgren

Hi all,

I'm having some problems getting a proper ISP setup with 
Tomcat/Apache/Virtual hosting. Hopefully some can guide me/correct me:).

1. I need all customers to have a own setup. I have defined 
CATALINA_BASE for every user and in that dir a server 
structure(webapps/logs e t c)
2.  In the virtual host directive I point all requests to a separate 
port:

### Java 
JkWorkersFile /XXX/JavaConfig/workers.properties
JkLogFile //JavaConfig/mod_jk.log
JkLogLevel debug


   ServerAdmin [EMAIL PROTECTED]
   DocumentRoot /some/dir
   ServerName www.X.com
   JkMount *.jsp ajp13://java..com:23002/
   JkMount /servlets/* ajp13://java..com:23003/


As I understand it that should be it. Then there should be a server.xml 
file that answers to that port and a corresponding application in 
webapps. Right?

Is this correct or is it a better way of doing this?
Does someone have a good example setup URL?

Regards
/stefan


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




How to mess with BodyContent prior to evaluation

2002-04-07 Thread Jeffrey Bonevich

Here is what I want to do:
* I have a taglib with a tag:
   
* the GetTag class extends BodyTagSupport
* doStartTag returns EVAL_BODY_BUFFERED
* doInitBody() needs to get the object/value associated with value 
attribute; so I lookup "value_name" in a repository object I shoved in 
my PageContext early on...
* then I want to potentially parse the value (rendered as a string of 
course) as JSP; otherwise I just print out the value via 
pageContext.getOut().print(value.toString())

The latter part is simple enough to do, but there seems to be no way to 
grab the contents of the BodyContent, muck with those contents, and then 
stuff them back in and have them evaluated as JSP.  Thought I might be 
able to do this in doInitBody (as the spec sez that BodyContent has not 
been evaluated yet at this point), but I can determine no 
straightforward (i.e. no implementation-specific) way to do this.

Anyone have suggestions?  Need more to go on (I can provide code if that 
helps)?

jeff

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

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


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




Tomcat 4.0 CVS won't start...

2002-04-07 Thread Jack Lauman

I get the following error in catalina.out with todays build from the
cvs.  Tomcat will not start as a result of this error.  Ran fine
yesterday.

Would appreciate any suggestions on how to resolve it.

Regards,

Jack

log4j:ERROR No appenders could be found for category
(org.apache.commons.digester.Digester).
log4j:ERROR Please initialize the log4j system properly.
Catalina.start: java.lang.NullPointerException
java.lang.NullPointerException
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2009)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2029)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1032)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:434)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:216)
at
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:594)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:817)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:748)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1454)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:529)
at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:585)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1148)
at org.apache.commons.digester.Digester.parse(Digester.java:1263)
at org.apache.catalina.startup.Catalina.start(Catalina.java:442)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:397)
at org.apache.catalina.startup.Catalina.process(Catalina.java:177)
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:203)

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




RE: Problem Installing Tomcat

2002-04-07 Thread ce

> window closes.Writing Url localhost:8080 on the browser address field 
> returns nothing.

If using IE, be sure to fully type URL out.  As in:

   http://localhost:8080

IE won't know what to do with just "localhost:8080".

- tex


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




Problem with SQL

2002-04-07 Thread Sudhir Kumar


 Hi,
I have a problem with the SQL Database. I have connected to SQL server
through JDBC-ODBC bridge. In the code since i need to fetch the data inside
a number of loops one inside the other , i have used 5 different resultset
objects , 5 statement onjects  and a single connection object. In each loop
i am fetching data from different tables. The code is working fine with
Oracle 8 and MS Access Database. But SQl is throwing this exception, Can any
one help me out...??
 The Exception is :
 java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Connection is
busy with results for another hstmt
Thanks in advance..
Sudhir


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




Problem Installing Tomcat

2002-04-07 Thread Layer111

Hello;
I have installed Tomcat 3.1 on my PC.I set some environment variable as 
described in the documentation on apache web site.When I start Tomcat from 
DOS using startup command it does start in a new window but then the new 
window closes.Writing Url localhost:8080 on the browser address field returns 
nothing.I will appreciate if anybody can suggest anything about what I should 
do to run Tomcat.Thank you.

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




Connectors: what are the differences?

2002-04-07 Thread Hans Bergsten

Hi guys,

I'm trying to figure how the two Apache connectors available
for Tomcat 4 compare. From what I've learned by reading all
the info available on the site and the mailing list archives,
it seems to me that the following is true:
* Both the WARP and AJP connectors are considered to be production
   ready for use with Tomcat 4 (on a Linux box, at least. I take it
   that WARP doesn't work for Windows, but that AJP does)
* Both can get all SSL info from Apache that is accessible through
   the Servlet API
* AJP supports IIS and Netscape in addition to Apache, but
   WARP is only for Apache
* AJP supports load balancing, but WARP doesn't
* WARP automatically configures Apache to handle static content
   and only forward requests for dynamic content to Tomcat, but
   AJP requires manual configuration (or does ApacheConfig work
   correctly? I believe I've seen issues reported).

Am I right so far? Any other major differences that I've missed?
How about stability and performance?

I've not been able to find any definite answers to a few questions,
so I hope I can get some help here:
* The AJP Connector config doc says that it can't run Tomcat as
   an in-process worker. Is that still true, and if so, is it a
   Tomcat issue or mod_jk issue? If it's a mod_jk issue, can
   mod_webapp run Tomcat in-process?
* In the sample server.xml file for Tomcat 4.0.4 Beta 2, the
   AJP  element is nested within the  element
   for the standalone server, while a separate  is defined
   for the WARP connector. Why the difference? Can I use either
   approach for both connectors? Pros and cons with these approaches?
* It seems like the configuration file generated by ApacheConfig
   only creates JkMount directives for the "*.jsp" and "/servlet/*"
   (based on the sample in the AJP connector config doc). Is this
   true, or does it in fact create JkMount for all 
   elements in web.xml? Does it handle filter mappings correctly.
   so that requests for static pages that should be passed through
   a filter are forwarded to Tomcat?
* The same question for WARP: does the auto-config feature take
   care of all  and filter mappings correctly?

Hans
-- 
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pageshttp://TheJSPBook.com


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




web.xml and jspc

2002-04-07 Thread Christian Bourque

Hi !

I'm trying to include the external xml fragment generated by Tomcat's JSPC into 
web.xml like this :

-- web.xml :

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

]
>


  &auto-web;

 
10
  
  
index.html

  
/WEB-INF/app.tld
/WEB-INF/app.tld
 

--

But when I deploy in Tomcat I keep getting this error :

2002-04-07 22:13:38 - Ctx(/mail) : Validating web.xml
XmlMapper: Can't find resource for entity: auto-web --> 
file:C:/temp/jakarta-tomcat-3.3.1/jakarta-tomcat-3.3.1/webapps/
ail/WEB-INF/auto-web.xml "null"

I would like to understand the meaning of this error, because it doesn't look so bad 
since I'm able to access my precompiled jsp pages correctly !

This file (auto-web.xml) is in the same directory as web.xml (WEB-INF) in my war 
archive. I've tried with other Tomcat version (3.2.x & 4.0x) with the same result.

I would appreciate any hint to fix this problem !

Regards
Christian Bourque





RE: saving object

2002-04-07 Thread Jay Gardner

It is best to set the column to auto-increment and put the unique constraint
on it. Which programming language are you using?

If JAVA, the mm.mysql driver has a method that does what you want:

org.gjt.mm.mysql.Statement stmt =
(org.gjt.mm.mysql.Statement)con.createStatement();
int Results = stmt.executeUpdate(sql);
applicantID = stmt.getLastInsertID();
applicant.setApplicantID((int)applicantID);

If PERL, dbi will return the row # you just inserted using:

$statement_handle->{insertid}

If PHP, This returns the ID number used for the last INSERT statement:

$id_num = mysql_insert_id();

If C,  Returns the last number generated for an AUTO_INCREMENT field:

id = mysql_insert_id(&mysql);
printf("The new ID is %d\n", id);



When using an ORACLE database, I generally use a sequence generator. I first
make a call to get the next number in the sequence, then use that number as
the key for my insert.

--Jay Gardner

-Original Message-
From: Jay Gardner [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 07, 2002 12:02 AM
To: Tomcat Users List
Subject: RE: saving object

What database are you using?



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 06, 2002 9:15 PM
To: Tomcat Users List
Subject: Re: saving object

I have done this with some row_id defined to be auto-insert on mysql.
With auto-insert you know it will be unique but might want to make
that a constraint.

insert .blah blah
select max(row_id) - yields the number of the last tx.



row_id is just an example for your purpses.
Good luck

At 01:41 PM 4/5/02, you wrote:
>a little bit off topic.
>
>I have a table with each row corresponds to a javabean object. The objects
>don't
>necessarily have a primary key, so i use a sequence number as its primary
>key, and a
>trigger to assign the sequence number to its ID column when a new object is
>inserted
>into the database.
>
>However, after I insert the object into the table, how can i know the
>object's ID in the
>table?  If I simply do a "..._seq.cur_val",   it is not safe when multiple
>users can access
>the database and save their javabean into it at the same time.
>
>How could you guys accomplish that?
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 


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


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


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




Re: Is there a native JDBC driver for MS Access?

2002-04-07 Thread Shantul Nigam

You may want to check out Sprinta2000 driver. I could get you the URL on 
monday or you can just look it up on a search engine. We use it for 
getting to MS-SQL. I expect that they could be used to get to Access.

Shantul.

On Saturday, April 6, 2002, at 08:55  PM, <[EMAIL PROTECTED]> wrote:

> mysql, postgresql, anything but ms access even sqlserver would be  vast
> improvement.
>
> On Sat, 6 Apr 2002, Sriram N wrote:
>
>>
>> --- "Craig R. McClanahan" <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>> On Mon, 8 Apr 2002, Adrian Beech wrote:
>>>
 Date: Mon, 8 Apr 2002 10:38:45 +1000
 From: Adrian Beech <[EMAIL PROTECTED]>
 Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
 To: Tomcat Users List <[EMAIL PROTECTED]>
 Subject: Re: Is there a native JDBC driver for MS Access?

 Um, okay then how stable is the JDBC/ODBC bridge?  As I 
 previously
 mentioned in my initial posting some bits and peices that I've read 
 suggest
 that this method of connecting to a DB back end is, or can be, a 
 little
 dodgy.  The comments basically revolved around the premise that the 
 bridge
 is not capable of being threaded and it is considered by Sun to 
 still be
 experimental.  I got the impression that there is potential for data 
 loss
>>> or
 corruption along with performance related issues.

>>>
>>> The JDBC/ODBC bridge is not appropriate for use in a multithreaded
>>> environment like a servlet container.  Also, lots of people have had
>>> problems trying to use MS Access (designed for personal desktop use) 
>>> in
>>> environments like this, even with a for-pay JDBC driver.
>>>
>>> I'd start by choosing a different database.
>>
>> How about MySQL (http://www.mysql.org) ? They have a type 4 JDBC 
>> driver.
>> Is this OK in a multithreaded environment ?
>>
>>>
 I guess I really need to know if it is reasonable to use Tomcat to 
 host an
 environment that relies on this sort of DB connectivity.

 Adrian
 [EMAIL PROTECTED]

>>>
>>> Craig
>>>
>> Sriram
>>
>> __
>> Do You Yahoo!?
>> Yahoo! Tax Center - online filing with TurboTax
>> http://taxes.yahoo.com/
>>
>> --
>> To unsubscribe:   
>> For additional commands: 
>> Troubles with the list: 
>>
>>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>

==
= Knowledge is power =
= Absolute Knowledge is Absolute Power  =
==


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




Tomcat + Konqueror Weirdness ...

2002-04-07 Thread Peter Sojan


Hi!

Has anyone noticed the weird behaviour of Konqueror when receiving 404-Errors
from Tomcat!? The browser does not display the default 404-Error page from 
Tomcat but rather pops-up a window: 

"Open blabla.html  [Open] [Save] [Cancel]" ...

If i save the file it has zero bytes ..

However if I do this with Mozilla, Netscape, Explorer I get the 404
error page and everything is fine.

Note that Konqueror displays 404 errors from other (non Tomcat) sites 
fine. For example: 

http://www.google.com/foobar

gives me a nice standard 404 message.

any ideas anyone !?

so long
Peter


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




RE: alias

2002-04-07 Thread Paul Phillips

Actually, its a bit more complicated, so I don't think Jay's solution 
(quoted below) will work.

I am using a security constraint with form based authentication.

This means that I have to request a servlet that is in a constrained area. 
The container forwards the request to a login page outside of the 
constrained area.  Once the login is processed, it goes back to the 
originally requested page.

So, I have to actually have the query string passed in during the initial 
login.  That is what I am trying to replace with an alias.

Paul Phillips

--On Sunday, April 7, 2002 12:09 PM -0600 Jay Gardner <[EMAIL PROTECTED]> wrote:

> Did you try
>
> 
>   controller
>   controller
>   
> 
> 
>controller
>   /login
> 
>
> Don't worry about the query string being passed in to the servlet. That
> will be passed by the container from the jsp to the servlet.
>
> Hope this helps!
>
> --Jay Gardner
>
>
> -Original Message-
> From: Paul Phillips [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, April 07, 2002 10:49 AM
> To: Tomcat Users List
> Subject: alias
>
> I need some generic advice...  probably really easy.
>
> I have written an application with a controller servlet.  The controller
> servlet is event driven - every form submit button on one of the jsp pages
> maps to
> "controller?event=DOWHATEVER".  After the controller does its thing, it
> sends the puts the results in a session, and transfers control back to a
> jsp page for display.  My first attempt at MVC.
>
> My initial page is generated when the user types
>
> URL/whatever/controller?event=WELCOME
>
> Now I would like to make an alias that is like:
>
> "URL/whatever/login" which will map to
> "URL/whatever/controller?event=WELCOME".
>
> What is the best way to do that?
>
> Not being much of an expert at the web.xml file, I tried the following
> within web.xml:
>
> 
>   controller
>   /controller
> 
>
> 
>   controller?event=WELCOME
>   /login
> 
>
> That, most assuredly, did not work.
>
> How should I go about doing this?
>
> I guess I could change the code of my servlet so that if there is no event
> definition provided, it goes to the welcome page...  But it seems that
> there should be some way to setup an alias like this.
>
> Thanks
> Paul Phillips
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 



___
Paul Phillips
Director of Orchestral Activities, Meadows School of the Arts
Southern Methodist University

"You must sing every note you play, sing even through the rests!"
Arturo Toscanini

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




Does TC 4.0 support multiple config files?

2002-04-07 Thread Michael Roberts

Does TC 4.0x support multiple config (server.xml) files.  I would like to
defined webapp contexts in separate files, one per webapp, and then address
them via an 'include' command (element or attribute), similar to Apache
HTTPD config files.

I have searched the archives, but found no similar information.

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




RE: alias

2002-04-07 Thread Jay Gardner

Did you try


controller
controller



 controller
/login


Don't worry about the query string being passed in to the servlet. That will
be passed by the container from the jsp to the servlet.

Hope this helps!

--Jay Gardner


-Original Message-
From: Paul Phillips [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 07, 2002 10:49 AM
To: Tomcat Users List
Subject: alias

I need some generic advice...  probably really easy.

I have written an application with a controller servlet.  The controller
servlet is event driven - every form submit button on one of the jsp pages
maps to
"controller?event=DOWHATEVER".  After the controller does its thing, it
sends the puts the results in a session, and transfers control back to a
jsp page for display.  My first attempt at MVC.

My initial page is generated when the user types

URL/whatever/controller?event=WELCOME

Now I would like to make an alias that is like:

"URL/whatever/login" which will map to
"URL/whatever/controller?event=WELCOME".

What is the best way to do that?

Not being much of an expert at the web.xml file, I tried the following
within web.xml:


  controller
  /controller



  controller?event=WELCOME
  /login


That, most assuredly, did not work.

How should I go about doing this?

I guess I could change the code of my servlet so that if there is no event
definition provided, it goes to the welcome page...  But it seems that
there should be some way to setup an alias like this.

Thanks
Paul Phillips

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


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




IIS and TC 4.03

2002-04-07 Thread ce

I admit, I'm new to TC and I've been trying unsuccessfully all weekend
to get TC "playing nice" with IIS5.

I can get TC to work fine on its own, but the trouble appears to be
getting TC to work "through" IIS.

I've installed the ISAPI redirector and I've attempted to modify the
settings according to a few seemingly differentiating instructions I
found scattered about the web (including the TC doc site).

I either get exceptions or the .JSP pages don't run or the web browser
attempts to download the pages instead.

There are several IIS sites on this server and the docs are a little
vague about handling multiple locations for .JSP files (as is the case
with virtual sites).

Any specific hints that might help here?

Thanks!

- tex


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




status mod_webapp.so

2002-04-07 Thread Greg Munger


>The server works for a moment and eventually stops working.
>The restart fails with:
>(98)Address already in use: make_sock: could not bind to port 80
>First question: Where do I find the sources in order to recompile them?

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/src

to build  the module:
support/buildconfs.sh
configure --with-apxs
make

>Second question (probably a stupid one): How do I free port 80?

By default Apache will be using port 80 and Tomcat will be using 8080, and 
the Apache-Tomcat connector will be on 8008. Do you have another webserver 
running? Did you change one of these defaults?

>Third question: Is the way I'm doing this the recommended way to
>integrate Tomcat with the Apache web server?

That is what I am doing and it works for me. I do not know if it is the 
best solution.

Greg

Greg Munger   -   219-926-7604- Lake Point Interactive   -   www.lpiweb.com


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




Urgent !!! Cannot start tomcat with SSL

2002-04-07 Thread Ann

Dear all,

  I have installed SSL for the tomcat 4.0 . It cannot start with the 
startup program. When I use the catalina run, I find that it has 
java.lang.NoSuchMethod Exception. Can anybody help?

Thanks 

Ann Bruisy



alias

2002-04-07 Thread Paul Phillips

I need some generic advice...  probably really easy.

I have written an application with a controller servlet.  The controller 
servlet is event driven - every form submit button on one of the jsp pages 
maps to
"controller?event=DOWHATEVER".  After the controller does its thing, it 
sends the puts the results in a session, and transfers control back to a 
jsp page for display.  My first attempt at MVC.

My initial page is generated when the user types

URL/whatever/controller?event=WELCOME

Now I would like to make an alias that is like:

"URL/whatever/login" which will map to 
"URL/whatever/controller?event=WELCOME".

What is the best way to do that?

Not being much of an expert at the web.xml file, I tried the following 
within web.xml:


  controller
  /controller



  controller?event=WELCOME
  /login


That, most assuredly, did not work.

How should I go about doing this?

I guess I could change the code of my servlet so that if there is no event 
definition provided, it goes to the welcome page...  But it seems that 
there should be some way to setup an alias like this.

Thanks
Paul Phillips

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




Re: Cookies and tomcat (URGENT PLEASE!)

2002-04-07 Thread Daniel Hinojosa



paolo ciao wrote:

>I know that servlet use cookies (if client support it)
>to manage session id.
>My question is quite simple: where this cookie is?
>I need to understand this because I have to test my
>application with Jmeter and I want to track
>session...how can i do?
>
>Thanks for any help.
>
>
>
>__
>Iscriviti al Club Nokia, è gratis!
>http://it.yahoo.com/mail_it/foot/?http://www.club.nokia.it/
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
>
I believe that it is managed by tomcat and is not in any context.  To 
retreive the cookies you can call Cookie[] cookies = 
request.getCookies();  I think the reason why this is for security 
reasons (that is really a guess).

-- 
Daniel Hinojosa
Java & XML: Consultant | Developer | Instructor
P.O. Box 4675
Albuquerque, NM 87196-4675
(505) 363-5832






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




IP address

2002-04-07 Thread Alan Williamson


I am having a strange problem with Apache [Tomcat4] logs.  

All the accesses are going in from the [a.b.c.7] machine which is the ip
address of the machine that is running Tomcat and Apache.  I thought this a
problem with Apache first of all, but when i do any CGI information like
getRemoteAddr() it returns back the host machine and not the client machine.

Anyone seen this problem?

I am using: Tomcat4.0 / OSX10 / mod_jk.so

thanks

a

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




java.io.IOException: Stream ended prematurely.

2002-04-07 Thread @Basebeans.com

Subject: java.io.IOException: Stream ended prematurely.
From: "Hyunjin Kim" <[EMAIL PROTECTED]>
 ===
hi.
i am using apache 1.3 and tomcat 4.0.3 and warp connector.
I have successfully developed and tested my application in tomcat only
situation(using 8080), but when i ported the application to commercial
server, the file upload stuf doesn't work.. take a look at the following
error trace...

javax.servlet.ServletException: java.io.IOException: Stream ended
prematurely.
at com.nanoenc.bbs.action.BBSWriteAction.perform(BBSWriteAction.java:88)
at org.apache.struts.action.Action.execute(Action.java:369)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:437)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:264)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
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.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:475)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
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:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
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.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:215)
at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
at java.lang.Thread.run(Thread.java:536)

does anyone know what this might mean? i know my code is fine, cause it
works on stand alone tomcat??
should i just install a new warp connector? or is it possible to use tomcat
with name virtual host function??
i just had too much problem with warp.. i just feel like not using it...




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




Cookies and tomcat (URGENT PLEASE!)

2002-04-07 Thread paolo ciao

I know that servlet use cookies (if client support it)
to manage session id.
My question is quite simple: where this cookie is?
I need to understand this because I have to test my
application with Jmeter and I want to track
session...how can i do?

Thanks for any help.



__
Iscriviti al Club Nokia, è gratis!
http://it.yahoo.com/mail_it/foot/?http://www.club.nokia.it/

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




In wich cases does catatlina need access to application specific classes ???

2002-04-07 Thread Kriss Weissmann

Hi,

I have a JAXM based web service as war-file with all needed libraries
included. When I access the web service via catalina (4.0.2) as servlet
engine, I get java.lang.NoClassDefFoundError exceptions. When I put certain
libs (jaxb-rt-1.0-ea.jar, jaxm101ea.jar) in CATALINA\lib or in
CATALINA\common\lib it works.

The tomcat docs -> classloading How-to says that it´s unusual that tomcat
accesses CATALINA\lib and CATALINA\common\lib. But when does Tomcat exactly
need access to application - specific classes?

TIA and greetings from germany
Kriss Weissmann

***
University of Furtwangen
Faculty Business Computing
www.wi.fh-furtwangen.de
***



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




RE: Apache 2.0.35 + mod_jk-3.3-ap20.so

2002-04-07 Thread Donald Lee

Yes I agree but in this situation, the file mod_jk-3.3-ap20.so is
specifically stated on the Jakarta site as being for Apache 2.0.
Thanks


-Original Message-
From: Paul D. Bain [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 06, 2002 11:06 PM
To: Tomcat Users List
Subject: Re: Apache 2.0.35 + mod_jk-3.3-ap20.so


At Saturday 4/6/02 10:43 PM, you wrote:
>Hi I got all excited when I got the announcement that Apache 2.0.35 was no
>longer a beta and was an official release so I downloaded the archive
>"httpd-2.0.35.tar.gz" and installed it.  I have only one hangup as of right
>now and that's the inability to make use of the mod_jk connector.  I am
>currently getting the error from apache
>"httpd: module "mod_jk.c" is not compatible with this version of Apache.
>Please contact the vendor for the correct version."
>
>I am using the exact same configuration as with my old 1.3.24 apache. With
>the exception of using the mod_jk-3.3-ap20.so module. It sounds as if I
>would have to somehow know how to change the source code of this module to
>account for the differences between whatever version of Apache 2.0 this was
>compiled for and re-compile but frankly I haven't a clue where to start.

Donald,

 That's exactly correct. Modules written for Apache 1.3 will _not_
work with Apache 2.0 unless they are re-written in order to be specific to
2.0. You should probably stick with 1.3.

-- Paul Bain



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


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