Re: Finding CSS files in webapp

2004-07-12 Thread Nikola Milutinovic
Peter Rossbach wrote:
Hey,
I think your browser is the problem. Generate absolute css link that help
% String url = request.getScheme() + :// + request.getServerName() + 
: + request.getServerPort() + request.getContextPath() ; %

 link rel=stylesheet type=text/css
   href=%=url%/css/nrd.css /
Or a relative link, which might get some complaints from the browser (my 
Dreamweaver always complains if the relative path goes outside some 
scope). The original poster has failed to give us an important clue. How 
is XHTML file getting generated? To what URI it responds?

That URI is what browser sees and a LINK's href is relative to that base.
So if you have an URI: http://server.domain.com/nrd/mypath/file.xhtml, 
which gets mapped via Controller to XSLT processing engine and 
generates a XHTML document in response, the the href of link ... 
should be ../css/nrd.css.

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


RE: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

2004-07-12 Thread Ivan Jouikov
Hmm  I have fixed the problem, but in a weird way.
 
Instead of using host resk, which I specified inside my /etc/hosts:
 
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1   localhost.localdomain   localhost
127.0.0.1   localhost.localdomain   resk
 
And I had no problem retrieveing my JSPs under that host  Everything seemed to be 
just fine, but for some reason the JDBC resources coulndt be found  I wonder
 
I didnt change anything at all, except for moving my ROOT.xml into 
/conf/Catalina/localhost and changing the docBase= directory.
 
So, Looks like it wasnt Tomcats fault after all.
 
 or was it? 
 
:-)
 
However, if any of you know what the problem was, Id be glad to find out, so if I 
face this kind of stuff in the future, Id know what to do
 
 -Original Message-
 From: Ivan Jouikov [mailto:[EMAIL PROTECTED]
 Sent: Sunday, July 11, 2004 10:04 PM
 To: 'Tomcat Users List'
 Subject: RE: org.apache.commons.dbcp.SQLNestedException: Cannot create
 JDBC driver of class '' for connect URL 'null'
 
 Just to make sure that theres no problems with my code, I wrote the
 following page and tried it.  TADA!  I get the same goddamn error:
 
 %@ page language=java import=javax.naming.*, javax.sql.*, java.sql.*
 %
 
 Hello!  Running DB test... br
 
 %
 DataSource ds = (DataSource)new
 InitialContext().lookup(java:comp/env/jdbc/RESK);
 %
 
 DS looked up!br
 
 %-- IT EXECUTED UP TO HERE.  EVRYTHING WAS FINE.  THEN I ADDED THE BOTTOM
 PART AND GOT THE cannot create  ERROR! --%
 
 Now trying to execute a query...br
 
 %
 Connection con = ds.getConnection();
 PreparedStatement st = con.prepareStatement(SELECT CURTIME());
 ResultSet rs = st.executeQuery();
 rs.next();
 String time = rs.getString(1);
 rs.close();
 st.close();
 con.close();
 %
 
 Time is: %=time% !!! br
 
  I just wish tomcat developers actually tested their shit before putting
 it out.
 
 
_
 
 From: Ivan Jouikov [mailto:[EMAIL PROTECTED]
 Sent: Sunday, July 11, 2004 9:28 PM
 To: 'Tomcat Users List'
 Subject: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC
 driver of class '' for connect URL 'null'
 
 
 
 When they compiled the latest stable Tomcat, did they bother to test it
 before putting it out?
 
 I looke through the entire google, and through this entire list, and I
 found lots of people having this problem.  Yet, I didnt find any
 solutions (that worked for me that is).
 
 Basically, heres what I have:
 
 Im running Tomcat 5.0.27 on Java 1.5 beta 2; I am using MySQL 4.1.2
 
 Inside /common/lib/ I have mysql-connector.jar which is 3.0.14 
 production version.
 
 Inside my server.xml I have (relevant stuff):
 
   Host appBase=/home/resk/web name=resk autoDeploy=true
 unpackWARs=true liveDeploy=true
 
 /Host
 
 Inside my /conf/Catalina/resk I have resk.xml:
 
 ?xml version='1.0' encoding='utf-8'?
 Context debug=5 displayName=RESK docBase=ROOT //  BY THE WAY I also
 tried /home/resk/web/ROOT
 path=/ reloadable=false
 Environment name=data.source.name type=java.lang.String
 value=java:comp/env/jdbc/RESK/ // BTW I tried without this line
   Resource auth=Container name=jdbc/RESK
 type=javax.sql.DataSource/
   ResourceParams name=jdbc/RESK
 parameter
   nameurl/name
 
 valuejdbc:mysql://127.0.0.1:3306/resk?autoReconnect=true/value
 /parameter
 parameter
   namemaxIdle/name
   value2/value
 /parameter
 parameter
   namemaxActive/name
   value10/value
 /parameter
 parameter
   namedriverClassName/name
   valuecom.mysql.jdbc.Driver/value
 /parameter
 parameter
   namemaxWait/name
   value1/value
 /parameter
 parameter
   nameremoveAbandoned/name
   valuetrue/value
 /parameter
 parameter
   nameusername/name
   valueresk/value
 /parameter
 parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 parameter
   nameremoveAbandonedTimeout/name
   value60/value
 /parameter
 parameter
   namepassword/name
   valueRESK/value
 /parameter
   /ResourceParams
 /Context
 
 Inside my /home/resk/web/ROOT/WEB-INF/ I have web.xml (relevant stuff):
 
 web-app version=2.4
   xmlns=http://java.sun.com/xml/ns/j2ee;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; 
 
   resource-ref
   descriptionDB Connection/description
   res-ref-namejdbc/RESK/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
   /resource-ref
 
   !-- Used for startup primarly.  Kepping things in
 one place. --
   env-entry
   

queueing concurrent server requests

2004-07-12 Thread Paul Wallace
Hi All,
Can someone point me in the right (any) direction towards info on
queuing concurrent Tomcat server requests? I propose to queue concurrent
requests to Tomcat, if they exceed a given number. Where might I find
documentation, or any other resource, to assist?
 
thanks
 
Paul.  


RE: How to start a web app?

2004-07-12 Thread David . Pawson
 

-Original Message-
From: Mike Curwen

Michael, my email was specifically in reply to 
David.Pawson's. 

Sarcasm aside, it's an interesting thought process you must 
have gone through to start off with  Right, and then 
proceed to point out how it's wrong. 
 
The point I was attempting to make is that there is nothing 
wrong with the docs, and that they are not missing 
Essential Information.  Unless someone can tell me how 
the 3rd bullet on the docs I linked to allows a person to 
infer recursion, I don't think the docs need changing. 

I don't believe I mentioned recursion?
  I asked if context 'fred' should be sought within webapps
(as webapps/fred) or within (webapps/ROOT/fred).

I don't see that as recursion?



Perhaps it's the use of 'subdirectory'. If it was changed 
to read Any directory within the Application Base 
directory, would that avoid this miscomprehension? 

I'm sorry Mike, I've lost the link you sent.
If 'Application Base directory' is clearly defined as webapps,
then tc searching within that would make sense.
Its the presence of ROOT directory then that becomes odd?
I'm used to thinking in terms of trees (xml background) hence
I made a 'wrong' assumption that it was the base of all contexts.
  Is that as daft as it sounds?


regards DaveP

** snip here **

-- 
DISCLAIMER: 

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged. If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system. 

RNIB endeavours to ensure that emails and any attachments generated by 
its staff are free from viruses or other contaminants. However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments. 

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent 
those of RNIB. 

RNIB Registered Charity Number: 226227 

Website: http://www.rnib.org.uk 

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



RE: How to start a web app? - documentation suggestion.

2004-07-12 Thread David . Pawson
Proposed addition to the tomcat documentation that would do it for me.


With the default setup, http://localhost:8080/index.html would
cause tomcat to seek a file index.html in directory
${catalina.home}/webapps/ROOT/index.html.

http://localhost:8080/myservlet would cause tomcat to seek 
a configuration file (web.xml) (more accurately the deployment descriptor)
in ${catalina.home}/webapps/myservlet/WEB-INF/

I.e. an application should be 'installed' directly within the
directory ${catalina.home}/webapps 
The class file for the servlet will normally be found in 
${catalina.home}/webapps/myservlet/WEB-INF/classes

This presumes the default setup, as tomcat is delivered.


I *think* the above is correct.

I guess I'm aiming at the newbie like me, taking tomcat out of the
box and hoping to have a servlet up and running quickly.
  (I'm not debating the fact that far more complex setups are possible
with tomcat :-)


HTH DaveP

** snip here **


-- 
DISCLAIMER: 

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged. If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system. 

RNIB endeavours to ensure that emails and any attachments generated by 
its staff are free from viruses or other contaminants. However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments. 

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent 
those of RNIB. 

RNIB Registered Charity Number: 226227 

Website: http://www.rnib.org.uk 

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



Log4j -- hanging processes ?

2004-07-12 Thread Harald Henkel
Hello everybody.

Is it possible, that Log4j will result in Tomcat hangig with All
threads are busy status75 if the files for logging cannot be created
because the directories don't exist ?

This is Tomcat 4.1.29/30 with J2Sdk 1.4.2 on RedHat Advanced Server 2.1
and LV_ASSUME_KERNEL set to 2.4.1


-- 
Harald Henkel

GS automation GmbH
Winterstraße 2
82223 Eichenau
Germany
Tel:+ 49-8141-35 731-37
Fax:+ 49-8141-35 731-38
Mobile: + 49-178-7829126
e-mail: [EMAIL PROTECTED]
Web:www.GS-automation.DE

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



Doc upload corruption w/JK2 connector?

2004-07-12 Thread Bob Ross
Hello,
  Has anyone out there experienced upload corruption using the following 
setup?

1) IIS 5.0
2) JK 2.0.4 (binary)
3) Tomcat 4.1.30 (or 4.1.18) (W2K binary)
4) Generic doc upload servlet (I've tested many).
I'm noticing that files greater than ~1MB have extraneous bytes thrown into 
the filestream.

-Bob
_
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

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


RE: Finding CSS files in webapp

2004-07-12 Thread David . Pawson
Xalan or Saxon have no 'base' from which to determine
the context for the css file, so you'll have to use
an absolute file reference from the stylesheet.

Came up on the Saxon list this week.
Its for the document() function, but the same logic applies.

HTH DaveP

quote
 It appears that I must use a full path when using the 
 xsl:result-document command from a saxon servlet.
 
 For example: xsl:result-document href=file:/c:/mywebdir/myfile.htm 
 format=web
 
 rather than: xsl:result-document href=file:/../../myfile.htm 
 format=web
 
 Is this true, or is it possible to use a relative path?

Although it's possible in principle to use a relative path, this isn't
likely to be convenient in a servlet environment. Any relative URI is
resolved relative to the base URI of the principal output document, which in
the servlet case is going to the servlet output streat, which doesn't have a
meaningful URI. You could, when you allocate the principal output
destination, give it an arbitrary URI for this purpose:

ServletOutputStream out = res.getOutputStream(); StreamResult tout = new
StreamResult(out); tout.setSystemId(file:/c:/some/uri/);
transformer.transform(new StreamSource(sourceFile), tout);

However, I'm wondering what you're actually trying to do here. Where do you
want to put the extra output files? Is it a location associated with the
individual end user, or a location associated with the source document, or
what? Are you trying to split the source document into multiple result
documents the first time it is accessed, and cache the results for later
use? Do you actually want to serialize the multiple output documents to
disk, or do you really want them in (application or session) memory?

 Also, there is no
 'c:' on Unix\Linux, so would I use something like 
 'href=file://mywebdir/myfile.html' ??

I think the correct syntax is file:///usr/dir/file.xml to reference the UNIX
file /user/dir/file.xml
 
 I'm new to the Servlet environment.. I'm not sure how to obtain the 
 full path if I'm running my Servlet on a hosted machine. Do I have to 
 ask the host provider and hard code the path or is there a dynamic way 
 to do this?
 

If you're running on a hosted machine then you'll have to write the files to
a directory where the servlet has write permission. A Java call such as

getServletContext().getRealPath(source);

will give you path names to files within the directory structure visible to
users via a browser - it's not clear whether you want the XML files you
generate to be directly accessible to users or not.

Michael Kay
/quote

-- 
DISCLAIMER: 

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged. If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system. 

RNIB endeavours to ensure that emails and any attachments generated by 
its staff are free from viruses or other contaminants. However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments. 

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent 
those of RNIB. 

RNIB Registered Charity Number: 226227 

Website: http://www.rnib.org.uk 

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



RE: Doc upload corruption w/JK2 connector?

2004-07-12 Thread STOCKHOLM, Raymond
Did you try Jakarta Commons FileUpload ?
http://jakarta.apache.org/commons/fileupload/

My config is windows 2000, java 1.4.1_05, tomcat 4.1.30,
No problems...

-Message d'origine-
De : Bob Ross [mailto:[EMAIL PROTECTED]
Envoyé : lundi 12 juillet 2004 10:19
À : [EMAIL PROTECTED]
Objet : Doc upload corruption w/JK2 connector?


Hello,

   Has anyone out there experienced upload corruption using the following 
setup?

1) IIS 5.0
2) JK 2.0.4 (binary)
3) Tomcat 4.1.30 (or 4.1.18) (W2K binary)
4) Generic doc upload servlet (I've tested many).

I'm noticing that files greater than ~1MB have extraneous bytes thrown into 
the filestream.

-Bob

_
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


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


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



RE: I've officially decided that JSTL is one of the worst things to ever happen to mankind

2004-07-12 Thread Endre Stølsvik
On Fri, 9 Jul 2004 [EMAIL PROTECTED] wrote:

| Would you guys take this conversation off the list please?
| Its heavy enough without your personal comments.

Aren't there room for any fun?! This is the most rewarding and interesting
thread in a while, in my opinion..! :)

;)

Endre


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



is the context automatically generated on auto-deploy?

2004-07-12 Thread Joel
In the deployer how-to at

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html

the docs state that, for eploying on startup, at least, ... a matching
Context XML descriptor will be created unless one exists already.

Under the description of context descriptors, it seems to say the files
will be in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory.

I dropped the xindice.war from the xml projects into the webapps
directory, and I can access it. (I did this twice, actually. First time
I was running Java 1.5 beta, and I dropped it live. This time it's Java
1.4 and I dropped it in while TC was down.)  Xindice is expanded
automagically in the webapps directory, and I can access it, do queries,
etc.

I look in my $CATALINA_HOME/conf directory, and all I see is 

Catalina\localhost\{ admin.xml, balancer.xml, manager.xml }

No other files or directories.

Nor can I see any sign of a xindice.xml or context.xml in the xindice
directory structure under webapps. 

There is a web.xml under WEB-INF and contains the servlet and
servlet-mapping declarations, and security-constraints commented out.
Conceptually, that's context kinds of specification, but it doesn't look
like what 

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html

leads me to expect. 

There is a system.xml under WEB-INF and it seems to contain application
specific declarations of the database and of XML-RPC. There is also a
configs/commands.xml which is very definitely application specific.
Clearly, neither of these is the context file.

So, does the automatically configured context actually get written out
anywhere? If so, I'm either looking for context in all the wrong places
or I've got this thing set up so strange it doesn't wanna do the right
thing.

-- 
Joel [EMAIL PROTECTED]


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



JK-Connector 1.2.x on IIS6 ?

2004-07-12 Thread Bjoern . Andersen
Hello,

We run a TomCat4-Farm with JK-Connector's 1.2.x on IIS6 Frontends.
We can't upgrade to Tomcat5 / JK 2.x jet.
IIS 6 is set to IIS 5 Compatible Mode as described in the Setup.
Now I heared it is also possible to run that in normal IIS6-Mode somehow...

Can anyone help / supply a Howto?

--
Björn Andersen

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



RE: Confused over deployment of web applications

2004-07-12 Thread David . Pawson
I found 

http://cymulacrum.net/writings/tomcat5/book1.html

to be the simplest 'get it working' text.
Defined as a 'quick start' document.
Does what it says on the tin :-)

HTH DaveP


** snip here **


-- 
DISCLAIMER: 

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged. If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system. 

RNIB endeavours to ensure that emails and any attachments generated by 
its staff are free from viruses or other contaminants. However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments. 

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent 
those of RNIB. 

RNIB Registered Charity Number: 226227 

Website: http://www.rnib.org.uk 

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



Re: JK-Connector 1.2.x on IIS6 ?

2004-07-12 Thread Tom Burke
I don't know about JK-Connector 1.2. However, since I got JK_2 working
last week I have been running IIS 6 on a Windows 2003 Server in proper
'IIS 6' mode, ie with IIS 5 Emulation not ticked. All other config
details were as normal. It seems to work OK, in a very light load demo
environment.

This is with JK_2 2.04.

Tom Burke

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 12, 2004 10:27 AM
Subject: JK-Connector 1.2.x on IIS6 ?


Hello,

We run a TomCat4-Farm with JK-Connector's 1.2.x on IIS6 Frontends.
We can't upgrade to Tomcat5 / JK 2.x jet.
IIS 6 is set to IIS 5 Compatible Mode as described in the Setup.
Now I heared it is also possible to run that in normal IIS6-Mode
somehow...

Can anyone help / supply a Howto?

--
Björn Andersen

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



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



Re: tomcat doesn't create directories under 'work' but does create .java/.class files

2004-07-12 Thread Morus Walter
Hi Horacio,

I get similar problems (on debian woody) for the deployment of jar-files.

When I start tomcat (with jsvc) everythings fine and the webapp is
startet.
But I would like to unload and load the application with the manager
application. In this case the start of the webapp fails, because
tomcat cannot copy the jar-files (jstl beeing the first of them) into
work/Standalone/localhost/webapp/WEB-INF/lib
because it didn't create that dir.

I did a strace analysis which shows, that tomcat
- checks for the existance of .../localhost/webapp/WEB-INF/lib
- tries to create this directory and fails (No such file or directory)
  (because .../localhost/webapp/WEB-INF does not exist)
- checks all paths up to .../localhost/webapp/WEB-INF
- finds that the path up to .../localhost/webapp exits
  and .../localhost/webapp/WEB-INF is missing
- ignores this and tries to open the jar-File (for writing)
  This fails and an IOException is thrown

mkdir(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search,
 0777) = 0
gettimeofday({1089624365, 625731}, NULL) = 0
write(21, 2004-07-12 11:26:05 StandardCont..., 90) = 90
gettimeofday({1089624365, 626281}, NULL) = 0
write(21, 2004-07-12 11:26:05 WebappLoader..., 180) = 180
gettimeofday({1089624365, 626677}, NULL) = 0
gettimeofday({1089624365, 626855}, NULL) = 0
stat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib,
 0xbbffe43c) = -1 ENOENT (No such file or directory)
mkdir(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib,
 0777) = -1 ENOENT (No such file or directory)
lstat64(/usr, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 
0lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30, {st_mode=S_IFDIR|0775, 
st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work, {st_mode=S_IFDIR|0755, 
st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone, 
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost, 
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search,
 {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF,
 0xbbffc394) = -1 ENOENT (No such file or directory)
lstat64(/usr, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30, {st_mode=S_IFDIR|0775, 
st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work, {st_mode=S_IFDIR|0755, 
st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone, 
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost, 
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search,
 {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF,
 0xbbffc394) = -1 ENOENT (No such file or directory)
gettimeofday({1089624365, 629834}, NULL) = 0
write(21, 2004-07-12 11:26:05 WebappLoader..., 190) = 190
open(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib/jstl.jar,
 O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = -1 ENOENT (No such file or directory)


Without jsvc it looks pretty much the same, except that the directory is 
created as expected.

mkdir(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search,
 0777) = 0
gettimeofday({1089625315, 938740}, NULL) = 0
write(22, 2004-07-12 11:41:55 StandardCont..., 90) = 90
gettimeofday({1089625315, 939285}, NULL) = 0
write(22, 2004-07-12 11:41:55 WebappLoader..., 180) = 180
gettimeofday({1089625315, 939650}, NULL) = 0
gettimeofday({1089625315, 939830}, NULL) = 0
stat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib,
 0xbbffe43c) = -1 ENOENT (No such file or directory)
mkdir(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib,
 0777) = -1 ENOENT (No such file or directory)
lstat64(/usr, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www, {st_mode=S_IFDIR|0755, st_size=4096, 

Re: tomcat doesn't create directories under 'work' but does create .java/.class files

2004-07-12 Thread Morus Walter
Hi Horacio,

I get similar problems (on debian woody) for the deployment of jar-files.

When I start tomcat (with jsvc) everythings fine and the webapp is
startet.
But I would like to unload and load the application with the manager
application. In this case the start of the webapp fails, because
tomcat cannot copy the jar-files (jstl beeing the first of them) into
work/Standalone/localhost/webapp/WEB-INF/lib
because it didn't create that dir.

I did a strace analysis which shows, that tomcat
- checks for the existance of .../localhost/webapp/WEB-INF/lib
- tries to create this directory and fails (No such file or directory)
  (because .../localhost/webapp/WEB-INF does not exist)
- checks all paths up to .../localhost/webapp/WEB-INF
- finds that the path up to .../localhost/webapp exits
  and .../localhost/webapp/WEB-INF is missing
- ignores this and tries to open the jar-File (for writing)
  This fails and an IOException is thrown

mkdir(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search,
 0777) = 0
gettimeofday({1089624365, 625731}, NULL) = 0
write(21, 2004-07-12 11:26:05 StandardCont..., 90) = 90
gettimeofday({1089624365, 626281}, NULL) = 0
write(21, 2004-07-12 11:26:05 WebappLoader..., 180) = 180
gettimeofday({1089624365, 626677}, NULL) = 0
gettimeofday({1089624365, 626855}, NULL) = 0
stat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib,
 0xbbffe43c) = -1 ENOENT (No such file or directory)
mkdir(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib,
 0777) = -1 ENOENT (No such file or directory)
lstat64(/usr, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 
0lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30, {st_mode=S_IFDIR|0775, 
st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work, {st_mode=S_IFDIR|0755, 
st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone, 
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost, 
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search,
 {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF,
 0xbbffc394) = -1 ENOENT (No such file or directory)
lstat64(/usr, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30, {st_mode=S_IFDIR|0775, 
st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work, {st_mode=S_IFDIR|0755, 
st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone, 
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost, 
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search,
 {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF,
 0xbbffc394) = -1 ENOENT (No such file or directory)
gettimeofday({1089624365, 629834}, NULL) = 0
write(21, 2004-07-12 11:26:05 WebappLoader..., 190) = 190
open(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib/jstl.jar,
 O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = -1 ENOENT (No such file or directory)


Without jsvc it looks pretty much the same, except that the directory is 
created as expected.

mkdir(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search,
 0777) = 0
gettimeofday({1089625315, 938740}, NULL) = 0
write(22, 2004-07-12 11:41:55 StandardCont..., 90) = 90
gettimeofday({1089625315, 939285}, NULL) = 0
write(22, 2004-07-12 11:41:55 WebappLoader..., 180) = 180
gettimeofday({1089625315, 939650}, NULL) = 0
gettimeofday({1089625315, 939830}, NULL) = 0
stat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib,
 0xbbffe43c) = -1 ENOENT (No such file or directory)
mkdir(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib,
 0777) = -1 ENOENT (No such file or directory)
lstat64(/usr, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www, {st_mode=S_IFDIR|0755, st_size=4096, 

Re: tomcat doesn't create directories under 'work' but does create .java/.class files

2004-07-12 Thread Morus Walter
Hi Horacio,

I get similar problems (on debian woody) for the deployment of jar-files.

When I start tomcat (with jsvc) everythings fine and the webapp is
startet.
But I would like to unload and load the application with the manager
application. In this case the start of the webapp fails, because
tomcat cannot copy the jar-files (jstl beeing the first of them) into
work/Standalone/localhost/webapp/WEB-INF/lib
because it didn't create that dir.

I did a strace analysis which shows, that tomcat
- checks for the existance of .../localhost/webapp/WEB-INF/lib
- tries to create this directory and fails (No such file or directory)
  (because .../localhost/webapp/WEB-INF does not exist)
- checks all paths up to .../localhost/webapp/WEB-INF
- finds that the path up to .../localhost/webapp exits
  and .../localhost/webapp/WEB-INF is missing
- ignores this and tries to open the jar-File (for writing)
  This fails and an IOException is thrown

mkdir(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search,
 0777) = 0
gettimeofday({1089624365, 625731}, NULL) = 0
write(21, 2004-07-12 11:26:05 StandardCont..., 90) = 90
gettimeofday({1089624365, 626281}, NULL) = 0
write(21, 2004-07-12 11:26:05 WebappLoader..., 180) = 180
gettimeofday({1089624365, 626677}, NULL) = 0
gettimeofday({1089624365, 626855}, NULL) = 0
stat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib,
 0xbbffe43c) = -1 ENOENT (No such file or directory)
mkdir(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib,
 0777) = -1 ENOENT (No such file or directory)
lstat64(/usr, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 
0lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30, {st_mode=S_IFDIR|0775, 
st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work, {st_mode=S_IFDIR|0755, 
st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone, 
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost, 
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search,
 {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF,
 0xbbffc394) = -1 ENOENT (No such file or directory)
lstat64(/usr, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30, {st_mode=S_IFDIR|0775, 
st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work, {st_mode=S_IFDIR|0755, 
st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone, 
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost, 
{st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search,
 {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF,
 0xbbffc394) = -1 ENOENT (No such file or directory)
gettimeofday({1089624365, 629834}, NULL) = 0
write(21, 2004-07-12 11:26:05 WebappLoader..., 190) = 190
open(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib/jstl.jar,
 O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = -1 ENOENT (No such file or directory)


Without jsvc it looks pretty much the same, except that the directory is 
created as expected.

mkdir(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search,
 0777) = 0
gettimeofday({1089625315, 938740}, NULL) = 0
write(22, 2004-07-12 11:41:55 StandardCont..., 90) = 90
gettimeofday({1089625315, 939285}, NULL) = 0
write(22, 2004-07-12 11:41:55 WebappLoader..., 180) = 180
gettimeofday({1089625315, 939650}, NULL) = 0
gettimeofday({1089625315, 939830}, NULL) = 0
stat64(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib,
 0xbbffe43c) = -1 ENOENT (No such file or directory)
mkdir(/usr/tanto/www/servers/jakarta-tomcat-4.1.30/work/Standalone/localhost/refdb_search/WEB-INF/lib,
 0777) = -1 ENOENT (No such file or directory)
lstat64(/usr, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64(/usr/tanto/www, {st_mode=S_IFDIR|0755, st_size=4096, 

Re: is the context automatically generated on auto-deploy?

2004-07-12 Thread Joel
On Mon, 12 Jul 2004 18:05:21 +0900 I wrote

 In the deployer how-to at
 
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html
 
 the docs state that, for eploying on startup, at least, ... a matching
 Context XML descriptor will be created unless one exists already.
 
 Under the description of context descriptors, it seems to say the files
 will be in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory.

Okay, I think I can see that this is basically an undesired result under
TC 5. (Although I kinda wish I knew why my setup is doing what is
apparently the right thing after all.)

 I dropped the xindice.war from the xml projects into the webapps
 directory, and I can access it. (I did this twice, actually. First time
 I was running Java 1.5 beta, and I dropped it live. This time it's Java
 1.4 and I dropped it in while TC was down.)  Xindice is expanded
 automagically in the webapps directory, and I can access it, do queries,
 etc.
 
 I look in my $CATALINA_HOME/conf directory, and all I see is 
 
 Catalina\localhost\{ admin.xml, balancer.xml, manager.xml }
 
 ...

I finally found a place where it says the app\WEB-INF\context.xml file
is the one _I_ am supposed to write for the app if it needs one.

But it looks like the context elements can also go in
app\WEB-INF/web.xml, and the documentation seems to mention web.xml more
than context.xml, which is a little confusing. (If I were confident of
my interpretation, I'd offer some diffs.)

I thought I saw mention of the default context specification buried
somewhere in a source directory. Wish I could find it, although it may
not turn out to be useful as an example of what should go in it.

-- 
Joel [EMAIL PROTECTED]


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



By pass j_security_check

2004-07-12 Thread test test
Hi,

I’m trying to build some kind of single-login mechanism for multiple tomcat standalone 
server with an own JDBC-Realm for each standalone server.
The existing authentication for each application is form based with an own JDBC-Realm 
implementation.
My Problem is to by pass the j_security_check with a link in an external app. 
I'm trying to provide a link in app2 that looks like: 

http://tomcat1/app1/j_secuirty_check?j_username=user1j_password=1 

But I always get this error-message when I click on the link: 
HTTP Status 404 - /app1/j_security_check
The requested resource (/app1/j_security_check) is not available.

If I enter the link in my browsers address bar I'm able to login successfully, when I 
called the login-page of app1 before, when I haven't called the login.jsp before, I'm 
getting this error-message: 
HTTP Status 400 - Invalid direct reference to form login page


Any solution how to by pass the j_security_check with parameters provided by an 
external link?

Thanks in advance!

Roman Broich



Aufnehmen, abschicken, nah sein - So einfach ist 
WEB.DE Video-Mail: http://freemail.web.de/?mc=021200


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



webapp in webapp

2004-07-12 Thread agarlita,dan

Hi,
can I make a webapp in another webapp ?
somethig like:
\root = myFirstApp (WEB-INF - folder)
\root\xam\nettools\ = mySecondApp (WEB-INF -folder)

whitout modify the configuration files for server, only the local xml for
\root?

Thanks,
DAG


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



No Java compiler was found to compile the generated source for the JSP

2004-07-12 Thread Simone-dev
Hello all,
I just installed  Apache Tomcat/5.0.25 on my newly installed developing 
workstation on Windows
I've installed SDK  1.4.2_05, too...

But when I try to run a JSP to compiled I get the error
org.apache.jasper.JasperException: Unable to compile class for JSP
No Java compiler was found to compile the generated source for the JSP. 
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK 
to the common/lib directory of the Tomcat server, followed by a Tomcat restart. 
If using an alternate Java compiler, please check its installation and access path.

I've set JAVA_HOME as C:\j2sdk1.4.2_05 but tomcat still doesn't compile JSP
any ideas?
Simone



Re: No Java compiler was found to compile the generated source for the JSP

2004-07-12 Thread Ben Souther
Test your JAVA_HOME environment variable.

Open a command prompt and type:
%JAVA_HOME%\bin\javac

If you see:
No File Or Program Found.
you didn't set it right.



On Monday 12 July 2004 08:44 am, Simone-dev wrote:
 Hello all,
 I just installed  Apache Tomcat/5.0.25 on my newly installed developing
 workstation on Windows
 I've installed SDK  1.4.2_05, too...

 But when I try to run a JSP to compiled I get the error

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

 No Java compiler was found to compile the generated source for the JSP.
 This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar
 from the JDK to the common/lib directory of the Tomcat server, followed by
 a Tomcat restart. If using an alternate Java compiler, please check its
 installation and access path.


 I've set JAVA_HOME as C:\j2sdk1.4.2_05 but tomcat still doesn't compile JSP

 any ideas?

 Simone

-- 
Ben Souther
F.W. Davison  Company, Inc.


This e-mail message, and any accompanying documents, is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  Any unauthorized review, use, disclosure, distribution or
copying is prohibited.  If you are not the intended recipient, please
contact our office by email or by telephone at (508) 747-7261 and
immediately destroy all copies of the original message.

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



Re: No Java compiler was found to compile the generated source for the JSP

2004-07-12 Thread Mike Fowler
Simone-
Have you tried copying the tools.jar into common/lib ?
-Mike Fowler
I could be a genius if I just put my mind to it, and I,
I could do anything, if only I could get 'round to it
Simone-dev wrote:
Hello all,
I just installed  Apache Tomcat/5.0.25 on my newly installed developing 
workstation on Windows
I've installed SDK  1.4.2_05, too...

But when I try to run a JSP to compiled I get the error
org.apache.jasper.JasperException: Unable to compile class for JSP
No Java compiler was found to compile the generated source for the JSP. 
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar 
from the JDK to the common/lib directory of the Tomcat server, followed 
by a Tomcat restart. If using an alternate Java compiler, please check 
its installation and access path.

I've set JAVA_HOME as C:\j2sdk1.4.2_05 but tomcat still doesn't compile JSP
any ideas?
Simone


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


Re: No Java compiler was found to compile the generated source for the JSP

2004-07-12 Thread Simone-dev
And what if it works ?
Simone
Ben Souther wrote:
Test your JAVA_HOME environment variable.
Open a command prompt and type:
%JAVA_HOME%\bin\javac
If you see:
No File Or Program Found.
you didn't set it right.

On Monday 12 July 2004 08:44 am, Simone-dev wrote:
 

Hello all,
I just installed  Apache Tomcat/5.0.25 on my newly installed developing
workstation on Windows
I've installed SDK  1.4.2_05, too...
But when I try to run a JSP to compiled I get the error
org.apache.jasper.JasperException: Unable to compile class for JSP
No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar
from the JDK to the common/lib directory of the Tomcat server, followed by
a Tomcat restart. If using an alternate Java compiler, please check its
installation and access path.
I've set JAVA_HOME as C:\j2sdk1.4.2_05 but tomcat still doesn't compile JSP
any ideas?
Simone
   

 




Re: No Java compiler was found to compile the generated source for the JSP

2004-07-12 Thread Ben Souther
Did it?


On Monday 12 July 2004 09:00 am, Simone-dev wrote:
 And what if it works ?

 Simone

 Ben Souther wrote:
 Test your JAVA_HOME environment variable.
 
 Open a command prompt and type:
 %JAVA_HOME%\bin\javac
 
 If you see:
 No File Or Program Found.
 you didn't set it right.
 
 On Monday 12 July 2004 08:44 am, Simone-dev wrote:
 Hello all,
 I just installed  Apache Tomcat/5.0.25 on my newly installed developing
 workstation on Windows
 I've installed SDK  1.4.2_05, too...
 
 But when I try to run a JSP to compiled I get the error
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 
 No Java compiler was found to compile the generated source for the JSP.
 This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar
 from the JDK to the common/lib directory of the Tomcat server, followed
  by a Tomcat restart. If using an alternate Java compiler, please check
  its installation and access path.
 
 
 I've set JAVA_HOME as C:\j2sdk1.4.2_05 but tomcat still doesn't compile
  JSP
 
 any ideas?
 
 Simone

-- 
Ben Souther
F.W. Davison  Company, Inc.


This e-mail message, and any accompanying documents, is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  Any unauthorized review, use, disclosure, distribution or
copying is prohibited.  If you are not the intended recipient, please
contact our office by email or by telephone at (508) 747-7261 and
immediately destroy all copies of the original message.

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



Re: No Java compiler was found to compile the generated source for the JSP

2004-07-12 Thread Simone-dev
Yes, I did it
the JAVA_HOME is set correctly
Simone
Ben Souther wrote:
Did it?
On Monday 12 July 2004 09:00 am, Simone-dev wrote:
 

And what if it works ?
Simone
Ben Souther wrote:
   

Test your JAVA_HOME environment variable.
Open a command prompt and type:
%JAVA_HOME%\bin\javac
If you see:
No File Or Program Found.
you didn't set it right.
On Monday 12 July 2004 08:44 am, Simone-dev wrote:
 

Hello all,
I just installed  Apache Tomcat/5.0.25 on my newly installed developing
workstation on Windows
I've installed SDK  1.4.2_05, too...
But when I try to run a JSP to compiled I get the error
org.apache.jasper.JasperException: Unable to compile class for JSP
No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar
   

from the JDK to the common/lib directory of the Tomcat server, followed
 

by a Tomcat restart. If using an alternate Java compiler, please check
its installation and access path.
I've set JAVA_HOME as C:\j2sdk1.4.2_05 but tomcat still doesn't compile
JSP
any ideas?
Simone
   

 




Re: No Java compiler was found to compile the generated source for the JSP

2004-07-12 Thread Simone-dev
No, I didn't do it...
I never did it... nor on my production server, nor on my previous tomcat 
installation (5.0.18) should work without this too

Simone
Mike Fowler wrote:
Simone-
Have you tried copying the tools.jar into common/lib ?
-Mike Fowler
I could be a genius if I just put my mind to it, and I,
I could do anything, if only I could get 'round to it
Simone-dev wrote:
Hello all,
I just installed  Apache Tomcat/5.0.25 on my newly installed 
developing workstation on Windows
I've installed SDK  1.4.2_05, too...

But when I try to run a JSP to compiled I get the error
org.apache.jasper.JasperException: Unable to compile class for JSP
No Java compiler was found to compile the generated source for the 
JSP. This can usually be solved by copying manually 
$JAVA_HOME/lib/tools.jar from the JDK to the common/lib directory of 
the Tomcat server, followed by a Tomcat restart. If using an 
alternate Java compiler, please check its installation and access path.

I've set JAVA_HOME as C:\j2sdk1.4.2_05 but tomcat still doesn't 
compile JSP

any ideas?
Simone


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


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


Re: No Java compiler was found to compile the generated source for the JSP

2004-07-12 Thread Ben Souther
I know that, at one point.  The Windows installer had tomcat looking 
for jdk in the registry, even if you had JAVA_HOME set properly.
But that was fixed.

If you used the Windows installer, check where it is looking for java.
Start - Programs - Apache-Tomcat - Configure Tomcat.

There is a Java Tab in there that you can use to set the Java Home property.
See if that matches your JAVA_HOME env var.



On Monday 12 July 2004 09:03 am, Simone-dev wrote:
 Yes, I did it
 the JAVA_HOME is set correctly

 Simone

 Ben Souther wrote:
 Did it?
 
 On Monday 12 July 2004 09:00 am, Simone-dev wrote:
 And what if it works ?
 
 Simone
 
 Ben Souther wrote:
 Test your JAVA_HOME environment variable.
 
 Open a command prompt and type:
 %JAVA_HOME%\bin\javac
 
 If you see:
 No File Or Program Found.
 you didn't set it right.
 
 On Monday 12 July 2004 08:44 am, Simone-dev wrote:
 Hello all,
 I just installed  Apache Tomcat/5.0.25 on my newly installed developing
 workstation on Windows
 I've installed SDK  1.4.2_05, too...
 
 But when I try to run a JSP to compiled I get the error
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 
 No Java compiler was found to compile the generated source for the JSP.
 This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar
 
 
 from the JDK to the common/lib directory of the Tomcat server, followed
 
 
 by a Tomcat restart. If using an alternate Java compiler, please check
 its installation and access path.
 
 
 I've set JAVA_HOME as C:\j2sdk1.4.2_05 but tomcat still doesn't compile
 JSP
 
 any ideas?
 
 Simone

-- 
Ben Souther
F.W. Davison  Company, Inc.


This e-mail message, and any accompanying documents, is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  Any unauthorized review, use, disclosure, distribution or
copying is prohibited.  If you are not the intended recipient, please
contact our office by email or by telephone at (508) 747-7261 and
immediately destroy all copies of the original message.

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



Re: No Java compiler was found to compile the generated source for the JSP

2004-07-12 Thread Simone-dev
I remember in tomcat 5.0.18 there was a java Home property, but now I've 
just a Java Virtual machine
originally it was set to C:\Program 
Files\Java\j2re1.4.2_05\bin\client\jvm.dll (and didn't worked)
then I changed it to C:\j2sdk1.4.2_05\jre\bin\client\jvm.dll but still 
doesn't work

and there is not place to set a java home via configuration panel
Simone
Ben Souther wrote:
I know that, at one point.  The Windows installer had tomcat looking 
for jdk in the registry, even if you had JAVA_HOME set properly.
But that was fixed.

If you used the Windows installer, check where it is looking for java.
Start - Programs - Apache-Tomcat - Configure Tomcat.
There is a Java Tab in there that you can use to set the Java Home property.
See if that matches your JAVA_HOME env var.

On Monday 12 July 2004 09:03 am, Simone-dev wrote:
 

Yes, I did it
the JAVA_HOME is set correctly
Simone
Ben Souther wrote:
   

Did it?
On Monday 12 July 2004 09:00 am, Simone-dev wrote:
 

And what if it works ?
Simone
Ben Souther wrote:
   

Test your JAVA_HOME environment variable.
Open a command prompt and type:
%JAVA_HOME%\bin\javac
If you see:
No File Or Program Found.
you didn't set it right.
On Monday 12 July 2004 08:44 am, Simone-dev wrote:
 

Hello all,
I just installed  Apache Tomcat/5.0.25 on my newly installed developing
workstation on Windows
I've installed SDK  1.4.2_05, too...
But when I try to run a JSP to compiled I get the error
org.apache.jasper.JasperException: Unable to compile class for JSP
No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar
   

from the JDK to the common/lib directory of the Tomcat server, followed
 

by a Tomcat restart. If using an alternate Java compiler, please check
its installation and access path.
I've set JAVA_HOME as C:\j2sdk1.4.2_05 but tomcat still doesn't compile
JSP
any ideas?
Simone
   

 




Re: No Java compiler was found to compile the generated source for the JSP

2004-07-12 Thread Ben Souther
Reinstall it and point it to a full j2sdk during the install.
Should only take a few minutes.


On Monday 12 July 2004 09:16 am, Simone-dev wrote:
 I remember in tomcat 5.0.18 there was a java Home property, but now I've
 just a Java Virtual machine
 originally it was set to C:\Program
 Files\Java\j2re1.4.2_05\bin\client\jvm.dll (and didn't worked)
 then I changed it to C:\j2sdk1.4.2_05\jre\bin\client\jvm.dll but still
 doesn't work

 and there is not place to set a java home via configuration panel

 Simone

 Ben Souther wrote:
 I know that, at one point.  The Windows installer had tomcat looking
 for jdk in the registry, even if you had JAVA_HOME set properly.
 But that was fixed.
 
 If you used the Windows installer, check where it is looking for java.
 Start - Programs - Apache-Tomcat - Configure Tomcat.
 
 There is a Java Tab in there that you can use to set the Java Home
  property. See if that matches your JAVA_HOME env var.
 
 On Monday 12 July 2004 09:03 am, Simone-dev wrote:
 Yes, I did it
 the JAVA_HOME is set correctly
 
 Simone
 
 Ben Souther wrote:
 Did it?
 
 On Monday 12 July 2004 09:00 am, Simone-dev wrote:
 And what if it works ?
 
 Simone
 
 Ben Souther wrote:
 Test your JAVA_HOME environment variable.
 
 Open a command prompt and type:
 %JAVA_HOME%\bin\javac
 
 If you see:
 No File Or Program Found.
 you didn't set it right.
 
 On Monday 12 July 2004 08:44 am, Simone-dev wrote:
 Hello all,
 I just installed  Apache Tomcat/5.0.25 on my newly installed
  developing workstation on Windows
 I've installed SDK  1.4.2_05, too...
 
 But when I try to run a JSP to compiled I get the error
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 
 No Java compiler was found to compile the generated source for the
  JSP. This can usually be solved by copying manually
  $JAVA_HOME/lib/tools.jar
 
 
 
 
 from the JDK to the common/lib directory of the Tomcat server,
  followed
 
 
 by a Tomcat restart. If using an alternate Java compiler, please
  check its installation and access path.
 
 
 I've set JAVA_HOME as C:\j2sdk1.4.2_05 but tomcat still doesn't
  compile JSP
 
 any ideas?
 
 Simone

-- 
Ben Souther
F.W. Davison  Company, Inc.


This e-mail message, and any accompanying documents, is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  Any unauthorized review, use, disclosure, distribution or
copying is prohibited.  If you are not the intended recipient, please
contact our office by email or by telephone at (508) 747-7261 and
immediately destroy all copies of the original message.

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



Authentication method 'DIGEST'

2004-07-12 Thread johan . philippe

Does anyone know if the DIGEST authentication is supported by Tomcat 5?
I have been trying to get it working with a Tomcat 5.0.24 on Windows and the default 
UserDatabase, but have not been completely successful.  The authentication of a user 
seems to work OK (with the browser dialog being and so), but the principal is not 
available and probably the roles are not set and also I still get a 

HTTP Status 403 - Access to the requested resource has been denied

With the same configuration, changing only the method from DIGEST to BASIC works 
without problems.

Re: DBCP with JDBC driver in WEB-INF/lib

2004-07-12 Thread David Smith
I don't think you can.  The classloader that supports the jars in 
common/lib can't see the jars in your webapp.  It's one of those cases 
where your webapp's classloader can see the jars at the tomcat level, 
but not the other way around.  I think your stuck with either getting 
the provider to update their driver or rewriting your code to the older 
driver they are running.

--David
Steven J. Owens wrote:
Hi all,
I'm using tomcat with DBCP for connection pooling, on a hosted
server.
My hosting provider is using an older driver that doesn't support
some JDBC 3.0 features I'd like.
When I asked them about upgrading, they told me I could just stick
the jar file for the more up-to-date driver in WEB-INF/lib and use that.
What I'm wondering is, how do I tell DBCP to use the WEB-INF/lib
jar file? 

 

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


Re: No Java compiler was found to compile the generated source for the JSP

2004-07-12 Thread Simone-dev
Everything is working now:
the java virtual machine is set now to 
C:\j2sdk1.4.2_05\jre\bin\client\jvm.dll

Simone
Ben Souther wrote:
Reinstall it and point it to a full j2sdk during the install.
Should only take a few minutes.
On Monday 12 July 2004 09:16 am, Simone-dev wrote:
 

I remember in tomcat 5.0.18 there was a java Home property, but now I've
just a Java Virtual machine
originally it was set to C:\Program
Files\Java\j2re1.4.2_05\bin\client\jvm.dll (and didn't worked)
then I changed it to C:\j2sdk1.4.2_05\jre\bin\client\jvm.dll but still
doesn't work
and there is not place to set a java home via configuration panel
Simone
Ben Souther wrote:
   

I know that, at one point.  The Windows installer had tomcat looking
for jdk in the registry, even if you had JAVA_HOME set properly.
But that was fixed.
If you used the Windows installer, check where it is looking for java.
Start - Programs - Apache-Tomcat - Configure Tomcat.
There is a Java Tab in there that you can use to set the Java Home
property. See if that matches your JAVA_HOME env var.
On Monday 12 July 2004 09:03 am, Simone-dev wrote:
 

Yes, I did it
the JAVA_HOME is set correctly
Simone
Ben Souther wrote:
   

Did it?
On Monday 12 July 2004 09:00 am, Simone-dev wrote:
 

And what if it works ?
Simone
Ben Souther wrote:
   

Test your JAVA_HOME environment variable.
Open a command prompt and type:
%JAVA_HOME%\bin\javac
If you see:
No File Or Program Found.
you didn't set it right.
On Monday 12 July 2004 08:44 am, Simone-dev wrote:
 

Hello all,
I just installed  Apache Tomcat/5.0.25 on my newly installed
developing workstation on Windows
I've installed SDK  1.4.2_05, too...
But when I try to run a JSP to compiled I get the error
org.apache.jasper.JasperException: Unable to compile class for JSP
No Java compiler was found to compile the generated source for the
JSP. This can usually be solved by copying manually
$JAVA_HOME/lib/tools.jar

   

from the JDK to the common/lib directory of the Tomcat server,
 

followed
by a Tomcat restart. If using an alternate Java compiler, please
check its installation and access path.
I've set JAVA_HOME as C:\j2sdk1.4.2_05 but tomcat still doesn't
compile JSP
any ideas?
Simone
   

 




Re: Authentication method 'DIGEST'

2004-07-12 Thread Tom Burke
What kind of Windows environment are you in? I think you've got to be a
NT or Active Directory domain.

Tom Burke

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 12, 2004 2:28 PM
Subject: Authentication method 'DIGEST'



 Does anyone know if the DIGEST authentication is supported by Tomcat
5?
 I have been trying to get it working with a Tomcat 5.0.24 on Windows
and the default UserDatabase, but have not been completely successful.
The authentication of a user seems to work OK (with the browser dialog
being and so), but the principal is not available and probably the roles
are not set and also I still get a

 HTTP Status 403 - Access to the requested resource has been denied

 With the same configuration, changing only the method from DIGEST to
BASIC works without problems.


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



Many problems with mod_jk2

2004-07-12 Thread Software
Hi, i've installed Tomcat 1.3.24, j2sdk1.4.2_01, mod _jk2 1.2.5  with 
tomcat 4.1.30  whe i'm reviewing the jk2.log i'm getting these messages 
errors, and some times i must to restart the tomcat and all the 
application continue working finefor a few days then the tomcat is 
blocking again and i must to restart it. I've made many test, and review 
the code of our application and all is fine, when the tomcat work 
without any kind of mod_jk2 or mod_jk connector i have not had any 
blocking problem with tomcat.

These are the errors in jk2.log file:
[Mon Jul 12 13:13:58 2004]  (error) [jk_worker_ajp13.c (247)]: 
ajp13.connect() failed ajp13:localhost:8009
[Mon Jul 12 13:13:58 2004]  (error) [jk_worker_ajp13.c (322)]: 
ajp13.service() failed to connect endpoint errno=111 Connection refused
[Mon Jul 12 13:13:58 2004]  (error) [jk_worker_ajp13.c (512)]: 
ajp13.service() Error  forwarding ajp13:localhost:8009 1 1
[Mon Jul 12 13:13:58 2004]  (error) [mod_jk2.c (427)]: mod_jk.handler() 
Error connecting to tomcat 21000
[Mon Jul 12 14:00:43 2004]  (error) [jk_handler_response.c (200)]: Error 
ajp_process_callback - write failed
[Mon Jul 12 14:00:43 2004]  (error) [jk_worker_ajp13.c (416)]: 
ajp13.service() ajpGetReply recoverable error 3
[Mon Jul 12 14:00:44 2004]  (error) [jk_handler_response.c (200)]: Error 
ajp_process_callback - write failed
[Mon Jul 12 14:00:44 2004]  (error) [jk_worker_ajp13.c (416)]: 
ajp13.service() ajpGetReply recoverable error 3
[Mon Jul 12 14:00:44 2004]  (error) [jk_worker_ajp13.c (512)]: 
ajp13.service() Error  forwarding ajp13:localhost:8009 1 0

Thanks lot for you help is important to resolve this problem
Fabian


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


Re: webapp in webapp

2004-07-12 Thread Nikola Milutinovic
agarlita,dan wrote:
Hi,
can I make a webapp in another webapp ?
somethig like:
\root = myFirstApp (WEB-INF - folder)
\root\xam\nettools\ = mySecondApp (WEB-INF -folder)
whitout modify the configuration files for server, only the local xml for
\root?
 

Each web-app MUST have it's descriptor and MUST be deployed by the 
container. I'm not sure how Tomcat handles two web-apps with overlapping 
URI. In other words, URI: 
http://server.domain.com/root/xam/nettools/index.html matches both web 
applications. Is there a specification on this issue?

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


Re: webapp in webapp

2004-07-12 Thread agarlita,dan
hi,
the http://server.domain.com/root/xam/nettools/index.html is
complied/interpreted by the root application,
but in this folder is another web-app with full web.xml and WEB-INF
folders.
I think it will be somethig like Context in Context
I try all I know on tomcat, all configuration... all

Nothing:) I will be gratefull for any ideea
DAG


- Original Message - 
From: Nikola Milutinovic [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, July 12, 2004 8:00 AM
Subject: Re: webapp in webapp


 agarlita,dan wrote:

 Hi,
 can I make a webapp in another webapp ?
 somethig like:
 \root = myFirstApp (WEB-INF - folder)
 \root\xam\nettools\ = mySecondApp (WEB-INF -folder)
 
 whitout modify the configuration files for server, only the local xml for
 \root?
 
 

 Each web-app MUST have it's descriptor and MUST be deployed by the
 container. I'm not sure how Tomcat handles two web-apps with overlapping
 URI. In other words, URI:
 http://server.domain.com/root/xam/nettools/index.html matches both web
 applications. Is there a specification on this issue?

 Nix.

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



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



Re: Doc upload corruption w/JK2 connector?

2004-07-12 Thread emmett
Yes. Though as you imply we have only seen it on binary documents.
We have not attempted to verify this with ASCII or txt documents.



On Mon, 12 Jul 2004 10:39:29 +0200, STOCKHOLM, Raymond
[EMAIL PROTECTED] wrote:
 Did you try Jakarta Commons FileUpload ?
 http://jakarta.apache.org/commons/fileupload/
 
 My config is windows 2000, java 1.4.1_05, tomcat 4.1.30,
 No problems...
 
 -Message d'origine-
 De : Bob Ross [mailto:[EMAIL PROTECTED]
 Envoyé : lundi 12 juillet 2004 10:19
 À : [EMAIL PROTECTED]
 Objet : Doc upload corruption w/JK2 connector?
 
 
 
 
 Hello,
 
   Has anyone out there experienced upload corruption using the following
 setup?
 
 1) IIS 5.0
 2) JK 2.0.4 (binary)
 3) Tomcat 4.1.30 (or 4.1.18) (W2K binary)
 4) Generic doc upload servlet (I've tested many).
 
 I'm noticing that files greater than ~1MB have extraneous bytes thrown into
 the filestream.
 
 -Bob
 
 _
 FREE pop-up blocking with the new MSN Toolbar - get it now!
 http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: webapp in webapp

2004-07-12 Thread Nikola Milutinovic
agarlita,dan wrote:
hi,
the http://server.domain.com/root/xam/nettools/index.html is
complied/interpreted by the root application,
but in this folder is another web-app with full web.xml and WEB-INF
folders.
I think it will be somethig like Context in Context
I try all I know on tomcat, all configuration... all
Nothing:) I will be gratefull for any ideea
DAG
OK, first of all, there is no such concept in Java Servlet specification 
as web-app in web-app, nested web apps, if you like. If you have two 
(distinct) web applications, the should be placed in SEPARATE directory 
hierarchies, each one deployed as if they had no dependance at all. Then 
you can try to play with deployment, so that corresponding URIs that are 
attached to these applications *overlap*.

Doing what you did will not do what you want - IOW, there will be only 
one web application and the other will be treated as a set of files. 
Granted, JSPs will execute, but servlets and all classes within the 
second (deeper) WEB-INF will not be deployed or treated as a part of a 
second WEB-INF. They will be accessable as just plain files.

If you do it my way you might get what you wanted, but I cannot 
guarantee it works on other JSP/Servlet containers. I'm not sure what 
the spec says (if anything) on the subject of overlapping deployment URI.

Guys, anyone?
Nix.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: webapp in webapp

2004-07-12 Thread agarlita,dan
:) Thank for this informations. I know that. 
with 2 different apps works. I know... But the concept and the 
ideea behind that is a little big...  Thanks for the info anyway.

Thanks,
Dag

- Original Message - 
From: Nikola Milutinovic [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, July 12, 2004 9:19 AM
Subject: Re: webapp in webapp


 agarlita,dan wrote:
 
 hi,
 the http://server.domain.com/root/xam/nettools/index.html is
 complied/interpreted by the root application,
 but in this folder is another web-app with full web.xml and WEB-INF
 folders.
 I think it will be somethig like Context in Context
 I try all I know on tomcat, all configuration... all
 
 Nothing:) I will be gratefull for any ideea
 DAG
 
 
 OK, first of all, there is no such concept in Java Servlet specification 
 as web-app in web-app, nested web apps, if you like. If you have two 
 (distinct) web applications, the should be placed in SEPARATE directory 
 hierarchies, each one deployed as if they had no dependance at all. Then 
 you can try to play with deployment, so that corresponding URIs that are 
 attached to these applications *overlap*.
 
 Doing what you did will not do what you want - IOW, there will be only 
 one web application and the other will be treated as a set of files. 
 Granted, JSPs will execute, but servlets and all classes within the 
 second (deeper) WEB-INF will not be deployed or treated as a part of a 
 second WEB-INF. They will be accessable as just plain files.
 
 If you do it my way you might get what you wanted, but I cannot 
 guarantee it works on other JSP/Servlet containers. I'm not sure what 
 the spec says (if anything) on the subject of overlapping deployment URI.
 
 Guys, anyone?
 
 Nix.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Applet in tomcat clustering

2004-07-12 Thread Simon Zeng

Hi,

Does any use applet in tomcat clustering?I have an question and need some
help.

I have set up two tomcat instances in cluster/load balance. My
webapplication has one feature using applet. As I understand, tomcat
cluster/load balance has sticky session which means subseqent requests being
sent to the same tomcat once the browser/server connection is setup. This is
true in my application except while using applet, the request is sent to
different tomcat randomly. I use HTTPTunnel to communicate between applet
and server.

Thanks,

-Simon

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



RE: HTTP Status

2004-07-12 Thread Mark Thomas
These are WebDAV methods. See RFC2518. Tomcat will respond with a 500 to these
unless you have configured the webdav servlet.

Mark 

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Monday, July 12, 2004 6:52 AM
 To: Tomcat Users List
 Subject: HTTP Status
 
 Hi Everyone,
 
 I have a question that is not directly related to tomcat however I am
 hoping that someone may know that answer. I have setup tomcat and I am
 running a production website on it. In the log files I am 
 getting unusual
 request type like LOCK, OPTIONS and PROPFIND and these 
 sometimes produce
 error 500 status codes. Has anyone seen these before? Thanks 
 for your time
 and I look forward to hearing from you.
 
 Kindest Regards,
 Matt Anderson
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



Possible to retrieve ServletContext from any class used in the web application??

2004-07-12 Thread Fredrik Liden
Hi,

Does anyone know if it's possible to retrieve the ServletContext from
any class (like a helper class) that is being used in the Web app, even
though the request object is not being passed to the object?

Any ideas would be greatly appreciated.

/Fredrik

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



RE: Applet in tomcat clustering

2004-07-12 Thread Simon Zeng
My mistake. I am using HttpURLConnection (not HttpTunnel) to communicate
between applet and server.

Thanks,
-Simon

-Original Message-
From: Simon Zeng [mailto:[EMAIL PROTECTED]
Sent: Monday, July 12, 2004 1:51 PM
To: 'Tomcat Users List'
Subject: Applet in tomcat clustering



Hi,

Does any use applet in tomcat clustering?I have an question and need some
help.

I have set up two tomcat instances in cluster/load balance. My
webapplication has one feature using applet. As I understand, tomcat
cluster/load balance has sticky session which means subseqent requests being
sent to the same tomcat once the browser/server connection is setup. This is
true in my application except while using applet, the request is sent to
different tomcat randomly. I use HTTPTunnel to communicate between applet
and server.

Thanks,

-Simon

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

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



Clob Problem

2004-07-12 Thread Craig Christophersen
I am having problems with clobs data being printed out on the front end. I am using 
BES 5.2.1 which includes TOMCAT 4.0 as its web container. I am able create a DTO and 
printout the clob data from the middletier through a session facade test client.  The 
jar file and the delegate are installed correctly. We did a couple of tests which 
included text data and clob data - this failed at the findByPrimarykey call

 try {

int textId = 146;

 TrialclobTextDelegate tctd = new TrialclobTextDelegate();

TrialclobTextDto tctdto = tctd.trialclobTextFindByPrimaryKey(textId);

System.out.println(Data =  + tctdto.getData());

System.out.println(Data2k =  + tctdto.getData2k());

System.out.println(Data1k =  + tctdto.getData1k());

System.out.println(Data500 =  + tctdto.getData500());

System.out.println(Datac =  + tctdto.getDataClob());// clob data

} catch (Exception ex) {

ex.getStackTrace();

System.out.println(Exception =  + ex.getMessage());

}

 When the DTO fields are created without the clob the above code works just fine. The 
size of the Data field is 4K. There seems to perhaps be a persistence problem related 
only to clobs.

 Any helpful hints would greatly appreciated.

Craig Christophersen
(406)496-6421
[EMAIL PROTECTED]

Re: Applet in tomcat clustering

2004-07-12 Thread Filip Hanik - Dev
you will need to send up cookies just like the HTTP protocol says in order to keep 
state

Filip
- Original Message - 
From: Simon Zeng [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, July 12, 2004 1:39 PM
Subject: RE: Applet in tomcat clustering


 My mistake. I am using HttpURLConnection (not HttpTunnel) to communicate
 between applet and server.
 
 Thanks,
 -Simon
 
 -Original Message-
 From: Simon Zeng [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 12, 2004 1:51 PM
 To: 'Tomcat Users List'
 Subject: Applet in tomcat clustering
 
 
 
 Hi,
 
 Does any use applet in tomcat clustering?I have an question and need some
 help.
 
 I have set up two tomcat instances in cluster/load balance. My
 webapplication has one feature using applet. As I understand, tomcat
 cluster/load balance has sticky session which means subseqent requests being
 sent to the same tomcat once the browser/server connection is setup. This is
 true in my application except while using applet, the request is sent to
 different tomcat randomly. I use HTTPTunnel to communicate between applet
 and server.
 
 Thanks,
 
 -Simon
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: Can't Login as Admin or manager

2004-07-12 Thread Mark Thomas
Roger,

A couple of thoughts:

1. Is there a ?xml version='1.0' encoding='utf-8'? on the first line of your
tomcat-users.xml file.
2. Try using a simple Realm className=org.apache.catalina.realm.MemoryRealm
/ in your server.xml and see if that works.

I have seen the type of config you describe working with BASIC and FORM
authentication although it won't work with CLIENT-CERT authentication (this has
been fixed in CVS).

Mark

 -Original Message-
 From: BONUCHI, MICHAEL ROGER (SBCSI) [mailto:[EMAIL PROTECTED] 
 Sent: Monday, July 12, 2004 4:24 AM
 To: Tomcat Users List
 Subject: RE: Can't Login as Admin or manager
 
 Mark,
 
   I overlooked the GlobalNamingResources section of the 
 server.xml below.  The tomcat-users.xml is referenced here as 
 it is in the second instance of Tomcat where the login 
 process works.  The server.xml is as it was released from 
 Sun/NetBeans package.  Any suggestions as why this instance 
 wouldn't accept my login?  As for my previous statement about 
 being locked out, I'm sure I must have been mistaken and 
 login to the other working instance.
 
 -Roger
 
 GlobalNamingResources
 
 !-- Test entry for demonstration purposes --
 Environment name=simpleValue type=java.lang.Integer 
 value=30/
 
 !-- Editable user database that can also be used by
  UserDatabaseRealm to authenticate users --
 Resource name=UserDatabase auth=Container
   type=org.apache.catalina.UserDatabase
description=User database that can be updated and saved
 /Resource
 ResourceParams name=UserDatabase
   parameter
 namefactory/name
 
 valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
   /parameter
   parameter
 namepathname/name
 valueconf/tomcat-users.xml/value
   /parameter
 /ResourceParams
 
   /GlobalNamingResources
 
 -Original Message-
 From: Mark Thomas [mailto:[EMAIL PROTECTED]
 Sent: Saturday, July 10, 2004 13:34 PM
 To: 'Tomcat Users List'
 Subject: RE: Can't Login as Admin or manager
 
 
 There is no account lock-out implemented in tomcat. Have a 
 look in server.xml
 and see how the realm is configured. You might have changed 
 this through the
 admin app. If you have, the previous server.xml should still 
 be in the conf
 directory with a timstamp appended to the filename.
 
 Mark
 
  -Original Message-
  From: BONUCHI, MICHAEL ROGER (SBCSI) [mailto:[EMAIL PROTECTED] 
  Sent: Saturday, July 10, 2004 6:35 PM
  To: Tomcat Users List
  Subject: RE: Can't Login as Admin or manager
  
  Hello Aman,
  
  By the way, I have a second Tomcat instance on this Win2K 
  laptop.  Of course, I only run one at a time.  The other 
  Tomcat instance, the one outside of the Sun/NetBeans 
  directory, works fine.  I can login as admin or manager 
  without error.  Here's my tomcat-users.xml for the one that 
  will not let me login:
  
  tomcat-users
role rolename=tomcat/
role rolename=manager/
role rolename=admin/
role rolename=user/
user name=tomcat password=tomcat roles=tomcat /
user name=roger  password=jake 
  roles=manager,admin,user,tomcat /
  /tomcat-users
  
  -Roger
  
  -Original Message-
  From: Aman Raheja [mailto:[EMAIL PROTECTED]
  Sent: Saturday, July 10, 2004 07:29 AM
  To: Tomcat Users List
  Subject: Re: Can't Login as Admin or manager
  
  
  Allow us to see your tomcat-users.xml file.
  Regards
  
  
  On Sat, 2004-07-10 at 17:20, BONUCHI, MICHAEL ROGER (SBCSI) wrote:
   Hello,
   
 I just setup Tomcat 5.019 as part of the NetBeans 
  3.6/Sun JDK 1.4x package.  At first I was able to login as 
  manager and admin, after an edit to the tomcat-users.xml 
  file.  Now, after apparently using the wrong ID or password 
  to login, I can not get back in no matter what I do with the 
  tomcat-users.xml file.  It looks like there's some password 
  administration that has locked me out.  I've searched high 
  and low in Tomcat doc and can not find a way out of this.  
  Short of a re-installation, what the secrete that I do not know?
   
   Thank you in advance,
   -Roger
   
   
   
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
  
  
  -- 
  Aman Raheja   CompTIA Linux+ Certified
  [EMAIL PROTECTED] Brainbench Certified 
  Linux (General) Admin
  www.TechQuotes.comBrainbench Certified Linux 
  (RedHat 9) Admin
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 
 -
 To unsubscribe, e-mail: 

RE: Applet in tomcat clustering

2004-07-12 Thread Simon Zeng
I thought I did it. Here are my steps
1. first get jsessionid from servlet
2. pass the jsessionid to applet (through htm page)
3. inside applet, create a new HTTPUrlConnection, and set cookie property
with jsessionid.
4. connect to server.
5. In server, the request was sent to a different tomcat instance (this is
against the sticky session as stated in tomcat cluster).

I might have missed out something, please point them out if so.

Thanks,
-Simon

-Original Message-
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED]
Sent: Monday, July 12, 2004 2:56 PM
To: Tomcat Users List
Subject: Re: Applet in tomcat clustering


you will need to send up cookies just like the HTTP protocol says in order
to keep state

Filip
- Original Message - 
From: Simon Zeng [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, July 12, 2004 1:39 PM
Subject: RE: Applet in tomcat clustering


 My mistake. I am using HttpURLConnection (not HttpTunnel) to communicate
 between applet and server.
 
 Thanks,
 -Simon
 
 -Original Message-
 From: Simon Zeng [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 12, 2004 1:51 PM
 To: 'Tomcat Users List'
 Subject: Applet in tomcat clustering
 
 
 
 Hi,
 
 Does any use applet in tomcat clustering?I have an question and need some
 help.
 
 I have set up two tomcat instances in cluster/load balance. My
 webapplication has one feature using applet. As I understand, tomcat
 cluster/load balance has sticky session which means subseqent requests
being
 sent to the same tomcat once the browser/server connection is setup. This
is
 true in my application except while using applet, the request is sent to
 different tomcat randomly. I use HTTPTunnel to communicate between applet
 and server.
 
 Thanks,
 
 -Simon
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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

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



RE: Clob Problem

2004-07-12 Thread Mike Jackson
Oracle?  If so you have a limit of like 4k if you're using 8i or less.  You
can get it to do more but you have to use oracle driver specific code rather
than just straight JDBC.

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


 -Original Message-
 From: Craig Christophersen [mailto:[EMAIL PROTECTED] 
 Sent: Monday, July 12, 2004 11:49 AM
 To: [EMAIL PROTECTED]
 Subject: Clob Problem
 
 
 I am having problems with clobs data being printed out on the 
 front end. I am using BES 5.2.1 which includes TOMCAT 4.0 as 
 its web container. I am able create a DTO and printout the 
 clob data from the middletier through a session facade test 
 client.  The jar file and the delegate are installed 
 correctly. We did a couple of tests which included text data 
 and clob data - this failed at the findByPrimarykey call
 
  try {
 
 int textId = 146;
 
  TrialclobTextDelegate tctd = new TrialclobTextDelegate();
 
 TrialclobTextDto tctdto = 
 tctd.trialclobTextFindByPrimaryKey(textId);
 
 System.out.println(Data =  + tctdto.getData());
 
 System.out.println(Data2k =  + tctdto.getData2k());
 
 System.out.println(Data1k =  + tctdto.getData1k());
 
 System.out.println(Data500 =  + tctdto.getData500());
 
 System.out.println(Datac =  + 
 tctdto.getDataClob());// clob data
 
 } catch (Exception ex) {
 
 ex.getStackTrace();
 
 System.out.println(Exception =  + ex.getMessage());
 
 }
 
  When the DTO fields are created without the clob the above 
 code works just fine. The size of the Data field is 4K. There 
 seems to perhaps be a persistence problem related only to clobs.
 
  Any helpful hints would greatly appreciated.
 
 Craig Christophersen
 (406)496-6421
 [EMAIL PROTECTED]
 



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



Problems with Tomcat, Struts/Tiles, and encoding

2004-07-12 Thread Susie Derkins
Hi list,

I’m using Tiles with Catalina (4.1.29 on Linus and
Windows). and I’m having problems setting the
response’s encoding to UTF-8.

I added:
%@ page contentType=text/html;charset=UTF-8
pageEncoding-UTF-8 %
to all my JSP pages – tiles and layouts. It is the
first line of each page.

So now, all my JSPs call 
ApplicationHttpResponse.setContentType *before*
accessing the page’s writer.

Here is the code for setContentType:
public void setContentType(String type) {
if (!included)
getResponse().setContentType(type);
}

The problem is that the body of setContentType is
never executed because each time a JSP calls it,
included is true (I verified by stepping through the
code with a debugger), which means we are inside a
RequestDispatcher.include(). My guess is that it's
Tiles or Struts that causes the request to be dispatch
via  RequestDispatcher.include.

I tried to set the response’s content type in a
filter,  but when I check in my custom tags,
pageContext.getResponse().pageContext.getResponse()
always returns ISO-8859-1, Tomcat’s default encoding.

Setting the encoding in a JSP works fine as long as
Struts/Tiles are not involved.

Can somebody please shed some light on this? Do you
know of another way of setting the encoding, that can
occur before the JSPs are processed?
I want to avoid having to build a custom version of
Tomcat with UTF-8 as the default encoding. 

Thanks for your time,

Sophia.

__ 
Post your free ad now! http://personals.yahoo.ca

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



Re: Applet in tomcat clustering

2004-07-12 Thread Filip Hanik - Dev
yes, that should work. print out some debug statements on the server to make sure that 
your request indeed gets the session Id you
want it to.
Assuming you have clustering turned on and working properly, you should be good to go

Filip
- Original Message -
From: Simon Zeng [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, July 12, 2004 2:40 PM
Subject: RE: Applet in tomcat clustering


 I thought I did it. Here are my steps
 1. first get jsessionid from servlet
 2. pass the jsessionid to applet (through htm page)
 3. inside applet, create a new HTTPUrlConnection, and set cookie property
 with jsessionid.
 4. connect to server.
 5. In server, the request was sent to a different tomcat instance (this is
 against the sticky session as stated in tomcat cluster).

 I might have missed out something, please point them out if so.

 Thanks,
 -Simon

 -Original Message-
 From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 12, 2004 2:56 PM
 To: Tomcat Users List
 Subject: Re: Applet in tomcat clustering


 you will need to send up cookies just like the HTTP protocol says in order
 to keep state

 Filip
 - Original Message -
 From: Simon Zeng [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Monday, July 12, 2004 1:39 PM
 Subject: RE: Applet in tomcat clustering


  My mistake. I am using HttpURLConnection (not HttpTunnel) to communicate
  between applet and server.
 
  Thanks,
  -Simon
 
  -Original Message-
  From: Simon Zeng [mailto:[EMAIL PROTECTED]
  Sent: Monday, July 12, 2004 1:51 PM
  To: 'Tomcat Users List'
  Subject: Applet in tomcat clustering
 
 
 
  Hi,
 
  Does any use applet in tomcat clustering?I have an question and need some
  help.
 
  I have set up two tomcat instances in cluster/load balance. My
  webapplication has one feature using applet. As I understand, tomcat
  cluster/load balance has sticky session which means subseqent requests
 being
  sent to the same tomcat once the browser/server connection is setup. This
 is
  true in my application except while using applet, the request is sent to
  different tomcat randomly. I use HTTPTunnel to communicate between applet
  and server.
 
  Thanks,
 
  -Simon
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


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

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


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



How to configure a TrustManager for tomcat?

2004-07-12 Thread im dolor
Hello,

I would like to be able to use CRL checking in Tomcat.
I thought that I would implement my own trust manager
which would download the crl and check against it
every time the checkXXXTrusted method is called.
However, I do not see anywhere in the configuration
where it would be possible to cause Tomcat to use this
trust manager. I see that there is a parameter in the
connector to set the SSLServerSocket factory. I
suppose that I could implement my own socket factory
that used my own TrustManager. However, I see that the
dcoumentation calims that i must use the catalina
version of this class. Why is that? Can I change it? 

Thank you for your help.






__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

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



Re: Finding CSS files in webapp

2004-07-12 Thread William BC Crandall
Thanks Peter, for opening a new line of inquiry. The solution I came up
with is not unlike Michael's recommendation as forwarded by DaveP.

What I did:

   Got real path (in class that initiates transformation):

  ServletContext ctx = servlet.getServletContext();
  String cssFileName  = ctx.getRealPath(/css/nrd.css);

   Passed it to the Transformer:

  trans.setParameter(cssFile, cssFileName);

   Then added param at top of stylesheet, and used it in place:

  xsl:param name=cssFile select='passedIn'/

  link rel=stylesheet type=text/css href={$cssFile}/

Thanks to all for helpful pointers.

Best,

William BC Crandall
bc.crandall [around] earthlink.net


- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 12 July 2004 1:18 AM
Subject: RE: Finding CSS files in webapp


 Xalan or Saxon have no 'base' from which to determine
 the context for the css file, so you'll have to use
 an absolute file reference from the stylesheet.

 Came up on the Saxon list this week.
 Its for the document() function, but the same logic applies.

 HTH DaveP

 quote
  It appears that I must use a full path when using the
  xsl:result-document command from a saxon servlet.
 
  For example: xsl:result-document href=file:/c:/mywebdir/myfile.htm
  format=web
 
  rather than: xsl:result-document href=file:/../../myfile.htm
  format=web
 
  Is this true, or is it possible to use a relative path?

 Although it's possible in principle to use a relative path, this isn't
 likely to be convenient in a servlet environment. Any relative URI is
 resolved relative to the base URI of the principal output document, which
in
 the servlet case is going to the servlet output streat, which doesn't have
a
 meaningful URI. You could, when you allocate the principal output
 destination, give it an arbitrary URI for this purpose:

 ServletOutputStream out = res.getOutputStream(); StreamResult tout = new
 StreamResult(out); tout.setSystemId(file:/c:/some/uri/);
 transformer.transform(new StreamSource(sourceFile), tout);

 However, I'm wondering what you're actually trying to do here. Where do
you
 want to put the extra output files? Is it a location associated with the
 individual end user, or a location associated with the source document, or
 what? Are you trying to split the source document into multiple result
 documents the first time it is accessed, and cache the results for later
 use? Do you actually want to serialize the multiple output documents to
 disk, or do you really want them in (application or session) memory?

  Also, there is no
  'c:' on Unix\Linux, so would I use something like
  'href=file://mywebdir/myfile.html' ??

 I think the correct syntax is file:///usr/dir/file.xml to reference the
UNIX
 file /user/dir/file.xml
 
  I'm new to the Servlet environment.. I'm not sure how to obtain the
  full path if I'm running my Servlet on a hosted machine. Do I have to
  ask the host provider and hard code the path or is there a dynamic way
  to do this?
 

 If you're running on a hosted machine then you'll have to write the files
to
 a directory where the servlet has write permission. A Java call such as

 getServletContext().getRealPath(source);

 will give you path names to files within the directory structure visible
to
 users via a browser - it's not clear whether you want the XML files you
 generate to be directly accessible to users or not.

 Michael Kay
 /quote

 -- 


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



mod_jk2, apache and index.jsp

2004-07-12 Thread Sergei Genchev
 Hi,

 I have Apache 2.0.49/Tomcat 5.0.25/mod_jk 2.04 on debian/testing
 
 My setup Works Mostly(TM), i.e if I go to
http://myserver.mydomain.tld/index.jsp, Apache calls Tomcat and
everything works fine. If I just go to http://myserver.mydomain.tld
AND there is an index.html file in the webroot directory, index.html
gets served instead.
 Relevant entries in httpd.conf:

 DirectoryIndex index.jsp index.html
 ...
 LocationMatch /*.jsp
JkUriSet worker ajp13:localhost:8009
/LocationMatch

 If I remove index.html from DirectoryIndex and leave just index.jsp
there - works fine
 If I remove LocationMatch /*.jsp entry - index.jsp gets served
even if there is index.html present - it does not get passed to
tomcat, so it is just served as a text file - but still served.

 I did strace on apache and I can see that, if *.jsp is mapped to
ajp13,  apache looks for index.html first even though index.jsp is the
first file in DirectoryIndex directive. If I add more index files, i.e
 DirectoryIndex index.jsp index.html yyy.zzz xxx.yyy 
apache would look for all of these files before giving up and serving
index.jsp - provided it did not find any of the other index files. If
there is xxx.yyy, it will get served instead.
 If *.jsp is not mapped to ajp13, apache looks for index.jsp first,
like it supposed to and if there is one does not look further for
other index files.
 If I do not load mod_jk at all, apache would also look for index.jsp
first and serve it if found  - obviously as a text file.
 Unfortunately, I have to have both index.jsp and index.html as index
files and I need index.jsp to have precedence - our web developers
jump back and forth between those tho.
 The same setup worked fine with apache 1.3.27/mod_jk/tomcat2.something

 The questions I have are:
 - Who's at fault here - Apache or mod_jk?
 - And, more importantly - how do I make index.jsp work as default
index file even if index.html is present?


 Thanks a lot!

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



Re: Tomcat 5.025 across multiple servers

2004-07-12 Thread Steve Luzynski
On Jul 11, 2004, at 11:39 PM, Ty Mercer wrote:
There isn't much reason to do the auth against an AD?  Why woudl that
be, it's our only point of auth in the entire company and the only one
we need for everything up until now.
I'm simply trying to get users home directories into apache from a
second server, which I have done to an extent, but jsp/php/cgi/ etc
don't work due to the cross platform issue I still haven't figured out
yet.
Sorry, meant that there's not reason to consider it as AD vs. just LDAP 
- you'll find more help out there using it as LDAP particularly.

I've had a rather easy time of using LDAP (provided by Win2003 Server) 
for authentication with Linux apps... Maybe some details on what 
exactly you're trying to do would help pin down a solution.

For example, I had a web app using PHP's LDAP support properly logging 
in users in about 15 minutes. Samba + Winbind (for SSH access) took the 
better part of two days because of goofy kerberos issues.

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


mod_jk not forwarding requests to Tomcat

2004-07-12 Thread Ian Stevens
I am running Tomcat4.1.24 with Apache1.3.26 and libapache-mod-jk1.2.5 on a
Debian Woody system.  I have tried to set up mod-jk using the instructions
found at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html
and using the auto-generated config file.

I added this to the end of my httpd.conf:

Include /etc/tomcat4/auto/mod_jk.conf

That file contains the following:

IfModule !mod_jk.c
  LoadModule jk_module /usr/lib/apache/1.3/mod_jk.so
/IfModule

JkWorkersFile /usr/local/share/tomcat4/conf/jk/workers.properties
JkLogFile /usr/local/share/tomcat4/logs/mod_jk.log

JkLogLevel emerg

and was generated by this directive:

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=/usr/lib/apache/1.3/mod_jk.so forwardAll=true/

The workers.properties file contains the following:

workers.tomcat_home=/usr/local/share/tomcat4
workers.java_home=/usr/local/j2sdk1.4.1/
ps=/

worker.list=ajp12, ajp13

worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
worker.ajp12.lbfactor=1

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp12, ajp13


worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar

worker.inprocess.cmd_line=start


worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout

worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr

As the above directive indicates, I would like to have all requests to
Apache forwarded to Tomcat.  However, that is not happening and any URL I
try results in a 404 with an error indicating such in Apache's error.log.
No errors indicating failure appear in the obvious spots, and no output
exists in the mod_jk.log indicated above.  The inprocess log files do not
exist, either.

Any ideas as to what could be wrong?  I would like Apache to forward all
requests to Tomcat because I cannot run Tomcat on ports under 1024, and
because I do not really wish to recompile the kernel to enable
port-forwarding.  I had thought mod_jk would be an easier venture.

thanks,
ian.


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



Re: Tomcat 5.025 across multiple servers

2004-07-12 Thread Ty Mercer
All of our servers are Windows based, I'm simply using Apache and
Jakarta/Tomcat instead of IIS.

The only thing I want authentication for is users home directories.
However the user server is not the same one running apache, so I need
to get it to cross over the network to pull data from the users space
(\\users\users.home etc) and JSP/php/cgi and apache don't like that,
it returns an error stating the the directory/file can't be found and
the log file points to the local disk ( f:\users\users.home) instead
of the network path.

The authentication comes in when accessing specific folders for people
such as HR and Finance where only those groups should have access to
them, and not the world.

On Mon, 12 Jul 2004 16:57:06 -0500, Steve Luzynski [EMAIL PROTECTED] wrote:
 On Jul 11, 2004, at 11:39 PM, Ty Mercer wrote:
 
  There isn't much reason to do the auth against an AD?  Why woudl that
  be, it's our only point of auth in the entire company and the only one
  we need for everything up until now.
  I'm simply trying to get users home directories into apache from a
  second server, which I have done to an extent, but jsp/php/cgi/ etc
  don't work due to the cross platform issue I still haven't figured out
  yet.
 
 Sorry, meant that there's not reason to consider it as AD vs. just LDAP
 - you'll find more help out there using it as LDAP particularly.
 
 I've had a rather easy time of using LDAP (provided by Win2003 Server)
 for authentication with Linux apps... Maybe some details on what
 exactly you're trying to do would help pin down a solution.
 
 For example, I had a web app using PHP's LDAP support properly logging
 in users in about 15 minutes. Samba + Winbind (for SSH access) took the
 better part of two days because of goofy kerberos issues.
 
 
 
 -Steve
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Clustering/high availability without JDK1.4

2004-07-12 Thread Chris Todd
Is there any way to achieve high availability (that is, Tomcat
clustering/session replication) in Tomcat 4 without using JDK 1.4?  I ask
because I need to run Tomcat on OpenBSD 3.5, which only has JDK 1.3
available.  The docs I've read for Tomcat 5 (and Filip Hanik's back-ported
replication for Tomcat 4) indicate JDK 1.4 is necessary for session
replication.

Regards,
Chris



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



Re: No Java compiler was found to compile the generated source for the JSP

2004-07-12 Thread Kannan Raghu
Hey Simon,

check out the xml files if ur using struts with ur application..

try this out and let me know..

Kannan




On Mon, 12 Jul 2004 14:44:52 +0200, Simone-dev [EMAIL PROTECTED] wrote:
 Hello all,
 I just installed  Apache Tomcat/5.0.25 on my newly installed developing
 workstation on Windows
 I've installed SDK  1.4.2_05, too...
 
 But when I try to run a JSP to compiled I get the error
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 
 No Java compiler was found to compile the generated source for the JSP.
 This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
 to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
 If using an alternate Java compiler, please check its installation and access path.
 
 I've set JAVA_HOME as C:\j2sdk1.4.2_05 but tomcat still doesn't compile JSP
 
 any ideas?
 
 Simone
 


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