DO NOT REPLY [Bug 29705] New: - ServletException

2004-06-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=29705.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29705

ServletException

   Summary: ServletException
   Product: Tomcat 5
   Version: 5.0.25
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Blocker
  Priority: Other
 Component: Webapps:Administration
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Hi,

I am getting a ServletException on the click of Save button while creating a 
new DataSource in Resources.

exception 

javax.servlet.ServletException: Servlet execution threw an exception


root cause 

java.lang.NoSuchMethodError
at org.apache.webapp.admin.resources.SaveDataSourceAction.perform
(SaveDataSourceAction.java:136)
at org.apache.struts.action.Action.execute(Action.java:420)
at org.apache.struts.action.RequestProcessor.processActionPerform
(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process
(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

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



DO NOT REPLY [Bug 29638] - Tomcat generates invalid debug info for custom tags

2004-06-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=29638.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29638

Tomcat generates invalid debug info for custom tags





--- Additional Comments From [EMAIL PROTECTED]  2004-06-21 08:22 ---
Actually I stopped inside write method. When the paremeter value was 
option I inspected the upper frame with JDI. For Java Strata JDI returned 
line with out.write(  option); But for JSP Strata it returned line 
with c:otherwise.

How can I get the smap?

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



DO NOT REPLY [Bug 29710] New: - mod_jk2: default *.properties location isn't `apxs -q sysconfdir`

2004-06-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=29710.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29710

mod_jk2: default *.properties location isn't `apxs -q sysconfdir`

   Summary: mod_jk2: default *.properties location isn't `apxs -q
sysconfdir`
   Product: Tomcat 5
   Version: 5.0.25
  Platform: PC
OS/Version: Other
Status: NEW
  Severity: Minor
  Priority: Other
 Component: Native:JK
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


mod_jk2 searches for '*.properties' in `apxs -q prefix`/conf instead of
`apxs -q sysconfdir` by default.

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



RE : RE : Tomcat jars on maven repository

2004-06-21 Thread Heritier Arnaud
Hi,

I don't know if it exits an ant script which helps to publish artifacts on the maven 
repository for projects that don't use maven.

The only constraint that must be respected is the jar name :
artifact-release.jar in the tomcat/jars directory.

If I find a few minutes to watch the tomcat build script I'll search if it is possible 
to automatize jars publication on the maven repository.

Arnaud.

 -Message d'origine-
 De : Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Envoyé : vendredi 18 juin 2004 15:15
 À : Tomcat Developers List
 Cc : [EMAIL PROTECTED]
 Objet : RE: RE : Tomcat jars on maven repository
 
 
 
 Hi,
 /www/www.apache.org/dist/java-repository/tomcat has an empty 
 distributions subdirectory and a jars subdirectory that 
 contains a hodge-podge of jars for various mixed tomcat 
 versions.  Given that tomcat does not use maven for its build 
 process, what are the guidelines and how should I proceed 
 about placing jars from tomcat releases into this maven repository?
 
 Mark, I hope you don't mind being CC'ed on this as the expert 
 on this matter ;)
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Heritier Arnaud [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 17, 2004 1:12 AM
 To: Tomcat Developers List
 Subject: RE : Tomcat jars on maven repository
 
 Since a few weeks you can update directly deploy your releases on 
 apache server. The rsync is automatically done with ibiblio.
 
 Here is a post from Mark R. Diggory :
 
 
 
 Release Managers,
 
 rsync is now active between apache and www.ibiblio.org/maven every 4 
 hours.
 
 minotaur.apache.org:/www/www.apache.org/dist/java-repository
 
 contents are now rsynced directly to
 
 www.ibibilio/maven.
 
 by ibibilio.
 
 This means anything you place into java-repository will be available 
 through maven within 4 hours. To start deploying 
 distributions to java- 
 repository on minotaur set your Maven build.properties or 
 project.properties to the following:
 
 
 SNIP
 #This is the host that Maven will attempt
 #to deploy the distribution to during a dist:deploy. 
 maven.repo.central=minotaur.apache.org
 
 
 #This is the directory that Maven will
 #copy the distribution to during a dist:deploy.
 
 maven.repo.central.directory=/www/www.apache.org/dist/java-repository
 
 
 #ssh configuration settings just require your apache id to 
 log on with 
 maven.username=apache-user-name
 /SNIP
 
 
  -Message d'origine-
  De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
  Envoyé : mercredi 16 juin 2004 14:50
  À : Tomcat Developers List
  Objet : RE: Tomcat jars on maven repository
 
 
 
  Hi,
  Hmm, what is the process for updating them?  I see it's 
 not automatic 
  ;)
 
  Yoav Shapira
  Millennium Research Informatics
 
 
  -Original Message-
  From: Heritier Arnaud [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, June 16, 2004 1:58 AM
  To: [EMAIL PROTECTED]
  Subject: Tomcat jars on maven repository
  
  Hello guys,
  
  I saw that you didn't published tomcat jars on the maven
  repository
  (ibiblio) since several weeks.
  For example the last releases for catalina are :
catalina-4.1.9.jar
catalina-5.0.18.jar
  
  Do you plan to update them ??
  
  
  
  
  Arnaud.
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: 
 [EMAIL PROTECTED]
 
 
 
 
  This e-mail, including any attachments, is a confidential business 
  communication, and may contain information that is confidential, 
  proprietary and/or privileged.  This e-mail is intended 
 only for the 
  individual(s) to whom it is addressed, and may not be 
 saved, copied, 
  printed, disclosed or used by anyone else.  If you are not the(an) 
  intended recipient, please immediately delete this e-mail 
 from your 
  computer system and notify the sender.  Thank you.
 
 
  
 -
  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]
 
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To 

DO NOT REPLY [Bug 28532] - ajp13.service() ajpGetReply recoverable error 3

2004-06-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=28532.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28532

ajp13.service() ajpGetReply recoverable error 3





--- Additional Comments From [EMAIL PROTECTED]  2004-06-21 13:56 ---
I am experiencing the same bug w/ the following configuration:

Apache 2.0.49
Tomcat 4.1.27
Sun JVM 1.4.1_05
jk 22.0.4

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



DO NOT REPLY [Bug 29526] - Cannot undeploy and deploy war file with on the same context

2004-06-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=29526.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29526

Cannot undeploy and deploy war file with on the same context





--- Additional Comments From [EMAIL PROTECTED]  2004-06-21 13:56 ---
Remy,
I am also encountering this bug with my application. When undeploying it 
leaves a single jar that cannot be deleted. I've tracked it down to a single 
class within this jar that is causing the problem. Here is the code, can you 
think of any reason this class may be causing a problem?:

package com.company;

// 
-
// StringEncrypter.java
// 
-

// CIPHER / GENERATORS
import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.KeyGenerator;

// KEY SPECIFICATIONS
import java.security.spec.KeySpec;
import java.security.spec.AlgorithmParameterSpec;
import javax.crypto.spec.PBEKeySpec;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.PBEParameterSpec;

// EXCEPTIONS
import java.security.InvalidAlgorithmParameterException;
import java.security.NoSuchAlgorithmException;
import java.security.InvalidKeyException;
import java.security.spec.InvalidKeySpecException;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException;
import java.io.UnsupportedEncodingException;
import java.io.IOException;


/**
 * 
-
 * The following example implements a class for encrypting and decrypting
 * strings using several Cipher algorithms. The class is created with a key and
 * can be used repeatedly to encrypt and decrypt strings using that key.
 * Some of the more popular algorithms are:
 *  Blowfish
 *  DES
 *  DESede
 *  PBEWithMD5AndDES
 *  PBEWithMD5AndTripleDES
 *  TripleDES
 * 
-
 */

public class Encrypter {

Cipher ecipher;
Cipher dcipher;


/**
 * Constructor used to create this object.  Responsible for setting
 * and initializing this object's encrypter and decrypter Chipher instances
 * given a Secret Key and algorithm.
 * @param keySecret Key used to initialize both the encrypter and
 *   decrypter instances.
 * @param algorithm  Which algorithm to use for creating the encrypter and
 *   decrypter instances.
 */
Encrypter(SecretKey key, String algorithm) {
try {
ecipher = Cipher.getInstance(algorithm);
dcipher = Cipher.getInstance(algorithm);
ecipher.init(Cipher.ENCRYPT_MODE, key);
dcipher.init(Cipher.DECRYPT_MODE, key);
} catch (Exception e) {
}
}


/**
 * Constructor used to create this object.  Responsible for setting
 * and initializing this object's encrypter and decrypter Chipher instances
 * given a Pass Phrase and algorithm.
 * @param passPhrase Pass Phrase used to initialize both the encrypter and
 *   decrypter instances.
 */
Encrypter(String passPhrase) {

// 8-bytes Salt
byte[] salt = {
(byte)0xA9, (byte)0x9B, (byte)0xC8, (byte)0x32,
(byte)0x56, (byte)0x35, (byte)0xE3, (byte)0x03
};

// Iteration count
int iterationCount = 20;

try {

KeySpec keySpec = new PBEKeySpec(passPhrase.toCharArray(), salt, 
iterationCount);
SecretKey key = SecretKeyFactory.getInstance
(PBEWithMD5AndDES).generateSecret(keySpec);

ecipher = Cipher.getInstance(key.getAlgorithm());
dcipher = Cipher.getInstance(key.getAlgorithm());

// Prepare the parameters to the cipthers
AlgorithmParameterSpec paramSpec = new PBEParameterSpec(salt, 
iterationCount);

ecipher.init(Cipher.ENCRYPT_MODE, key, paramSpec);
dcipher.init(Cipher.DECRYPT_MODE, key, paramSpec);

} catch (Exception e) {
}
}


/**
 * Takes a single String as an argument and returns an Encrypted version
 * of that String.
 * @param str String to be encrypted
 * @return codeString/code Encrypted version of the provided String
 */
public String encrypt(String str) {
try {
// Encode the string into bytes using utf-8
byte[] utf8 = str.getBytes(UTF8);

// Encrypt
byte[] enc = ecipher.doFinal(utf8);

// Encode bytes to base64 to get a string
return new sun.misc.BASE64Encoder().encode(enc);

} catch 

DO NOT REPLY [Bug 28532] - ajp13.service() ajpGetReply recoverable error 3

2004-06-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=28532.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28532

ajp13.service() ajpGetReply recoverable error 3





--- Additional Comments From [EMAIL PROTECTED]  2004-06-21 14:46 ---
Regarding my comment above, that should be jk2 - 2.0.4

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



DO NOT REPLY [Bug 29718] New: - include page with org variable

2004-06-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=29718.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29718

include page with org variable

   Summary: include page with org variable
   Product: Tomcat 5
   Version: 5.0.25
  Platform: PC
OS/Version: Other
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Servlet  JSP API
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Exception:
cannot resolve symbol
symbol  : variable apache 
location: class java.lang.String
  org.apache.jasper.runtime.JspRuntimeLibrary.include(request, 
response, mytable.jsp, out, false);

--description-
caused from the variabile org in correspondence of
[EMAIL PROTECTED] file=myinclude.jsp%
note 
without the 
jsp:include page=mytable.jsp/
the error not occured
tested on Linux and Windows2k - tomcat version 5.18 and 5.25 
-

this is an example...
/file index.jsp-
[EMAIL PROTECTED] contentType=text/html;charset=UTF-8%
[EMAIL PROTECTED] file=myinclude.jsp%
html
  head
titletry/title
  /head
  body
h1Hi all/h1
 jsp:include page=mytable.jsp/
  /body
/html
//-end-file index.jsp


//file myinclude.jsp-
%
//this page make a little test of user instance ...
 
String org = new String(prova);
// the problem look like this name instance org
%
//end-file myinclude.jsp-


//file mytable.jsp-
table
tr
tdnbsp/td
tdnbsp/td  
/tr
/table
//file mytable.jsp-

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



DO NOT REPLY [Bug 29718] - include page with org variable

2004-06-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=29718.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29718

include page with org variable

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WONTFIX



--- Additional Comments From [EMAIL PROTECTED]  2004-06-21 15:58 ---
I find it rather amazing that you would be filing a bug about this issue. It
should be obvious what is going on by looking about the generated code (and even
without looking ...) with a variable named org (and no, we can't fix the
problem by adding an import), given that our package structure starts with
org.apache.

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



DO NOT REPLY [Bug 29638] - Tomcat generates invalid debug info for custom tags

2004-06-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=29638.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29638

Tomcat generates invalid debug info for custom tags





--- Additional Comments From [EMAIL PROTECTED]  2004-06-21 17:25 ---
To get the smap, set dumpSmap to true for JspServlet in tomcat/conf/web.xml,
and look for *.smap file in the generated directory.  You'll probably need
JSR-45 spec for smap spec.

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



DO NOT REPLY [Bug 29705] - ServletException

2004-06-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=29705.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29705

ServletException

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME



--- Additional Comments From [EMAIL PROTECTED]  2004-06-21 17:46 ---
Cannot reproduce - Save DataSource works for me.  Please provide more info if
the problem persists.

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



cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/startup ContextConfig.java LocalStrings.properties

2004-06-21 Thread markt
markt   2004/06/21 15:16:50

  Modified:catalina/src/share/org/apache/catalina/startup
ContextConfig.java LocalStrings.properties
  Log:
  Fix 18650. Provide a better message in the log if the temp directory is missing
  
  Remove unused imports identified by Eclipse
  
  Revision  ChangesPath
  1.69  +14 -19
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/startup/ContextConfig.java
  
  Index: ContextConfig.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/startup/ContextConfig.java,v
  retrieving revision 1.68
  retrieving revision 1.69
  diff -u -r1.68 -r1.69
  --- ContextConfig.java3 Mar 2004 21:49:55 -   1.68
  +++ ContextConfig.java21 Jun 2004 22:16:50 -  1.69
  @@ -70,19 +70,14 @@
   import java.io.FileNotFoundException;
   import java.io.InputStream;
   import java.io.IOException;
  -import java.lang.reflect.InvocationTargetException;
  -import java.lang.reflect.Method;
   import java.net.JarURLConnection;
  -import java.net.MalformedURLException;
   import java.net.URL;
  -import java.util.ArrayList;
   import java.util.Enumeration;
   import java.util.HashSet;
   import java.util.Iterator;
   import java.util.MissingResourceException;
   import java.util.ResourceBundle;
   import java.util.Set;
  -import java.util.Stack;
   import java.util.jar.JarEntry;
   import java.util.jar.JarFile;
   import javax.naming.NamingException;
  @@ -95,9 +90,7 @@
   import org.apache.catalina.Connector;
   import org.apache.catalina.Container;
   import org.apache.catalina.Context;
  -import org.apache.catalina.DefaultContext;
   import org.apache.catalina.Engine;
  -import org.apache.catalina.Globals;
   import org.apache.catalina.Host;
   import org.apache.catalina.Lifecycle;
   import org.apache.catalina.LifecycleEvent;
  @@ -109,20 +102,12 @@
   import org.apache.catalina.Wrapper;
   import org.apache.catalina.core.ContainerBase;
   import org.apache.catalina.core.StandardContext;
  -import org.apache.catalina.deploy.ApplicationParameter;
  -import org.apache.catalina.deploy.ContextEjb;
  -import org.apache.catalina.deploy.ContextEnvironment;
  -import org.apache.catalina.deploy.ContextLocalEjb;
  -import org.apache.catalina.deploy.ContextResource;
  -import org.apache.catalina.deploy.ContextResourceLink;
   import org.apache.catalina.deploy.ErrorPage;
   import org.apache.catalina.deploy.FilterDef;
   import org.apache.catalina.deploy.FilterMap;
   import org.apache.catalina.deploy.LoginConfig;
   import org.apache.catalina.deploy.SecurityConstraint;
  -import org.apache.catalina.loader.Extension;
   import org.apache.catalina.util.StringManager;
  -import org.apache.catalina.valves.ValveBase;
   import org.apache.commons.digester.Digester;
   import org.xml.sax.InputSource;
   import org.xml.sax.SAXParseException;
  @@ -926,6 +911,16 @@
   }
   // FIXME - Closing the JAR file messes up the class loader???
   //jarFile.close();
  +} catch (IOException ioe) {
  +File tmp = new File(System.getProperty(java.io.tmpdir));
  +if (!tmp.canWrite()) {
  +throw new ServletException
  +(sm.getString(contextConfig.noTempDir), ioe);
  +} else {
  +throw new ServletException
  +(sm.getString(contextConfig.tldJarIOException,
  +  resourcePath), ioe);
  +}
   } catch (Exception e) {
   if (name == null) {
   throw new ServletException
  
  
  
  1.17  +2 -0  
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/startup/LocalStrings.properties
  
  Index: LocalStrings.properties
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/startup/LocalStrings.properties,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- LocalStrings.properties   10 Jan 2003 15:52:18 -  1.16
  +++ LocalStrings.properties   21 Jun 2004 22:16:50 -  1.17
  @@ -17,6 +17,7 @@
   contextConfig.defaultParse=Parse error in default web.xml
   contextConfig.defaultPosition=Occurred at line {0} column {1}
   contextConfig.missingRealm=No Realm has been configured to authenticate against
  +contextConfig.noTempDir=Required temporary directory $CATALINA_BASE/temp is missing
   contextConfig.role.auth=WARNING: Security role name {0} used in an 
auth-constraint without being defined in a security-role
   contextConfig.role.link=WARNING: Security role name {0} used in a role-link 
without being defined in a security-role
   contextConfig.role.runas=WARNING: Security role name {0} used in a run-as without 
being defined in a security-role
  @@ -24,6 +25,7 @@
   

DO NOT REPLY [Bug 18650] - Exception while processing a JAR file

2004-06-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=18650.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=18650

Exception while processing a JAR file

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2004-06-21 22:20 ---
This has been fixed in CVS. If an IOException occurs, the ability to write to 
the temp directory is tested and an explicit error message given if the 
directory is not writable (includes the case when the directory is not 
present).

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



DO NOT REPLY [Bug 29255] - naming-factory.jar missing mail factories.

2004-06-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=29255.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29255

naming-factory.jar missing mail factories.

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |



--- Additional Comments From [EMAIL PROTECTED]  2004-06-21 22:23 ---
I tested on tomcat 4.1.30 and it does not work either. 

I put the naming-factory.jar from 4.1.24 and everything worked again !

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



DO NOT REPLY [Bug 24538] - JasperException: file.jsp(x,y) equal symbol expected refers to incorrect location

2004-06-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=24538.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=24538

JasperException: file.jsp(x,y) equal symbol expected refers to incorrect location





--- Additional Comments From [EMAIL PROTECTED]  2004-06-21 22:26 ---
Looks like there is a problem with the SMAP generation for your source file. 
Please provide the whole JSP file. A smaller version of the file that still 
exhibts this problem would also be acceptable (in fact the smaller file the 
better).

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



DO NOT REPLY [Bug 24588] - NullPointerException from ProxyDirContext

2004-06-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=24588.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=24588

NullPointerException from ProxyDirContext





--- Additional Comments From [EMAIL PROTECTED]  2004-06-21 22:39 ---
Were you ever able to repeat this or was it a one off?

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



DO NOT REPLY [Bug 24182] - java.util.ConcurrentModificationException

2004-06-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=24182.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=24182

java.util.ConcurrentModificationException





--- Additional Comments From [EMAIL PROTECTED]  2004-06-21 22:40 ---
Did making the HashMap synchronized fix this issue?

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



DO NOT REPLY [Bug 29727] New: - JNDI env-entry not reload when context reloaded

2004-06-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=29727.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29727

JNDI env-entry not reload when context reloaded

   Summary: JNDI env-entry not reload when context reloaded
   Product: Tomcat 5
   Version: 5.0.25
  Platform: All
OS/Version: Windows XP
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Unknown
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


If environment entries are changed in web.xml, and the application context is 
restarted, the values in the JNDI context are the old values.

If the environment entries are changed via the Tomcat 'admin' interface, then 
the values provided to the context are correct.

The following code is can be used to check the environment:

try {
InitialContext ic = new InitialContext();
NamingEnumeration enum = ic.listBindings(java:comp/env);

while (enum.hasMore()) {
Binding binding = (Binding) enum.next();
jndi.setProperty(binding.getName(),  + binding.getObject());
System.out.println(jndi setting:  + binding.getName() + = 
+ binding.getObject());
}
} catch (NamingException e) {
System.err.println(unable to read JNDI settings,  + e);
}


The web.xml fragment looks as follows:

env-entry
env-entry-nameDatabaseURL/env-entry-name
env-entry-valuejdbc:hsqldb:hsql://localhost/env-entry-value
env-entry-typejava.lang.String/env-entry-type
/env-entry

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



DO NOT REPLY [Bug 24182] - java.util.ConcurrentModificationException

2004-06-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=24182.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=24182

java.util.ConcurrentModificationException





--- Additional Comments From [EMAIL PROTECTED]  2004-06-21 23:30 ---
No, though it seemed to make it occur much less frequently.  I ended up writing 
my own LRU map that dealt with concurrency better and haven't had any problems 
since then.

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



DO NOT REPLY [Bug 24588] - NullPointerException from ProxyDirContext

2004-06-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=24588.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=24588

NullPointerException from ProxyDirContext





--- Additional Comments From [EMAIL PROTECTED]  2004-06-21 23:53 ---
It was a one-off occurence

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



DO NOT REPLY [Bug 29728] New: - Tomcat 'admin' application allows jspf source browsing

2004-06-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=29728.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29728

Tomcat 'admin' application allows jspf source browsing

   Summary: Tomcat 'admin' application allows jspf source browsing
   Product: Tomcat 5
   Version: 5.0.25
  Platform: PC
   URL: http://127.0.0.1:8080/admin/users/
OS/Version: Windows NT/2K
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Webapps:Administration
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Default configuration of Tomcat 'admin' application allows jspf source browsing 
without any authentication. One needs just to use URL 
http://tomcat_host:8080/admin/users/ .

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