Re: Hi

2004-04-17 Thread craigmcc
Your file is attached.

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

Re: security permissions

2004-04-17 Thread Andrea Powles
Thanks, I tried this but it doesn't seem to work, don't know what I'm doing wrong?

Andrea Powles

Jeanfrancois Arcand [EMAIL PROTECTED] wrote:
 
 
 Andrea Powles wrote:
 
 Hi Tomcatusers,
 
 I wish for one of my web apps in Tomcat to execute another program on my computer 
 using the exec method. I know that I can’t currently do this due to the security 
 restrictions.
 
 I have tried changing the Catalina policy file but I’m unsure of exactly what to do 
 so it didn’t work. Can someone please advise me of exactly what I need to add or 
 modify in order for my web app to have all permissions.
 
 I am aware of the security risks but at this stage it is more important that I get 
 my application to work. My web app runs as a servlet and is in a web app directory 
 calledruddis.
  
 
 try the following in catalina.policy:
 
  // These permissions apply only to yourapplication
  grant codeBase file:${catalina.home}/webapps/your webapp/-{
  permissionjava.security.AllPermission;
 };
 
 
 -- Jeanfrancois
 
 Thanks in advance
 AndreaPowles
 
 
 -
 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: configure data source

2004-04-17 Thread Kris Rasmussen
I don't know about web.xml, but if you use a resource
link in the context for the app in server.xml you
should be fine.

Kris
--- twcTC [EMAIL PROTECTED] wrote:
 I have the same problem
 
 -Original Message-
 From: Niraj Alok [EMAIL PROTECTED]
 Sent: Apr 16, 2004 8:04 PM
 To: Tomcat Users List
 [EMAIL PROTECTED]
 Subject: configure data source
 
 
  Hi All,
 
 
  I am trying to obtain a connection using DataSource
  in Tomcat5 .
 
  I get the following error :
 
  org.apache.commons.dbcp.SQLNestedException: Cannot
 create JDBC driver of
  class '' for connect URL 'null', cause:
 
  java.sql.SQLException: No suitable driver
 
 
 
  My source code is :
 
  Context ctx = new InitialContext();
 
  if (ctx == null)
 
  throw new Exception(No context got!
 Exception);
 
  System.out.println(got ctx);
 
  DataSource ds =
 
  (DataSource)
 ctx.lookup(java:comp/env/jdbc/hypersonic);
 
 
  if(ds == null)
 
  throw new Exception(No ds got!
 Exception);
 
  else
 
  {
 
  System.out.println(got ds);
 
  Connection con = ds.getConnection();
 
  if(con != null)
 
   
   ...
  }
 
 
  My server.xml looks like :
 
 GlobalNamingResources
 
 Environment name=simpleValue
 type=java.lang.Integer value=30/
 
 Resource auth=Container description=User
 database that can be updated
 and saved name=UserDatabase
 type=org.apache.catalina.UserDatabase/
 
 Resource name=hypersonic
 type=javax.sql.DataSource/
 
 ResourceParams name=UserDatabase
 
 parameter
 
 namefactory/name
 

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
 
 /parameter
 
 parameter
 
 namepathname/name
 
 valueconf/tomcat-users.xml/value
 
 /parameter
 
 /ResourceParams
 
 ResourceParams name=hypersonic
 
 parameter
 
 namemaxWait/name
 
 value5000/value
 
 /parameter
 
 parameter
 
 namemaxActive/name
 
 value20/value
 
 /parameter
 
 parameter
 
 namepassword/name
 
 value/value
 
 /parameter
 
 parameter
 
 nameurl/name
 
 valuejdbc:hsqldb:hsql://localhost:1701/value
 
 /parameter
 
 parameter
 
 namedriverClassName/name
 
 valueorg.hsqldb.jdbcDriver/value
 
 /parameter
 
 parameter
 
 namemaxIdle/name
 
 value2/value
 
 /parameter
 
 parameter
 
 nameusername/name
 
 valuesa/value
 
 /parameter
 
 /ResourceParams
 
 /GlobalNamingResources
 
 
 
My web.xml contains:
 
 
 
resource-ref
 
descriptionDB Connection/description
 
res-ref-namejdbc/hypersonic/res-ref-name
 
res-typejavax.sql.DataSource/res-type
 
res-authContainer/res-auth
 
/resource-ref
 
 
 
Even if i comment this entry in web.xml the error
 is still the same.
 
 
 
Can any one please tell me what am I doing
 wrong??
 
Regards,
Niraj
 
 
 
 

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





__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

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



Hi

2004-04-17 Thread hgomez
I hope the patch works.



Suppression de Norton AntiVirus1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Question: Undeploy sometimes leaves share locked .jar(s) behind, any idea why?

2004-04-17 Thread Tal Rotbart
Hi!

New member to the list, long time Tomcat user. Recently upgraded from 
4.x to 5.x.

I am running Tomcat version 5.0.19 on Windows XP SP1 (patched up to 
date) with unpackWARs=true and autoDeploy=true.

I've encountered a strange behavior that occasionally occurs when 
reeploying a web-app that was contained in a .WAR.
At times Tomcat leaves certain .jar files in the WEB-INF/lib of the 
unpack folder when undeploying the .WAR. The remaining .jar(s) are share 
locked by the OS and can not even be deleted manually until Tomcat is 
stopped completely.

Naturally, Tomcat can't redeploy the .WAR afterwards.
when re-deploying it apparently fails to expand the new .WAR,
and the log contains:
INFO: Missing application web.xml, using defaults only 
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/blog-app]
But this is to be expected if Tomcat can't override the folder.

This seems to happen specifically with mail.jar (JavaMail API 1.3.1) if 
 a related exception occured during the lifetime of the web-app -- i.e. 
while sending mail (smtp server not responding, etc).
If no exception occured, the .WAR will undeploy completely and there 
would be no problem redeploying.

This behavior also happened to me with tyrex-1.1.jar (transaction 
manager from the exolab folks) even when no tyrex classes has been used 
AFAIK.

At first I thought perhaps it was a classloader issue due to class 
sharing, but as far as I could find the JavaMail API classes are not 
part of Tomcat. Note that aside from the default .WARs that come with 
the default installation, only the problematic .WAR is contained.

Am I missing something substantial, or could this possibly be a bug?
Are there any logs I can turn on to see what happens during the undeploy 
process?

Any clue would be greatly appreciated,

Thanks in advance,
Tal Rotbart
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: security permissions

2004-04-17 Thread Mark Thomas
Where are you trying to run the external program? On the tomcat server or on the
client talking to the server?

If on the server try:
- testing it without the security manager

If on the client:
- The browser security model will not allow this at all unless the
applet/JavaScript is signed.
- If you use vbscript on IE, the browser will let unsigned code do it but
requires the user to acknowledge the risk before running the app.

Mark 

 -Original Message-
 From: Andrea Powles [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, April 17, 2004 7:43 AM
 To: Tomcat Users List
 Subject: Re: security permissions
 
 Thanks, I tried this but it doesn't seem to work, don't know 
 what I'm doing wrong?
 
 
 
 Andrea Powles
 
 
 
 Jeanfrancois Arcand [EMAIL PROTECTED] wrote:
 
  
 
  
 
  Andrea Powles wrote:
 
  
 
  Hi Tomcatusers,
 
  
 
  I wish for one of my web apps in Tomcat to execute another 
 program on my computer using the exec method. I know that I 
 can't currently do this due to the security restrictions.
 
  
 
  I have tried changing the Catalina policy file but I'm 
 unsure of exactly what to do so it didn't work. Can someone 
 please advise me of exactly what I need to add or modify in 
 order for my web app to have all permissions.
 
  
 
  I am aware of the security risks but at this stage it is 
 more important that I get my application to work. My web app 
 runs as a servlet and is in a web app directory calledruddis.
 
   
 
  
 
  try the following in catalina.policy:
 
  
 
   // These permissions apply only to yourapplication
 
   grant codeBase file:${catalina.home}/webapps/your webapp/-{
 
   permissionjava.security.AllPermission;
 
  };
 
  
 
  
 
  -- Jeanfrancois
 
  
 
  Thanks in advance
 
  AndreaPowles
 
  
 
  
 
  
 -
 
  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]



Tomcat 4.1.x Vs 5.0.x

2004-04-17 Thread wsedio
Hi,
I've a web hosting server running Red Hat Enterprise Linux 3 ES and I am 
planning to install Tomcat on it.

I would like to give dedicated Tomcat instances to some clients and to 
keep a shared instance for smaller web sites.

Is it better to use Tomcat 4.1.x or 5.0.x for such scenario?
Which version is faster and stabler?
Will applications designed for Tomcat 4 work fine with version 5?

What is the recommended JVM for production use on Linux? Sun or IBM? 
Which version?

Thanks!

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


Re: Incomplete HTML

2004-04-17 Thread Steven J. Owens
On Fri, Apr 16, 2004 at 11:33:54AM -0300, Leonardo Ribas wrote:
 My tomcat is returning incomplete html pages when the html to be returned is
 too big.
 For example, when i want to create a combo box with all cities from my
 country, tomcat return a incomplete html like this:
 ...
 select
 optioncity 1/option
 optioncity 2/option
 optioncity 3/option
 ...
 optioncity 300/option
 optioncity 301/option
 HERE TOMCAT ENDS THE HTML FOR EXAMPLE.

 As another poster mentioned, normally that indicates a
programming error in the servlet or JSP.  

 I've run into this sort of error frequently.  What's almost
certainly happening is that somewhere in your code an exception is
being thrown.  The exception is being swallowed by the tomcat logger.
If it's not showing up in catalina.out, it's probably showing up in
the localhost_foo_etc log for that web application.

 If my experience is any guide, most likely the exception's in an
included JSP.


-- 
Steven J. Owens
[EMAIL PROTECTED]

I'm going to make broad, sweeping generalizations and strong,
 declarative statements, because otherwise I'll be here all night and
 this document will be four times longer and much less fun to read.
 Take it all with a grain of salt. - Me at http://darksleep.com


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



Re: Domain Names for Session Cookies

2004-04-17 Thread Tim Funk
no. But the web client (browser) should be sending cookies in the most 
specific to least specific order so this should not be an issue.

An alternative is to use URL rewriting.

-Tim

John Gibson wrote:
I'm running Tomcat 4.0.6 with Apache 2.0.46 on RedHat Advanced Server 
and I'm running into a problem with the domain for session cookies.

I have a host setup as foobar.com with an alias of www.foobar.com.
When a client visits foobar.com I create a cookie-based session for the 
user.  Everything behaves correctly as long as all of the user's 
requests to the server begin with foobar.com, however if the user visits 
www.foobar.com the browser will not send the session cookie and 
vice-versa.  As far as I can tell this is because the session cookies 
that Tomcat creates have a domain that matches the requested domain. 
However, if the cookies were created with a domain of .foobar.com then 
they browser would send the cookie to both http://foobar.com and 
http://www.foobar.com.

Is there any way to override the cookie domain that Tomcat uses when it 
creates a cookie?

If there is not a way to do that, then should I forego the usage of 
Tomcat's session cookies and create my own cookies for session 
management?  Is there a better way?

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


Re: JSP expression with null value

2004-04-17 Thread Tim Funk
It should say null. IIRC, tomcat 4 prints nothing but tomcat5 prints null.

-Tim

Rick Wong wrote:

Hi,

Should a JSP expression evaluate a null expression as a string 'null', 
or as an empty string ''?

In other words, should '%=null%' be evaluated to 'null' or ''?



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


How does tomcat redirect from login

2004-04-17 Thread Jim Kennedy
 
I am using form based login, which is working fine for me.  I would like to
display different login content (on my login form) based on the desired
intent of the user.  So , if the user wants to go to a certain section of my
site that is secure, I would like to capture the redirect page (the url of
the secure page) before the user logs in.  Knowing that URL will allow me to
display specific content for that section.  I have searched the session and
the request scopes for something that looks like a redirect page.  Can't
find anything.  Not even a cookie.  

So, how does tomcat store the intended (redirect) page during the login
process for form based login.  Where is it stored?  How can I get it?

Hope I don't need to hack the source for j_security_check.


thanks


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



Re: How does tomcat redirect from login

2004-04-17 Thread Tim Funk
There is no way to do that. Your best alternative is to NOT use 
authentication/authorization via the spec and create some Servlet Filters to 
perform the appropriate authentication and authorization checks. That way, 
the filter can be smart enough to determine you user context and handle it 
approriately.

The upside - is the path is very portable to othre conatiners. The downside 
is you reinvent some of the wheel. Lucky for you  - there are other projects 
on the Internet which use Filters for this very purpose  - so some of your 
work might already be done.

-Tim

Jim Kennedy wrote:

 
I am using form based login, which is working fine for me.  I would like to
display different login content (on my login form) based on the desired
intent of the user.  So , if the user wants to go to a certain section of my
site that is secure, I would like to capture the redirect page (the url of
the secure page) before the user logs in.  Knowing that URL will allow me to
display specific content for that section.  I have searched the session and
the request scopes for something that looks like a redirect page.  Can't
find anything.  Not even a cookie.  

So, how does tomcat store the intended (redirect) page during the login
process for form based login.  Where is it stored?  How can I get it?
Hope I don't need to hack the source for j_security_check.

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


RE: Relative directory addressing to parent directory

2004-04-17 Thread Tom K
John, relative paths are always a headache (until you do some
book-learning :-)). What I do is, right after my HTML tag I put in a
line like this:
HTML
BASE
href='%=request.getScheme()+://+request.getServerName()+:+request.g
etServerPort()+request.getContextPath()+/ %'

What the line above does is gives you the full path as your base
reference.

You can put 'kind-of' the same line in your regular html pages by using
just the relative paths. Some may argue with the approach I use; if you
include footers` and headers though and use the line right after your
HTML tag your relative path will always be the same.

Tom Kochanowicz




-Original Message-
From: John B. Moore [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 14, 2004 6:27 PM
To: Tomcat Users List
Subject: Relative directory addressing to parent directory

Can't seem to get this to work

Example:   Under  Tomcat/webapps I want an images directory that any 
of the web applications in that directory can access in their pages. 

  In static HTML (under Apache) I would use..

   ../images/myimage.jpg

   and it would work just fine.. (the ../ would cause it to backup 
one folder to the parent and access the images directory directly under 
webapps)

   I can seem to get this to work within a JSP page in Tomcat (4.1.29)

  As a test I created an HTML inwhich this works under Apache. Then 
changed it to a .jsp to run under Tomcat with the target image in 
/webapps/images/ and the app under /webapps/testapp.

   Suggestions as to what I am missing...???

John..

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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003
 


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



RE: How does tomcat redirect from login

2004-04-17 Thread Jim Kennedy
Thanks, I'm surprised there is no way to do this.  Why wouldn't they just
pop it in the request.  Seems very easy.  I wonder if I could find the
source for j_security_check and make the appropriate changes.  I don't want
to reinvent J2ee security. 

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 17, 2004 1:44 PM
To: Tomcat Users List
Subject: Re: How does tomcat redirect from login

There is no way to do that. Your best alternative is to NOT use
authentication/authorization via the spec and create some Servlet Filters to
perform the appropriate authentication and authorization checks. That way,
the filter can be smart enough to determine you user context and handle it
approriately.

The upside - is the path is very portable to othre conatiners. The downside
is you reinvent some of the wheel. Lucky for you  - there are other projects
on the Internet which use Filters for this very purpose  - so some of your
work might already be done.

-Tim

Jim Kennedy wrote:

  
 I am using form based login, which is working fine for me.  I would 
 like to display different login content (on my login form) based on 
 the desired intent of the user.  So , if the user wants to go to a 
 certain section of my site that is secure, I would like to capture the 
 redirect page (the url of the secure page) before the user logs in.  
 Knowing that URL will allow me to display specific content for that 
 section.  I have searched the session and the request scopes for 
 something that looks like a redirect page.  Can't find anything.  Not even
a cookie.
 
 So, how does tomcat store the intended (redirect) page during the 
 login process for form based login.  Where is it stored?  How can I get
it?
 
 Hope I don't need to hack the source for j_security_check.
 

-
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: How does tomcat redirect from login

2004-04-17 Thread Jim Kennedy
Actually, I'm stupid here.  j_security_check is not the issue.  It's
actually deeper in the container.  Not a part of the motor I want to touch.
 

-Original Message-
From: Jim Kennedy [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 17, 2004 2:08 PM
To: 'Tomcat Users List'
Subject: RE: How does tomcat redirect from login

Thanks, I'm surprised there is no way to do this.  Why wouldn't they just
pop it in the request.  Seems very easy.  I wonder if I could find the
source for j_security_check and make the appropriate changes.  I don't want
to reinvent J2ee security. 

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 17, 2004 1:44 PM
To: Tomcat Users List
Subject: Re: How does tomcat redirect from login

There is no way to do that. Your best alternative is to NOT use
authentication/authorization via the spec and create some Servlet Filters to
perform the appropriate authentication and authorization checks. That way,
the filter can be smart enough to determine you user context and handle it
approriately.

The upside - is the path is very portable to othre conatiners. The downside
is you reinvent some of the wheel. Lucky for you  - there are other projects
on the Internet which use Filters for this very purpose  - so some of your
work might already be done.

-Tim

Jim Kennedy wrote:

  
 I am using form based login, which is working fine for me.  I would 
 like to display different login content (on my login form) based on 
 the desired intent of the user.  So , if the user wants to go to a 
 certain section of my site that is secure, I would like to capture the 
 redirect page (the url of the secure page) before the user logs in.
 Knowing that URL will allow me to display specific content for that 
 section.  I have searched the session and the request scopes for 
 something that looks like a redirect page.  Can't find anything.  Not 
 even
a cookie.
 
 So, how does tomcat store the intended (redirect) page during the 
 login process for form based login.  Where is it stored?  How can I 
 get
it?
 
 Hope I don't need to hack the source for j_security_check.
 

-
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: Domain Names for Session Cookies

2004-04-17 Thread John Gibson
Thanks.

I tried using URL rewriting that redirects www.foobar.com - foobar.com 
and it works pretty well as long as people don't try to submit requests 
commands to www.foobar.com.

However the problem with the cookies is that they are NOT generated in a 
 hierarchical fashion.  If a session cookie is created by foobar.com 
then it will set the domain to foobar.com instead of .foobar.com. 
If the former is used then the browser will not send cookies to 
www.foobar.com or baz.foobar.com, etc.  However if the later is used, 
then the browser will send cookies to subdomains of foobar.com.

But this is all moot for now because URL rewriting should fix problems 
for everyone except for those determined to break the program.

John

Tim Funk wrote:
no. But the web client (browser) should be sending cookies in the most 
specific to least specific order so this should not be an issue.

An alternative is to use URL rewriting.

-Tim

John Gibson wrote:

I'm running Tomcat 4.0.6 with Apache 2.0.46 on RedHat Advanced Server 
and I'm running into a problem with the domain for session cookies.

I have a host setup as foobar.com with an alias of www.foobar.com.
When a client visits foobar.com I create a cookie-based session for 
the user.  Everything behaves correctly as long as all of the user's 
requests to the server begin with foobar.com, however if the user 
visits www.foobar.com the browser will not send the session cookie and 
vice-versa.  As far as I can tell this is because the session cookies 
that Tomcat creates have a domain that matches the requested domain. 
However, if the cookies were created with a domain of .foobar.com 
then they browser would send the cookie to both http://foobar.com and 
http://www.foobar.com.

Is there any way to override the cookie domain that Tomcat uses when 
it creates a cookie?

If there is not a way to do that, then should I forego the usage of 
Tomcat's session cookies and create my own cookies for session 
management?  Is there a better way?

-
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: JDNI, DBCP and global naming resources - problem solved!

2004-04-17 Thread Antonio Fiol Bonnín
Were your Driver classes in a jar in common/lib ?



Thomas Nybro Bolding wrote:

Dunno if this might be of interest to others but I guess some might have 
or get the same problems as I have been through for the past couple of 
hours and therefore post my findings...

Setting up a database connection pool in Tomcat is pretty straightforward: 
either edit the server.xml or use the admin module. In either event you 
might want to follow the guide at 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html.

But beware as this might result in a 
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of 
class '' for connect URL 'null', cause: No suitable driver error even 
though you have followed the instructions. In this case simply move the 
ResourceParams name=jdbc/foo.../ResourceParams from the server.xml 
to your application located at ...\conf\Catalina\localhost\bar.xml as 
there seems to be an issue with global naming resources.

Does anyone know whether a bugzilla report has been filed on this subject 
(I couldnt find one) or if one should be reported at all...

Best regards Thomas



FONT SIZE=1 FACE=Arial___
Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig information. Hvis du 
ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om 
fejlen ved at bruge svar-funktionen. Samtidig beder vi dig slette e-mailen i dit 
system uden at videresende eller kopiere den.
Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er fri for 
virus og andre fejl, som kan paavirke computeren eller it-systemet, hvori den modtages 
og laeses, aabnes den paa modtagerens eget ansvar. Vi paatager os ikke noget ansvar 
for tab og skade, som er opstaaet i forbindelse med at modtage og bruge e-mailen.
___
Please note that this message may contain confidential information. If you have 
received this message by mistake, please inform the sender of the mistake by sending a 
reply, then delete the message from your system without making, distributing or 
retaining any copies of it.
Although we believe that the message and any attachments are free from viruses and 
other errors that might affect the computer or IT system where it is received and 
read, the recipient opens the message at his or her own risk. We assume no 
responsibility for any loss or damage arising from the receipt or use of this message.
/FONT
 




smime.p7s
Description: S/MIME Cryptographic Signature


Context Based Jars Loading

2004-04-17 Thread Mike Sowka
Hello Everyone,

I wrote last night to the list with some frustration as I couldn't load 
up an app put together in Websphere into good'ol Tomcat4.1. Well I think 
I now know what the problem is, but don't know how to resolve it.

It turns out that the IBM packaged jars require an older version 
(1.0.1-dev) of org.apache.commons.logging... this package is supplied in 
the form of the commons-logging.jar placed in the WEB-INF/lib. In the 
case of Tomcat, the package also appears in 
common/lib/commons-logging-api.jar... So the big question:

How do I tell Tomcat to not load the jar file out of common/lib for this 
particular Context and use the one out of WEB-INF/lib? (Obviously, I 
don't want to delete it... )

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


Re: Context Based Jars Loading

2004-04-17 Thread blujean3
you might use a dos based .bat file to exclude tomcat in the use of
common\loggin.*,  might come out looking like a mini Basic Program but
should work, not two sure if you can load it at the same time as
atuoecec.bat, or Tomcat, may require some one with source code, or
getting some one  with Tomcat  code,,, to write it and put in for you??
good luck...  but do try .bat  ... they are simple, just in case you have
never wrote them..  look on line for Dos.hlp... someone will have it.. 
maybe even M.S.

  
simple thought's from a simple mind  
-
as always
   
blu



On Sat, 17 Apr 2004 16:26:34 -0400 Mike Sowka [EMAIL PROTECTED] writes:
 Hello Everyone,
 
 I wrote last night to the list with some frustration as I couldn't 
 load 
 up an app put together in Websphere into good'ol Tomcat4.1. Well I 
 think 
 I now know what the problem is, but don't know how to resolve it.
 
 It turns out that the IBM packaged jars require an older version 
 (1.0.1-dev) of org.apache.commons.logging... this package is 
 supplied in 
 the form of the commons-logging.jar placed in the WEB-INF/lib. In 
 the 
 case of Tomcat, the package also appears in 
 common/lib/commons-logging-api.jar... So the big question:
 
 How do I tell Tomcat to not load the jar file out of common/lib for 
 this 
 particular Context and use the one out of WEB-INF/lib? (Obviously, I 
 
 don't want to delete it... )
 
 Thank You,
 Mike
 
 -
 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: Context Based Jars Loading

2004-04-17 Thread Mike Sowka
Blu,

Thanx, that is an idea... but it's essentially the same as just deleting 
the file. The point being, I want to use the jar file in other 
web-apps... it seems rediculous that I can't at least set the class path 
order in Tomcat  Context...

Anyone?
Mike
[EMAIL PROTECTED] wrote:

you might use a dos based .bat file to exclude tomcat in the use of
common\loggin.*,  might come out looking like a mini Basic Program but
should work, not two sure if you can load it at the same time as
atuoecec.bat, or Tomcat, may require some one with source code, or
getting some one  with Tomcat  code,,, to write it and put in for you??
good luck...  but do try .bat  ... they are simple, just in case you have
never wrote them..  look on line for Dos.hlp... someone will have it.. 
maybe even M.S.

 
simple thought's from a simple mind  
   -
as always
  
blu



On Sat, 17 Apr 2004 16:26:34 -0400 Mike Sowka [EMAIL PROTECTED] writes:
 

Hello Everyone,

I wrote last night to the list with some frustration as I couldn't 
load 
up an app put together in Websphere into good'ol Tomcat4.1. Well I 
think 
I now know what the problem is, but don't know how to resolve it.

It turns out that the IBM packaged jars require an older version 
(1.0.1-dev) of org.apache.commons.logging... this package is 
supplied in 
the form of the commons-logging.jar placed in the WEB-INF/lib. In 
the 
case of Tomcat, the package also appears in 
common/lib/commons-logging-api.jar... So the big question:

How do I tell Tomcat to not load the jar file out of common/lib for 
this 
particular Context and use the one out of WEB-INF/lib? (Obviously, I 

don't want to delete it... )

Thank You,
Mike
-
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: Context Based Jars Loading

2004-04-17 Thread blujean3
sorry.. meant to say, Tomcat.exe file on your system... if you can write
it. XP as well as older win. files are reverse eng. so they will take a
lot of Dos commands, if you don't have it already, you can copy it to
your root Dr, as in 
copy\Z\???\whatever\atrib.exe C: \or is it .bat i'm not looking right
now) 

where   Z is floppy dr. or CD.dr.
where   ??? is you Dr, for the ver. of window's you are copping
form
where   whatever is the sub file
and 
where   atrib or edit is the file you want to use to edit or change
hidden autoexc.bat
again good luck

On Sat, 17 Apr 2004 16:26:34 -0400 Mike Sowka [EMAIL PROTECTED] writes:
 Hello Everyone,
 
 I wrote last night to the list with some frustration as I couldn't 
 load 
 up an app put together in Websphere into good'ol Tomcat4.1. Well I 
 think 
 I now know what the problem is, but don't know how to resolve it.
 
 It turns out that the IBM packaged jars require an older version 
 (1.0.1-dev) of org.apache.commons.logging... this package is 
 supplied in 
 the form of the commons-logging.jar placed in the WEB-INF/lib. In 
 the 
 case of Tomcat, the package also appears in 
 common/lib/commons-logging-api.jar... So the big question:
 
 How do I tell Tomcat to not load the jar file out of common/lib for 
 this 
 particular Context and use the one out of WEB-INF/lib? (Obviously, I 
 
 don't want to delete it... )
 
 Thank You,
 Mike
 
 -
 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: Context Based Jars Loading

2004-04-17 Thread blujean3
try, just pluming the line in the Tomcat.exe or program file of your
sys?? may be able to get in there?? Have u tried ??
On Sat, 17 Apr 2004 16:58:02 -0400 Mike Sowka [EMAIL PROTECTED] writes:
 Blu,
 
 Thanx, that is an idea... but it's essentially the same as just 
 deleting 
 the file. The point being, I want to use the jar file in other 
 web-apps... it seems rediculous that I can't at least set the class 
 path 
 order in Tomcat  Context...
 
 Anyone?
 Mike
 
 [EMAIL PROTECTED] wrote:
 
 you might use a dos based .bat file to exclude tomcat in the use 
 of
 common\loggin.*,  might come out looking like a mini Basic 
 Program but
 should work, not two sure if you can load it at the same time as
 atuoecec.bat, or Tomcat, may require some one with source code, 
 or
 getting some one  with Tomcat  code,,, to write it and put in for 
 you??
 good luck...  but do try .bat  ... they are simple, just in case 
 you have
 never wrote them..  look on line for Dos.hlp... someone will have 
 it.. 
 maybe even M.S.
 
   
 simple thought's from a simple mind 
  
 -
 as always   
  

 blu
 
 
 
 On Sat, 17 Apr 2004 16:26:34 -0400 Mike Sowka [EMAIL PROTECTED] 
 writes:
   
 
 Hello Everyone,
 
 I wrote last night to the list with some frustration as I couldn't 
 
 load 
 up an app put together in Websphere into good'ol Tomcat4.1. Well I 
 
 think 
 I now know what the problem is, but don't know how to resolve it.
 
 It turns out that the IBM packaged jars require an older version 
 
 (1.0.1-dev) of org.apache.commons.logging... this package is 
 supplied in 
 the form of the commons-logging.jar placed in the WEB-INF/lib. In 
 
 the 
 case of Tomcat, the package also appears in 
 common/lib/commons-logging-api.jar... So the big question:
 
 How do I tell Tomcat to not load the jar file out of common/lib for 
 
 this 
 particular Context and use the one out of WEB-INF/lib? (Obviously, 
 I 
 
 don't want to delete it... )
 
 Thank You,
 Mike
 
 -
 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: Context Based Jars Loading

2004-04-17 Thread Mike Sowka
Blu,

I'm sorry, You've lost me a while back... but I have a hunch your 
suggesting I start Tomcat wihtout loading the offending jar file... 
and my concern is: I don't want to do that, because some of my apps 
depend on it.

Oh, and BTW, I'm running on Linux.

Mike

[EMAIL PROTECTED] wrote:

try, just pluming the line in the Tomcat.exe or program file of your
sys?? may be able to get in there?? Have u tried ??
On Sat, 17 Apr 2004 16:58:02 -0400 Mike Sowka [EMAIL PROTECTED] writes:
 

Blu,

Thanx, that is an idea... but it's essentially the same as just 
deleting 
the file. The point being, I want to use the jar file in other 
web-apps... it seems rediculous that I can't at least set the class 
path 
order in Tomcat  Context...

Anyone?
Mike
[EMAIL PROTECTED] wrote:

   

you might use a dos based .bat file to exclude tomcat in the use 
 

of
   

common\loggin.*,  might come out looking like a mini Basic 
 

Program but
   

should work, not two sure if you can load it at the same time as
atuoecec.bat, or Tomcat, may require some one with source code, 
 

or
   

getting some one  with Tomcat  code,,, to write it and put in for 
 

you??
   

good luck...  but do try .bat  ... they are simple, just in case 
 

you have
   

never wrote them..  look on line for Dos.hlp... someone will have 
 

it.. 
   

maybe even M.S.

simple thought's from a simple mind 
 


   

  -
as always   
 


   

 
blu



On Sat, 17 Apr 2004 16:26:34 -0400 Mike Sowka [EMAIL PROTECTED] 
 

writes:
   



 

Hello Everyone,

I wrote last night to the list with some frustration as I couldn't 
   

load 
up an app put together in Websphere into good'ol Tomcat4.1. Well I 
   

think 
I now know what the problem is, but don't know how to resolve it.

It turns out that the IBM packaged jars require an older version 
   

(1.0.1-dev) of org.apache.commons.logging... this package is 
supplied in 
the form of the commons-logging.jar placed in the WEB-INF/lib. In 
   

the 
case of Tomcat, the package also appears in 
common/lib/commons-logging-api.jar... So the big question:

How do I tell Tomcat to not load the jar file out of common/lib for 
   

this 
particular Context and use the one out of WEB-INF/lib? (Obviously, 
   

I 
   

don't want to delete it... )

Thank You,
Mike
-
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]


Re: configure data source

2004-04-17 Thread twcTC
Can you show me how to do it.

Thanks.

-Original Message-
From: Kris Rasmussen [EMAIL PROTECTED]
Sent: Apr 17, 2004 3:09 AM
To: Tomcat Users List [EMAIL PROTECTED], 
twcTC [EMAIL PROTECTED]
Subject: Re: configure data source

I don't know about web.xml, but if you use a resource
link in the context for the app in server.xml you
should be fine.

Kris
--- twcTC [EMAIL PROTECTED] wrote:
 I have the same problem
 
 -Original Message-
 From: Niraj Alok [EMAIL PROTECTED]
 Sent: Apr 16, 2004 8:04 PM
 To: Tomcat Users List
 [EMAIL PROTECTED]
 Subject: configure data source
 
 
  Hi All,
 
 
  I am trying to obtain a connection using DataSource
  in Tomcat5 .
 
  I get the following error :
 
  org.apache.commons.dbcp.SQLNestedException: Cannot
 create JDBC driver of
  class '' for connect URL 'null', cause:
 
  java.sql.SQLException: No suitable driver
 
 
 
  My source code is :
 
  Context ctx = new InitialContext();
 
  if (ctx == null)
 
  throw new Exception(No context got!
 Exception);
 
  System.out.println(got ctx);
 
  DataSource ds =
 
  (DataSource)
 ctx.lookup(java:comp/env/jdbc/hypersonic);
 
 
  if(ds == null)
 
  throw new Exception(No ds got!
 Exception);
 
  else
 
  {
 
  System.out.println(got ds);
 
  Connection con = ds.getConnection();
 
  if(con != null)
 
   
   ...
  }
 
 
  My server.xml looks like :
 
 GlobalNamingResources
 
 Environment name=simpleValue
 type=java.lang.Integer value=30/
 
 Resource auth=Container description=User
 database that can be updated
 and saved name=UserDatabase
 type=org.apache.catalina.UserDatabase/
 
 Resource name=hypersonic
 type=javax.sql.DataSource/
 
 ResourceParams name=UserDatabase
 
 parameter
 
 namefactory/name
 

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
 
 /parameter
 
 parameter
 
 namepathname/name
 
 valueconf/tomcat-users.xml/value
 
 /parameter
 
 /ResourceParams
 
 ResourceParams name=hypersonic
 
 parameter
 
 namemaxWait/name
 
 value5000/value
 
 /parameter
 
 parameter
 
 namemaxActive/name
 
 value20/value
 
 /parameter
 
 parameter
 
 namepassword/name
 
 value/value
 
 /parameter
 
 parameter
 
 nameurl/name
 
 valuejdbc:hsqldb:hsql://localhost:1701/value
 
 /parameter
 
 parameter
 
 namedriverClassName/name
 
 valueorg.hsqldb.jdbcDriver/value
 
 /parameter
 
 parameter
 
 namemaxIdle/name
 
 value2/value
 
 /parameter
 
 parameter
 
 nameusername/name
 
 valuesa/value
 
 /parameter
 
 /ResourceParams
 
 /GlobalNamingResources
 
 
 
My web.xml contains:
 
 
 
resource-ref
 
descriptionDB Connection/description
 
res-ref-namejdbc/hypersonic/res-ref-name
 
res-typejavax.sql.DataSource/res-type
 
res-authContainer/res-auth
 
/resource-ref
 
 
 
Even if i comment this entry in web.xml the error
 is still the same.
 
 
 
Can any one please tell me what am I doing
 wrong??
 
Regards,
Niraj
 
 
 
 

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





__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

-
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: Context Based Jars Loading

2004-04-17 Thread blujean3
Mike,

Ok... never mind, sorry but i am not the Linux man i should be to
give advice...  maybe one can/will come along...
Hope your seance of humor is still in tact???  
 
 or you could try this... please don't cause if it didn't work for you, 
i would feel  really bad

ok then if you are using Winlux... oops, lol...  i mean Linux... then it
is simple...  backup your sys.and rename it 
D:\BACKUP,.. and create a 4gig partition for C:\ and the rest of your
drive will be D:\ ... then install  
IBM\OS2 2.20 operating sys. as your C:\, and your back up on D:\  ...  as
OS2 will work with Linux??  sound a little crazy but it will work... 
HUM... ya know.. i didn't thing those Command's look right, as I've not
seen them in or looked in XP...  
  Ok.. never mind i am being a little crazy now.. but i have seen OS2\2.2
do some really cool stuff, just won't deal with a big H.D. ... yea i know
it still sound's like a bit much... but i did use OS2 for a long time
after 95 and 98 came out..  the last time i reformatted to clean the
H.D., i just put 98 back on, and then up graded to XP, and changed from
FAT to NTFS file sys... it seams to work a lot better if you ask me, and
i did understand FAT quite well,but NTFS is just better...

again good luck


On Sat, 17 Apr 2004 17:25:30 -0400 Mike Sowka [EMAIL PROTECTED] writes:
 Blu,
 
 I'm sorry, You've lost me a while back... but I have a hunch your 
 suggesting I start Tomcat wihtout loading the offending jar 
 file... 
 and my concern is: I don't want to do that, because some of my apps 
 
 depend on it.
 
 Oh, and BTW, I'm running on Linux.
 
 Mike
 
 [EMAIL PROTECTED] wrote:
 
 try, just pluming the line in the Tomcat.exe or program file of 
 your
 sys?? may be able to get in there?? Have u tried ??
 On Sat, 17 Apr 2004 16:58:02 -0400 Mike Sowka [EMAIL PROTECTED] 
 writes:
   
 
 Blu,
 
 Thanx, that is an idea... but it's essentially the same as just 
 deleting 
 the file. The point being, I want to use the jar file in other 
 web-apps... it seems rediculous that I can't at least set the 
 class 
 path 
 order in Tomcat  Context...
 
 Anyone?
 Mike
 
 [EMAIL PROTECTED] wrote:
 
 
 
 you might use a dos based .bat file to exclude tomcat in the use 
 
   
 
 of
 
 
 common\loggin.*,  might come out looking like a mini Basic 
   
 
 Program but
 
 
 should work, not two sure if you can load it at the same time as
 atuoecec.bat, or Tomcat, may require some one with source code, 
 
   
 
 or
 
 
 getting some one  with Tomcat  code,,, to write it and put in for 
 
   
 
 you??
 
 
 good luck...  but do try .bat  ... they are simple, just in case 
 
   
 
 you have
 
 
 never wrote them..  look on line for Dos.hlp... someone will have 
 
   
 
 it.. 
 
 
 maybe even M.S.
 
  
 simple thought's from a simple mind   
   
   
 
  
 
 
-
 as always 
   
   
 
  
 
 
   
 blu
 
 
 
 On Sat, 17 Apr 2004 16:26:34 -0400 Mike Sowka [EMAIL PROTECTED] 
 
   
 
 writes:
 
 
  
 
   
 
 Hello Everyone,
 
 I wrote last night to the list with some frustration as I 
 couldn't 
 
 
 load 
 up an app put together in Websphere into good'ol Tomcat4.1. Well 
 I 
 
 
 think 
 I now know what the problem is, but don't know how to resolve 
 it.
 
 It turns out that the IBM packaged jars require an older 
 version 
 
 
 (1.0.1-dev) of org.apache.commons.logging... this package is 
 supplied in 
 the form of the commons-logging.jar placed in the WEB-INF/lib. 
 In 
 
 
 the 
 case of Tomcat, the package also appears in 
 common/lib/commons-logging-api.jar... So the big question:
 
 How do I tell Tomcat to not load the jar file out of common/lib 
 for 
 
 
 this 
 particular Context and use the one out of WEB-INF/lib? 
 (Obviously, 
 
 
 I 
 
 
 don't want to delete it... )
 
 Thank You,
 Mike
 

-
 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: 
 

Parser Errors on startup

2004-04-17 Thread James Bucanek
Tomcat 4.1.xx/Mac OS X Server (BSD)

I'm getting the following errors when I startup Tomcat, and I can't for the life of me 
figure out what to do about it:

Starting service Tomcat-Standalone
Apache Tomcat/4.1.29-LE-jdk14
Apr 17, 2004 4:20:24 PM org.apache.struts.util.PropertyMessageResources init
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
Apr 17, 2004 4:20:24 PM org.apache.struts.util.PropertyMessageResources init
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
Apr 17, 2004 4:20:24 PM org.apache.struts.util.PropertyMessageResources init
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', 
returnNull=true
Apr 17, 2004 4:20:30 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 2 column -1: Element type web-app is not declared.
org.xml.sax.SAXParseException: Element type web-app is not declared.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3317)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1469)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:634)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:333)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
...
Apr 17, 2004 4:20:30 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 3 column -1: Element type display-name is not declared.
org.xml.sax.SAXParseException: Element type display-name is not declared.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3317)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1469)
...
Apr 17, 2004 4:20:30 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 4 column -1: Element type description is not declared.
org.xml.sax.SAXParseException: Element type description is not declared.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3317)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1469)
...
Apr 17, 2004 4:20:30 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 7 column -1: Element type context-param is not declared.
org.xml.sax.SAXParseException: Element type context-param is not declared.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3317)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1469)
 
... and about 18 more.

This appears to have started after I added one additional Host declaration to my 
server.xml file.  But there are no XML syntax errors in the file (I've parsed it with 
other tools), and the Host appears to be working.  So why theres errors, and why do 
they start on line 2?

__
James Bucanek   mailto:[EMAIL PROTECTED]

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



Re: How does tomcat redirect from login

2004-04-17 Thread Tim Funk
The root cause is the servlet spec does not mandate the exposure of the asset 
 which triggered the login form. That is to say - there is no way defined by 
the spec for the login form to what resource caused the login form to appear.

This stinks since it makes personalization of the login form a little more 
difficult.

-Tim

Jim Kennedy wrote:

Actually, I'm stupid here.  j_security_check is not the issue.  It's
actually deeper in the container.  Not a part of the motor I want to touch.
 

-Original Message-
From: Jim Kennedy [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 17, 2004 2:08 PM
To: 'Tomcat Users List'
Subject: RE: How does tomcat redirect from login

Thanks, I'm surprised there is no way to do this.  Why wouldn't they just
pop it in the request.  Seems very easy.  I wonder if I could find the
source for j_security_check and make the appropriate changes.  I don't want
to reinvent J2ee security. 

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 17, 2004 1:44 PM
To: Tomcat Users List
Subject: Re: How does tomcat redirect from login
There is no way to do that. Your best alternative is to NOT use
authentication/authorization via the spec and create some Servlet Filters to
perform the appropriate authentication and authorization checks. That way,
the filter can be smart enough to determine you user context and handle it
approriately.
The upside - is the path is very portable to othre conatiners. The downside
is you reinvent some of the wheel. Lucky for you  - there are other projects
on the Internet which use Filters for this very purpose  - so some of your
work might already be done.
-Tim

Jim Kennedy wrote:


I am using form based login, which is working fine for me.  I would 
like to display different login content (on my login form) based on 
the desired intent of the user.  So , if the user wants to go to a 
certain section of my site that is secure, I would like to capture the 
redirect page (the url of the secure page) before the user logs in.
Knowing that URL will allow me to display specific content for that 
section.  I have searched the session and the request scopes for 
something that looks like a redirect page.  Can't find anything.  Not 
even
a cookie.

So, how does tomcat store the intended (redirect) page during the 
login process for form based login.  Where is it stored?  How can I 
get
it?

Hope I don't need to hack the source for j_security_check.

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


Re: configure data source

2004-04-17 Thread twcTC
I have the same problem. please help.
===detail info==
hello all,

I need help.
I am using jwsdp-1.3. I am trying to connect to oracle 8.1.5 database using DataSource.
I get sqlexception 
java.sql.SQLException: Cannot load JDBC driver class.

I have put oracle jdbc classes12.zip into /common/lib/classes12.jar.
(I rename classes12.zip to classes12.jar)

Thank you very much.
It took me a lot of time.

--Tony

The following is config and code files.

conf/server.xml

?xml version='1.0' encoding='utf-8'?
Server className=org.apache.catalina.core.StandardServer debug=0
port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/
  GlobalNamingResources
Environment description=Absolute Pathname of the JWSDP Installation
name=jwsdp.home override=true type=java.lang.String
value=D:\jwsdp13/
Environment name=simpleValue override=true
type=java.lang.Integer value=30/
Resource auth=Container description=User database
that can be updated and saved name=UserDatabase scope=Shareable
type=org.apache.catalina.UserDatabase/
Resource name=jdbc/myoracle scope=Shareable
type=javax.sql.DataSource/
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
ResourceParams name=jdbc/myoracle
  parameter
namemaxWait/name
value5000/value
  /parameter
  parameter
namemaxActive/name
value4/value
  /parameter
  parameter
namepassword/name
valuetiger/value
  /parameter
  parameter
nameurl/name
valuejdbc:oracle:thin:@127.0.0.1:1521:dellorcl/value
  /parameter
  parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter
  parameter
nameusername/name
valuescott/value
  /parameter
/ResourceParams
  /GlobalNamingResources
  Service className=org.apache.catalina.core.StandardService
debug=0 name=Java Web Services Developer Pack
Connector className=org.apache.coyote.tomcat5.CoyoteConnector
acceptCount=100 bufferSize=2048 clientAuth=false
compression=off connectionLinger=-1 connectionTimeout=2
connectionUploadTimeout=30 debug=0 disableUploadTimeout=true
enableLookups=true keepAlive=true maxKeepAliveRequests=100
maxProcessors=100 minProcessors=5 port=8080
protocol=HTTP/1.1 protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol
proxyPort=0 redirectPort=8443 scheme=http
secure=false serverSocketTimeout=0 tcpNoDelay=true
tomcatAuthentication=true xpoweredBy=true
/Connector
Engine className=org.apache.catalina.core.StandardEngine
backgroundProcessorDelay=10 baseDir=D:\jwsdp13 debug=0
defaultHost=localhost domain=Catalina name=Catalina
  Host className=org.apache.catalina.core.StandardHost appBase=webapps
autoDeploy=true backgroundProcessorDelay=-1 
configClass=org.apache.catalina.startup.ContextConfig
contextClass=org.apache.catalina.core.StandardContext debug=0
deployOnStartup=true deployXML=true domain=Catalina
errorReportValveClass=org.apache.catalina.valves.ErrorReportValve
liveDeploy=true name=localhost unpackWARs=false
xmlNamespaceAware=false xmlValidation=false
Valve className=org.apache.catalina.authenticator.SingleSignOn
debug=0/
  /Host
  Logger className=org.apache.catalina.logger.FileLogger
debug=0 directory=logs prefix=jwsdp_log.
suffix=.txt timestamp=true verbosity=1/
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
debug=0 resourceName=UserDatabase validate=true/
  Valve className=org.apache.catalina.valves.AccessLogValve
debug=0 directory=logs fileDateFormat=-MM-dd
pattern=%h %l %u %t quot;%rquot; %s %b prefix=access_log.
resolveHosts=false rotatable=true suffix=.txt/
/Engine
  /Service
/Server


/hello1/build/Wen-inf/web.xml
=
?xml version=1.0 encoding=UTF-8?
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;
  display-namehello1/display-name
  servlet
display-nameGreetingServlet/display-name
servlet-nameGreetingServlet/servlet-name
servlet-classservlets.GreetingServlet/servlet-class
  /servlet
  servlet
display-nameResponseServlet/display-name
servlet-nameResponseServlet/servlet-name
servlet-classservlets.ResponseServlet/servlet-class
  /servlet
  servlet-mapping
servlet-nameGreetingServlet/servlet-name
url-pattern/greeting/url-pattern
  

Re: Parser Errors on startup

2004-04-17 Thread James Bucanek
James Bucanek wrote on Saturday, April 17, 2004:
Tomcat 4.1.xx/Mac OS X Server (BSD)

I'm getting the following errors when I startup Tomcat, and I can't
for the life of me figure out what to do about it:

Well, I've managed to narrow the problem down.  The Host I defined in server.xml 
isn't the problem.  The problem is that the Host I defined caused other webapp's to 
be deployed automatically, and it is apparently the web.xml file that is throwing the 
SAXParseExceptions.

I kept taking things out of the web.xml file to try and zero in on the problem.  
Unfortunately, I'm now left with the following web.xml:

web-app
/web-app

Whenever I start Tomcat, or reload the web application, the following gets written to 
${catalina-home}/logs/catalina.out:

Apr 17, 2004 10:45:01 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 1 column -1: Element type web-app is not declared.
org.xml.sax.SAXParseException: Element type web-app is not declared.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3317)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1469)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:634)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:333)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at 
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:282)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3582)
at 
org.apache.catalina.startup.HostConfig.checkWebXmlLastModified(HostConfig.java:614)
at org.apache.catalina.startup.HostConfig.run(HostConfig.java:854)
at java.lang.Thread.run(Thread.java:552)

Note: If I have other declarations in web.xml, I get a SAX Exception for (basically) 
every tag in the file.

They only way to eliminate this Exception is to remove the web.xml file altogether.  
This just doesn't make any sense to me.  Any insight would be appreciated.

__
James Bucanek   mailto:[EMAIL PROTECTED]

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